I'm programming a dll in VC6 which is uses windows hooks (WH_GETMESSAGE) . So I have a HOOKPROC which is called whenever messages are sent the the monitored hwnd
I have a shared data segment like so:
Expand|Select|Wrap|Line Numbers
- #pragma data_seg("SHARED")
- ...variables in here
- #pragma data_seg()
- #pragma comment(linker, "/section:SHARED,RWS")
I must be missing something about how the shared segment works. Anybody have any ideas? I'd love to be able to have a std::list of a structure containing info about what messages the HOOKPROC should reply to and how to reply.
Looks like I'll have to use arrays of hwnd's and others for the moment...
Cheers,
Semprini