1999-07-11 13:58:31 +00:00
|
|
|
/*
|
|
|
|
* Win16 built-in DLLs definitions
|
|
|
|
*
|
|
|
|
* Copyright 1999 Ulrich Weigand
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_BUILTIN16_H
|
|
|
|
#define __WINE_BUILTIN16_H
|
|
|
|
|
|
|
|
#include "windef.h"
|
2000-09-26 22:20:14 +00:00
|
|
|
#include "wine/windef16.h"
|
1999-08-15 12:43:17 +00:00
|
|
|
#include "ldt.h"
|
|
|
|
|
|
|
|
struct _CONTEXT86;
|
|
|
|
struct _STACK16FRAME;
|
|
|
|
|
|
|
|
extern WORD CallFrom16Word();
|
|
|
|
extern LONG CallFrom16Long();
|
|
|
|
extern void CallFrom16Register();
|
|
|
|
extern void CallFrom16Thunk();
|
|
|
|
|
|
|
|
extern WORD CALLBACK CallTo16Word( FARPROC16 target, INT nArgs );
|
|
|
|
extern LONG CALLBACK CallTo16Long( FARPROC16 target, INT nArgs );
|
2000-09-13 20:29:44 +00:00
|
|
|
extern void CALLBACK CallTo16RegisterShort( struct _CONTEXT86 *context, INT nArgs );
|
|
|
|
extern void CALLBACK CallTo16RegisterLong ( struct _CONTEXT86 *context, INT nArgs );
|
1999-07-11 13:58:31 +00:00
|
|
|
|
|
|
|
#include "pshpack1.h"
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
WORD pushw_bp; /* pushw %bp */
|
1999-08-15 12:43:17 +00:00
|
|
|
BYTE pushl; /* pushl $target */
|
1999-07-11 17:20:01 +00:00
|
|
|
void (*target)();
|
1999-08-15 12:43:17 +00:00
|
|
|
WORD call; /* call CALLFROM16 */
|
2000-08-14 14:29:22 +00:00
|
|
|
short callfrom16;
|
1999-07-11 13:58:31 +00:00
|
|
|
} ENTRYPOINT16;
|
|
|
|
|
1999-08-15 12:43:17 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
BYTE pushl; /* pushl $relay */
|
2000-08-14 14:29:22 +00:00
|
|
|
void *relay;
|
1999-08-15 12:43:17 +00:00
|
|
|
BYTE lcall; /* lcall __FLATCS__:glue */
|
2000-08-14 14:29:22 +00:00
|
|
|
void *glue;
|
1999-08-15 12:43:17 +00:00
|
|
|
WORD flatcs;
|
|
|
|
BYTE prefix; /* lret $nArgs */
|
|
|
|
BYTE lret;
|
|
|
|
WORD nArgs;
|
|
|
|
LPCSTR profile; /* profile string */
|
|
|
|
} CALLFROM16;
|
|
|
|
|
1999-07-11 13:58:31 +00:00
|
|
|
#include "poppack.h"
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
const char *name; /* DLL name */
|
|
|
|
void *module_start; /* 32-bit address of the module data */
|
|
|
|
int module_size; /* Size of the module data */
|
2000-10-29 01:28:30 +00:00
|
|
|
void *code_start; /* 32-bit address of DLL code */
|
|
|
|
void *data_start; /* 32-bit address of DLL data */
|
2000-07-28 00:07:18 +00:00
|
|
|
const char *owner; /* 32-bit dll that contains this dll */
|
2000-01-09 04:20:31 +00:00
|
|
|
const void *rsrc; /* resources data */
|
2000-01-16 03:37:05 +00:00
|
|
|
} BUILTIN16_DESCRIPTOR;
|
1999-07-11 13:58:31 +00:00
|
|
|
|
2000-01-16 03:37:05 +00:00
|
|
|
extern HMODULE16 BUILTIN_LoadModule( LPCSTR name );
|
|
|
|
extern LPCSTR BUILTIN_GetEntryPoint16( struct _STACK16FRAME *frame, LPSTR name, WORD *pOrd );
|
|
|
|
extern void BUILTIN_RegisterDLL( const BUILTIN16_DESCRIPTOR *descr );
|
1999-07-11 13:58:31 +00:00
|
|
|
|
|
|
|
#endif /* __WINE_BUILTIN16_H */
|