|
Process Hacker
|
Go to the source code of this file.
Data Structures | |
| struct | _PH_PLUGIN_GET_HIGHLIGHTING_COLOR |
| struct | _PH_PLUGIN_GET_TOOLTIP_TEXT |
| struct | _PH_PLUGIN_PROCESS_PROPCONTEXT |
| struct | _PH_PLUGIN_NOTIFY_EVENT |
| struct | _PH_PLUGIN_OBJECT_PROPERTIES |
| struct | _PH_PLUGIN_HANDLE_PROPERTIES_CONTEXT |
| struct | _PH_PLUGIN_MENU_INFORMATION |
| struct | _PH_PLUGIN_MENU_HOOK_INFORMATION |
| struct | _PH_PLUGIN_TREENEW_INFORMATION |
| struct | _PH_PLUGIN_THREAD_STACK_CONTROL |
| struct | _PH_PLUGIN_MEMORY_ITEM_LIST_CONTROL |
| struct | _PH_PLUGIN_SYSINFO_POINTERS |
| struct | _PH_PLUGIN_MINIINFO_POINTERS |
| struct | _PH_PLUGIN_TREENEW_MESSAGE |
| struct | _PH_PLUGIN_PHSVC_REQUEST |
| struct | _PH_PLUGIN_PHSVC_CLIENT |
| struct | _PH_PLUGIN_INFORMATION |
| struct | _PH_PLUGIN |
| struct | _PH_PLUGIN_MENU_ITEM |
| struct | _PH_PLUGIN_SYSTEM_STATISTICS |
Macros | |
| #define | PH_PLUGIN_MENU_DISALLOW_HOOKS 0x1 |
| #define | PH_PLUGIN_FLAG_RESERVED 0x1 |
| #define | PH_MENU_ITEM_LOCATION_VIEW 1 |
| #define | PH_MENU_ITEM_LOCATION_TOOLS 2 |
| #define | PH_MENU_ITEM_SUB_MENU 0x80000000 |
| #define | PH_MENU_ITEM_RETURN_MENU 0x40000000 |
| #define | PH_MENU_ITEM_VALID_FLAGS 0xc0000000 |
Functions | |
| C_ASSERT (RTL_FIELD_SIZE(PH_PLUGIN_MENU_INFORMATION, u)==RTL_FIELD_SIZE(PH_PLUGIN_MENU_INFORMATION, u.DoNotUse)) | |
| PHAPPAPI PPH_PLUGIN NTAPI | PhRegisterPlugin (_In_ PWSTR Name, _In_ PVOID DllBase, _Out_opt_ PPH_PLUGIN_INFORMATION *Information) |
| Registers a plugin with the host. | |
| PHAPPAPI PPH_PLUGIN NTAPI | PhFindPlugin (_In_ PWSTR Name) |
| Locates a plugin instance structure. | |
| PHAPPAPI PPH_PLUGIN_INFORMATION NTAPI | PhGetPluginInformation (_In_ PPH_PLUGIN Plugin) |
| Gets a pointer to a plugin's additional information block. | |
| PHAPPAPI PPH_CALLBACK NTAPI | PhGetPluginCallback (_In_ PPH_PLUGIN Plugin, _In_ PH_PLUGIN_CALLBACK Callback) |
| Retrieves a pointer to a plugin callback. | |
| PHAPPAPI PPH_CALLBACK NTAPI | PhGetGeneralCallback (_In_ PH_GENERAL_CALLBACK Callback) |
| Retrieves a pointer to a general callback. | |
| PHAPPAPI ULONG NTAPI | PhPluginReserveIds (_In_ ULONG Count) |
| Reserves unique GUI identifiers. | |
| PHAPPAPI ULONG_PTR NTAPI | PhPluginAddMenuItem (_In_ PPH_PLUGIN Plugin, _In_ ULONG_PTR Location, _In_opt_ PWSTR InsertAfter, _In_ ULONG Id, _In_ PWSTR Text, _In_opt_ PVOID Context) |
| Adds a menu item to the program's main menu. | |
| PHAPPAPI VOID NTAPI | PhPluginGetSystemStatistics (_Out_ PPH_PLUGIN_SYSTEM_STATISTICS Statistics) |
| Retrieves current system statistics. | |
| PHAPPAPI PPH_EMENU_ITEM NTAPI | PhPluginCreateEMenuItem (_In_ PPH_PLUGIN Plugin, _In_ ULONG Flags, _In_ ULONG Id, _In_ PWSTR Text, _In_opt_ PVOID Context) |
| Creates a menu item. | |
| PHAPPAPI BOOLEAN NTAPI | PhPluginAddMenuHook (_Inout_ PPH_PLUGIN_MENU_INFORMATION MenuInfo, _In_ PPH_PLUGIN Plugin, _In_opt_ PVOID Context) |
| Adds a menu hook. | |
| VOID NTAPI | PhPluginInitializeMenuInfo (_Out_ PPH_PLUGIN_MENU_INFORMATION MenuInfo, _In_opt_ PPH_EMENU Menu, _In_ HWND OwnerWindow, _In_ ULONG Flags) |
| Initializes a plugin menu information structure. | |
| BOOLEAN NTAPI | PhPluginTriggerEMenuItem (_In_ PPH_PLUGIN_MENU_INFORMATION MenuInfo, _In_ PPH_EMENU_ITEM Item) |
| Triggers a plugin menu item. | |
| PHAPPAPI BOOLEAN NTAPI | PhPluginAddTreeNewColumn (_In_ PPH_PLUGIN Plugin, _In_ PVOID CmData, _In_ PPH_TREENEW_COLUMN Column, _In_ ULONG SubId, _In_opt_ PVOID Context, _In_opt_ PPH_PLUGIN_TREENEW_SORT_FUNCTION SortFunction) |
| Adds a column to a tree new control. | |
| PHAPPAPI VOID NTAPI | PhPluginSetObjectExtension (_In_ PPH_PLUGIN Plugin, _In_ PH_EM_OBJECT_TYPE ObjectType, _In_ ULONG ExtensionSize, _In_opt_ PPH_EM_OBJECT_CALLBACK CreateCallback, _In_opt_ PPH_EM_OBJECT_CALLBACK DeleteCallback) |
| Sets the object extension size and callbacks for an object type. | |
| PHAPPAPI PVOID NTAPI | PhPluginGetObjectExtension (_In_ PPH_PLUGIN Plugin, _In_ PVOID Object, _In_ PH_EM_OBJECT_TYPE ObjectType) |
| Gets the object extension for an object. | |
| PHAPPAPI struct _PH_NF_ICON *NTAPI | PhPluginRegisterIcon (_In_ PPH_PLUGIN Plugin, _In_ ULONG SubId, _In_opt_ PVOID Context, _In_ PWSTR Text, _In_ ULONG Flags, _In_ struct _PH_NF_ICON_REGISTRATION_DATA *RegistrationData) |
| Creates a notification icon. | |
| PHAPPAPI VOID NTAPI | PhPluginEnableTreeNewNotify (_In_ PPH_PLUGIN Plugin, _In_ PVOID CmData) |
| Allows a plugin to receive all treenew messages, not just column-related ones. | |
| PHAPPAPI BOOLEAN NTAPI | PhPluginQueryPhSvc (_Out_ PPH_PLUGIN_PHSVC_CLIENT Client) |
| PHAPPAPI NTSTATUS NTAPI | PhPluginCallPhSvc (_In_ PPH_PLUGIN Plugin, _In_ ULONG SubId, _In_reads_bytes_opt_(InLength) PVOID InBuffer, _In_ ULONG InLength, _Out_writes_bytes_opt_(OutLength) PVOID OutBuffer, _In_ ULONG OutLength) |
| typedef enum _PH_GENERAL_CALLBACK PH_GENERAL_CALLBACK |
| typedef struct _PH_PLUGIN PH_PLUGIN |
| typedef enum _PH_PLUGIN_CALLBACK PH_PLUGIN_CALLBACK |
| typedef struct _PH_PLUGIN_GET_TOOLTIP_TEXT PH_PLUGIN_GET_TOOLTIP_TEXT |
| typedef struct _PH_PLUGIN_INFORMATION PH_PLUGIN_INFORMATION |
| typedef struct _PH_PLUGIN_MENU_HOOK_INFORMATION PH_PLUGIN_MENU_HOOK_INFORMATION |
| typedef struct _PH_PLUGIN_MENU_INFORMATION PH_PLUGIN_MENU_INFORMATION |
| typedef struct _PH_PLUGIN_MENU_ITEM PH_PLUGIN_MENU_ITEM |
| typedef struct _PH_PLUGIN_MINIINFO_POINTERS PH_PLUGIN_MINIINFO_POINTERS |
| typedef struct _PH_PLUGIN_NOTIFY_EVENT PH_PLUGIN_NOTIFY_EVENT |
| typedef struct _PH_PLUGIN_OBJECT_PROPERTIES PH_PLUGIN_OBJECT_PROPERTIES |
| typedef struct _PH_PLUGIN_PHSVC_CLIENT PH_PLUGIN_PHSVC_CLIENT |
| typedef struct _PH_PLUGIN_PHSVC_REQUEST PH_PLUGIN_PHSVC_REQUEST |
| typedef struct _PH_PLUGIN_PROCESS_PROPCONTEXT PH_PLUGIN_PROCESS_PROPCONTEXT |
| typedef struct _PH_PLUGIN_SYSINFO_POINTERS PH_PLUGIN_SYSINFO_POINTERS |
| typedef struct _PH_PLUGIN_SYSTEM_STATISTICS PH_PLUGIN_SYSTEM_STATISTICS |
| typedef struct _PH_PLUGIN_THREAD_STACK_CONTROL PH_PLUGIN_THREAD_STACK_CONTROL |
| typedef struct _PH_PLUGIN_TREENEW_INFORMATION PH_PLUGIN_TREENEW_INFORMATION |
| typedef struct _PH_PLUGIN_TREENEW_MESSAGE PH_PLUGIN_TREENEW_MESSAGE |
| typedef struct _PH_EMENU_ITEM * PPH_EMENU |
| typedef struct _PH_EMENU_ITEM* PPH_EMENU_ITEM |
| typedef enum _PH_GENERAL_CALLBACK * PPH_GENERAL_CALLBACK |
| typedef PPH_MINIINFO_LIST_SECTION(NTAPI * PPH_MINIINFO_CREATE_LIST_SECTION)(_In_ PWSTR Name, _In_ ULONG Flags, _In_ PPH_MINIINFO_LIST_SECTION Template) |
| typedef PPH_MINIINFO_SECTION(NTAPI * PPH_MINIINFO_CREATE_SECTION)(_In_ PPH_MINIINFO_SECTION Template) |
| typedef PPH_MINIINFO_SECTION(NTAPI * PPH_MINIINFO_FIND_SECTION)(_In_ PPH_STRINGREF Name) |
| typedef struct _PH_PLUGIN * PPH_PLUGIN |
| typedef enum _PH_PLUGIN_CALLBACK * PPH_PLUGIN_CALLBACK |
| typedef struct _PH_PLUGIN_GET_HIGHLIGHTING_COLOR * PPH_PLUGIN_GET_HIGHLIGHTING_COLOR |
| typedef struct _PH_PLUGIN_GET_TOOLTIP_TEXT * PPH_PLUGIN_GET_TOOLTIP_TEXT |
| typedef struct _PH_PLUGIN_HANDLE_PROPERTIES_CONTEXT * PPH_PLUGIN_HANDLE_PROPERTIES_CONTEXT |
| typedef struct _PH_PLUGIN_INFORMATION * PPH_PLUGIN_INFORMATION |
| typedef struct _PH_PLUGIN_MEMORY_ITEM_LIST_CONTROL * PPH_PLUGIN_MEMORY_ITEM_LIST_CONTROL |
| typedef struct _PH_PLUGIN_MENU_HOOK_INFORMATION * PPH_PLUGIN_MENU_HOOK_INFORMATION |
| typedef struct _PH_PLUGIN_MENU_INFORMATION * PPH_PLUGIN_MENU_INFORMATION |
| typedef struct _PH_PLUGIN_MENU_ITEM * PPH_PLUGIN_MENU_ITEM |
| typedef VOID(NTAPI * PPH_PLUGIN_MENU_ITEM_DELETE_FUNCTION)(_In_ struct _PH_PLUGIN_MENU_ITEM *MenuItem) |
| typedef struct _PH_PLUGIN_MINIINFO_POINTERS * PPH_PLUGIN_MINIINFO_POINTERS |
| typedef struct _PH_PLUGIN_NOTIFY_EVENT * PPH_PLUGIN_NOTIFY_EVENT |
| typedef struct _PH_PLUGIN_OBJECT_PROPERTIES * PPH_PLUGIN_OBJECT_PROPERTIES |
| typedef struct _PH_PLUGIN_PHSVC_CLIENT * PPH_PLUGIN_PHSVC_CLIENT |
| typedef struct _PH_PLUGIN_PHSVC_REQUEST * PPH_PLUGIN_PHSVC_REQUEST |
| typedef struct _PH_PLUGIN_PROCESS_PROPCONTEXT * PPH_PLUGIN_PROCESS_PROPCONTEXT |
| typedef struct _PH_PLUGIN_SYSINFO_POINTERS * PPH_PLUGIN_SYSINFO_POINTERS |
| typedef struct _PH_PLUGIN_SYSTEM_STATISTICS * PPH_PLUGIN_SYSTEM_STATISTICS |
| typedef struct _PH_PLUGIN_THREAD_STACK_CONTROL * PPH_PLUGIN_THREAD_STACK_CONTROL |
| typedef struct _PH_PLUGIN_TREENEW_INFORMATION * PPH_PLUGIN_TREENEW_INFORMATION |
| typedef struct _PH_PLUGIN_TREENEW_MESSAGE * PPH_PLUGIN_TREENEW_MESSAGE |
| typedef LONG(NTAPI * PPH_PLUGIN_TREENEW_SORT_FUNCTION)(_In_ PVOID Node1, _In_ PVOID Node2, _In_ ULONG SubId, _In_ PVOID Context) |
| typedef BOOLEAN(NTAPI * PPH_PLUGIN_WALK_THREAD_STACK_CALLBACK)(_In_ PPH_THREAD_STACK_FRAME StackFrame, _In_opt_ PVOID Context) |
| typedef struct _PH_SYMBOL_PROVIDER* PPH_SYMBOL_PROVIDER |
| typedef PPH_SYSINFO_SECTION(NTAPI * PPH_SYSINFO_CREATE_SECTION)(_In_ PPH_SYSINFO_SECTION Template) |
| typedef VOID(NTAPI * PPH_SYSINFO_ENTER_SECTION_VIEW)(_In_ PPH_SYSINFO_SECTION NewSection) |
| typedef PPH_SYSINFO_SECTION(NTAPI * PPH_SYSINFO_FIND_SECTION)(_In_ PPH_STRINGREF Name) |
| typedef struct _PH_THREAD_STACK_FRAME* PPH_THREAD_STACK_FRAME |
| typedef PVOID(NTAPI * PPHSVC_CLIENT_CREATE_STRING)(_In_opt_ PVOID String, _In_ SIZE_T Length, _Out_ PPH_RELATIVE_STRINGREF StringRef) |
| typedef VOID(NTAPI * PPHSVC_CLIENT_FREE_HEAP)(_In_ PVOID Memory) |
| typedef NTSTATUS(NTAPI * PPHSVC_SERVER_CAPTURE_BUFFER)(_In_ PPH_RELATIVE_STRINGREF String, _In_ BOOLEAN AllowNull, _Out_ PVOID *CapturedBuffer) |
| typedef NTSTATUS(NTAPI * PPHSVC_SERVER_CAPTURE_STRING)(_In_ PPH_RELATIVE_STRINGREF String, _In_ BOOLEAN AllowNull, _Out_ PPH_STRING *CapturedString) |
| typedef NTSTATUS(NTAPI * PPHSVC_SERVER_PROBE_BUFFER)(_In_ PPH_RELATIVE_STRINGREF String, _In_ ULONG Alignment, _In_ BOOLEAN AllowNull, _Out_ PVOID *Pointer) |
| enum _PH_GENERAL_CALLBACK |
| enum _PH_PLUGIN_CALLBACK |
| C_ASSERT | ( | RTL_FIELD_SIZE(PH_PLUGIN_MENU_INFORMATION, u) | = =RTL_FIELD_SIZE(PH_PLUGIN_MENU_INFORMATION, u.DoNotUse) | ) |
| PHAPPAPI PPH_PLUGIN NTAPI PhFindPlugin | ( | _In_ PWSTR | Name | ) |
| PHAPPAPI PPH_CALLBACK NTAPI PhGetGeneralCallback | ( | _In_ PH_GENERAL_CALLBACK | Callback | ) |
| PHAPPAPI PPH_CALLBACK NTAPI PhGetPluginCallback | ( | _In_ PPH_PLUGIN | Plugin, |
| _In_ PH_PLUGIN_CALLBACK | Callback | ||
| ) |
| PHAPPAPI PPH_PLUGIN_INFORMATION NTAPI PhGetPluginInformation | ( | _In_ PPH_PLUGIN | Plugin | ) |
| PHAPPAPI BOOLEAN NTAPI PhPluginAddMenuHook | ( | _Inout_ PPH_PLUGIN_MENU_INFORMATION | MenuInfo, |
| _In_ PPH_PLUGIN | Plugin, | ||
| _In_opt_ PVOID | Context | ||
| ) |
Adds a menu hook.
| MenuInfo | The plugin menu information structure. |
| Plugin | A plugin instance structure. |
| Context | A user-defined value that is later accessible from the callback. |
| PHAPPAPI ULONG_PTR NTAPI PhPluginAddMenuItem | ( | _In_ PPH_PLUGIN | Plugin, |
| _In_ ULONG_PTR | Location, | ||
| _In_opt_ PWSTR | InsertAfter, | ||
| _In_ ULONG | Id, | ||
| _In_ PWSTR | Text, | ||
| _In_opt_ PVOID | Context | ||
| ) |
Adds a menu item to the program's main menu.
This function is deprecated. Use GeneralCallbackMainMenuInitializing instead.
| Plugin | A plugin instance structure. |
| Location | A handle to the parent menu, or one of the following:
|
| InsertAfter | The text of the menu item to insert the new menu item after. The search is a case-insensitive prefix search that ignores prefix characters (ampersands). |
| Id | An identifier for the menu item. This should be unique within the plugin. |
| Text | The text of the menu item. |
| Context | A user-defined value for the menu item. |
| PHAPPAPI BOOLEAN NTAPI PhPluginAddTreeNewColumn | ( | _In_ PPH_PLUGIN | Plugin, |
| _In_ PVOID | CmData, | ||
| _In_ PPH_TREENEW_COLUMN | Column, | ||
| _In_ ULONG | SubId, | ||
| _In_opt_ PVOID | Context, | ||
| _In_opt_ PPH_PLUGIN_TREENEW_SORT_FUNCTION | SortFunction | ||
| ) |
Adds a column to a tree new control.
| Plugin | A plugin instance structure. |
| CmData | The CmData value from the PH_PLUGIN_TREENEW_INFORMATION structure. |
| Column | The column properties. |
| SubId | An identifier for the column. This should be unique within the plugin. |
| Context | A user-defined value. |
| SortFunction | The sort function for the column. |
| PHAPPAPI NTSTATUS NTAPI PhPluginCallPhSvc | ( | _In_ PPH_PLUGIN | Plugin, |
| _In_ ULONG | SubId, | ||
| _In_reads_bytes_opt_(InLength) PVOID | InBuffer, | ||
| _In_ ULONG | InLength, | ||
| _Out_writes_bytes_opt_(OutLength) PVOID | OutBuffer, | ||
| _In_ ULONG | OutLength | ||
| ) |
| PHAPPAPI PPH_EMENU_ITEM NTAPI PhPluginCreateEMenuItem | ( | _In_ PPH_PLUGIN | Plugin, |
| _In_ ULONG | Flags, | ||
| _In_ ULONG | Id, | ||
| _In_ PWSTR | Text, | ||
| _In_opt_ PVOID | Context | ||
| ) |
Creates a menu item.
| Plugin | A plugin instance structure. |
| Flags | A combination of flags. |
| Id | An identifier for the menu item. This should be unique within the plugin. |
| Text | The text of the menu item. |
| Context | A user-defined value for the menu item. |
| PHAPPAPI VOID NTAPI PhPluginEnableTreeNewNotify | ( | _In_ PPH_PLUGIN | Plugin, |
| _In_ PVOID | CmData | ||
| ) |
Allows a plugin to receive all treenew messages, not just column-related ones.
| Plugin | A plugin instance structure. |
| CmData | The CmData value from the PH_PLUGIN_TREENEW_INFORMATION structure. |
| PHAPPAPI PVOID NTAPI PhPluginGetObjectExtension | ( | _In_ PPH_PLUGIN | Plugin, |
| _In_ PVOID | Object, | ||
| _In_ PH_EM_OBJECT_TYPE | ObjectType | ||
| ) |
| PHAPPAPI VOID NTAPI PhPluginGetSystemStatistics | ( | _Out_ PPH_PLUGIN_SYSTEM_STATISTICS | Statistics | ) |
| VOID NTAPI PhPluginInitializeMenuInfo | ( | _Out_ PPH_PLUGIN_MENU_INFORMATION | MenuInfo, |
| _In_opt_ PPH_EMENU | Menu, | ||
| _In_ HWND | OwnerWindow, | ||
| _In_ ULONG | Flags | ||
| ) |
| PHAPPAPI BOOLEAN NTAPI PhPluginQueryPhSvc | ( | _Out_ PPH_PLUGIN_PHSVC_CLIENT | Client | ) |
|
read |
Creates a notification icon.
| Plugin | A plugin instance structure. |
| SubId | An identifier for the column. This should be unique within the plugin. |
| Context | A user-defined value. |
| Text | A string describing the notification icon. |
| Flags | A combination of flags.
|
| RegistrationData | A PH_NF_ICON_REGISTRATION_DATA structure that contains registration information. |
| PHAPPAPI ULONG NTAPI PhPluginReserveIds | ( | _In_ ULONG | Count | ) |
| PHAPPAPI VOID NTAPI PhPluginSetObjectExtension | ( | _In_ PPH_PLUGIN | Plugin, |
| _In_ PH_EM_OBJECT_TYPE | ObjectType, | ||
| _In_ ULONG | ExtensionSize, | ||
| _In_opt_ PPH_EM_OBJECT_CALLBACK | CreateCallback, | ||
| _In_opt_ PPH_EM_OBJECT_CALLBACK | DeleteCallback | ||
| ) |
Sets the object extension size and callbacks for an object type.
| Plugin | A plugin instance structure. |
| ObjectType | The type of object for which the extension is being registered. |
| ExtensionSize | The size of the extension, in bytes. |
| CreateCallback | The object creation callback. |
| DeleteCallback | The object deletion callback. |
| BOOLEAN NTAPI PhPluginTriggerEMenuItem | ( | _In_ PPH_PLUGIN_MENU_INFORMATION | MenuInfo, |
| _In_ PPH_EMENU_ITEM | Item | ||
| ) |
| PHAPPAPI PPH_PLUGIN NTAPI PhRegisterPlugin | ( | _In_ PWSTR | Name, |
| _In_ PVOID | DllBase, | ||
| _Out_opt_ PPH_PLUGIN_INFORMATION * | Information | ||
| ) |
Registers a plugin with the host.
| Name | A unique identifier for the plugin. The function fails if another plugin has already been registered with the same name. The name must only contain alphanumeric characters, spaces, dots and underscores. |
| DllBase | The base address of the plugin DLL. This is passed to the DllMain function. |
| Information | A variable which receives a pointer to the plugin's additional information block. This should be filled in after the function returns. |