ReactOS 0.4.15-dev-7934-g1dc8d80
notifyhook.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DECL_NOTIFYHOOK   __declspec(dllimport)
 

Functions

DECL_NOTIFYHOOK UINT InstallNotifyHook (void)
 
DECL_NOTIFYHOOK void DeinstallNotifyHook (void)
 
DECL_NOTIFYHOOK void GetWindowModulePath (HWND hwnd)
 
DECL_NOTIFYHOOK int GetWindowModulePathCopyData (LPARAM lparam, HWND *phwnd, LPSTR buffer, int size)
 

Macro Definition Documentation

◆ DECL_NOTIFYHOOK

#define DECL_NOTIFYHOOK   __declspec(dllimport)

Definition at line 32 of file notifyhook.h.

Function Documentation

◆ DeinstallNotifyHook()

DECL_NOTIFYHOOK void DeinstallNotifyHook ( void  )

Definition at line 90 of file notifyhook.c.

91{
93 s_hNotifyHook = 0;
94}
static HHOOK s_hNotifyHook
Definition: notifyhook.c:36
BOOL WINAPI UnhookWindowsHookEx(_In_ HHOOK)

Referenced by NotifyHook::~NotifyHook().

◆ GetWindowModulePath()

DECL_NOTIFYHOOK void GetWindowModulePath ( HWND  hwnd)

Definition at line 97 of file notifyhook.c.

98{
100}
static UINT WM_GETMODULEPATH
Definition: notifyhook.c:35
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
#define SendMessage
Definition: winuser.h:5843

◆ GetWindowModulePathCopyData()

DECL_NOTIFYHOOK int GetWindowModulePathCopyData ( LPARAM  lparam,
HWND phwnd,
LPSTR  buffer,
int  size 
)

Definition at line 103 of file notifyhook.c.

104{
106
107 if (data->dwData == WM_GETMODULEPATH) {
108 struct COPYDATA_STRUCT* cds = (struct COPYDATA_STRUCT*) data->lpData;
109
110 *phwnd = cds->_hwnd;
111 lstrcpyn(buffer, cds->_path, size);
112
113 return cds->_len;
114 } else
115 return 0;
116}
@ lparam
Definition: SystemMenu.c:31
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLsizeiptr size
Definition: glext.h:5919
GLuint buffer
Definition: glext.h:5915
char _path[MAX_PATH]
Definition: notifyhook.c:56
#define lstrcpyn
Definition: winbase.h:3875
struct tagCOPYDATASTRUCT * PCOPYDATASTRUCT

Referenced by NotifyHook::ModulePathCopyData().

◆ InstallNotifyHook()

DECL_NOTIFYHOOK UINT InstallNotifyHook ( void  )

Definition at line 83 of file notifyhook.c.

84{
86
87 return WM_GETMODULEPATH;
88}
LRESULT CALLBACK NotifyHookProc(int code, WPARAM wparam, LPARAM lparam)
Definition: notifyhook.c:59
static HINSTANCE s_hInstance
Definition: notifyhook.c:34
#define SetWindowsHookEx
Definition: winuser.h:5856
#define WH_GETMESSAGE
Definition: winuser.h:33