14 SC_HANDLE hManager =
NULL;
15 SC_HANDLE hService =
NULL;
17 DWORD cbBytesNeeded = 0;
49 if (cbBytesNeeded == 0)
58 if (pSecurityDescriptor ==
NULL)
94 if (pStringBuffer !=
NULL)
97 if (pSecurityDescriptor !=
NULL)
static WCHAR ServiceName[]
#define HeapFree(x, y, z)
HLOCAL NTAPI LocalFree(HLOCAL hMem)
DWORD ReportLastError(void)
BOOL WINAPI QueryServiceObjectSecurity(SC_HANDLE hService, SECURITY_INFORMATION dwSecurityInformation, PSECURITY_DESCRIPTOR lpSecurityDescriptor, DWORD cbBufSize, LPDWORD pcbBytesNeeded)
BOOL WINAPI CloseServiceHandle(SC_HANDLE hSCObject)
#define ConvertSecurityDescriptorToStringSecurityDescriptor
BOOL SdShow(LPCTSTR ServiceName)
DWORD WINAPI GetLastError(void)
#define SC_MANAGER_CONNECT
#define DACL_SECURITY_INFORMATION