Go to the source code of this file.
◆ QueryDescription()
Definition at line 12 of file description.c.
14 SC_HANDLE hManager =
NULL;
15 SC_HANDLE hService =
NULL;
17 DWORD cbBytesNeeded = 0;
48 if (cbBytesNeeded == 0)
57 if (pServiceDescription ==
NULL)
67 (
LPBYTE)pServiceDescription,
76 _tprintf(
_T(
"[SC] QueryServiceConfig2 SUCCESS\n\n"));
80 (pServiceDescription->lpDescription) ? pServiceDescription->lpDescription :
_T(
""));
86 if (pServiceDescription !=
NULL)
#define SC_MANAGER_CONNECT
DWORD WINAPI GetLastError(VOID)
#define SERVICE_CONFIG_DESCRIPTION
BOOL WINAPI CloseServiceHandle(SC_HANDLE hSCObject)
#define QueryServiceConfig2
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
VOID ReportLastError(VOID)
#define SERVICE_QUERY_CONFIG
#define HeapFree(x, y, z)
Referenced by ScControl().
◆ SetDescription()
Definition at line 99 of file description.c.
101 SC_HANDLE hManager =
NULL;
102 SC_HANDLE hService =
NULL;
113 if (hManager ==
NULL)
121 if (hService ==
NULL)
132 (
LPBYTE)&ServiceDescription))
139 _tprintf(
_T(
"[SC] ChangeServiceConfig2 SUCCESS\n\n"));
142 if (bResult ==
FALSE)
#define SC_MANAGER_CONNECT
DWORD WINAPI GetLastError(VOID)
#define SERVICE_CONFIG_DESCRIPTION
static const WCHAR Description[]
BOOL WINAPI CloseServiceHandle(SC_HANDLE hSCObject)
#define SERVICE_CHANGE_CONFIG
VOID ReportLastError(VOID)
#define ChangeServiceConfig2
Referenced by ScControl().