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