1 #ifndef __SERVMAN_PRECOMP_H 2 #define __SERVMAN_PRECOMP_H 4 #define WIN32_NO_STATUS 6 #define COM_NO_WINDOWS_H 23 #pragma warning(disable : 4100) 26 #define NO_ITEM_SELECTED -1 27 #define MAX_KEY_LENGTH 256 35 #define IMAGE_UNKNOWN 0 36 #define IMAGE_SERVICE 1 37 #define IMAGE_DRIVER 2 39 #define ACTION_START 1 41 #define ACTION_PAUSE 3 42 #define ACTION_RESUME 4 43 #define ACTION_RESTART 5 45 #define ORD_ASCENDING 1 46 #define ORD_DESCENDING -1 110 #define DEFAULT_STEP 0
INT_PTR CALLBACK StopDependsDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
BOOL CreateStopDependsDialog(HWND hParent, LPWSTR ServiceName, LPWSTR DisplayName, LPWSTR ServiceList)
VOID OpenPropSheet(PMAIN_WND_INFO Info)
INT_PTR CALLBACK CreateDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
LPWSTR GetExecutablePath(LPWSTR lpServiceName)
LPWSTR GetServiceDescription(LPWSTR lpServiceName)
BOOL TV2_Initialize(PDEPENDDATA pDependData, LPWSTR lpServiceName)
DWORD DoControlService(LPWSTR ServiceName, HWND hProgress, DWORD Control)
DWORD DoStartService(LPWSTR ServiceName, HANDLE hProgress, LPWSTR lpStartParams)
BOOL RunActionWithProgress(HWND hParent, LPWSTR ServiceName, LPWSTR DisplayName, UINT Action, PVOID Param)
HWND CreateMainWindow(LPCTSTR lpCaption, int nCmdShow)
ENUM_SERVICE_STATUS_PROCESS * GetSelectedService(PMAIN_WND_INFO Info)
BOOL SetServiceDescription(LPWSTR lpServiceName, LPWSTR lpDescription)
INT GetTextFromEdit(OUT LPWSTR lpString, IN HWND hDlg, IN UINT Res)
HIMAGELIST hDependsImageList
VOID ExportFile(PMAIN_WND_INFO Info)
DWORD DoStopService(LPWSTR ServiceName, HANDLE hProgress)
BOOL CreateListView(PMAIN_WND_INFO Info)
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
VOID ChangeListViewText(PMAIN_WND_INFO Info, ENUM_SERVICE_STATUS_PROCESS *pService, UINT Column)
INT_PTR CALLBACK GeneralPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
INT_PTR CALLBACK DeleteDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
PSERVICEPROPSHEET pDlgInfo
INT AllocAndLoadString(OUT LPWSTR *lpTarget, IN HINSTANCE hInst, IN UINT uID)
_In_ WDF_WMI_PROVIDER_CONTROL Control
VOID TV1_AddDependantsToTree(PDEPENDDATA pDependData, HTREEITEM hParent, LPWSTR lpServiceName)
LPENUM_SERVICE_STATUS TV2_GetDependants(LPWSTR lpServiceName, LPDWORD lpdwCount)
ENUM_SERVICE_STATUS_PROCESS * pAllServices
BOOL TV2_HasDependantServices(LPWSTR lpServiceName)
BOOL GetServiceList(PMAIN_WND_INFO Info)
VOID DisplayString(PWCHAR)
struct _DEPENDDATA DEPENDDATA
struct _MAIN_WND_INFO * PMAIN_WND_INFO
BOOL StatusBarLoadString(IN HWND hStatusBar, IN INT PartId, IN HINSTANCE hInstance, IN UINT uID)
DWORD LoadAndFormatString(IN HINSTANCE hInstance, IN UINT uID, OUT LPTSTR *lpTarget,...)
LPQUERY_SERVICE_CONFIG GetServiceConfig(LPWSTR lpServiceName)
INT_PTR CALLBACK LogonPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
INT_PTR CALLBACK AboutDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
struct _MENU_HINT MENU_HINT
BOOL StatusBarLoadAndFormatString(IN HWND hStatusBar, IN INT PartId, IN HINSTANCE hInstance, IN UINT uID,...)
struct _SERVICEPROPSHEET SERVICEPROPSHEET
BOOL TV1_Initialize(PDEPENDDATA pDependData, LPWSTR lpServiceName)
VOID TV2_AddDependantsToTree(PDEPENDDATA pDependData, HTREEITEM hParent, LPWSTR lpServiceName)
VOID IncrementProgressBar(HANDLE hProgress, UINT NewPos)
INT_PTR CALLBACK RecoveryPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
BOOL SetServiceConfig(LPQUERY_SERVICE_CONFIG pServiceConfig, LPWSTR lpServiceName, LPWSTR lpPassword)
struct _DEPENDDATA * PDEPENDDATA
BOOL UpdateServiceStatus(ENUM_SERVICE_STATUS_PROCESS *pService)
VOID ResourceMessageBox(HINSTANCE hInstance, HWND hwnd, UINT uType, UINT uCaptionId, UINT uMessageId)
ENUM_SERVICE_STATUS_PROCESS * pService
_In_ WDFIOTARGET _In_ _Strict_type_match_ WDF_IO_TARGET_SENT_IO_ACTION Action
ENUM_SERVICE_STATUS_PROCESS * pCurrentService
VOID SetMenuAndButtonStates(PMAIN_WND_INFO Info)
struct _MAIN_WND_INFO MAIN_WND_INFO
VOID CompleteProgressBar(HANDLE hProgress)
BOOL RefreshServiceList(PMAIN_WND_INFO Info)
BOOL InitMainWindowImpl(VOID)
INT_PTR CALLBACK ProgressDialogProc(HWND hDlg, UINT Message, WPARAM wParam, LPARAM lParam)
LPWSTR GetListOfServicesToStop(LPWSTR lpServiceName)
INT_PTR CALLBACK DependenciesPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
struct _MENU_HINT * PMENU_HINT
HTREEITEM AddItemToTreeView(HWND hTreeView, HTREEITEM hRoot, LPWSTR lpDisplayName, LPWSTR lpServiceName, ULONG serviceType, BOOL bHasChildren)
GLuint GLuint GLsizei GLenum type
VOID ListViewSelectionChanged(PMAIN_WND_INFO Info, LPNMLISTVIEW pnmv)
struct _SERVICEPROPSHEET * PSERVICEPROPSHEET
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
_In_ LPCSTR _Out_writes_to_opt_ cchDisplayName LPSTR lpDisplayName
VOID SetListViewStyle(HWND hListView, DWORD View)
VOID UpdateServiceCount(PMAIN_WND_INFO Info)
VOID UninitMainWindowImpl(VOID)
VOID FreeServiceList(PMAIN_WND_INFO Info)
HIMAGELIST InitImageList(UINT StartResource, UINT EndResource, UINT Width, UINT Height, ULONG type)