1 /* $Id: prototypes.h,v 1.3 1993/07/04 04:04:21 root Exp root $
4 * Copyright Robert J. Amstadt, 1993
6 #ifndef _WINE_PROTOTYPES_H
7 #define _WINE_PROTOTYPES_H
22 extern void PrintFileHeader(struct ne_header_s
*ne_header
);
23 extern void PrintSegmentTable(struct ne_segment_table_entry_s
*seg_table
,
25 extern void PrintRelocationTable(char *exe_ptr
,
26 struct ne_segment_table_entry_s
*seg_entry_p
,
31 struct segment_descriptor
*
32 make_sd(unsigned base
, unsigned limit
, int contents
, int read_exec_only
, int seg32
, int inpgs
);
33 int get_ldt(void *buffer
);
34 int set_ldt_entry(int entry
, unsigned long base
, unsigned int limit
,
35 int seg_32bit_flag
, int contents
, int read_only_flag
,
36 int limit_in_pages_flag
);
38 /* loader/resource.c */
40 extern int OpenResourceFile(HANDLE instance
);
41 extern HBITMAP
ConvertCoreBitmap( HDC hdc
, BITMAPCOREHEADER
* image
);
42 extern HBITMAP
ConvertInfoBitmap( HDC hdc
, BITMAPINFO
* image
);
44 /* loader/selector.c */
46 extern int FindUnusedSelectors(int n_selectors
);
47 extern int IPCCopySelector(int i_old
, unsigned long new, int swap_type
);
48 extern WORD
AllocSelector(WORD old_selector
);
49 extern unsigned int PrestoChangoSelector(unsigned src_selector
, unsigned dst_selector
);
50 extern WORD
AllocDStoCSAlias(WORD ds_selector
);
51 extern WORD
FreeSelector(WORD sel
);
52 extern SEGDESC
*CreateNewSegments(int code_flag
, int read_only
, int length
,
54 extern SEGDESC
*GetNextSegment(unsigned int flags
, unsigned int limit
);
55 extern unsigned int GetEntryDLLName(char *dll_name
, char *function
, int *sel
,
57 extern unsigned int GetEntryDLLOrdinal(char *dll_name
, int ordinal
, int *sel
,
62 extern int init_wine_signals(void);
66 extern void myerror(const char *s
);
67 extern void load_mz_header (int, struct mz_header_s
*);
68 extern void load_ne_header (int, struct ne_header_s
*);
70 extern char *GetFilenameFromInstance(unsigned short instance
);
71 extern HINSTANCE
LoadImage(char *modulename
, int filetype
, int change_dir
);
72 extern int _WinMain(int argc
, char **argv
);
73 extern void InitializeLoadedDLLs();
77 extern int CallBack16(void *func
, int n_args
, ...);
78 extern void *CALLBACK_MakeProcInstance(void *func
, int instance
);
79 extern void CallLineDDAProc(FARPROC func
, short xPos
, short yPos
, long lParam
);
80 extern void winestat(void);
82 /* if1632/callback.c */
84 extern int DLLRelay(unsigned int func_num
, unsigned int seg_off
);
85 extern struct dll_table_entry_s
*FindDLLTable(char *dll_name
);
86 extern int FindOrdinalFromName(struct dll_table_entry_s
*dll_table
, char *func_name
);
87 extern int ReturnArg(int arg
);
91 extern do_int1A(struct sigcontext_struct
*context
);
95 extern do_int21(struct sigcontext_struct
*context
);
97 /* miscemu/kernel.c */
99 extern int KERNEL_LockSegment(int segment
);
100 extern int KERNEL_UnlockSegment(int segment
);
101 extern KERNEL_InitTask();
102 extern int KERNEL_WaitEvent(int task
);
106 void Comm_Init(void);
107 void Comm_DeInit(void);
111 extern void DOS_InitFS(void);
112 extern WORD
DOS_GetEquipment(void);
113 extern int DOS_ValidDrive(int drive
);
114 extern int DOS_GetDefaultDrive(void);
115 extern void DOS_SetDefaultDrive(int drive
);
116 extern void ToUnix(char *s
);
117 extern void ToDos(char *s
);
118 extern void ChopOffSlash(char *string
);
119 extern int DOS_DisableDrive(int drive
);
120 extern int DOS_EnableDrive(int drive
);
121 extern char *GetUnixFileName(char *dosfilename
);
122 extern char *DOS_GetCurrentDir(int drive
);
123 extern int DOS_ChangeDir(int drive
, char *dirname
);
124 extern int DOS_MakeDir(int drive
, char *dirname
);
125 extern int DOS_GetSerialNumber(int drive
, unsigned long *serialnumber
);
126 extern int DOS_SetSerialNumber(int drive
, unsigned long serialnumber
);
127 extern char *DOS_GetVolumeLabel(int drive
);
128 extern int DOS_SetVolumeLabel(int drive
, char *label
);
129 extern int DOS_GetFreeSpace(int drive
, long *size
, long *available
);
130 extern char *FindFile(char *buffer
, int buflen
, char *rootname
, char **extensions
, char *path
);
131 extern char *WineIniFileName(void);
132 extern char *WinIniFileName(void);
133 extern struct dosdirent
*DOS_opendir(char *dosdirname
);
134 extern struct dosdirent
*DOS_readdir(struct dosdirent
*de
);
135 extern void DOS_closedir(struct dosdirent
*de
);
139 extern void sync_profiles(void);
143 extern void SpyInit(void);
145 /* controls/button.c */
147 extern LONG
ButtonWndProc(HWND hWnd
, WORD uMsg
, WORD wParam
, LONG lParam
);
149 /* controls/combo.c */
151 extern LONG
ComboBoxWndProc(HWND hwnd
, WORD message
, WORD wParam
, LONG lParam
);
153 /* controls/desktop.c */
155 extern LONG
DesktopWndProc (HWND hwnd
, WORD message
, WORD wParam
, LONG lParam
);
156 extern BOOL
DESKTOP_SetPattern(char *pattern
);
158 /* controls/listbox.c */
160 extern LONG
ListBoxWndProc(HWND hwnd
, WORD message
, WORD wParam
, LONG lParam
);
162 /* controls/menu.c */
164 extern LONG
PopupMenuWndProc(HWND hwnd
, WORD message
, WORD wParam
, LONG lParam
);
166 /* controls/scrollbar.c */
168 extern LONG
ScrollBarWndProc(HWND hWnd
, WORD message
, WORD wParam
, LONG lParam
);
170 /* controls/static.c */
172 extern LONG
StaticWndProc(HWND hwnd
, WORD message
, WORD wParam
, LONG lParam
);
174 /* controls/widget.c */
176 extern BOOL
WIDGETS_Init(void);
180 extern void HEAP_Init(MDESC
**free_list
, void *start
, int length
);
181 extern void *HEAP_Alloc(MDESC
**free_list
, int flags
, int bytes
);
182 extern void *HEAP_ReAlloc(MDESC
**free_list
, void *old_block
, int new_size
, unsigned int flags
);
183 extern int HEAP_Free(MDESC
**free_list
, void *block
);
184 extern LHEAP
*HEAP_LocalFindHeap(unsigned short owner
);
185 extern void HEAP_LocalInit(unsigned short owner
, void *start
, int length
);
186 extern void *WIN16_LocalAlloc(int flags
, int bytes
);
187 extern int WIN16_LocalCompact(int min_free
);
188 extern unsigned int WIN16_LocalFlags(unsigned int handle
);
189 extern unsigned int WIN16_LocalFree(unsigned int handle
);
190 extern unsigned int WIN16_LocalInit(unsigned int segment
, unsigned int start
, unsigned int end
);
191 extern void *WIN16_LocalLock(unsigned int handle
);
192 extern void *WIN16_LocalReAlloc(unsigned int handle
, int flags
, int bytes
);
193 extern unsigned int WIN16_LocalSize(unsigned int handle
);
194 extern unsigned int WIN16_LocalUnlock(unsigned int handle
);
196 /* objects/bitmaps.c */
198 extern BOOL
BITMAP_Init(void);
200 /* objects/color.c */
202 extern BOOL
COLOR_Init(void);
206 extern int DIB_BitmapInfoSize(BITMAPINFO
*info
, WORD coloruse
);
208 /* objects/gdiobj.c */
210 extern BOOL
GDI_Init(void);
212 /* objects/palette.c */
214 extern BOOL
PALETTE_Init(void);
216 /* objects/region.c */
218 extern BOOL
REGION_Init(void);
220 /* windows/graphic.c */
222 extern void DrawReliefRect(HDC hdc
, RECT rect
, int thickness
, BOOL pressed
);
226 extern void DCE_Init(void);
228 /* windows/dialog.c */
230 extern BOOL
DIALOG_Init(void);
232 /* windows/syscolor.c */
234 extern void SYSCOLOR_Init(void);
236 /* windows/sysmetrics.c */
238 extern void SYSMETRICS_Init(void);
241 #endif /* _WINE_PROTOTYPES_H */