Source code of Windows XP (NT5)
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.6 KiB

//---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1995
//
// File: servhlp.hxx
//
// Contents: helper functions for winnt service object
//
//
// History: 12/11/95 ramv (Ram Viswanathan) Created.
//
//----------------------------------------------------------------------------
HRESULT
WinNTEnumServices( LPTSTR szComputerName,
LPDWORD pdwServiceObjectReturned,
LPBYTE *ppMem
);
//
// mapping WinNT Status Codes to ADs Status Codes and vice versa
//
BOOL
ServiceStatusWinNTToADs(DWORD dwWinNTStatus,
DWORD *pdwADsStatus);
BOOL
ServiceStatusADsToWinNT(DWORD dwADsStatus,
DWORD *pdwWinNTStatus);
//
// Helper functions to convert ServiceType, StartType and Error Control
// from WinNT to ADS parameters and vice versa
//
BOOL
ServiceTypeWinNTToADs(DWORD dwServiceType,
DWORD *pdwADsServiceType );
BOOL
StartTypeWinNTToADs(DWORD dwStartType,
DWORD *pdwADsStartType );
BOOL
ErrorControlWinNTToADs(DWORD dwErrorControl,
DWORD *pdwADsErrorControl);
BOOL
ServiceTypeADsToWinNT(DWORD dwADsServiceType,
DWORD *pdwServiceType);
BOOL
StartTypeADsToWinNT(DWORD dwADsStartType,
DWORD *pdwStartType);
BOOL
ErrorControlADsToWinNT(DWORD dwADsErrorControl,
DWORD *pdwErrorControl );
HRESULT
WinNTDeleteService(POBJECTINFO pObjectInfo);