14#define PROGRESS_RANGE 20
15#define PROGRESS_STEP_MAX 15
101 ProgressData->
Param);
123 if (*lpStr ==
L'\0' && *(lpStr + 1) ==
L'\0')
148 while (*lpStr !=
L'\0')
251 ProgressData->
hDlg = hDlg;
401 if (StopDepends ==
FALSE)
414 ProgressData.
Param = Param;
INT AllocAndLoadString(OUT LPTSTR *lpTarget, IN HINSTANCE hInst, IN UINT uID)
DWORD DoControlService(LPWSTR ServiceName, HWND hProgress, DWORD Control)
LPWSTR GetListOfServicesToStop(LPWSTR lpServiceName)
DWORD DoStartService(LPWSTR ServiceName, HANDLE hProgress, LPWSTR lpStartParams)
BOOL CreateStopDependsDialog(HWND hParent, LPWSTR ServiceName, LPWSTR DisplayName, LPWSTR ServiceList)
DWORD DoStopService(LPWSTR ServiceName, HANDLE hProgress)
unsigned int __stdcall ActionThread(void *Param)
struct _PROGRESS_DATA PROGRESS_DATA
struct _PROGRESS_DATA * PPROGRESS_DATA
static VOID ResetProgressDialog(HWND hDlg, LPWSTR ServiceName, ULONG LabelId)
INT_PTR CALLBACK ProgressDialogProc(HWND hDlg, UINT Message, WPARAM wParam, LPARAM lParam)
VOID ShowError(DWORD dwLastError)
BOOL RunActionWithProgress(HWND hParent, LPWSTR ServiceName, LPWSTR DisplayName, UINT Action, PVOID Param)
VOID IncrementProgressBar(HANDLE hProgress, UINT Step)
#define PROGRESS_STEP_MAX
VOID CompleteProgressBar(HANDLE hProgress)
static BOOL InitProgressDialog(HWND hDlg, UINT Message, WPARAM wParam, LPARAM lParam)
#define IDS_PROGRESS_INFO_STOP
#define IDS_PROGRESS_INFO_START
#define IDS_PROGRESS_INFO_PAUSE
#define IDC_SERVCON_PROGRESS
#define IDS_PROGRESS_INFO_RESUME
static WCHAR ServiceName[]
#define HeapFree(x, y, z)
static const WCHAR Message[]
HLOCAL NTAPI LocalFree(HLOCAL hMem)
_CRTIMP void __cdecl _endthreadex(_In_ unsigned _Retval)
_CRTIMP uintptr_t __cdecl _beginthreadex(_In_opt_ void *_Security, _In_ unsigned _StackSize, _In_ unsigned(__stdcall *_StartAddress)(void *), _In_opt_ void *_ArgList, _In_ unsigned _InitFlag, _Out_opt_ unsigned *_ThrdAddr)
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
#define LANG_USER_DEFAULT
_In_ WDFIOTARGET _In_ _Strict_type_match_ WDF_IO_TARGET_SENT_IO_ACTION Action
#define FORMAT_MESSAGE_IGNORE_INSERTS
#define FORMAT_MESSAGE_FROM_SYSTEM
#define FORMAT_MESSAGE_ALLOCATE_BUFFER
#define SERVICE_CONTROL_CONTINUE
#define SERVICE_CONTROL_PAUSE
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
LRESULT WINAPI SendDlgItemMessageW(_In_ HWND, _In_ int, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define MAKEINTRESOURCEW(i)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
INT_PTR WINAPI DialogBoxParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
_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