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.
144 lpStr = lpServiceList;
150 if (*lpStr ==
L'\0' && *(lpStr + 1) ==
L'\0')
172 while (*lpStr !=
L'\0')
LPQUERY_SERVICE_CONFIG GetServiceConfig(LPWSTR lpServiceName)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define HeapFree(x, y, z)
Referenced by InitDialog().
◆ AddServiceToList()
Definition at line 21 of file stop_dependencies.c.
29 dwToAddSize =
wcslen(lpServiceToAdd) + 1;
39 dwToAddSize *
sizeof(
WCHAR));
48 lpNewList[dwToAddSize - 1] =
L'\0';
60 if (*
ptr ==
L'\0' && *(
ptr + 1) ==
L'\0')
75 (dwCurSize + dwToAddSize) *
sizeof(
WCHAR));
84 lpNewList[dwCurSize + dwToAddSize - 1] =
L'\0';
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
_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.
103 for (
i = 0;
i < dwCount;
i++)
110 *lpServiceList =
AddServiceToList(lpServiceList, lpServiceStatus[
i].lpServiceName);
LPENUM_SERVICE_STATUS TV2_GetDependants(LPWSTR lpServiceName, LPDWORD lpdwCount)
static SERVICE_STATUS ServiceStatus
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
#define HeapFree(x, y, z)
Referenced by GetListOfServicesToStop().
◆ CreateStopDependsDialog()
Definition at line 293 of file stop_dependencies.c.
INT_PTR WINAPI DialogBoxParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
#define IDD_DLG_DEPEND_STOP
_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
INT_PTR CALLBACK StopDependsDialogProc(HWND hDlg, UINT Message, WPARAM wParam, LPARAM lParam)
#define MAKEINTRESOURCEW(i)
Referenced by RunActionWithProgress().
◆ GetListOfServicesToStop()
◆ InitDialog()
Definition at line 178 of file stop_dependencies.c.
184 HWND hServiceListBox;
185 LPWSTR lpPartialStr, lpStr;
220 fullLen *
sizeof(
WCHAR));
#define IDC_STOP_DEPENDS_LB
BOOL WINAPI DestroyIcon(_In_ HICON)
static INT AllocAndLoadString(OUT LPTSTR *lpTarget, IN HINSTANCE hInst, IN UINT uID)
HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_ UINT, _In_ int, _In_ int, _In_ UINT)
int _snwprintf(wchar_t *buffer, size_t count, const wchar_t *format,...)
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
int WINAPI GetSystemMetrics(_In_ int)
LRESULT WINAPI SendDlgItemMessageW(_In_ HWND, _In_ int, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
static VOID AddServiceNamesToStop(HWND hServiceListBox, LPWSTR lpServiceList)
struct _STOP_DATA * PSTOP_DATA
HLOCAL NTAPI LocalFree(HLOCAL hMem)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
#define HeapFree(x, y, z)
Referenced by StopDependsDialogProc().
◆ StopDependsDialogProc()