mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
36a8eccf27
svn path=/trunk/; revision=25514
35 lines
916 B
C
35 lines
916 B
C
|
|
|
|
/* 64bits unsigned */
|
|
#define CPU_UNINT64 unsigned long long
|
|
|
|
/* 32bits */
|
|
#define CPU_UNINT unsigned int
|
|
#define CPU_INT int
|
|
|
|
/* 16 bits signed */
|
|
#define CPU_SHORT short
|
|
|
|
/* 8bits unsigned */
|
|
#define CPU_BYTE unsigned char
|
|
|
|
/* Prototypes for misc stuff */
|
|
CPU_INT LoadPFileImage(char *infileName, char *outputfileName, CPU_UNINT BaseAddress, char *cpuid, CPU_UNINT type, CPU_INT mode);
|
|
CPU_INT PEFileStart( CPU_BYTE *memory, CPU_UNINT pos, CPU_UNINT base, CPU_UNINT size, FILE *outfp, CPU_INT mode);
|
|
|
|
CPU_UNINT ConvertBitToByte(CPU_BYTE *bit);
|
|
CPU_UNINT GetMaskByte(CPU_BYTE *bit);
|
|
|
|
CPU_UNINT ConvertBitToByte32(CPU_BYTE *bit);
|
|
CPU_UNINT GetMaskByte32(CPU_BYTE *bit);
|
|
|
|
CPU_UNINT GetData32Le(CPU_BYTE *cpu_buffer);
|
|
CPU_UNINT GetData32Be(CPU_BYTE *cpu_buffer);
|
|
|
|
CPU_INT AllocAny();
|
|
CPU_INT FreeAny();
|
|
CPU_INT AnyalsingProcess();
|
|
|
|
CPU_INT ConvertProcess(FILE *outfp, CPU_INT FromCpuid, CPU_INT ToCpuid);
|
|
|
|
|