LONG e_lfanew; 
LONG signature;
DWORD d;
CreateFile();
//跳过dos头部
SetFilePointer(hFile,0x3c,NULL,FILE_BEGIN);
ReadFile(hFile,&e_lfanew,4,&d,NULL);
//e_lfanew存放的偏移地址
SetFilePointer(hFile,o_lfanew,NULL,FILE_BEGIN);
ReadFile(hFile,&signature,4,&d,NULL);

printf("%04x \n",signature);

 

相关文章:

  • 2021-12-23
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2021-07-28
  • 2021-06-15
  • 2021-12-12
  • 2022-12-23
猜你喜欢
  • 2022-01-14
  • 2021-11-07
  • 2022-01-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-10
相关资源
相似解决方案