14 SC_HANDLE hManager =
NULL;
15 SC_HANDLE hService =
NULL;
17 ULONG ulSecurityDescriptorSize = 0;
45 &ulSecurityDescriptorSize))
65 if (pSecurityDescriptor !=
NULL)
static WCHAR ServiceName[]
HLOCAL NTAPI LocalFree(HLOCAL hMem)
DWORD ReportLastError(void)
BOOL WINAPI SetServiceObjectSecurity(SC_HANDLE hService, SECURITY_INFORMATION dwSecurityInformation, PSECURITY_DESCRIPTOR lpSecurityDescriptor)
BOOL WINAPI CloseServiceHandle(SC_HANDLE hSCObject)
#define ConvertStringSecurityDescriptorToSecurityDescriptor
BOOL SdSet(LPCTSTR ServiceName, LPCTSTR StringSecurityDescriptor)
DWORD WINAPI GetLastError(void)
#define SC_MANAGER_CONNECT
#define DACL_SECURITY_INFORMATION