Process Hacker
|
#include <phapp.h>
#include <settings.h>
#include <emenu.h>
#include <phplug.h>
#include <extmgri.h>
#include <notifico.h>
#include <phsvccl.h>
Go to the source code of this file.
Typedefs | |
typedef struct _PHP_PLUGIN_LOAD_ERROR | PHP_PLUGIN_LOAD_ERROR |
typedef struct _PHP_PLUGIN_LOAD_ERROR * | PPHP_PLUGIN_LOAD_ERROR |
typedef struct _PHP_PLUGIN_MENU_HOOK | PHP_PLUGIN_MENU_HOOK |
typedef struct _PHP_PLUGIN_MENU_HOOK * | PPHP_PLUGIN_MENU_HOOK |
Functions | |
INT NTAPI | PhpPluginsCompareFunction (_In_ PPH_AVL_LINKS Links1, _In_ PPH_AVL_LINKS Links2) |
BOOLEAN | PhLoadPlugin (_In_ PPH_STRING FileName) |
Loads a plugin. | |
VOID | PhpExecuteCallbackForAllPlugins (_In_ PH_PLUGIN_CALLBACK Callback, _In_ BOOLEAN StartupParameters) |
VOID | PhPluginsInitialization (VOID) |
BOOLEAN | PhpLocateDisabledPlugin (_In_ PPH_STRING List, _In_ PPH_STRINGREF BaseName, _Out_opt_ PULONG FoundIndex) |
BOOLEAN | PhIsPluginDisabled (_In_ PPH_STRINGREF BaseName) |
VOID | PhSetPluginDisabled (_In_ PPH_STRINGREF BaseName, _In_ BOOLEAN Disable) |
VOID | PhLoadPlugins (VOID) |
Loads plugins from the default plugins directory. | |
VOID | PhUnloadPlugins (VOID) |
Notifies all plugins that the program is shutting down. | |
BOOLEAN | PhpValidatePluginName (_In_ PPH_STRINGREF Name) |
PPH_PLUGIN | PhRegisterPlugin (_In_ PWSTR Name, _In_ PVOID DllBase, _Out_opt_ PPH_PLUGIN_INFORMATION *Information) |
Registers a plugin with the host. | |
PPH_PLUGIN | PhFindPlugin (_In_ PWSTR Name) |
Locates a plugin instance structure. | |
PPH_PLUGIN | PhFindPlugin2 (_In_ PPH_STRINGREF Name) |
Locates a plugin instance structure. | |
PPH_PLUGIN_INFORMATION | PhGetPluginInformation (_In_ PPH_PLUGIN Plugin) |
Gets a pointer to a plugin's additional information block. | |
PPH_CALLBACK | PhGetPluginCallback (_In_ PPH_PLUGIN Plugin, _In_ PH_PLUGIN_CALLBACK Callback) |
Retrieves a pointer to a plugin callback. | |
PPH_CALLBACK | PhGetGeneralCallback (_In_ PH_GENERAL_CALLBACK Callback) |
Retrieves a pointer to a general callback. | |
ULONG | PhPluginReserveIds (_In_ ULONG Count) |
Reserves unique GUI identifiers. | |
ULONG_PTR | 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. | |
VOID | PhPluginGetSystemStatistics (_Out_ PPH_PLUGIN_SYSTEM_STATISTICS Statistics) |
Retrieves current system statistics. | |
PPH_EMENU_ITEM | PhPluginCreateEMenuItem (_In_ PPH_PLUGIN Plugin, _In_ ULONG Flags, _In_ ULONG Id, _In_ PWSTR Text, _In_opt_ PVOID Context) |
Creates a menu item. | |
BOOLEAN | PhPluginAddMenuHook (_Inout_ PPH_PLUGIN_MENU_INFORMATION MenuInfo, _In_ PPH_PLUGIN Plugin, _In_opt_ PVOID Context) |
Adds a menu hook. | |
VOID | 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 | PhPluginTriggerEMenuItem (_In_ PPH_PLUGIN_MENU_INFORMATION MenuInfo, _In_ PPH_EMENU_ITEM Item) |
Triggers a plugin menu item. | |
BOOLEAN | 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. | |
VOID | 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. | |
PVOID | PhPluginGetObjectExtension (_In_ PPH_PLUGIN Plugin, _In_ PVOID Object, _In_ PH_EM_OBJECT_TYPE ObjectType) |
Gets the object extension for an object. | |
struct _PH_NF_ICON * | 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. | |
VOID | PhPluginEnableTreeNewNotify (_In_ PPH_PLUGIN Plugin, _In_ PVOID CmData) |
Allows a plugin to receive all treenew messages, not just column-related ones. | |
BOOLEAN | PhPluginQueryPhSvc (_Out_ PPH_PLUGIN_PHSVC_CLIENT Client) |
NTSTATUS | 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) |
Variables | |
PH_AVL_TREE | PhPluginsByName = PH_AVL_TREE_INIT(PhpPluginsCompareFunction) |
typedef struct _PHP_PLUGIN_LOAD_ERROR PHP_PLUGIN_LOAD_ERROR |
typedef struct _PHP_PLUGIN_MENU_HOOK PHP_PLUGIN_MENU_HOOK |
typedef struct _PHP_PLUGIN_LOAD_ERROR * PPHP_PLUGIN_LOAD_ERROR |
typedef struct _PHP_PLUGIN_MENU_HOOK * PPHP_PLUGIN_MENU_HOOK |
PPH_PLUGIN PhFindPlugin | ( | _In_ PWSTR | Name | ) |
|
read |
PPH_CALLBACK PhGetGeneralCallback | ( | _In_ PH_GENERAL_CALLBACK | Callback | ) |
PPH_CALLBACK PhGetPluginCallback | ( | _In_ PPH_PLUGIN | Plugin, |
_In_ PH_PLUGIN_CALLBACK | Callback | ||
) |
PPH_PLUGIN_INFORMATION PhGetPluginInformation | ( | _In_ PPH_PLUGIN | Plugin | ) |
BOOLEAN PhIsPluginDisabled | ( | _In_ PPH_STRINGREF | BaseName | ) |
BOOLEAN PhLoadPlugin | ( | _In_ PPH_STRING | FileName | ) |
VOID PhpExecuteCallbackForAllPlugins | ( | _In_ PH_PLUGIN_CALLBACK | Callback, |
_In_ BOOLEAN | StartupParameters | ||
) |
BOOLEAN PhpLocateDisabledPlugin | ( | _In_ PPH_STRING | List, |
_In_ PPH_STRINGREF | BaseName, | ||
_Out_opt_ PULONG | FoundIndex | ||
) |
BOOLEAN 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. |
ULONG_PTR 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. |
BOOLEAN 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. |
NTSTATUS 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 | ||
) |
PPH_EMENU_ITEM 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. |
VOID 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. |
PVOID PhPluginGetObjectExtension | ( | _In_ PPH_PLUGIN | Plugin, |
_In_ PVOID | Object, | ||
_In_ PH_EM_OBJECT_TYPE | ObjectType | ||
) |
VOID PhPluginGetSystemStatistics | ( | _Out_ PPH_PLUGIN_SYSTEM_STATISTICS | Statistics | ) |
VOID PhPluginInitializeMenuInfo | ( | _Out_ PPH_PLUGIN_MENU_INFORMATION | MenuInfo, |
_In_opt_ PPH_EMENU | Menu, | ||
_In_ HWND | OwnerWindow, | ||
_In_ ULONG | Flags | ||
) |
BOOLEAN 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. |
ULONG PhPluginReserveIds | ( | _In_ ULONG | Count | ) |
VOID 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 PhPluginTriggerEMenuItem | ( | _In_ PPH_PLUGIN_MENU_INFORMATION | MenuInfo, |
_In_ PPH_EMENU_ITEM | Item | ||
) |
INT NTAPI PhpPluginsCompareFunction | ( | _In_ PPH_AVL_LINKS | Links1, |
_In_ PPH_AVL_LINKS | Links2 | ||
) |
BOOLEAN PhpValidatePluginName | ( | _In_ PPH_STRINGREF | Name | ) |
PPH_PLUGIN 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. |
VOID PhSetPluginDisabled | ( | _In_ PPH_STRINGREF | BaseName, |
_In_ BOOLEAN | Disable | ||
) |
PH_AVL_TREE PhPluginsByName = PH_AVL_TREE_INIT(PhpPluginsCompareFunction) |