Release 940301
[wine/dcerpc.git] / include / wine.h
blob13eee6158b2c486ab295231a201371f3b3def403
1 #ifndef WINE_H
2 #define WINE_H
4 #include "dlls.h"
6 struct w_files{
7 struct w_files * next;
8 char * name; /* Name, as it appears in the windows binaries */
9 char * filename; /* Actual name of the unix file that satisfies this */
10 int fd;
11 struct mz_header_s *mz_header;
12 struct ne_header_s *ne_header;
13 struct ne_segment_table_entry_s *seg_table;
14 struct segment_descriptor_s *selector_table;
15 char * lookup_table;
16 char * nrname_table;
17 char * rname_table;
18 unsigned short hinstance;
21 extern struct w_files * wine_files;
23 extern char *GetFilenameFromInstance(unsigned short instance);
24 extern struct w_files *GetFileInfo(unsigned short instance);
25 extern char *WineIniFileName(void);
26 extern char *WinIniFileName(void);
28 #define MAX_DOS_DRIVES 26
30 #define WINE_INI WineIniFileName()
31 #define WIN_INI WinIniFileName()
33 #ifdef linux
34 struct sigcontext_struct {
35 unsigned short sc_gs, __gsh;
36 unsigned short sc_fs, __fsh;
37 unsigned short sc_es, __esh;
38 unsigned short sc_ds, __dsh;
39 unsigned long sc_edi;
40 unsigned long sc_esi;
41 unsigned long sc_ebp;
42 unsigned long sc_esp;
43 unsigned long sc_ebx;
44 unsigned long sc_edx;
45 unsigned long sc_ecx;
46 unsigned long sc_eax;
47 unsigned long sc_trapno;
48 unsigned long sc_err;
49 unsigned long sc_eip;
50 unsigned short sc_cs, __csh;
51 unsigned long sc_efl;
52 unsigned long esp_at_signal;
53 unsigned short sc_ss, __ssh;
54 unsigned long i387;
55 unsigned long oldmask;
56 unsigned long cr2;
58 #endif
60 #if defined(__NetBSD__) || defined(__FreeBSD__)
61 #include <signal.h>
62 #define sigcontext_struct sigcontext
63 #define HZ 100
64 #endif
66 void load_mz_header (int, struct mz_header_s *);
67 void load_ne_header (int, struct ne_header_s *);
68 int load_typeinfo (int, struct resource_typeinfo_s *);
69 int load_nameinfo (int, struct resource_nameinfo_s *);
71 #endif /* WINE_H */