-
-
[救命]请问这句翻译成Delphi改怎么写?
-
发表于:
2009-12-26 21:39
2995
-
如题, &ibase[mzhead->e_lfanew] 改成Delphi该怎么写呢?
#define ibaseDD *(PDWORD)&ibase
DWORD CMySystem::GetHeaders(PCHAR ibase,
PIMAGE_FILE_HEADER *pfh,
PIMAGE_OPTIONAL_HEADER *poh,
PIMAGE_SECTION_HEADER *psh)
{
PIMAGE_DOS_HEADER mzhead=(PIMAGE_DOS_HEADER)ibase;
if ((mzhead->e_magic!=IMAGE_DOS_SIGNATURE) ||
(ibaseDD[mzhead->e_lfanew]!=IMAGE_NT_SIGNATURE))
return FALSE;
*pfh=(PIMAGE_FILE_HEADER)&ibase[mzhead->e_lfanew];//就这句!!!!!!!!
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!