Go to the source code of this file.
◆ TV2_AddDependantsToTree()
Definition at line 121 of file dependencies_tv2.c.
124{
125
130
131
133 if (lpServiceStatus)
134 {
136 {
137
139
140
142 hParent,
143 lpServiceStatus[
i].lpDisplayName,
144 lpServiceStatus[
i].lpServiceName,
145 lpServiceStatus[
i].ServiceStatus.dwServiceType,
146 bHasChildren);
147 }
148
150 0,
151 lpServiceStatus);
152 }
153 else
154 {
155
156 if (!hParent)
157 {
158
160
163 lpNoDepends,
165 0,
167
169
170
172 }
173 }
174}
INT AllocAndLoadString(OUT LPTSTR *lpTarget, IN HINSTANCE hInst, IN UINT uID)
HTREEITEM AddItemToTreeView(HWND hTreeView, HTREEITEM hRoot, LPWSTR lpDisplayName, LPWSTR lpServiceName, ULONG serviceType, BOOL bHasChildren)
BOOL TV2_HasDependantServices(LPWSTR lpServiceName)
LPENUM_SERVICE_STATUS TV2_GetDependants(LPWSTR lpServiceName, LPDWORD lpdwCount)
#define HeapFree(x, y, z)
GLuint GLuint GLsizei count
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
HLOCAL NTAPI LocalFree(HLOCAL hMem)
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
Referenced by DependenciesPageProc(), and TV2_Initialize().
◆ TV2_GetDependants()
Definition at line 55 of file dependencies_tv2.c.
57{
59 SC_HANDLE hService;
63
64
69 {
71 lpServiceName,
73 if (hService)
74 {
75
79 0,
80 &dwBytesNeeded,
81 &dwCount) &&
83 {
85 0,
86 dwBytesNeeded);
87 if (lpDependencies)
88 {
89
92 lpDependencies,
93 dwBytesNeeded,
94 &dwBytesNeeded,
95 &dwCount))
96 {
97
98 *lpdwCount = dwCount;
99 }
100 else
101 {
103 0,
104 lpDependencies);
105
106 lpDependencies =
NULL;
107 }
108 }
109 }
110
112 }
113
115 }
116
117 return lpDependencies;
118}
SC_HANDLE WINAPI OpenSCManagerW(LPCWSTR lpMachineName, LPCWSTR lpDatabaseName, DWORD dwDesiredAccess)
SC_HANDLE WINAPI OpenServiceW(SC_HANDLE hSCManager, LPCWSTR lpServiceName, DWORD dwDesiredAccess)
BOOL WINAPI CloseServiceHandle(SC_HANDLE hSCObject)
BOOL WINAPI EnumDependentServicesW(SC_HANDLE hService, DWORD dwServiceState, LPENUM_SERVICE_STATUSW lpServices, DWORD cbBufSize, LPDWORD pcbBytesNeeded, LPDWORD lpServicesReturned)
DWORD WINAPI GetLastError(void)
#define SERVICE_STATE_ALL
#define SERVICE_QUERY_STATUS
struct _ENUM_SERVICE_STATUSW * LPENUM_SERVICE_STATUSW
#define SERVICE_ENUMERATE_DEPENDENTS
#define SC_MANAGER_ALL_ACCESS
#define SERVICE_QUERY_CONFIG
Referenced by BuildListOfServicesToStop(), and TV2_AddDependantsToTree().
◆ TV2_HasDependantServices()
BOOL TV2_HasDependantServices |
( |
LPWSTR |
lpServiceName | ) |
|
Definition at line 13 of file dependencies_tv2.c.
14{
17 DWORD dwBytesNeeded, dwCount;
19
24 {
26 lpServiceName,
28 if (hService)
29 {
30
34 0,
35 &dwBytesNeeded,
36 &dwCount))
37 {
39 {
40
42 }
43 }
44
46 }
47
49 }
50
51 return bRet;
52}
#define EnumDependentServices
Referenced by TV2_AddDependantsToTree().
◆ TV2_Initialize()
Definition at line 177 of file dependencies_tv2.c.
179{
181
182
185 {
189 }
193
194
196
197 return bRet;
198}
VOID TV2_AddDependantsToTree(PDEPENDDATA pDependData, HTREEITEM hParent, LPWSTR lpServiceName)
BOOL WINAPI ImageList_Destroy(HIMAGELIST himl)
#define TreeView_SetImageList(hwnd, himl, iImage)
HIMAGELIST hDependsImageList
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
Referenced by InitDependPage().