Go to the source code of this file.
◆ SdShow()
Definition at line 12 of file sdshow.c.
13{
14 SC_HANDLE hManager =
NULL;
15 SC_HANDLE hService =
NULL;
17 DWORD cbBytesNeeded = 0;
20
21#ifdef SCDBG
23#endif
24
29 {
32 goto done;
33 }
34
37 {
40 goto done;
41 }
42
47 &cbBytesNeeded))
48 {
49 if (cbBytesNeeded == 0)
50 {
53 goto done;
54 }
55 }
56
58 if (pSecurityDescriptor ==
NULL)
59 {
63 goto done;
64 }
65
68 pSecurityDescriptor,
69 cbBytesNeeded,
70 &cbBytesNeeded))
71 {
74 goto done;
75 }
76
80 &pStringBuffer,
82 {
85 goto done;
86 }
87
89
90done:
93
94 if (pStringBuffer !=
NULL)
96
97 if (pSecurityDescriptor !=
NULL)
99
100 if (hService)
102
103 if (hManager)
105
106 return bResult;
107}
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
DWORD WINAPI GetLastError(void)
#define SC_MANAGER_CONNECT
#define DACL_SECURITY_INFORMATION
Referenced by ScControl().