go my file uploader
This commit is contained in:
18
plugins/include/commonutil.h
Normal file
18
plugins/include/commonutil.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef _COMMONUTIL_H
|
||||
#define _COMMONUTIL_H
|
||||
|
||||
FORCEINLINE
|
||||
HFONT
|
||||
CommonDuplicateFont(
|
||||
_In_ HFONT Font
|
||||
)
|
||||
{
|
||||
LOGFONT logFont;
|
||||
|
||||
if (GetObject(Font, sizeof(LOGFONT), &logFont))
|
||||
return CreateFontIndirect(&logFont);
|
||||
else
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#endif
|
||||
49
plugins/include/toolstatusintf.h
Normal file
49
plugins/include/toolstatusintf.h
Normal file
@@ -0,0 +1,49 @@
|
||||
#ifndef _TOOLSTATUSINTF_H
|
||||
#define _TOOLSTATUSINTF_H
|
||||
|
||||
#define TOOLSTATUS_PLUGIN_NAME L"ProcessHacker.ToolStatus"
|
||||
#define TOOLSTATUS_INTERFACE_VERSION 1
|
||||
|
||||
typedef PPH_STRING (NTAPI *PTOOLSTATUS_GET_SEARCHBOX_TEXT)(
|
||||
VOID
|
||||
);
|
||||
|
||||
typedef BOOLEAN (NTAPI *PTOOLSTATUS_WORD_MATCH)(
|
||||
_In_ PPH_STRINGREF Text
|
||||
);
|
||||
|
||||
typedef VOID (NTAPI *PTOOLSTATUS_REGISTER_TAB_SEARCH)(
|
||||
_In_ INT TabIndex,
|
||||
_In_ PWSTR BannerText
|
||||
);
|
||||
|
||||
typedef VOID (NTAPI *PTOOLSTATUS_TAB_ACTIVATE_CONTENT)(
|
||||
_In_ BOOLEAN Select
|
||||
);
|
||||
|
||||
typedef HWND (NTAPI *PTOOLSTATUS_GET_TREENEW_HANDLE)(
|
||||
VOID
|
||||
);
|
||||
|
||||
typedef struct _TOOLSTATUS_TAB_INFO
|
||||
{
|
||||
PWSTR BannerText;
|
||||
PTOOLSTATUS_TAB_ACTIVATE_CONTENT ActivateContent;
|
||||
PTOOLSTATUS_GET_TREENEW_HANDLE GetTreeNewHandle;
|
||||
} TOOLSTATUS_TAB_INFO, *PTOOLSTATUS_TAB_INFO;
|
||||
|
||||
typedef PTOOLSTATUS_TAB_INFO (NTAPI *PTOOLSTATUS_REGISTER_TAB_INFO)(
|
||||
_In_ INT TabIndex
|
||||
);
|
||||
|
||||
typedef struct _TOOLSTATUS_INTERFACE
|
||||
{
|
||||
ULONG Version;
|
||||
PTOOLSTATUS_GET_SEARCHBOX_TEXT GetSearchboxText;
|
||||
PTOOLSTATUS_WORD_MATCH WordMatch;
|
||||
PTOOLSTATUS_REGISTER_TAB_SEARCH RegisterTabSearchDeprecated;
|
||||
PPH_CALLBACK SearchChangedEvent;
|
||||
PTOOLSTATUS_REGISTER_TAB_INFO RegisterTabInfo;
|
||||
} TOOLSTATUS_INTERFACE, *PTOOLSTATUS_INTERFACE;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user