Process Hacker
trigger.c File Reference
#include <phdk.h>
#include <windowsx.h>
#include "extsrv.h"
#include "resource.h"

Go to the source code of this file.

Typedefs

typedef struct _ES_TRIGGER_DATA ES_TRIGGER_DATA
 
typedef struct _ES_TRIGGER_DATA * PES_TRIGGER_DATA
 
typedef struct _ES_TRIGGER_INFO ES_TRIGGER_INFO
 
typedef struct _ES_TRIGGER_INFO * PES_TRIGGER_INFO
 
typedef struct _ES_TRIGGER_CONTEXT ES_TRIGGER_CONTEXT
 
typedef struct
_ES_TRIGGER_CONTEXT * 
PES_TRIGGER_CONTEXT
 
typedef struct _TYPE_ENTRY TYPE_ENTRY
 
typedef struct _TYPE_ENTRY PTYPE_ENTRY
 
typedef struct _SUBTYPE_ENTRY SUBTYPE_ENTRY
 
typedef struct _SUBTYPE_ENTRY PSUBTYPE_ENTRY
 
typedef struct _ETW_PUBLISHER_ENTRY ETW_PUBLISHER_ENTRY
 
typedef struct
_ETW_PUBLISHER_ENTRY * 
PETW_PUBLISHER_ENTRY
 

Functions

INT_PTR CALLBACK EspServiceTriggerDlgProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
INT_PTR CALLBACK ValueDlgProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
PES_TRIGGER_DATA EspCreateTriggerData (_In_opt_ PSERVICE_TRIGGER_SPECIFIC_DATA_ITEM DataItem)
 
PES_TRIGGER_DATA EspCloneTriggerData (_In_ PES_TRIGGER_DATA Data)
 
VOID EspDestroyTriggerData (_In_ PES_TRIGGER_DATA Data)
 
PES_TRIGGER_INFO EspCreateTriggerInfo (_In_opt_ PSERVICE_TRIGGER Trigger)
 
PES_TRIGGER_INFO EspCloneTriggerInfo (_In_ PES_TRIGGER_INFO Info)
 
VOID EspDestroyTriggerInfo (_In_ PES_TRIGGER_INFO Info)
 
VOID EspClearTriggerInfoList (_In_ PPH_LIST List)
 
struct _ES_TRIGGER_CONTEXT * EsCreateServiceTriggerContext (_In_ PPH_SERVICE_ITEM ServiceItem, _In_ HWND WindowHandle, _In_ HWND TriggersLv)
 
VOID EsDestroyServiceTriggerContext (_In_ struct _ES_TRIGGER_CONTEXT *Context)
 
PPH_STRING EspLookupEtwPublisherName (_In_ PGUID Guid)
 
BOOLEAN EspEnumerateEtwPublishers (_Out_ PETW_PUBLISHER_ENTRY *Entries, _Out_ PULONG NumberOfEntries)
 
BOOLEAN EspLookupEtwPublisherGuid (_In_ PPH_STRINGREF PublisherName, _Out_ PGUID Guid)
 
VOID EspFormatTriggerInfo (_In_ PES_TRIGGER_INFO Info, _Out_ PWSTR *TriggerString, _Out_ PWSTR *ActionString, _Out_ PPH_STRING *StringUsed)
 
VOID EsLoadServiceTriggerInfo (_In_ struct _ES_TRIGGER_CONTEXT *Context, _In_ SC_HANDLE ServiceHandle)
 
BOOLEAN EsSaveServiceTriggerInfo (_In_ struct _ES_TRIGGER_CONTEXT *Context, _Out_ PULONG Win32Result)
 
LOGICAL EspSetListViewItemParam (_In_ HWND ListViewHandle, _In_ INT Index, _In_ PVOID Param)
 
VOID EsHandleEventServiceTrigger (_In_ struct _ES_TRIGGER_CONTEXT *Context, _In_ ULONG Event)
 
PPH_STRING EspConvertNullsToNewLines (_In_ PPH_STRING String)
 
PPH_STRING EspConvertNewLinesToNulls (_In_ PPH_STRING String)
 
PPH_STRING EspConvertNullsToSpaces (_In_ PPH_STRING String)
 
