home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************************/
- /*
- /* 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
-