Process Hacker
extsrv.h File Reference

Go to the source code of this file.

Macros

#define PLUGIN_NAME   L"ProcessHacker.ExtendedServices"
 
#define SETTING_NAME_ENABLE_SERVICES_MENU   (PLUGIN_NAME L".EnableServicesMenu")
 
#define ES_TRIGGER_EVENT_NEW   1
 
#define ES_TRIGGER_EVENT_EDIT   2
 
#define ES_TRIGGER_EVENT_DELETE   3
 
#define ES_TRIGGER_EVENT_SELECTIONCHANGED   4
 

Typedefs

typedef NTSTATUS(NTAPI * _RtlCreateServiceSid )(_In_ PUNICODE_STRING ServiceName, _Out_writes_bytes_opt_(*ServiceSidLength) PSID ServiceSid, _Inout_ PULONG ServiceSidLength)
 

Functions

LPENUM_SERVICE_STATUS EsEnumDependentServices (_In_ SC_HANDLE ServiceHandle, _In_opt_ ULONG State, _Out_ PULONG Count)
 
INT_PTR CALLBACK EspServiceDependenciesDlgProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
INT_PTR CALLBACK EspServiceDependentsDlgProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
VOID EsShowOptionsDialog (_In_ HWND ParentWindowHandle)
 
INT_PTR CALLBACK EspServiceOtherDlgProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
INT_PTR CALLBACK EspServiceRecoveryDlgProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
INT_PTR CALLBACK EspServiceRecovery2DlgProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
VOID EsRestartServiceWithProgress (_In_ HWND hWnd, _In_ PPH_SERVICE_ITEM ServiceItem, _In_ SC_HANDLE ServiceHandle)
 
struct _ES_TRIGGER_CONTEXT * EsCreateServiceTriggerContext (_In_ PPH_SERVICE_ITEM ServiceItem, _In_ HWND WindowHandle, _In_ HWND TriggersLv)
 
VOID EsDestroyServiceTriggerContext (_In_ struct _ES_TRIGGER_CONTEXT *Context)
 
VOID EsLoadServiceTriggerInfo (_In_ struct _ES_TRIGGER_CONTEXT *Context, _In_ SC_HANDLE ServiceHandle)
 
BOOLEAN EsSaveServiceTriggerInfo (_In_ struct _ES_TRIGGER_CONTEXT *Context, _Out_ PULONG Win32Result)
 
VOID EsHandleEventServiceTrigger (_In_ struct _ES_TRIGGER_CONTEXT *Context, _In_ ULONG Event)
 
INT_PTR CALLBACK EspServiceTriggersDlgProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 

Variables

PPH_PLUGIN PluginInstance
 
_RtlCreateServiceSid RtlCreateServiceSid_I
 

Macro Definition Documentation

#define ES_TRIGGER_EVENT_DELETE   3

Definition at line 105 of file extsrv.h.

#define ES_TRIGGER_EVENT_EDIT   2

Definition at line 104 of file extsrv.h.

#define ES_TRIGGER_EVENT_NEW   1

Definition at line 103 of file extsrv.h.

#define ES_TRIGGER_EVENT_SELECTIONCHANGED   4

Definition at line 106 of file extsrv.h.

#define PLUGIN_NAME   L"ProcessHacker.ExtendedServices"

Definition at line 15 of file extsrv.h.

#define SETTING_NAME_ENABLE_SERVICES_MENU   (PLUGIN_NAME L".EnableServicesMenu")

Definition at line 16 of file extsrv.h.

Typedef Documentation

typedef NTSTATUS(NTAPI * _RtlCreateServiceSid)(_In_ PUNICODE_STRING ServiceName, _Out_writes_bytes_opt_(*ServiceSidLength) PSID ServiceSid, _Inout_ PULONG ServiceSidLength)

Definition at line 6 of file extsrv.h.

Function Documentation

struct _ES_TRIGGER_CONTEXT* EsCreateServiceTriggerContext ( _In_ PPH_SERVICE_ITEM  ServiceItem,
_In_ HWND  WindowHandle,
_In_ HWND  TriggersLv 
)
read

Definition at line 334 of file trigger.c.

VOID EsDestroyServiceTriggerContext ( _In_ struct _ES_TRIGGER_CONTEXT *  Context)

Definition at line 361 of file trigger.c.

LPENUM_SERVICE_STATUS EsEnumDependentServices ( _In_ SC_HANDLE  ServiceHandle,
_In_opt_ ULONG  State,
_Out_ PULONG  Count 
)

Definition at line 34 of file depend.c.

VOID EsHandleEventServiceTrigger ( _In_ struct _ES_TRIGGER_CONTEXT *  Context,
_In_ ULONG  Event 
)

Definition at line 879 of file trigger.c.

VOID EsLoadServiceTriggerInfo ( _In_ struct _ES_TRIGGER_CONTEXT *  Context,
_In_ SC_HANDLE  ServiceHandle 
)

Definition at line 699 of file trigger.c.

INT_PTR CALLBACK EspServiceDependenciesDlgProc ( _In_ HWND  hwndDlg,
_In_ UINT  uMsg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)

Definition at line 109 of file depend.c.

INT_PTR CALLBACK EspServiceDependentsDlgProc ( _In_ HWND  hwndDlg,
_In_ UINT  uMsg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)

Definition at line 238 of file depend.c.

INT_PTR CALLBACK EspServiceOtherDlgProc ( _In_ HWND  hwndDlg,
_In_ UINT  uMsg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)

Definition at line 288 of file other.c.

INT_PTR CALLBACK EspServiceRecovery2DlgProc ( _In_ HWND  hwndDlg,
_In_ UINT  uMsg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)

Definition at line 589 of file recovery.c.

INT_PTR CALLBACK EspServiceRecoveryDlgProc ( _In_ HWND  hwndDlg,
_In_ UINT  uMsg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)

Definition at line 273 of file recovery.c.

INT_PTR CALLBACK EspServiceTriggersDlgProc ( _In_ HWND  hwndDlg,
_In_ UINT  uMsg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)

Definition at line 52 of file triggpg.c.

VOID EsRestartServiceWithProgress ( _In_ HWND  hWnd,
_In_ PPH_SERVICE_ITEM  ServiceItem,
_In_ SC_HANDLE  ServiceHandle 
)

Definition at line 43 of file srvprgrs.c.

BOOLEAN EsSaveServiceTriggerInfo ( _In_ struct _ES_TRIGGER_CONTEXT *  Context,
_Out_ PULONG  Win32Result 
)

Definition at line 740 of file trigger.c.

VOID EsShowOptionsDialog ( _In_ HWND  ParentWindowHandle)

Definition at line 35 of file options.c.

Variable Documentation

PPH_PLUGIN PluginInstance

Definition at line 113 of file main.c.

_RtlCreateServiceSid RtlCreateServiceSid_I

Definition at line 58 of file main.c.