ReactOS  0.4.14-dev-552-g2fad488
winbase16.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) the Wine project
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
18 
19 #ifndef __WINE_WINE_WINBASE16_H
20 #define __WINE_WINE_WINBASE16_H
21 
22 #include <stdarg.h>
23 #include <windef.h>
24 #include <winbase.h>
25 #include <winnls.h>
26 #include <wine/windef16.h>
27 #include <wine/library.h>
28 
29 #include <pshpack1.h>
30 
31 /* Process database (i.e. a normal DOS PSP) */
32 typedef struct
33 {
34  WORD int20; /* 00 int 20h instruction */
35  WORD nextParagraph; /* 02 Segment of next paragraph */
37  BYTE dispatcher[5]; /* 05 Long call to DOS */
38  FARPROC16 savedint22; /* 0a Saved int 22h handler */
39  FARPROC16 savedint23; /* 0e Saved int 23h handler */
40  FARPROC16 savedint24; /* 12 Saved int 24h handler */
41  WORD parentPSP; /* 16 Selector of parent PSP */
42  BYTE fileHandles[20]; /* 18 Open file handles */
43  HANDLE16 environment; /* 2c Selector of environment */
44  DWORD saveStack; /* 2e SS:SP on last int21 call */
45  WORD nbFiles; /* 32 Number of file handles */
46  SEGPTR fileHandlesPtr; /* 34 Pointer to file handle table */
47  HANDLE16 hFileHandles; /* 38 Handle to fileHandlesPtr */
49  BYTE fcb1[16]; /* 5c First FCB */
50  BYTE fcb2[20]; /* 6c Second FCB */
51  BYTE cmdLine[128]; /* 80 Command-line (first byte is len)*/
52  BYTE padding[16]; /* Some apps access beyond the end of the cmd line */
53 } PDB16;
54 
55 /* Task database. See 'Windows Internals' p. 226.
56  * Note that 16-bit OLE 2 libs like to read it directly
57  * so we have to keep entry offsets as they are.
58  */
59 typedef struct _TDB
60 {
61  HTASK16 hNext; /* 00 Selector of next TDB */
62  DWORD ss_sp; /* 02 Stack pointer of task */
63  WORD nEvents; /* 06 Events for this task */
64  INT16 priority; /* 08 Task priority, -32..15 */
65  WORD unused1; /* 0a */
66  HTASK16 hSelf; /* 0c Selector of this TDB */
67  HANDLE16 hPrevInstance; /* 0e Previous instance of module */
68  DWORD unused2; /* 10 */
69  WORD ctrlword8087; /* 14 80x87 control word */
70  WORD flags; /* 16 Task flags */
71  UINT16 error_mode; /* 18 Error mode (see SetErrorMode)*/
72  WORD version; /* 1a Expected Windows version */
73  HANDLE16 hInstance; /* 1c Instance handle for task */
74  HMODULE16 hModule; /* 1e Module handle */
75  HQUEUE16 hQueue; /* 20 Selector of task queue */
76  HTASK16 hParent; /* 22 Selector of TDB of parent */
77  WORD signal_flags; /* 24 Flags for signal handler */
78  FARPROC16 sighandler; /* 26 Signal handler */
79  FARPROC16 userhandler; /* 2a USER signal handler */
80  FARPROC16 discardhandler; /* 2e Handler for GlobalNotify() */
81  FARPROC16 int0; /* 32 int 0 (divide by 0) handler */
82  FARPROC16 int2; /* 36 int 2 (NMI) handler */
83  FARPROC16 int4; /* 3a int 4 (INTO) handler */
84  FARPROC16 int6; /* 3e int 6 (invalid opc) handler */
85  FARPROC16 int7; /* 42 int 7 (coprocessor) handler */
86  FARPROC16 int3e; /* 46 int 3e (80x87 emu) handler */
87  FARPROC16 int75; /* 4a int 75 (80x87 error) handler */
88  DWORD compat_flags; /* 4e Compatibility flags */
89  BYTE unused4[2]; /* 52 */
90  struct _TEB *teb; /* 54 Pointer to thread database */
91  BYTE unused5[8]; /* 58 */
92  HANDLE16 hPDB; /* 60 Selector of PDB (i.e. PSP) */
93  SEGPTR dta; /* 62 Current DTA */
94  BYTE curdrive; /* 66 Current drive */
95  CHAR curdir[65]; /* 67 Current directory */
96  WORD nCmdShow; /* a8 cmdShow parameter to WinMain */
97  HTASK16 hYieldTo; /* aa Next task to schedule */
98  DWORD dlls_to_init; /* ac Ptr to DLLs to initialize */
99  HANDLE16 hCSAlias; /* b0 Code segment for this TDB */
100  WORD thunks[8*4]; /* b2 Make proc instance thunks */
101  CHAR module_name[8]; /* f2 Module name for task */
102  WORD magic; /* fa TDB signature */
103  HANDLE hEvent; /* fc scheduler event handle */
104  PDB16 pdb; /* 100 PDB for this task */
105 } TDB;
106 
107 /* TDB flags */
108 #define TDBF_WINOLDAP 0x0001
109 #define TDBF_OS2APP 0x0008
110 #define TDBF_WIN32 0x0010
111 
112 /* Windows 3.1 USER signals */
113 #define USIG16_TERMINATION 0x0020
114 #define USIG16_DLL_LOAD 0x0040
115 #define USIG16_DLL_UNLOAD 0x0080
116 #define USIG16_GPF 0x0666
117 
118 typedef struct _SEGINFO {
126 } SEGINFO;
127 
128 /* GetWinFlags */
129 
130 #define WF_PMODE 0x0001
131 #define WF_CPU286 0x0002
132 #define WF_CPU386 0x0004
133 #define WF_CPU486 0x0008
134 #define WF_STANDARD 0x0010
135 #define WF_WIN286 0x0010
136 #define WF_ENHANCED 0x0020
137 #define WF_WIN386 0x0020
138 #define WF_CPU086 0x0040
139 #define WF_CPU186 0x0080
140 #define WF_LARGEFRAME 0x0100
141 #define WF_SMALLFRAME 0x0200
142 #define WF_80x87 0x0400
143 #define WF_PAGING 0x0800
144 #define WF_HASCPUID 0x2000
145 #define WF_WIN32WOW 0x4000 /* undoc */
146 #define WF_WLO 0x8000
147 
148 /* Parameters for LoadModule() */
149 typedef struct
150 {
151  HGLOBAL16 hEnvironment; /* Environment segment */
152  SEGPTR cmdLine; /* Command-line */
153  SEGPTR showCmd; /* Code for ShowWindow() */
155 } LOADPARAMS16;
156 
157 /* Debugging support (DEBUG SYSTEM ONLY) */
158 typedef struct
159 {
163  CHAR achAllocModule[8];
167 
168 /* definitions specific to Wine 16-bit relaying support */
169 
170 /* 32-bit stack layout after __wine_call_to_16() */
171 typedef struct _STACK32FRAME
172 {
173  DWORD restore_addr; /* 00 return address for restoring code selector */
174  DWORD codeselector; /* 04 code selector to restore */
175  EXCEPTION_REGISTRATION_RECORD frame; /* 08 Exception frame */
176  SEGPTR frame16; /* 10 16-bit frame from last CallFrom16() */
177  DWORD edi; /* 14 saved registers */
178  DWORD esi; /* 18 */
179  DWORD ebx; /* 1c */
180  DWORD ebp; /* 20 saved 32-bit frame pointer */
181  DWORD retaddr; /* 24 return address */
182  DWORD target; /* 28 target address / CONTEXT86 pointer */
183  DWORD nb_args; /* 2c number of 16-bit argument bytes */
184 } STACK32FRAME;
185 
186 /* 16-bit stack layout after __wine_call_from_16() */
187 typedef struct _STACK16FRAME
188 {
189  STACK32FRAME *frame32; /* 00 32-bit frame from last CallTo16() */
190  DWORD edx; /* 04 saved registers */
191  DWORD ecx; /* 08 */
192  DWORD ebp; /* 0c */
193  WORD ds; /* 10 */
194  WORD es; /* 12 */
195  WORD fs; /* 14 */
196  WORD gs; /* 16 */
197  DWORD callfrom_ip; /* 18 callfrom tail IP */
198  DWORD module_cs; /* 1c module code segment */
199  DWORD relay; /* 20 relay function address */
200  WORD entry_ip; /* 22 entry point IP */
201  DWORD entry_point; /* 26 API entry point to call, reused as mutex count */
202  WORD bp; /* 2a 16-bit stack frame chain */
203  WORD ip; /* 2c return address */
204  WORD cs; /* 2e */
205 } STACK16FRAME;
206 
207 /* argument type flags for relay debugging */
209 {
210  ARG_NONE = 0, /* indicates end of arg list */
211  ARG_WORD, /* unsigned word */
212  ARG_SWORD, /* signed word */
213  ARG_LONG, /* long or segmented pointer */
214  ARG_PTR, /* linear pointer */
215  ARG_STR, /* linear pointer to null-terminated string */
216  ARG_SEGSTR, /* segmented pointer to null-terminated string */
217  ARG_VARARG /* start of varargs */
218 };
219 
220 #include <poppack.h>
221 
222 #define INVALID_HANDLE_VALUE16 ((HANDLE16) -1)
223 #define INFINITE16 0xFFFF
224 
225 typedef struct {
231  CHAR szCSDVersion[128];
233 
234 
235 /*
236  * NE Header FORMAT FLAGS
237  */
238 #define NE_FFLAGS_SINGLEDATA 0x0001
239 #define NE_FFLAGS_MULTIPLEDATA 0x0002
240 #define NE_FFLAGS_WIN32 0x0010
241 #define NE_FFLAGS_BUILTIN 0x0020 /* Wine built-in module */
242 #define NE_FFLAGS_FRAMEBUF 0x0100 /* OS/2 fullscreen app */
243 #define NE_FFLAGS_CONSOLE 0x0200 /* OS/2 console app */
244 #define NE_FFLAGS_GUI 0x0300 /* right, (NE_FFLAGS_FRAMEBUF | NE_FFLAGS_CONSOLE) */
245 #define NE_FFLAGS_SELFLOAD 0x0800
246 #define NE_FFLAGS_LINKERROR 0x2000
247 #define NE_FFLAGS_CALLWEP 0x4000
248 #define NE_FFLAGS_LIBMODULE 0x8000
249 
250 /*
251  * NE Header OPERATING SYSTEM
252  */
253 #define NE_OSFLAGS_UNKNOWN 0x01
254 #define NE_OSFLAGS_WINDOWS 0x04
255 
256 /*
257  * NE Header ADDITIONAL FLAGS
258  */
259 #define NE_AFLAGS_WIN2_PROTMODE 0x02
260 #define NE_AFLAGS_WIN2_PROFONTS 0x04
261 #define NE_AFLAGS_FASTLOAD 0x08
262 
263 /*
264  * Segment Flags
265  */
266 #define NE_SEGFLAGS_DATA 0x0001
267 #define NE_SEGFLAGS_ALLOCATED 0x0002
268 #define NE_SEGFLAGS_LOADED 0x0004
269 #define NE_SEGFLAGS_ITERATED 0x0008
270 #define NE_SEGFLAGS_MOVEABLE 0x0010
271 #define NE_SEGFLAGS_SHAREABLE 0x0020
272 #define NE_SEGFLAGS_PRELOAD 0x0040
273 #define NE_SEGFLAGS_EXECUTEONLY 0x0080
274 #define NE_SEGFLAGS_READONLY 0x0080
275 #define NE_SEGFLAGS_RELOC_DATA 0x0100
276 #define NE_SEGFLAGS_SELFLOAD 0x0800
277 #define NE_SEGFLAGS_DISCARDABLE 0x1000
278 #define NE_SEGFLAGS_32BIT 0x2000
279 
280 /*
281  * Resource table structures.
282  */
283 typedef struct
284 {
285  WORD offset;
286  WORD length;
287  WORD flags;
288  WORD id;
290  WORD usage;
291 } NE_NAMEINFO;
292 
293 typedef struct
294 {
295  WORD type_id; /* Type identifier */
296  WORD count; /* Number of resources of this type */
297  FARPROC16 resloader; /* SetResourceHandler() */
298  /*
299  * Name info array.
300  */
301 } NE_TYPEINFO;
302 
303 #define NE_RSCTYPE_CURSOR 0x8001
304 #define NE_RSCTYPE_BITMAP 0x8002
305 #define NE_RSCTYPE_ICON 0x8003
306 #define NE_RSCTYPE_MENU 0x8004
307 #define NE_RSCTYPE_DIALOG 0x8005
308 #define NE_RSCTYPE_STRING 0x8006
309 #define NE_RSCTYPE_FONTDIR 0x8007
310 #define NE_RSCTYPE_FONT 0x8008
311 #define NE_RSCTYPE_ACCELERATOR 0x8009
312 #define NE_RSCTYPE_RCDATA 0x800a
313 #define NE_RSCTYPE_GROUP_CURSOR 0x800c
314 #define NE_RSCTYPE_GROUP_ICON 0x800e
315 
316 
317 #define __AHSHIFT 3 /* don't change! */
318 #define __AHINCR (1 << __AHSHIFT)
319 
320 
321 typedef struct tagSYSLEVEL
322 {
325 } SYSLEVEL;
326 
327 /* undocumented functions */
330 HGLOBAL16 WINAPI AllocResource16(HINSTANCE16,HRSRC16,DWORD);
333 VOID WINAPI DirectedYield16(HTASK16);
343 HTASK16 WINAPI GetCurrentTask(void);
348 HQUEUE16 WINAPI GetFastQueue16(void);
352 INT16 WINAPI GetModuleUsage16(HINSTANCE16);
357 HINSTANCE16 WINAPI GetTaskDS16(void);
358 HQUEUE16 WINAPI GetTaskQueue16(HTASK16);
359 HQUEUE16 WINAPI GetThreadQueue16(DWORD);
373 BOOL16 WINAPI IsTask16(HTASK16);
374 HTASK16 WINAPI IsTaskLocked16(void);
383 VOID WINAPI OldYield16(void);
385 VOID WINAPI PostEvent16(HTASK16);
388 void WINAPI SetFastQueue16(DWORD,HQUEUE16);
389 VOID WINAPI SetPriority16(HTASK16,INT16);
392 HQUEUE16 WINAPI SetTaskQueue16(HTASK16,HQUEUE16);
393 HQUEUE16 WINAPI SetThreadQueue16(DWORD,HQUEUE16);
395 BOOL16 WINAPI WaitEvent16(HTASK16);
401 
402 
403 INT16 WINAPI AccessResource16(HINSTANCE16,HRSRC16);
410 void WINAPI ExitKernel16(void);
414 VOID WINAPI FreeLibrary16(HINSTANCE16);
417 HRSRC16 WINAPI FindResource16(HINSTANCE16,LPCSTR,LPCSTR);
424 UINT16 WINAPI GetDriveType16(UINT16); /* yes, the arguments differ */
469 HINSTANCE16 WINAPI LoadLibrary16(LPCSTR);
470 HINSTANCE16 WINAPI LoadModule16(LPCSTR,LPVOID);
471 HGLOBAL16 WINAPI LoadResource16(HINSTANCE16,HRSRC16);
509 /* Yield16 will only be available from kernel module, use WOWYield instead */
510 VOID WINAPI Yield16(void);
516 HINSTANCE16 WINAPI WinExec16(LPCSTR,UINT16);
517 LONG WINAPI _hread16(HFILE16,LPVOID,LONG);
518 LONG WINAPI _hwrite16(HFILE16,LPCSTR,LONG);
519 HFILE16 WINAPI _lcreat16(LPCSTR,INT16);
520 HFILE16 WINAPI _lclose16(HFILE16);
521 LONG WINAPI _llseek16(HFILE16,LONG,INT16);
522 HFILE16 WINAPI _lopen16(LPCSTR,INT16);
528 
529 /* Some optimizations */
530 static inline LPVOID WINAPI MapSL( SEGPTR segptr )
531 {
532  return (char *)wine_ldt_copy.base[SELECTOROF(segptr) >> __AHSHIFT] + OFFSETOF(segptr);
533 }
534 
535 #endif /* __WINE_WINE_WINBASE16_H */
FARPROC16 sighandler
Definition: winbase16.h:78
INT16 WINAPI GetProfileString16(LPCSTR, LPCSTR, LPCSTR, LPSTR, UINT16)
LPVOID WINAPI LockResource16(HGLOBAL16)
DWORD WINAPI RegDeleteValue16(HKEY, LPSTR)
DWORD WINAPI GetSelectorLimit16(WORD)
HGLOBAL16 WINAPI GlobalLRUOldest16(HGLOBAL16)
DWORD WINAPI RegSetValue16(HKEY, LPCSTR, DWORD, LPCSTR, DWORD)
HGLOBAL16 hEnvironment
Definition: winbase16.h:151
VOID WINAPI LogError16(UINT16, LPVOID)
DWORD WINAPI RegEnumValue16(HKEY, DWORD, LPSTR, LPDWORD, LPDWORD, LPDWORD, LPBYTE, LPDWORD)
BOOL16 WINAPI WritePrivateProfileStruct16(LPCSTR, LPCSTR, LPVOID, UINT16, LPCSTR)
HANDLE16 hPrevInstance
Definition: winbase16.h:67
BOOL16 WINAPI FreeResource16(HGLOBAL16)
DWORD saveStack
Definition: winbase16.h:44
HTASK16 WINAPI GetCurrentTask(void)
DWORD WINAPI GlobalCompact16(DWORD)
WORD WINAPI LocalCountFree16(void)
WORD WINAPI GlobalPageLock16(HGLOBAL16)
#define OFFSETOF(ptr)
Definition: windef16.h:51
VOID WINAPI FreeLibrary16(HINSTANCE16)
DWORD WINAPI GetWinFlags16(void)
DWORD dwPlatformId
Definition: winbase16.h:230
BOOL16 WINAPI RemoveDirectory16(LPCSTR)
UINT16 WINAPI GetPrivateProfileInt16(LPCSTR, LPCSTR, INT16, LPCSTR)
struct _SEGINFO SEGINFO
SEGPTR cmdLine
Definition: winbase16.h:152
BOOL16 WINAPI CreateDirectory16(LPCSTR, LPVOID)
INT16 WINAPI GetInstanceData16(HINSTANCE16, WORD, INT16)
VOID WINAPI FarSetOwner16(HGLOBAL16, HANDLE16)
VOID WINAPI WIN32_OldYield16(void)
WORD nextParagraph
Definition: winbase16.h:35
UINT16 WINAPI _lread16(HFILE16, LPVOID, UINT16)
DWORD dwOptions
Definition: winbase16.h:161
DWORD WINAPI RegCreateKey16(HKEY, LPCSTR, PHKEY)
SEGPTR WINAPI GlobalWire16(HGLOBAL16)
WORD WINAPI GetPrivateProfileSectionNames16(LPSTR, UINT16, LPCSTR)
WORD WINAPI GlobalFix16(HGLOBAL16)
arg_types
Definition: winbase16.h:208
WORD WINAPI LocalHandleDelta16(WORD)
DWORD dwAllocBreak
Definition: winbase16.h:164
HGLOBAL16 WINAPI GlobalFree16(HGLOBAL16)
WORD ATOM
Definition: dimm.idl:113
BOOL16 WINAPI FreeModule16(HMODULE16)
DWORD ss_sp
Definition: winbase16.h:62
BOOL16 WINAPI GetCodeInfo16(FARPROC16, SEGINFO *)
DWORD dwMajorVersion
Definition: winbase16.h:227
BOOL16 WINAPI IsBadReadPtr16(SEGPTR, UINT16)
VOID WINAPI GlobalNotify16(FARPROC16)
UINT16 WINAPI GetNumTasks16(void)
DWORD WINAPI GetFileAttributes16(LPCSTR)
UINT16 error_mode
Definition: winbase16.h:71
UINT16 WINAPI LocalCompact16(UINT16)
GLuint GLuint GLsizei count
Definition: gl.h:1545
SEGPTR WINAPI lstrcpyn16(SEGPTR, LPCSTR, INT16)
DWORD WINAPI RegCloseKey16(HKEY)
STACK32FRAME * frame32
Definition: compat.h:2114
HANDLE16 environment
Definition: winbase16.h:43
char CHAR
Definition: xmlstorage.h:175
struct _STACK16FRAME STACK16FRAME
HINSTANCE16 WINAPI GetTaskDS16(void)
VOID WINAPI DirectedYield16(HTASK16)
HGLOBAL16 WINAPI DirectResAlloc16(HINSTANCE16, WORD, UINT16)
INT16 priority
Definition: winbase16.h:64
FARPROC16 int4
Definition: winbase16.h:83
GLintptr offset
Definition: glext.h:5920
HLOCAL16 WINAPI LocalFree16(HLOCAL16)
BOOL16 WINAPI DeleteFile16(LPCSTR)
DWORD WINAPI RegDeleteKey16(HKEY, LPCSTR)
UINT16 WINAPI GetAtomName16(ATOM, LPSTR, INT16)
VOID WINAPI GlobalUnfix16(HGLOBAL16)
FARPROC16 WINAPI FileCDR16(FARPROC16)
HANDLE16 hPDB
Definition: winbase16.h:92
HINSTANCE16 WINAPI LoadModule16(LPCSTR, LPVOID)
DWORD compat_flags
Definition: winbase16.h:88
HMODULE16 WINAPI GetExePtr(HANDLE16)
DWORD ebx
Definition: compat.h:2104
DWORD WINAPI GetHeapSpaces16(HMODULE16)
SEGPTR WINAPI lstrcpy16(SEGPTR, LPCSTR)
HANDLE hEvent
Definition: winbase16.h:103
BOOL16 WINAPI IsDBCSLeadByte16(BYTE)
WORD parentPSP
Definition: winbase16.h:41
BOOL16 WINAPI LocalUnlock16(HLOCAL16)
WORD WINAPI GlobalDOSFree16(WORD)
WORD WINAPI GetProfileSectionNames16(LPSTR, WORD)
DWORD WINAPI RegSetValueEx16(HKEY, LPCSTR, DWORD, DWORD, CONST BYTE *, DWORD)
WORD signal_flags
Definition: winbase16.h:77
DWORD LCID
Definition: nls.h:13
BOOL16 WINAPI WritePrivateProfileSection16(LPCSTR, LPCSTR, LPCSTR)
BOOL16 WINAPI SetFileAttributes16(LPCSTR, DWORD)
UINT16 WINAPI GetCurrentDirectory16(UINT16, LPSTR)
UINT16 HANDLE16
Definition: netiodef.h:47
INT16 WINAPI GetLocaleInfo16(LCID, LCTYPE, LPSTR, INT16)
SEGPTR showCmd
Definition: winbase16.h:153
BOOL16 WINAPI SetWinDebugInfo16(LPWINDEBUGINFO16)
char * LPSTR
Definition: xmlstorage.h:182
FARPROC16 discardhandler
Definition: winbase16.h:80
DWORD dwAllocCount
Definition: winbase16.h:165
HANDLE16 WINAPI FarGetOwner16(HGLOBAL16)
VOID WINAPI SetPriority16(HTASK16, INT16)
int32_t INT
Definition: typedefs.h:56
WORD WINAPI GlobalHandleToSel16(HGLOBAL16)
WORD magic
Definition: winbase16.h:102
Definition: winbase16.h:59
uint8_t reserved3
Definition: fsck.fat.h:61
LONG WINAPI _hread16(HFILE16, LPVOID, LONG)
DWORD target
Definition: compat.h:2107
struct _TEB * teb
Definition: winbase16.h:90
VOID WINAPI _EnterWin16Lock(void)
FARPROC16 userhandler
Definition: winbase16.h:79
HANDLE16 hFileHandles
Definition: winbase16.h:47
DWORD WINAPI GlobalHandle16(WORD)
UINT16 WINAPI GetProfileInt16(LPCSTR, LPCSTR, INT16)
FARPROC16 savedint24
Definition: winbase16.h:40
#define SELECTOROF(ptr)
Definition: windef16.h:50
FARPROC16 WINAPI SetResourceHandler16(HINSTANCE16, LPCSTR, FARPROC16)
UINT16 WINAPI GetTempFileName16(BYTE, LPCSTR, UINT16, LPSTR)
DWORD LCTYPE
Definition: winnls.h:514
ATOM WINAPI FindAtom16(LPCSTR)
FARPROC16 int3e
Definition: winbase16.h:86
unsigned char * LPBYTE
Definition: typedefs.h:52
UINT16 WINAPI _lwrite16(HFILE16, LPCSTR, UINT16)
VOID WINAPI LogParamError16(UINT16, FARPROC16, LPVOID)
FARPROC16 WINAPI LocalNotify16(FARPROC16)
DWORD ebp
Definition: compat.h:2105
VOID WINAPI WriteOutProfiles16(void)
BYTE unused5[8]
Definition: winbase16.h:91
HQUEUE16 WINAPI GetThreadQueue16(DWORD)
WORD WINAPI GetExeVersion16(void)
long LONG
Definition: pedump.c:60
LONG WINAPI SetSwapAreaSize16(WORD)
SEGPTR dta
Definition: winbase16.h:93
DWORD dwMinorVersion
Definition: winbase16.h:228
SEGPTR WINAPI lstrcat16(SEGPTR, LPCSTR)
DWORD callfrom_ip
Definition: compat.h:2122
DWORD WINAPI GlobalDOSAlloc16(DWORD)
FARPROC16 savedint22
Definition: winbase16.h:38
FARPROC16 WINAPI GetSetKernelDOSProc16(FARPROC16 DosProc)
FARPROC16 resloader
Definition: winbase16.h:297
ATOM WINAPI AddAtom16(LPCSTR)
DWORD nb_args
Definition: compat.h:2108
HLOCAL16 WINAPI LocalAlloc16(UINT16, WORD)
WORD version
Definition: winbase16.h:72
CHAR curdir[65]
Definition: winbase16.h:95
HQUEUE16 WINAPI GetFastQueue16(void)
DWORD WINAPI GetCurrentPDB16(void)
BOOL16 WINAPI GetDiskFreeSpace16(LPCSTR, LPDWORD, LPDWORD, LPDWORD, LPDWORD)
HINSTANCE16 HMODULE16
Definition: windef16.h:116
WORD WINAPI AllocSelector16(WORD)
INT16 WINAPI GetPrivateProfileSection16(LPCSTR, LPSTR, UINT16, LPCSTR)
DWORD WINAPI GetFreeSpace16(UINT16)
VOID WINAPI Yield16(void)
SEGPTR WINAPI GetpWin16Lock16(void)
SEGPTR frame16
Definition: compat.h:2101
void WINAPI ExitKernel16(void)
BOOL16 WINAPI IsBadWritePtr16(SEGPTR, UINT16)
BOOL16 WINAPI IsBadStringPtr16(SEGPTR, UINT16)
WORD WINAPI AllocDStoCSAlias16(WORD)
DWORD dwOSVersionInfoSize
Definition: winbase16.h:226
DWORD unused2
Definition: winbase16.h:68
const char * LPCSTR
Definition: xmlstorage.h:183
DWORD WINAPI GlobalHandleNoRIP16(WORD)
FARPROC16 WINAPI GetProcAddress16(HMODULE16, LPCSTR)
struct _STACK32FRAME STACK32FRAME
HLOCAL16 WINAPI LocalReAlloc16(HLOCAL16, WORD, UINT16)
DWORD ecx
Definition: compat.h:2116
FARPROC16 int6
Definition: winbase16.h:84
INT16 WINAPI GetPrivateProfileString16(LPCSTR, LPCSTR, LPCSTR, LPSTR, UINT16, LPCSTR)
HANDLE16 hCSAlias
Definition: winbase16.h:99
INT16 WINAPI GetProfileSection16(LPCSTR, LPSTR, UINT16)
LONG WINAPI _hwrite16(HFILE16, LPCSTR, LONG)
DWORD ebp
Definition: compat.h:2117
HFILE16 WINAPI OpenFile16(LPCSTR, OFSTRUCT *, UINT16)
DWORD edi
Definition: compat.h:2102
BOOL16 WINAPI WaitEvent16(HTASK16)
HGLOBAL16 WINAPI LoadResource16(HINSTANCE16, HRSRC16)
DWORD WINAPI GetSelectorBase(WORD)
unsigned short BOOL16
Definition: windef16.h:36
BOOL16 WINAPI IsBadHugeWritePtr16(SEGPTR, DWORD)
SEGPTR WINAPI LocalLock16(HLOCAL16)
VOID WINAPI hmemcpy16(LPVOID, LPCVOID, LONG)
DWORD esi
Definition: compat.h:2103
DWORD WINAPI RegOpenKey16(HKEY, LPCSTR, PHKEY)
UINT16 WINAPI SetHandleCount16(UINT16)
HANDLE16 HGLOBAL16
Definition: windef16.h:118
unsigned int padding
Definition: isohybrid.c:50
BOOL16 WINAPI IsTask16(HTASK16)
VOID WINAPI OldYield16(void)
BOOL16 WINAPI IsBadCodePtr16(SEGPTR)
UINT16 flags
Definition: winbase16.h:121
BOOL16 WINAPI FindNextFile16(HANDLE16, LPWIN32_FIND_DATAA)
WORD WINAPI InitAtomTable16(WORD)
BOOL16 WINAPI IsBadHugeReadPtr16(SEGPTR, DWORD)
DWORD retaddr
Definition: compat.h:2106
GLenum GLuint GLenum GLsizei length
Definition: glext.h:5579
UINT16 WINAPI LocalSize16(HLOCAL16)
EXCEPTION_REGISTRATION_RECORD frame
Definition: compat.h:2100
DWORD entry_point
Definition: compat.h:2126
HTASK16 hParent
Definition: winbase16.h:76
UINT16 WINAPI GetWindowsDirectory16(LPSTR, UINT16)
static LPVOID WINAPI MapSL(SEGPTR segptr)
Definition: winbase16.h:530
#define WINAPI
Definition: msvc.h:8
BOOL16 WINAPI GlobalUnlock16(HGLOBAL16)
DWORD codeselector
Definition: compat.h:2099
WORD WINAPI LocalHeapSize16(void)
unsigned short WORD
Definition: ntddk_ex.h:93
INT16 WINAPI AccessResource16(HINSTANCE16, HRSRC16)
unsigned long DWORD
Definition: ntddk_ex.h:95
#define __AHSHIFT
Definition: winbase16.h:317
HMODULE16 hModule
Definition: winbase16.h:74
HTASK16 WINAPI LockCurrentTask16(BOOL16)
DWORD module_cs
Definition: compat.h:2123
BOOL16 WINAPI WriteProfileSection16(LPCSTR, LPCSTR)
BYTE reserved1
Definition: winbase16.h:36
ATOM WINAPI DeleteAtom16(ATOM)
BOOL16 WINAPI GetPrivateProfileStruct16(LPCSTR, LPCSTR, LPVOID, UINT16, LPCSTR)
GLbitfield flags
Definition: glext.h:7161
type_id
HANDLE16 WINAPI FindFirstFile16(LPCSTR, LPWIN32_FIND_DATAA)
BOOL16 WINAPI DefineHandleTable16(WORD)
HFILE16 WINAPI _lopen16(LPCSTR, INT16)
VOID WINAPI SwitchStackTo16(WORD, WORD, WORD)
HQUEUE16 WINAPI GetTaskQueue16(HTASK16)
VOID WINAPI _LeaveWin16Lock(void)
FARPROC16 int0
Definition: winbase16.h:81
UINT16 reserved[2]
Definition: winbase16.h:125
GLsizeiptr const GLvoid GLenum usage
Definition: glext.h:5919
HGLOBAL16 WINAPI GlobalAlloc16(UINT16, DWORD)
struct _TDB TDB
unsigned char BYTE
Definition: mem.h:68
BYTE curdrive
Definition: winbase16.h:94
WORD ctrlword8087
Definition: winbase16.h:69
BOOL16 WINAPI WritePrivateProfileString16(LPCSTR, LPCSTR, LPCSTR, LPCSTR)
HGLOBAL16 h
Definition: winbase16.h:123
WORD unused1
Definition: winbase16.h:65
SEGPTR fileHandlesPtr
Definition: winbase16.h:46
WORD flags
Definition: winbase16.h:70
DWORD relay
Definition: compat.h:2124
WORD WINAPI GlobalPageUnlock16(HGLOBAL16)
CHAR module_name[8]
Definition: winbase16.h:101
HANDLE16 WINAPI GetCodeHandle16(FARPROC16)
LRESULT(CALLBACK * FARPROC16)()
Definition: windef16.h:156
void WINAPI GlobalFreeAll16(HGLOBAL16)
uint16_t * LPWORD
Definition: typedefs.h:54
void WINAPI UnlockSegment16(HGLOBAL16)
WORD int20
Definition: winbase16.h:34
FARPROC16 WINAPI MakeProcInstance16(FARPROC16, HANDLE16)
HQUEUE16 WINAPI SetThreadQueue16(DWORD, HQUEUE16)
DWORD WINAPI RegQueryValueEx16(HKEY, LPCSTR, LPDWORD, LPDWORD, LPBYTE, LPDWORD)
Definition: compat.h:492
INT16 WINAPI GetModuleFileName16(HINSTANCE16, LPSTR, INT16)
WORD WINAPI AllocCStoDSAlias16(WORD)
UINT16 cbAlloc
Definition: winbase16.h:122
BOOL16 WINAPI IsSharedSelector16(HANDLE16)
HMODULE16 WINAPI GetModuleHandle16(LPCSTR)
INT16 WINAPI lstrlen16(LPCSTR)
INT16 WINAPI GetModuleUsage16(HINSTANCE16)
BOOL16 WINAPI FindClose16(HANDLE16)
void WINAPI SetFastQueue16(DWORD, HQUEUE16)
HINSTANCE16 WINAPI WinExec16(LPCSTR, UINT16)
WORD entry_ip
Definition: compat.h:2125
HANDLE16 hInstance
Definition: winbase16.h:73
HGLOBAL16 WINAPI GlobalReAlloc16(HGLOBAL16, DWORD, UINT16)
SEGPTR reserved
Definition: winbase16.h:154
UINT16 WINAPI GetDriveType16(UINT16)
UINT16 WINAPI CompareString16(DWORD, DWORD, LPCSTR, DWORD, LPCSTR, DWORD)
BOOL16 WINAPI WriteProfileString16(LPCSTR, LPCSTR, LPCSTR)
WORD nCmdShow
Definition: winbase16.h:96
HQUEUE16 WINAPI SetTaskQueue16(HTASK16, HQUEUE16)
FARPROC16 int75
Definition: winbase16.h:87
FARPROC16 int7
Definition: winbase16.h:85
WORD WINAPI PrestoChangoSelector16(WORD, WORD)
SEGPTR WINAPI HasGPHandler16(SEGPTR)
struct WINDEBUGINFO16 * LPWINDEBUGINFO16
HANDLE16 WINAPI GetAtomHandle16(ATOM)
unsigned short UINT16
DWORD WINAPI SizeofResource16(HMODULE16, HRSRC16)
DWORD SEGPTR
Definition: compat.h:2093
BYTE unused4[2]
Definition: winbase16.h:89
BOOL16 WINAPI LocalInit16(HANDLE16, WORD, WORD)
BOOL16 WINAPI GetVersionEx16(OSVERSIONINFO16 *)
SEGPTR WINAPI lstrcatn16(SEGPTR, LPCSTR, INT16)
UINT16 offSegment
Definition: winbase16.h:119
DWORD WINAPI RegQueryValue16(HKEY, LPCSTR, LPSTR, LPDWORD)
HANDLE16 handle
Definition: winbase16.h:289
WORD WINAPI GetExpWinVer16(HMODULE16)
FARPROC16 int2
Definition: winbase16.h:82
HGLOBAL16 WINAPI AllocResource16(HINSTANCE16, HRSRC16, DWORD)
void WINAPI FreeProcInstance16(FARPROC16)
struct tagSYSLEVEL SYSLEVEL
HGLOBAL16 WINAPI LockSegment16(HGLOBAL16)
HGLOBAL16 WINAPI GlobalLRUNewest16(HGLOBAL16)
HLOCAL16 WINAPI LocalHandle16(WORD)
DWORD dwBuildNumber
Definition: winbase16.h:229
CONST void * LPCVOID
Definition: windef.h:191
DWORD restore_addr
Definition: compat.h:2098
uint32_t * LPDWORD
Definition: typedefs.h:57
FARPROC16 savedint23
Definition: winbase16.h:39
GLenum GLuint id
Definition: glext.h:5579
UINT16 WINAPI GetSystemDirectory16(LPSTR, UINT16)
WORD nEvents
Definition: winbase16.h:63
HTASK16 hYieldTo
Definition: winbase16.h:97
WORD WINAPI SelectorAccessRights16(WORD, WORD, WORD)
HFILE16 WINAPI _lclose16(HFILE16)
UINT16 WINAPI GlobalFlags16(HGLOBAL16)
DWORD dlls_to_init
Definition: winbase16.h:98
CRITICAL_SECTION crst
Definition: winbase16.h:323
SEGPTR WINAPI GetDOSEnvironment16(void)
WORD WINAPI SetSelectorLimit16(WORD, DWORD)
HANDLE16 HLOCAL16
Definition: windef16.h:119
DWORD dwFilter
Definition: winbase16.h:162
HFILE16 WINAPI _lcreat16(LPCSTR, INT16)
PDB16 pdb
Definition: winbase16.h:104
HTASK16 hNext
Definition: winbase16.h:61
HTASK16 WINAPI IsTaskLocked16(void)
WORD WINAPI SetSelectorBase(WORD, DWORD)
BOOL16 WINAPI GetStringType16(LCID, DWORD, LPCSTR, INT16, LPWORD)
WORD thunks[8 *4]
Definition: winbase16.h:100
VOID WINAPI PostEvent16(HTASK16)
DWORD WINAPI RegEnumKey16(HKEY, DWORD, LPSTR, DWORD)
BOOL16 WINAPI SetCurrentDirectory16(LPCSTR)
UINT16 WINAPI SetErrorMode16(UINT16)
LPVOID WINAPI GlobalLock16(HGLOBAL16)
BOOL16 WINAPI GetModuleName16(HINSTANCE16, LPSTR, INT16)
HQUEUE16 hQueue
Definition: winbase16.h:75
WORD WINAPI FreeSelector16(WORD)
DWORD WINAPI GetVersion16(void)
HINSTANCE16 WINAPI LoadLibrary16(LPCSTR)
void WINAPI FatalAppExit16(UINT16, LPCSTR)
WORD nbFiles
Definition: winbase16.h:45
WINE_LDT_EXTERN struct __wine_ldt_copy wine_ldt_copy
HTASK16 hSelf
Definition: winbase16.h:66
#define CONST
Definition: pedump.c:81
HRSRC16 WINAPI FindResource16(HINSTANCE16, LPCSTR, LPCSTR)
UINT16 cbSegment
Definition: winbase16.h:120
DWORD edx
Definition: compat.h:2115
UINT16 WINAPI LocalFlags16(HLOCAL16)
BOOL16 WINAPI GetWinDebugInfo16(LPWINDEBUGINFO16, UINT16)
LONG WINAPI _llseek16(HFILE16, LONG, INT16)
DWORD WINAPI GlobalSize16(HGLOBAL16)
VOID WINAPI _CreateSysLevel(SYSLEVEL *, INT)
BOOL16 WINAPI GlobalUnWire16(HGLOBAL16)
UINT16 WINAPI LocalShrink16(HGLOBAL16, UINT16)
UINT16 alignShift
Definition: winbase16.h:124
signed short INT16
WORD WINAPI AllocSelectorArray16(WORD)