mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
92f9bd014d
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@3425 21ef857c-d57f-4fe0-8362-d861dc6d29cd
73 lines
1.6 KiB
C
73 lines
1.6 KiB
C
#ifndef _PH_PHPLUG_H
|
|
#define _PH_PHPLUG_H
|
|
|
|
// Callbacks
|
|
|
|
typedef enum _PH_GENERAL_CALLBACK
|
|
{
|
|
GeneralCallbackMainWindowShowing = 0, // INT ShowCommand
|
|
GeneralCallbackGetProcessHighlightingColor = 1, // PPH_GET_HIGHLIGHTING_COLOR Data
|
|
|
|
GeneralCallbackMaximum
|
|
} PH_GENERAL_CALLBACK, *PPH_GENERAL_CALLBACK;
|
|
|
|
typedef struct _PH_PLUGIN_GET_HIGHLIGHTING_COLOR
|
|
{
|
|
// Parameter is:
|
|
// PPH_PROCESS_ITEM for GeneralCallbackGetProcessHighlightingColor
|
|
|
|
PVOID Parameter;
|
|
COLORREF BackColor;
|
|
BOOLEAN Handled;
|
|
BOOLEAN Cache;
|
|
} PH_PLUGIN_GET_HIGHLIGHTING_COLOR, *PPH_PLUGIN_GET_HIGHLIGHTING_COLOR;
|
|
|
|
typedef enum _PH_PLUGIN_CALLBACK
|
|
{
|
|
PluginCallbackLoad = 0,
|
|
PluginCallbackUnload = 1,
|
|
PluginCallbackShowOptions = 2, // HWND ParentWindowHandle
|
|
|
|
PluginCallbackMaximum
|
|
} PH_PLUGIN_CALLBACK, *PPH_PLUGIN_CALLBACK;
|
|
|
|
typedef struct _PH_PLUGIN
|
|
{
|
|
LIST_ENTRY ListEntry;
|
|
PH_AVL_LINKS Links;
|
|
|
|
PWSTR Name;
|
|
PVOID DllBase;
|
|
|
|
PWSTR Author;
|
|
PWSTR Description;
|
|
|
|
PH_CALLBACK Callbacks[PluginCallbackMaximum];
|
|
} PH_PLUGIN, *PPH_PLUGIN;
|
|
|
|
typedef struct _PH_PLUGIN_INFORMATION
|
|
{
|
|
PWSTR Author;
|
|
PWSTR Description;
|
|
} PH_PLUGIN_INFORMATION, *PPH_PLUGIN_INFORMATION;
|
|
|
|
PHAPPAPI
|
|
PPH_PLUGIN PhRegisterPlugin(
|
|
__in PWSTR Name,
|
|
__in PVOID DllBase,
|
|
__in_opt PPH_PLUGIN_INFORMATION Information
|
|
);
|
|
|
|
PHAPPAPI
|
|
PPH_CALLBACK PhGetPluginCallback(
|
|
__in PPH_PLUGIN Plugin,
|
|
__in PH_PLUGIN_CALLBACK Callback
|
|
);
|
|
|
|
PHAPPAPI
|
|
PPH_CALLBACK PhGetGeneralCallback(
|
|
__in PH_GENERAL_CALLBACK Callback
|
|
);
|
|
|
|
#endif
|