The vc debugger says the the structure members for ntHeaderBaseAddress can't be evaluated. I think this a pointer arithmetic problem. What am I doing wrong?Code:
baseAddress = (IMAGE_DOS_HEADER*)MapViewOfFile(fileMapHandle, FILE_MAP_READ, 0, 0, 0 );
if( baseAddress != NULL ) {
ntHeaderBaseAddress = (IMAGE_NT_HEADERS*)baseAddress + baseAddress->e_lfanew;
return true;
} else {
return 0;
}