1999-07-11 15:58:31 +02:00
|
|
|
/*
|
|
|
|
* Win16 built-in DLLs definitions
|
|
|
|
*
|
|
|
|
* Copyright 1999 Ulrich Weigand
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_BUILTIN16_H
|
|
|
|
#define __WINE_BUILTIN16_H
|
|
|
|
|
|
|
|
#include "windef.h"
|
2000-09-27 00:20:14 +02:00
|
|
|
#include "wine/windef16.h"
|
1999-08-15 14:43:17 +02: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 22:29:44 +02:00
|
|
|
extern void CALLBACK CallTo16RegisterShort( struct _CONTEXT86 *context, INT nArgs );
|
|
|
|
extern void CALLBACK CallTo16RegisterLong ( struct _CONTEXT86 *context, INT nArgs );
|
1999-07-11 15:58:31 +02:00
|
|
|
|
|
|
|
#include "pshpack1.h"
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
WORD pushw_bp; /* pushw %bp */
|
1999-08-15 14:43:17 +02:00
|
|
|
BYTE pushl; /* pushl $target */
|
1999-07-11 19:20:01 +02:00
|
|
|
void (*target)();
|
1999-08-15 14:43:17 +02:00
|
|
|
WORD call; /* call CALLFROM16 */
|
2000-08-14 16:29:22 +02:00
|
|
|
short callfrom16;
|
1999-07-11 15:58:31 +02:00
|
|
|
} ENTRYPOINT16;
|
|
|
|
|
1999-08-15 14:43:17 +02:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
BYTE pushl; /* pushl $relay */
|
2000-08-14 16:29:22 +02:00
|
|
|
void *relay;
|
1999-08-15 14:43:17 +02:00
|
|
|
BYTE lcall; /* lcall __FLATCS__:glue */
|
2000-08-14 16:29:22 +02:00
|
|
|
void *glue;
|
1999-08-15 14:43:17 +02:00
|
|
|
WORD flatcs;
|
|
|
|
BYTE prefix; /* lret $nArgs */
|
|
|
|
BYTE lret;
|
|
|
|
WORD nArgs;
|
|
|
|
LPCSTR profile; /* profile string */
|
|
|
|
} CALLFROM16;
|
|
|
|
|
1999-07-11 15:58:31 +02: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 02:28:30 +01:00
|
|
|
void *code_start; /* 32-bit address of DLL code */
|
|
|
|
void *data_start; /* 32-bit address of DLL data */
|
2000-07-28 02:07:18 +02:00
|
|
|
const char *owner; /* 32-bit dll that contains this dll */
|
2000-01-09 05:20:31 +01:00
|
|
|
const void *rsrc; /* resources data */
|
2000-01-16 04:37:05 +01:00
|
|
|
} BUILTIN16_DESCRIPTOR;
|
1999-07-11 15:58:31 +02:00
|
|
|
|
2000-01-16 04:37:05 +01: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 15:58:31 +02:00
|
|
|
|
|
|
|
#endif /* __WINE_BUILTIN16_H */
|