Removed obsolete code.
[wine] / include / builtin16.h
1 /*
2  * Win16 built-in DLLs definitions
3  *
4  * Copyright 1999 Ulrich Weigand
5  */
6
7 #ifndef __WINE_BUILTIN16_H
8 #define __WINE_BUILTIN16_H
9
10 #include "windef.h"
11 #include "wine/windef16.h"
12
13 struct _CONTEXT86;
14 struct _STACK16FRAME;
15
16 #ifdef __i386__
17 #include "pshpack1.h"
18
19 typedef struct
20 {
21     WORD   pushw_bp;               /* pushw %bp */
22     BYTE   pushl;                  /* pushl $target */
23     void (*target)();
24     WORD   call;                   /* call CALLFROM16 */
25     short  callfrom16;
26 } ENTRYPOINT16;
27
28 typedef struct
29 {
30     BYTE   pushl;                  /* pushl $relay */
31     void  *relay;
32     BYTE   lcall;                  /* lcall __FLATCS__:glue */
33     void  *glue;
34     WORD   flatcs;
35     BYTE   prefix;                 /* lret $nArgs */
36     BYTE   lret;
37     WORD   nArgs;
38     LPCSTR profile;                /* profile string */
39 } CALLFROM16;
40
41 #include "poppack.h"
42 #else
43
44 typedef struct
45 {
46     void (*target)();
47     int    callfrom16;
48 } ENTRYPOINT16;
49
50 typedef struct
51 {
52     LPCSTR profile;
53 } CALLFROM16;
54
55 #endif
56
57 typedef struct
58 {
59     const char *name;              /* DLL name */
60     void       *module_start;      /* 32-bit address of the module data */
61     int         module_size;       /* Size of the module data */
62     void       *code_start;        /* 32-bit address of DLL code */
63     void       *data_start;        /* 32-bit address of DLL data */
64     const char *owner;             /* 32-bit dll that contains this dll */
65     const void *rsrc;              /* resources data */
66 } BUILTIN16_DESCRIPTOR;
67
68 extern HMODULE16 BUILTIN_LoadModule( LPCSTR name );
69 extern LPCSTR BUILTIN_GetEntryPoint16( struct _STACK16FRAME *frame, LPSTR name, WORD *pOrd );
70
71 extern void __wine_register_dll_16( const BUILTIN16_DESCRIPTOR *descr );
72 extern WORD __wine_call_from_16_word();
73 extern LONG __wine_call_from_16_long();
74 extern void __wine_call_from_16_regs();
75 extern void __wine_call_from_16_thunk();
76
77 #endif /* __WINE_BUILTIN16_H */