Go to the source code of this file.
|
static LPWSTR | AddServiceToList (LPWSTR *lpServiceList, LPWSTR lpServiceToAdd) |
|
static BOOL | BuildListOfServicesToStop (LPWSTR *lpServiceList, LPWSTR lpServiceName) |
|
LPWSTR | GetListOfServicesToStop (LPWSTR lpServiceName) |
|
static VOID | AddServiceNamesToStop (HWND hServiceListBox, LPWSTR lpServiceList) |
|
static BOOL | InitDialog (HWND hDlg, UINT Message, WPARAM wParam, LPARAM lParam) |
|
INT_PTR CALLBACK | StopDependsDialogProc (HWND hDlg, UINT Message, WPARAM wParam, LPARAM lParam) |
|
BOOL | CreateStopDependsDialog (HWND hParent, LPWSTR ServiceName, LPWSTR DisplayName, LPWSTR ServiceList) |
|
◆ PSTOP_DATA
◆ STOP_DATA
◆ AddServiceNamesToStop()
static VOID AddServiceNamesToStop |
( |
HWND |
hServiceListBox, |
|
|
LPWSTR |
lpServiceList |
|
) |
| |
|
static |
Definition at line 138 of file stop_dependencies.c.
140{
143
144 lpStr = lpServiceList;
145
146
147 for (;;)
148 {
149
150 if (*lpStr ==
L'\0' && *(lpStr + 1) ==
L'\0')
151 break;
152
153
154
156 lpStr++;
157
158
160 if (lpServiceConfig)
161 {
162
165 0,
167
169 }
170
171
172 while (*lpStr !=
L'\0')
173 lpStr++;
174 }
175}
LPQUERY_SERVICE_CONFIG GetServiceConfig(LPWSTR lpServiceName)
#define HeapFree(x, y, z)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
Referenced by InitDialog().
◆ AddServiceToList()
Definition at line 21 of file stop_dependencies.c.
23{
28
29 dwToAddSize =
wcslen(lpServiceToAdd) + 1;
30
31
32 if (!*lpServiceList)
33 {
34
35 dwToAddSize++;
36
38 0,
39 dwToAddSize *
sizeof(
WCHAR));
40 if (lpNewList)
41 {
42
44 dwToAddSize,
45 lpServiceToAdd);
46
47
48 lpNewList[dwToAddSize - 1] =
L'\0';
49 }
50 }
51 else
52 {
54 dwCurSize = 0;
55
56
57 for (;;)
58 {
59
60 if (*
ptr ==
L'\0' && *(
ptr + 1) ==
L'\0')
61 break;
62
64 dwCurSize++;
65 }
66 dwCurSize++;
67
68
69 dwCurSize++;
70
71
73 0,
74 *lpServiceList,
75 (dwCurSize + dwToAddSize) *
sizeof(
WCHAR));
76 if (lpNewList)
77 {
78
80 dwToAddSize,
81 lpServiceToAdd);
82
83
84 lpNewList[dwCurSize + dwToAddSize - 1] =
L'\0';
85 }
86 }
87
88 return lpNewList;
89}
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
Referenced by BuildListOfServicesToStop().
◆ BuildListOfServicesToStop()
static BOOL BuildListOfServicesToStop |
( |
LPWSTR * |
lpServiceList, |
|
|
LPWSTR |
lpServiceName |
|
) |
| |
|
static |
Definition at line 92 of file stop_dependencies.c.
94{
98
99
101 if (lpServiceStatus)
102 {
103 for (
i = 0;
i < dwCount;
i++)
104 {
105
108 {
109
110 *lpServiceList =
AddServiceToList(lpServiceList, lpServiceStatus[
i].lpServiceName);
111
112
114 }
115 }
116
118 0,
119 lpServiceStatus);
120 }
121
122 return bRet;
123}
static SERVICE_STATUS ServiceStatus
LPENUM_SERVICE_STATUS TV2_GetDependants(LPWSTR lpServiceName, LPDWORD lpdwCount)
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
static LPWSTR AddServiceToList(LPWSTR *lpServiceList, LPWSTR lpServiceToAdd)
#define SERVICE_STOP_PENDING
Referenced by GetListOfServicesToStop().
◆ CreateStopDependsDialog()
Definition at line 293 of file stop_dependencies.c.
297{
300
304
307 hParent,
312
314}
#define IDD_DLG_DEPEND_STOP
static WCHAR ServiceName[]
INT_PTR CALLBACK StopDependsDialogProc(HWND hDlg, UINT Message, WPARAM wParam, LPARAM lParam)
#define MAKEINTRESOURCEW(i)
INT_PTR WINAPI DialogBoxParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
Referenced by RunActionWithProgress().
◆ GetListOfServicesToStop()
Definition at line 126 of file stop_dependencies.c.
127{
129
130
132 return lpServiceList;
133 else
135}
static BOOL BuildListOfServicesToStop(LPWSTR *lpServiceList, LPWSTR lpServiceName)
Referenced by RunActionWithProgress().
◆ InitDialog()
Definition at line 178 of file stop_dependencies.c.
182{
184 HWND hServiceListBox;
185 LPWSTR lpPartialStr, lpStr;
189
191
192
193
199 0);
201 {
202
204 WM_SETICON,
208 }
209
210
214 {
215
217
219 0,
220 fullLen *
sizeof(
WCHAR));
221 if (lpStr)
222 {
223
225 fullLen,
226 lpPartialStr,
228
229
233 0,
235
237 0,
238 lpStr);
239
241 }
242
244 }
245
246
248 if (hServiceListBox)
249 {
252 }
253
254 return bRet;
255}
INT AllocAndLoadString(OUT LPTSTR *lpTarget, IN HINSTANCE hInst, IN UINT uID)
#define IDC_STOP_DEPENDS_LB
HLOCAL NTAPI LocalFree(HLOCAL hMem)
int _snwprintf(wchar_t *buffer, size_t count, const wchar_t *format,...)
static VOID AddServiceNamesToStop(HWND hServiceListBox, LPWSTR lpServiceList)
struct _STOP_DATA * PSTOP_DATA
HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE hInst, _In_ LPCWSTR name, _In_ UINT type, _In_ int cx, _In_ int cy, _In_ UINT fuLoad)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
LRESULT WINAPI SendDlgItemMessageW(_In_ HWND, _In_ int, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
int WINAPI GetSystemMetrics(_In_ int)
BOOL WINAPI DestroyIcon(_In_ HICON)
Referenced by StopDependsDialogProc().
◆ StopDependsDialogProc()
Definition at line 258 of file stop_dependencies.c.
262{
263
265 {
267 {
272 }
273
275 {
277 {
280 {
284 }
285 }
286 }
287 }
288
290}
static const WCHAR Message[]
static BOOL InitDialog(HWND hDlg, UINT Message, WPARAM wParam, LPARAM lParam)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
Referenced by CreateStopDependsDialog().