32位Windows下可执行文件节区数目取值类型

来源:互联网 发布:免费oa软件 编辑:程序博客网 时间:2024/06/07 12:04
// testvc6.cpp : Defines the entry point for the console application.//#include "stdafx.h"void fnTest();int main(int argc, char* argv[]){fnTest();getchar();return 0;}void fnTest(){/**32位Windows下可执行文件节区数目取值类型为(unsigned short)*/// typedef unsigned short WORD// 这道题要测试作题的人对PE结构是否熟悉, 这需要有多熟悉才行啊.../**PE文件0位置 => _IMAGE_DOS_HEADER => _IMAGE_NT_HEADERS => _IMAGE_FILE_HEADER节区数量所在位置为_IMAGE_FILE_HEADER的NumberOfSections, 数据类型为WORDWORD 的定义 : typedef unsigned short WORD*/}



0 0