ReactOS  0.4.15-dev-3287-gfec35dc
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 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
static UINT WM_GETMODULEPATH
Definition: notifyhook.c:35
#define SendMessage
Definition: winuser.h:5819

◆ 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 }
static UINT WM_GETMODULEPATH
Definition: notifyhook.c:35
char _path[MAX_PATH]
Definition: notifyhook.c:56
GLuint buffer
Definition: glext.h:5915
static UINT WPARAM LPARAM lparam
Definition: combo.c:716
GLsizeiptr size
Definition: glext.h:5919
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
struct tagCOPYDATASTRUCT * PCOPYDATASTRUCT
#define lstrcpyn
Definition: winbase.h:3731

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 }
static UINT WM_GETMODULEPATH
Definition: notifyhook.c:35
#define WH_GETMESSAGE
Definition: winuser.h:33
static HINSTANCE s_hInstance
Definition: notifyhook.c:34
static HHOOK s_hNotifyHook
Definition: notifyhook.c:36
LRESULT CALLBACK NotifyHookProc(int code, WPARAM wparam, LPARAM lparam)
Definition: notifyhook.c:59
#define SetWindowsHookEx
Definition: winuser.h:5832