Process Hacker
wndexp.h File Reference
#include <phdk.h>
#include "wndtree.h"

Go to the source code of this file.

Data Structures

struct  _WE_HOOK_SHARED_DATA
 
struct  _WE_WINDOW_SELECTOR
 

Macros

#define PLUGIN_NAME   L"ProcessHacker.WindowExplorer"
 
#define SETTING_NAME_SHOW_DESKTOP_WINDOWS   (PLUGIN_NAME L".ShowDesktopWindows")
 
#define SETTING_NAME_WINDOW_TREE_LIST_COLUMNS   (PLUGIN_NAME L".WindowTreeListColumns")
 
#define SETTING_NAME_WINDOWS_WINDOW_POSITION   (PLUGIN_NAME L".WindowsWindowPosition")
 
#define SETTING_NAME_WINDOWS_WINDOW_SIZE   (PLUGIN_NAME L".WindowsWindowSize")
 
#define WE_SERVER_MESSAGE_NAME   L"WE_ServerMessage"
 
#define WE_SERVER_SHARED_SECTION_NAME   L"\\BaseNamedObjects\\WeSharedSection"
 
#define WE_SERVER_SHARED_SECTION_LOCK_NAME   L"\\BaseNamedObjects\\WeSharedSectionLock"
 
#define WE_SERVER_SHARED_SECTION_EVENT_NAME   L"\\BaseNamedObjects\\WeSharedSectionEvent"
 
#define WE_CLIENT_MESSAGE_TIMEOUT   2000
 
#define WM_WE_PLUSMINUS   (WM_APP + 1)
 
#define WE_PhMainWndHandle   (*(HWND *)WeGetProcedureAddress("PhMainWndHandle"))
 
#define WE_WindowsVersion   (*(ULONG *)WeGetProcedureAddress("WindowsVersion"))
 

Typedefs

typedef struct _WE_HOOK_SHARED_DATA WE_HOOK_SHARED_DATA
 
typedef struct
_WE_HOOK_SHARED_DATA
PWE_HOOK_SHARED_DATA
 
typedef enum
_WE_WINDOW_SELECTOR_TYPE 
WE_WINDOW_SELECTOR_TYPE
 
typedef struct _WE_WINDOW_SELECTOR WE_WINDOW_SELECTOR
 
typedef struct
_WE_WINDOW_SELECTOR
PWE_WINDOW_SELECTOR
 

Enumerations

enum  _WE_WINDOW_SELECTOR_TYPE { WeWindowSelectorAll, WeWindowSelectorProcess, WeWindowSelectorThread, WeWindowSelectorDesktop }
 

Functions

VOID WeHookServerInitialization (VOID)
 
VOID WeHookServerUninitialization (VOID)
 
BOOLEAN WeIsServerActive (VOID)
 
BOOLEAN WeLockServerSharedData (_Out_ PWE_HOOK_SHARED_DATA *Data)
 
VOID WeUnlockServerSharedData (VOID)
 
BOOLEAN WeSendServerRequest (_In_ HWND hWnd)
 
VOID WeHookClientInitialization (VOID)
 
VOID WeHookClientUninitialization (VOID)
 
VOID WeShowWindowsDialog (_In_ HWND ParentWindowHandle, _In_ PWE_WINDOW_SELECTOR Selector)
 
VOID WeShowWindowProperties (_In_ HWND ParentWindowHandle, _In_ HWND WindowHandle)
 
PVOID WeGetProcedureAddress (_In_ PSTR Name)
 
VOID WeFormatLocalObjectName (_In_ PWSTR OriginalName, _Inout_updates_(256) PWCHAR Buffer, _Out_ PUNICODE_STRING ObjectName)
 
VOID WeInvertWindowBorder (_In_ HWND hWnd)
 

Variables

BOOLEAN IsHookClient
 
PPH_PLUGIN PluginInstance
 

Macro Definition Documentation

#define PLUGIN_NAME   L"ProcessHacker.WindowExplorer"

Definition at line 10 of file wndexp.h.

