Go to the source code of this file.
◆ SdSet()
Definition at line 12 of file sdset.c.
13{
14 SC_HANDLE hManager =
NULL;
15 SC_HANDLE hService =
NULL;
17 ULONG ulSecurityDescriptorSize = 0;
19
20#ifdef SCDBG
22#endif
23
28 {
31 goto done;
32 }
33
36 {
39 goto done;
40 }
41
44 &pSecurityDescriptor,
45 &ulSecurityDescriptorSize))
46 {
49 goto done;
50 }
51
54 pSecurityDescriptor))
55 {
58 goto done;
59 }
60
61done:
64
65 if (pSecurityDescriptor !=
NULL)
67
68 if (hService)
70
71 if (hManager)
73
74 return bResult;
75}
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
DWORD WINAPI GetLastError(void)
#define SC_MANAGER_CONNECT
#define DACL_SECURITY_INFORMATION
Referenced by ScControl().