I'm creating a hook into the mouse messages for my app using SetWindowsHookEx and AddressOf, and I AM receiving the Windows messages. HOWEVER, I need to use MouseHookStruct so that I can find out which window will receive the mouse message.

I can find the MouseHookStruct declaration, but I'm not sure how to use it. I know that the lparam that I receive in MouseProc (procedure that AddressOf points to) is a pointer to the MouseHookStruct structure (according to MS), but I don't know how to use that pointer to get to the MouseHookStruct structure.

I'm sure this is easy for many of you, but it's not for me. :