Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
738 B

  1. // NTService.cpp
  2. //
  3. // This is the main program file containing the entry point.
  4. #include "NTServApp.h"
  5. #include "PMSPservice.h"
  6. int __cdecl main(int argc, char* argv[])
  7. {
  8. // Create the service object
  9. CPMSPService PMSPService;
  10. // Parse for standard arguments (install, uninstall, version etc.)
  11. if (!PMSPService.ParseStandardArgs(argc, argv)) {
  12. // Didn't find any standard args so start the service
  13. // Uncomment the DebugBreak line below to enter the debugger
  14. // when the service is started.
  15. // DebugBreak();
  16. PMSPService.StartService();
  17. }
  18. // When we get here, the service has been stopped
  19. return PMSPService.m_Status.dwWin32ExitCode;
  20. }