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.

81 lines
1.7 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1995
  5. //
  6. // File: servhlp.hxx
  7. //
  8. // Contents: helper functions for winnt service object
  9. //
  10. //
  11. // History: 12/11/95 ramv (Ram Viswanathan) Created.
  12. //
  13. //----------------------------------------------------------------------------
  14. HRESULT
  15. WinNTEnumServices( LPTSTR szComputerName,
  16. LPDWORD pdwServiceObjectReturned,
  17. LPBYTE *ppMem
  18. );
  19. //
  20. // mapping WinNT Status Codes to ADs Status Codes and vice versa
  21. //
  22. BOOL
  23. ServiceStatusWinNTToADs(DWORD dwWinNTStatus,
  24. DWORD *pdwADsStatus);
  25. BOOL
  26. ServiceStatusADsToWinNT(DWORD dwADsStatus,
  27. DWORD *pdwWinNTStatus);
  28. //
  29. // Helper functions to convert ServiceType, StartType and Error Control
  30. // from WinNT to ADS parameters and vice versa
  31. //
  32. BOOL
  33. ServiceTypeWinNTToADs(DWORD dwServiceType,
  34. DWORD *pdwADsServiceType );
  35. BOOL
  36. StartTypeWinNTToADs(DWORD dwStartType,
  37. DWORD *pdwADsStartType );
  38. BOOL
  39. ErrorControlWinNTToADs(DWORD dwErrorControl,
  40. DWORD *pdwADsErrorControl);
  41. BOOL
  42. ServiceTypeADsToWinNT(DWORD dwADsServiceType,
  43. DWORD *pdwServiceType);
  44. BOOL
  45. StartTypeADsToWinNT(DWORD dwADsStartType,
  46. DWORD *pdwStartType);
  47. BOOL
  48. ErrorControlADsToWinNT(DWORD dwADsErrorControl,
  49. DWORD *pdwErrorControl );
  50. HRESULT
  51. WinNTDeleteService(POBJECTINFO pObjectInfo);