打印PE目录数据信息
printf("数据目录信息:\n"); PIMAGE_DATA_DIRECTORY MyDataDir; MyDataDir = PIMAGE_DATA_DIRECTORY((&MyOptionalHeader->NumberOfRvaAndSizes + 1));//定位目录位置 for (int i = 0; i < 16;i++) { printf("%08x\n", MyDataDir->VirtualAddress); printf("%08x\n", MyDataDir->Size); MyDataDir++; }