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
|
|
|
|
|
|
|
struct _CONTEXT86;
|
|
|
|
struct _STACK16FRAME;
|
|
|
|
|
2000-12-29 06:17:33 +01:00
|
|
|
#ifdef __i386__
|
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"
|
2000-12-29 06:17:33 +01:00
|
|
|
#else
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
void (*target)();
|
|
|
|
int callfrom16;
|
|
|
|
} ENTRYPOINT16;
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
LPCSTR profile;
|
|
|
|
} CALLFROM16;
|
|
|
|
|
|
|
|
#endif
|
1999-07-11 15:58:31 +02:00
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
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 );
|
2000-11-13 05:54:45 +01:00
|
|
|
|
|
|
|
extern void __wine_register_dll_16( const BUILTIN16_DESCRIPTOR *descr );
|
|
|
|
extern WORD __wine_call_from_16_word();
|
|
|
|
extern LONG __wine_call_from_16_long();
|
|
|
|
extern void __wine_call_from_16_regs();
|
|
|
|
extern void __wine_call_from_16_thunk();
|
1999-07-11 15:58:31 +02:00
|
|
|
|
|
|
|
#endif /* __WINE_BUILTIN16_H */
|