1
0
mirror of https://github.com/Wind4/vlmcsd synced 2025-12-19 22:55:52 +00:00

vlmcsd-svn812-2015-08-30-Hotbird64

This commit is contained in:
Wind4
2015-11-29 17:30:52 +08:00
commit 1af203d2a8
133 changed files with 102338 additions and 0 deletions

28
ntservice.h Normal file
View File

@@ -0,0 +1,28 @@
#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