home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_02_10
/
2n10010a
< prev
next >
Wrap
Text File
|
1991-07-23
|
966b
|
28 lines
/****************************************************************************/
/*
/* FLATLOAD.H -- Declarations for the FlatLoad linear executable loader
/*
/* Written by Walter Oney
/*
/****************************************************************************/
#ifndef FLATLOAD_H
#define FLATLOAD_H
/* Structure describing initial state of 32-bit program: */
typedef struct
{ /* 32-bit program state */
unsigned long eip; /* 16:32 address of main entry point */
unsigned short cs;
unsigned long esp; /* 16:32 initial stack address */
unsigned short ss;
} STATE32, FAR *LPSTATE32; /* 32-bit program state */
/* Function prototypes: */
extern BOOL FAR PASCAL FlatLoad(LPSTR lpFileName, LPSTATE32 lpState);
extern VOID FAR PASCAL FlatUnload(LPSTATE32 lpState);
extern long far _cdecl FlatCall(LPSTATE32 lpState, int nBytes, ...);
#endif