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"));
86 if (pServiceDescription !=
NULL)
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)
static WCHAR ServiceName[]
BOOL SetDescription(LPCTSTR ServiceName, LPCTSTR Description)
BOOL QueryDescription(LPCTSTR ServiceName)
static const WCHAR Description[]
#define HeapFree(x, y, z)
DWORD ReportLastError(void)
BOOL WINAPI CloseServiceHandle(SC_HANDLE hSCObject)
DWORD WINAPI GetLastError(void)
#define SERVICE_CONFIG_DESCRIPTION
#define ChangeServiceConfig2
#define SC_MANAGER_CONNECT
#define SERVICE_CHANGE_CONFIG
#define QueryServiceConfig2
#define SERVICE_QUERY_CONFIG