windows-nt/Source/XPSP1/NT/ds/adsi/winnt/servhlp.hxx

82 lines
1.6 KiB
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
//---------------------------------------------------------------------------
//
// 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);