1 /* $Id: dlls.h,v 1.2 1993/07/04 04:04:21 root Exp root $
4 * Copyright Robert J. Amstadt, 1993
10 typedef struct dll_arg_relocation_s
12 unsigned short dst_arg
; /* Offset to argument on stack */
13 unsigned char src_type
; /* Argument type */
16 #define DLL_ARGTYPE_SIGNEDWORD 0
17 #define DLL_ARGTYPE_WORD 1
18 #define DLL_ARGTYPE_LONG 2
19 #define DLL_ARGTYPE_FARPTR 3
20 #define DLL_MAX_ARGS 16
22 #define DLL_HANDLERTYPE_PASCAL 16
23 #define DLL_HANDLERTYPE_C 17
25 struct dll_table_entry_s
30 unsigned int selector
; /* Selector to access this entry point */
31 void *address
; /* Offset in segment of entry point */
34 * 16->32 bit interface data
37 void *handler
; /* Address of function to process request */
38 int handler_type
; /* C or PASCAL calling convention */
39 int n_args
; /* Number of arguments passed to function */
40 DLL_ARG args
[DLL_MAX_ARGS
]; /* Argument conversion data */
43 struct dll_name_table_entry_s
46 struct dll_table_entry_s
*dll_table
;
51 extern struct dll_table_entry_s KERNEL_table
[];
52 extern struct dll_table_entry_s USER_table
[];
53 extern struct dll_table_entry_s GDI_table
[];
54 extern struct dll_table_entry_s UNIXLIB_table
[];
55 extern struct dll_table_entry_s WIN87EM_table
[];
56 extern struct dll_table_entry_s SHELL_table
[];