8 LONG CallWindowProc (WNDPROC func, HWND hwnd, WORD message,
9 WORD wParam, LONG lParam)
11 return (*func)(hwnd, message, wParam, lParam);
15 * Header loading routines for WineLib.
18 /* LOADSHORT Calls LOAD and swaps the high and the low bytes */
20 #define LOAD(x) read (fd, &TAB->x, sizeof (TAB->x))
21 #define LOADSHORT(x) LOAD(x); TAB->x = CONV_SHORT (TAB->x);
22 #define LOADLONG(x) LOAD(x); TAB->x = CONV_LONG (TAB->x);
24 void load_mz_header (int fd, struct mz_header_s *mz_header)
29 LOADSHORT (ne_offset);
32 void load_ne_header (int fd, struct ne_header_s *ne_header)
37 LOADSHORT (linker_version);
38 LOADSHORT (linker_revision);
39 LOADSHORT (entry_tab_offset);
40 LOADSHORT (entry_tab_length);
42 LOADSHORT (format_flags);
43 LOADSHORT (auto_data_seg);
44 LOADSHORT (local_heap_length);
45 LOADSHORT (stack_length);
50 LOADSHORT (n_segment_tab);
51 LOADSHORT (n_mod_ref_tab);
52 LOADSHORT (nrname_tab_length);
53 LOADSHORT (segment_tab_offset);
54 LOADSHORT (resource_tab_offset);
55 LOADSHORT (rname_tab_offset);
56 LOADSHORT (moduleref_tab_offset);
57 LOADSHORT (iname_tab_offset);
58 LOADLONG (nrname_tab_offset);
59 LOADSHORT (n_mov_entry_points);
60 LOADSHORT (align_shift_count);
61 LOADSHORT (n_resource_seg);
62 LOAD (operating_system);
63 LOAD (additional_flags);
64 LOADSHORT (fastload_offset);
65 LOADSHORT (fastload_length);
66 LOADSHORT (reserved2);
67 LOADSHORT (expect_version);
71 * Typeinfo loading routines for non PC-architectures.
74 int load_typeinfo (int fd, struct resource_typeinfo_s *typeinfo)
84 int load_nameinfo (int fd, struct resource_nameinfo_s *nameinfo)