#define SETTING_NAME_SHOW_DESKTOP_WINDOWS   (PLUGIN_NAME L".ShowDesktopWindows")

Definition at line 11 of file wndexp.h.

#define SETTING_NAME_WINDOW_TREE_LIST_COLUMNS   (PLUGIN_NAME L".WindowTreeListColumns")

Definition at line 12 of file wndexp.h.

#define SETTING_NAME_WINDOWS_WINDOW_POSITION   (PLUGIN_NAME L".WindowsWindowPosition")

Definition at line 13 of file wndexp.h.

#define SETTING_NAME_WINDOWS_WINDOW_SIZE   (PLUGIN_NAME L".WindowsWindowSize")

Definition at line 14 of file wndexp.h.

#define WE_CLIENT_MESSAGE_TIMEOUT   2000

Definition at line 22 of file wndexp.h.

#define WE_PhMainWndHandle   (*(HWND *)WeGetProcedureAddress("PhMainWndHandle"))

Definition at line 114 of file wndexp.h.

#define WE_SERVER_MESSAGE_NAME   L"WE_ServerMessage"

Definition at line 18 of file wndexp.h.

#define WE_SERVER_SHARED_SECTION_EVENT_NAME   L"\\BaseNamedObjects\\WeSharedSectionEvent"

Definition at line 21 of file wndexp.h.

#define WE_SERVER_SHARED_SECTION_LOCK_NAME   L"\\BaseNamedObjects\\WeSharedSectionLock"

Definition at line 20 of file wndexp.h.

#define WE_SERVER_SHARED_SECTION_NAME   L"\\BaseNamedObjects\\WeSharedSection"

Definition at line 19 of file wndexp.h.

#define WE_WindowsVersion   (*(ULONG *)WeGetProcedureAddress("WindowsVersion"))

Definition at line 115 of file wndexp.h.

#define WM_WE_PLUSMINUS   (WM_APP + 1)

Definition at line 103 of file wndexp.h.

Typedef Documentation

Enumeration Type Documentation

Enumerator:
WeWindowSelectorAll 
WeWindowSelectorProcess 
WeWindowSelectorThread 
WeWindowSelectorDesktop 

Definition at line 70 of file wndexp.h.

Function Documentation

VOID WeFormatLocalObjectName ( _In_ PWSTR  OriginalName,
_Inout_updates_(256) PWCHAR  Buffer,
_Out_ PUNICODE_STRING  ObjectName 
)

Definition at line 39 of file utils.c.

PVOID WeGetProcedureAddress ( _In_ PSTR  Name)

Definition at line 27 of file utils.c.

VOID WeHookClientInitialization ( VOID  )

Definition at line 425 of file hook.c.

VOID WeHookClientUninitialization ( VOID  )

Definition at line 432 of file hook.c.

VOID WeHookServerInitialization ( VOID  )

Definition at line 70 of file hook.c.

VOID WeHookServerUninitialization ( VOID  )

Definition at line 85 of file hook.c.

VOID WeInvertWindowBorder ( _In_ HWND  hWnd)

Definition at line 67 of file utils.c.

BOOLEAN WeIsServerActive ( VOID  )

Definition at line 344 of file hook.c.

BOOLEAN WeLockServerSharedData ( _Out_ PWE_HOOK_SHARED_DATA Data)

Definition at line 360 of file hook.c.

BOOLEAN WeSendServerRequest ( _In_ HWND  hWnd)

Definition at line 386 of file hook.c.

VOID WeShowWindowProperties ( _In_ HWND  ParentWindowHandle,
_In_ HWND  WindowHandle 
)

Definition at line 220 of file wndprp.c.

VOID WeShowWindowsDialog ( _In_ HWND  ParentWindowHandle,
_In_ PWE_WINDOW_SELECTOR  Selector 
)

Definition at line 52 of file wnddlg.c.

VOID WeUnlockServerSharedData ( VOID  )

Definition at line 379 of file hook.c.

Variable Documentation

BOOLEAN IsHookClient

Definition at line 66 of file main.c.

PPH_PLUGIN PluginInstance

Definition at line 113 of file main.c.