71a7640b6e
It boots any Konami game but it is missing I/O dll emulation which I will work on next.
18 lines
532 B
C
18 lines
532 B
C
#include <windows.h>
|
|
#include <WinNT.h>
|
|
#define MAX_SECTION_NUM 20
|
|
|
|
typedef struct _PEStruct
|
|
{
|
|
DWORD dwRO_first_section;
|
|
IMAGE_DOS_HEADER image_dos_header;
|
|
char *reservedheader;
|
|
IMAGE_NT_HEADERS image_nt_headers;
|
|
IMAGE_SECTION_HEADER image_section_header[MAX_SECTION_NUM];
|
|
char *image_section[MAX_SECTION_NUM];
|
|
void *fileImage;
|
|
DWORD fileSize;
|
|
DWORD numOfSecs;
|
|
} PEStruct, *PPEStruct;
|
|
|
|
PEStruct getPEFileInformation(char *filename); |