Getting a structure from a pointer
I use something like this to get the structure out of lParam (in the low-level keyboard hook).
But it only returns a pointer.
Code:
KBDLLHOOKSTRUCT *meep = (KBDLLHOOKSTRUCT *) lParam;
If I use something like this to get a variable from this structure, I get memory addresses:
Code:
KBDLLHOOKSTRUCT *meep = (KBDLLHOOKSTRUCT *) lParam;
char buffer[256];
MessageBox(HWND_DESKTOP,atoi(meep->vkCode,buffer,10),"Button is:",MB_OK);
it will give the memory address to that specific variable inside the structure. How can I get the value of vkCode?