18 lvItem.iItem =
Info->SelectedItem;
66 lpServiceConfig =
NULL;
78 return lpServiceConfig;
138 SC_HANDLE hSc =
NULL;
141 DWORD BytesNeeded = 0;
169 if (pServiceDescription ==
NULL)
174 (
LPBYTE)pServiceDescription,
178 if (pServiceDescription->lpDescription)
180 dwSize =
wcslen(pServiceDescription->lpDescription) + 1;
188 pServiceDescription->lpDescription);
197 if (pServiceDescription)
200 pServiceDescription);
206 return lpDescription;
236 &ServiceDescription))
263 for (
i = 0;
i <
Info->NumServices;
i++)
265 if (
Info->pAllServices[
i].lpServiceName)
268 if (
Info->pAllServices[
i].lpDisplayName)
274 Info->NumServices = 0;
285 DWORD BytesNeeded = 0;
286 DWORD ResumeHandle = 0;
287 DWORD NumServices = 0;
295 if (ScHandle !=
NULL)
344 Info->NumServices = NumServices;
346 for (
i = 0;
i < NumServices;
i++)
350 (
wcslen(pServices[
i].lpServiceName) + 1) *
sizeof(
WCHAR));
351 if (
Info->pAllServices[
i].lpServiceName)
357 if (
Info->pAllServices[
i].lpDisplayName)
LPQUERY_SERVICE_CONFIG GetServiceConfig(LPWSTR lpServiceName)
BOOL SetServiceConfig(LPQUERY_SERVICE_CONFIG pServiceConfig, LPWSTR lpServiceName, LPWSTR lpPassword)
ENUM_SERVICE_STATUS_PROCESS * GetSelectedService(PMAIN_WND_INFO Info)
BOOL SetServiceDescription(LPWSTR lpServiceName, LPWSTR lpDescription)
VOID FreeServiceList(PMAIN_WND_INFO Info)
BOOL GetServiceList(PMAIN_WND_INFO Info)
BOOL UpdateServiceStatus(ENUM_SERVICE_STATUS_PROCESS *pService)
LPWSTR GetServiceDescription(LPWSTR lpServiceName)
#define ERROR_INSUFFICIENT_BUFFER
#define HeapFree(x, y, z)
static void cleanup(void)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
SC_HANDLE WINAPI OpenSCManagerW(LPCWSTR lpMachineName, LPCWSTR lpDatabaseName, DWORD dwDesiredAccess)
BOOL WINAPI UnlockServiceDatabase(SC_LOCK ScLock)
BOOL WINAPI QueryServiceStatusEx(SC_HANDLE hService, SC_STATUS_TYPE InfoLevel, LPBYTE lpBuffer, DWORD cbBufSize, LPDWORD pcbBytesNeeded)
SC_HANDLE WINAPI OpenServiceW(SC_HANDLE hSCManager, LPCWSTR lpServiceName, DWORD dwDesiredAccess)
BOOL WINAPI QueryServiceConfigW(SC_HANDLE hService, LPQUERY_SERVICE_CONFIGW lpServiceConfig, DWORD cbBufSize, LPDWORD pcbBytesNeeded)
BOOL WINAPI ChangeServiceConfigW(SC_HANDLE hService, DWORD dwServiceType, DWORD dwStartType, DWORD dwErrorControl, LPCWSTR lpBinaryPathName, LPCWSTR lpLoadOrderGroup, LPDWORD lpdwTagId, LPCWSTR lpDependencies, LPCWSTR lpServiceStartName, LPCWSTR lpPassword, LPCWSTR lpDisplayName)
BOOL WINAPI QueryServiceConfig2W(SC_HANDLE hService, DWORD dwInfoLevel, LPBYTE lpBuffer, DWORD cbBufSize, LPDWORD pcbBytesNeeded)
BOOL WINAPI ChangeServiceConfig2W(SC_HANDLE hService, DWORD dwInfoLevel, LPVOID lpInfo)
SC_LOCK WINAPI LockServiceDatabase(SC_HANDLE hSCManager)
BOOL WINAPI CloseServiceHandle(SC_HANDLE hSCObject)
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
STRSAFEAPI StringCchCopyW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc)
SERVICE_STATUS_PROCESS ServiceStatusProcess
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
_In_ LPCSTR _Out_writes_to_opt_ cchDisplayName LPSTR lpDisplayName
DWORD WINAPI GetLastError(void)
#define SERVICE_STATE_ALL
#define SERVICE_QUERY_STATUS
#define SERVICE_CONFIG_DESCRIPTION
#define SC_MANAGER_ENUMERATE_SERVICE
#define SC_MANAGER_CONNECT
#define SERVICE_CHANGE_CONFIG
QUERY_SERVICE_CONFIGA * LPQUERY_SERVICE_CONFIG
#define EnumServicesStatusEx
#define SERVICE_QUERY_CONFIG