Public Member Functions | Protected Attributes

NotifyHook Struct Reference

#include <traynotify.h>

Collaboration diagram for NotifyHook:
Collaboration graph
[legend]

List of all members.

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 (  )

Definition at line 38 of file traynotify.cpp.

 :  WM_GETMODULEPATH(InstallNotifyHook())
{
}
NotifyHook::~NotifyHook (  )

Definition at line 43 of file traynotify.cpp.

{
    DeinstallNotifyHook();
}

Member Function Documentation

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

Definition at line 48 of file traynotify.cpp.

References WM_GETMODULEPATH.

{
    PostMessage(hwnd, WM_GETMODULEPATH, (WPARAM)hwndCallback, 0);
}
bool NotifyHook::ModulePathCopyData ( LPARAM  lparam,
HWND phwnd,
String path 
)

Definition at line 53 of file traynotify.cpp.

References String::assign(), and COUNTOF.

Referenced by NotifyArea::WndProc().

{
    char buffer[MAX_PATH];

    int l = GetWindowModulePathCopyData(lparam, phwnd, buffer, COUNTOF(buffer));

    if (l) {
        path.assign(buffer, l);
        return true;
    } else
        return false;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

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:

ROS Explorer Source Code Documentation
generated on 02.01.2013 by doxygen

ROS Explorer Homepage