Release 940405
[wine.git] / include / wine.h
blob28cda57fefe74c1295073447f5991a0793e6d051
1 #ifndef WINE_H
2 #define WINE_H
4 #include "dlls.h"
6 #define MAX_NAME_LENGTH 64
8 typedef struct resource_name_table
10 struct resource_name_table *next;
11 unsigned short type_ord;
12 unsigned short id_ord;
13 char id[MAX_NAME_LENGTH];
14 } RESNAMTAB;
16 struct w_files
18 struct w_files * next;
19 char * name; /* Name, as it appears in the windows binaries */
20 char * filename; /* Actual name of the unix file that satisfies this */
21 int fd;
22 struct mz_header_s *mz_header;
23 struct ne_header_s *ne_header;
24 struct ne_segment_table_entry_s *seg_table;
25 struct segment_descriptor_s *selector_table;
26 char * lookup_table;
27 char * nrname_table;
28 char * rname_table;
29 unsigned short hinstance;
30 RESNAMTAB *resnamtab;
33 extern struct w_files * wine_files;
35 #define MAX_DOS_DRIVES 26
37 #define WINE_INI WineIniFileName()
38 #define WIN_INI WinIniFileName()
40 #ifdef linux
41 struct sigcontext_struct {
42 unsigned short sc_gs, __gsh;
43 unsigned short sc_fs, __fsh;
44 unsigned short sc_es, __esh;
45 unsigned short sc_ds, __dsh;
46 unsigned long sc_edi;
47 unsigned long sc_esi;
48 unsigned long sc_ebp;
49 unsigned long sc_esp;
50 unsigned long sc_ebx;
51 unsigned long sc_edx;
52 unsigned long sc_ecx;
53 unsigned long sc_eax;
54 unsigned long sc_trapno;
55 unsigned long sc_err;
56 unsigned long sc_eip;
57 unsigned short sc_cs, __csh;
58 unsigned long sc_efl;
59 unsigned long esp_at_signal;
60 unsigned short sc_ss, __ssh;
61 unsigned long i387;
62 unsigned long oldmask;
63 unsigned long cr2;
65 #endif
67 #if defined(__NetBSD__) || defined(__FreeBSD__)
68 #include <signal.h>
69 #define sigcontext_struct sigcontext
70 #define HZ 100
71 #endif
73 #endif /* WINE_H */