Release 0.3.0
[wine/multimedia.git] / include / dlls.h
bloba4c44839739e43ac6714585ff79b5ec9bfcfd659
1 /* $Id: dlls.h,v 1.2 1993/07/04 04:04:21 root Exp root $
2 */
3 /*
4 * Copyright Robert J. Amstadt, 1993
5 */
7 #ifndef DLLS_H
8 #define DLLS_H
10 typedef struct dll_arg_relocation_s
12 unsigned short dst_arg; /* Offset to argument on stack */
13 unsigned char src_type; /* Argument type */
14 } DLL_ARG;
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
28 * Relocation data
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
36 char *export_name;
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
45 char *dll_name;
46 struct dll_table_entry_s *dll_table;
47 int dll_table_length;
48 int dll_number;
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[];
58 #endif /* DLLS_H */