ntservice.h 647 B

12345678910111213141516171819202122232425262728
  1. #ifndef INCLUDED_NTSERVICE_H
  2. #define INCLUDED_NTSERVICE_H
  3. #ifndef CONFIG
  4. #define CONFIG "config.h"
  5. #endif // CONFIG
  6. #include CONFIG
  7. #include "types.h"
  8. #ifdef _NTSERVICE
  9. //#include <strsafe.h>
  10. #define NT_SERVICE_NAME "vlmcsd"
  11. #define NT_SERVICE_DISPLAY_NAME "Key Management Server"
  12. extern SERVICE_TABLE_ENTRY NTServiceDispatchTable[];
  13. VOID ReportServiceStatus(const DWORD, const DWORD, const DWORD);
  14. int NtServiceInstallation(const int_fast8_t installService, const char *restrict ServiceUser, const char *const ServicePassword);
  15. #else // !_NTSERVICE
  16. #define ReportServiceStatus(x,y,z)
  17. #endif // _NTSERVICE
  18. #endif // INCLUDED_NTSERVICE_H