VOID EspFormatTriggerData (_In_ PES_TRIGGER_DATA Data, _Out_ PPH_STRING *Text)
 

Typedef Documentation

typedef struct _ES_TRIGGER_CONTEXT ES_TRIGGER_CONTEXT
typedef struct _ES_TRIGGER_DATA ES_TRIGGER_DATA
typedef struct _ES_TRIGGER_INFO ES_TRIGGER_INFO
typedef struct _ETW_PUBLISHER_ENTRY ETW_PUBLISHER_ENTRY
typedef struct _ES_TRIGGER_CONTEXT * PES_TRIGGER_CONTEXT
typedef struct _ES_TRIGGER_DATA * PES_TRIGGER_DATA
typedef struct _ES_TRIGGER_INFO * PES_TRIGGER_INFO
typedef struct _ETW_PUBLISHER_ENTRY * PETW_PUBLISHER_ENTRY
typedef struct _SUBTYPE_ENTRY PSUBTYPE_ENTRY
typedef struct _TYPE_ENTRY PTYPE_ENTRY
typedef struct _SUBTYPE_ENTRY SUBTYPE_ENTRY
typedef struct _TYPE_ENTRY TYPE_ENTRY

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.

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.

VOID EspClearTriggerInfoList ( _In_ PPH_LIST  List)

Definition at line 320 of file trigger.c.

PES_TRIGGER_DATA EspCloneTriggerData ( _In_ PES_TRIGGER_DATA  Data)

Definition at line 194 of file trigger.c.

PES_TRIGGER_INFO EspCloneTriggerInfo ( _In_ PES_TRIGGER_INFO  Info)

Definition at line 276 of file trigger.c.

PPH_STRING EspConvertNewLinesToNulls ( _In_ PPH_STRING  String)

Definition at line 1159 of file trigger.c.

PPH_STRING EspConvertNullsToNewLines ( _In_ PPH_STRING  String)

Definition at line 1136 of file trigger.c.

PPH_STRING EspConvertNullsToSpaces ( _In_ PPH_STRING  String)

Definition at line 1200 of file trigger.c.

PES_TRIGGER_DATA EspCreateTriggerData ( _In_opt_ PSERVICE_TRIGGER_SPECIFIC_DATA_ITEM  DataItem)

Definition at line 154 of file trigger.c.

PES_TRIGGER_INFO EspCreateTriggerInfo ( _In_opt_ PSERVICE_TRIGGER  Trigger)

Definition at line 234 of file trigger.c.

VOID EspDestroyTriggerData ( _In_ PES_TRIGGER_DATA  Data)

Definition at line 216 of file trigger.c.

VOID EspDestroyTriggerInfo ( _In_ PES_TRIGGER_INFO  Info)

Definition at line 301 of file trigger.c.

BOOLEAN EspEnumerateEtwPublishers ( _Out_ PETW_PUBLISHER_ENTRY Entries,
_Out_ PULONG  NumberOfEntries 
)

Definition at line 423 of file trigger.c.

VOID EspFormatTriggerData ( _In_ PES_TRIGGER_DATA  Data,
_Out_ PPH_STRING Text 
)

Definition at line 1218 of file trigger.c.

VOID EspFormatTriggerInfo ( _In_ PES_TRIGGER_INFO  Info,
_Out_ PWSTR *  TriggerString,
_Out_ PWSTR *  ActionString,
_Out_ PPH_STRING StringUsed 
)

Definition at line 576 of file trigger.c.

BOOLEAN EspLookupEtwPublisherGuid ( _In_ PPH_STRINGREF  PublisherName,
_Out_ PGUID  Guid 
)

Definition at line 545 of file trigger.c.

PPH_STRING EspLookupEtwPublisherName ( _In_ PGUID  Guid)

Definition at line 376 of file trigger.c.

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

Definition at line 1258 of file trigger.c.

LOGICAL EspSetListViewItemParam ( _In_ HWND  ListViewHandle,
_In_ INT  Index,
_In_ PVOID  Param 
)

Definition at line 863 of file trigger.c.

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

Definition at line 740 of file trigger.c.

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

Definition at line 1672 of file trigger.c.