ReactOS 0.4.15-dev-7924-g5949c20
NotifyHook Struct Reference

#include <traynotify.h>

Public Member Functions

 NotifyHook ()
 
 ~NotifyHook ()
 
void GetModulePath (HWND hwnd, HWND hwndCallback)
 
bool ModulePathCopyData (LPARAM lparam, HWND *phwnd, String &path)
 

Protected Attributes

const UINT WM_GETMODULEPATH
 

Detailed Description

Definition at line 116 of file traynotify.h.

Constructor & Destructor Documentation

◆ NotifyHook()

NotifyHook::NotifyHook ( )

Definition at line 35 of file traynotify.cpp.

37{
38}
UINT InstallNotifyHook()
Definition: notifyhook.c:83
const UINT WM_GETMODULEPATH
Definition: traynotify.h:125

◆ ~NotifyHook()

NotifyHook::~NotifyHook ( )

Definition at line 40 of file traynotify.cpp.

41{
43}
void DeinstallNotifyHook()
Definition: notifyhook.c:90

Member Function Documentation

◆ GetModulePath()

void NotifyHook::GetModulePath ( HWND  hwnd,
HWND  hwndCallback 
)

Definition at line 45 of file traynotify.cpp.

46{
47 PostMessage(hwnd, WM_GETMODULEPATH, (WPARAM)hwndCallback, 0);
48}
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
UINT_PTR WPARAM
Definition: windef.h:207
#define PostMessage
Definition: winuser.h:5832

Referenced by NotifyArea::DetermineHideState().

◆ ModulePathCopyData()

bool NotifyHook::ModulePathCopyData ( LPARAM  lparam,
HWND phwnd,
String path 
)

Definition at line 50 of file traynotify.cpp.

51{
52 char buffer[MAX_PATH];
53
55
56 if (l) {
57 path.assign(buffer, l);
58 return true;
59 } else
60 return false;
61}
@ lparam
Definition: SystemMenu.c:31
r l[0]
Definition: byte_order.h:168
#define MAX_PATH
Definition: compat.h:34
GLuint buffer
Definition: glext.h:5915
#define COUNTOF(x)
Definition: utility.h:93
DECL_NOTIFYHOOK int GetWindowModulePathCopyData(LPARAM lparam, HWND *phwnd, LPSTR buffer, int size)
Definition: notifyhook.c:103

Referenced by NotifyArea::WndProc().

Member Data Documentation

◆ WM_GETMODULEPATH

const UINT NotifyHook::WM_GETMODULEPATH
protected

Definition at line 125 of file traynotify.h.

Referenced by GetModulePath().


The documentation for this struct was generated from the following files: