mirror of
https://github.com/Wind4/vlmcsd.git
synced 2024-11-28 21:11:03 +08:00
29 lines
647 B
C
29 lines
647 B
C
|
#ifndef INCLUDED_NTSERVICE_H
|
||
|
#define INCLUDED_NTSERVICE_H
|
||
|
|
||
|
#ifndef CONFIG
|
||
|
#define CONFIG "config.h"
|
||
|
#endif // CONFIG
|
||
|
#include CONFIG
|
||
|
|
||
|
#include "types.h"
|
||
|
#ifdef _NTSERVICE
|
||
|
|
||
|
//#include <strsafe.h>
|
||
|
|
||
|
#define NT_SERVICE_NAME "vlmcsd"
|
||
|
#define NT_SERVICE_DISPLAY_NAME "Key Management Server"
|
||
|
|
||
|
extern SERVICE_TABLE_ENTRY NTServiceDispatchTable[];
|
||
|
|
||
|
VOID ReportServiceStatus(const DWORD, const DWORD, const DWORD);
|
||
|
int NtServiceInstallation(const int_fast8_t installService, const char *restrict ServiceUser, const char *const ServicePassword);
|
||
|
|
||
|
#else // !_NTSERVICE
|
||
|
|
||
|
#define ReportServiceStatus(x,y,z)
|
||
|
|
||
|
#endif // _NTSERVICE
|
||
|
|
||
|
#endif // INCLUDED_NTSERVICE_H
|