S
Somebody
Pardon the Windows types ... they are just pointers to DWORDs and BYTEs...
Is there a way to simplify this monstrosity?
BOOL (CFile::*pFunc)(CFileStatus&) const = &CFile::GetStatus;
TRACE("%x\n", *((LPDWORD)(*((LPDWORD)(((LPBYTE)*((LPDWORD)&pFunc)) + 2)))));
I *think* what this is supposed to mean is:
pFunc is a ptr to a func, I need to take the address of that + 2 bytes then
double indirect it as dword addresses .
Is there a way to simplify this monstrosity?
BOOL (CFile::*pFunc)(CFileStatus&) const = &CFile::GetStatus;
TRACE("%x\n", *((LPDWORD)(*((LPDWORD)(((LPBYTE)*((LPDWORD)&pFunc)) + 2)))));
I *think* what this is supposed to mean is:
pFunc is a ptr to a func, I need to take the address of that + 2 bytes then
double indirect it as dword addresses .