1 #ifndef __WINE_WINE_WINBASE16_H
2 #define __WINE_WINE_WINBASE16_H
6 typedef struct _SEGINFO
{
19 #define WF_PMODE 0x0001
20 #define WF_CPU286 0x0002
21 #define WF_CPU386 0x0004
22 #define WF_CPU486 0x0008
23 #define WF_STANDARD 0x0010
24 #define WF_WIN286 0x0010
25 #define WF_ENHANCED 0x0020
26 #define WF_WIN386 0x0020
27 #define WF_CPU086 0x0040
28 #define WF_CPU186 0x0080
29 #define WF_LARGEFRAME 0x0100
30 #define WF_SMALLFRAME 0x0200
31 #define WF_80x87 0x0400
32 #define WF_PAGING 0x0800
33 #define WF_HASCPUID 0x2000
34 #define WF_WIN32WOW 0x4000 /* undoc */
39 HMODULE16 WINAPI
GetModuleHandle16(LPCSTR
);
40 HLOCAL16 WINAPI
LocalAlloc16(UINT16
,WORD
);
41 LPVOID WINAPI
LockResource16(HGLOBAL16
);
44 WORD WINAPI
AllocCStoDSAlias16(WORD
);
45 WORD WINAPI
AllocDStoCSAlias16(WORD
);
46 HGLOBAL16 WINAPI
AllocResource16(HINSTANCE16
,HRSRC16
,DWORD
);
47 WORD WINAPI
AllocSelector16(WORD
);
48 WORD WINAPI
AllocSelectorArray16(WORD
);
49 VOID WINAPI
DirectedYield16(HTASK16
);
50 HGLOBAL16 WINAPI
DirectResAlloc16(HINSTANCE16
,WORD
,UINT16
);
51 HANDLE16 WINAPI
FarGetOwner16(HGLOBAL16
);
52 VOID WINAPI
FarSetOwner16(HGLOBAL16
,HANDLE16
);
53 FARPROC16 WINAPI
FileCDR16(FARPROC16
);
54 WORD WINAPI
FreeSelector16(WORD
);
55 HANDLE16 WINAPI
GetAtomHandle16(ATOM
);
56 HANDLE16 WINAPI
GetCodeHandle16(FARPROC16
);
57 BOOL16 WINAPI
GetCodeInfo16(FARPROC16
,SEGINFO
*);
58 DWORD WINAPI
GetCurrentPDB16(void);
59 HTASK16 WINAPI
GetCurrentTask(void);
60 SEGPTR WINAPI
GetDOSEnvironment16(void);
61 HMODULE16 WINAPI
GetExePtr(HANDLE16
);
62 WORD WINAPI
GetExeVersion16(void);
63 WORD WINAPI
GetExpWinVer16(HMODULE16
);
64 DWORD WINAPI
GetHeapSpaces16(HMODULE16
);
65 INT16 WINAPI
GetInstanceData16(HINSTANCE16
,WORD
,INT16
);
66 BOOL16 WINAPI
GetModuleName16(HINSTANCE16
,LPSTR
,INT16
);
67 INT16 WINAPI
GetModuleUsage16(HINSTANCE16
);
68 UINT16 WINAPI
GetNumTasks16(void);
69 DWORD WINAPI
GetSelectorLimit16(WORD
);
70 FARPROC16 WINAPI
GetSetKernelDOSProc16(FARPROC16 DosProc
);
71 HINSTANCE16 WINAPI
GetTaskDS16(void);
72 HQUEUE16 WINAPI
GetTaskQueue16(HTASK16
);
73 DWORD WINAPI
GetWinFlags16(void);
74 DWORD WINAPI
GlobalDOSAlloc16(DWORD
);
75 WORD WINAPI
GlobalDOSFree16(WORD
);
76 void WINAPI
GlobalFreeAll16(HGLOBAL16
);
77 DWORD WINAPI
GlobalHandleNoRIP16(WORD
);
78 HGLOBAL16 WINAPI
GlobalLRUNewest16(HGLOBAL16
);
79 HGLOBAL16 WINAPI
GlobalLRUOldest16(HGLOBAL16
);
80 VOID WINAPI
GlobalNotify16(FARPROC16
);
81 WORD WINAPI
GlobalPageLock16(HGLOBAL16
);
82 WORD WINAPI
GlobalPageUnlock16(HGLOBAL16
);
83 BOOL16 WINAPI
IsSharedSelector16(HANDLE16
);
84 BOOL16 WINAPI
IsTask16(HTASK16
);
85 HTASK16 WINAPI
IsTaskLocked16(void);
86 VOID WINAPI
LogError16(UINT16
, LPVOID
);
87 VOID WINAPI
LogParamError16(UINT16
,FARPROC16
,LPVOID
);
88 WORD WINAPI
LocalCountFree16(void);
89 WORD WINAPI
LocalHandleDelta16(WORD
);
90 WORD WINAPI
LocalHeapSize16(void);
91 BOOL16 WINAPI
LocalInit16(HANDLE16
,WORD
,WORD
);
92 FARPROC16 WINAPI
LocalNotify16(FARPROC16
);
93 HTASK16 WINAPI
LockCurrentTask16(BOOL16
);
94 VOID WINAPI
OldYield16(void);
95 VOID WINAPI
WIN32_OldYield16(void);
96 VOID WINAPI
PostEvent16(HTASK16
);
97 WORD WINAPI
PrestoChangoSelector16(WORD
,WORD
);
98 WORD WINAPI
SelectorAccessRights16(WORD
,WORD
,WORD
);
99 VOID WINAPI
SetPriority16(HTASK16
,INT16
);
100 FARPROC16 WINAPI
SetResourceHandler16(HINSTANCE16
,SEGPTR
,FARPROC16
);
101 WORD WINAPI
SetSelectorLimit16(WORD
,DWORD
);
102 HQUEUE16 WINAPI
SetTaskQueue16(HTASK16
,HQUEUE16
);
103 VOID WINAPI
SwitchStackTo16(WORD
,WORD
,WORD
);
104 BOOL16 WINAPI
WaitEvent16(HTASK16
);
105 VOID WINAPI
WriteOutProfiles16(void);
106 VOID WINAPI
hmemcpy16(LPVOID
,LPCVOID
,LONG
);
107 #endif /* __WINE__ */
109 INT16 WINAPI
AccessResource16(HINSTANCE16
,HRSRC16
);
110 ATOM WINAPI
AddAtom16(LPCSTR
);
111 BOOL16 WINAPI
CreateDirectory16(LPCSTR
,LPVOID
);
112 BOOL16 WINAPI
DefineHandleTable16(WORD
);
113 ATOM WINAPI
DeleteAtom16(ATOM
);
114 BOOL16 WINAPI
DeleteFile16(LPCSTR
);
115 void WINAPI
ExitKernel16(void);
116 void WINAPI
FatalAppExit16(UINT16
,LPCSTR
);
117 ATOM WINAPI
FindAtom16(LPCSTR
);
118 BOOL16 WINAPI
FindClose16(HANDLE16
);
119 HRSRC16 WINAPI
FindResource16(HINSTANCE16
,SEGPTR
,SEGPTR
);
120 BOOL16 WINAPI
FreeModule16(HMODULE16
);
121 void WINAPI
FreeProcInstance16(FARPROC16
);
122 BOOL16 WINAPI
FreeResource16(HGLOBAL16
);
123 UINT16 WINAPI
GetAtomName16(ATOM
,LPSTR
,INT16
);
124 UINT16 WINAPI
GetCurrentDirectory16(UINT16
,LPSTR
);
125 BOOL16 WINAPI
GetDiskFreeSpace16(LPCSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
);
126 UINT16 WINAPI
GetDriveType16(UINT16
); /* yes, the arguments differ */
127 DWORD WINAPI
GetFileAttributes16(LPCSTR
);
128 DWORD WINAPI
GetFreeSpace16(UINT16
);
129 INT16 WINAPI
GetModuleFileName16(HINSTANCE16
,LPSTR
,INT16
);
130 UINT16 WINAPI
GetPrivateProfileInt16(LPCSTR
,LPCSTR
,INT16
,LPCSTR
);
131 INT16 WINAPI
GetPrivateProfileSection16(LPCSTR
,LPSTR
,UINT16
,LPCSTR
);
132 WORD WINAPI
GetPrivateProfileSectionNames16(LPSTR
,UINT16
,LPCSTR
);
133 INT16 WINAPI
GetPrivateProfileString16(LPCSTR
,LPCSTR
,LPCSTR
,LPSTR
,UINT16
,LPCSTR
);
134 BOOL16 WINAPI
GetPrivateProfileStruct16(LPCSTR
,LPCSTR
,LPVOID
,UINT16
,LPCSTR
);
135 FARPROC16 WINAPI
GetProcAddress16(HMODULE16
,SEGPTR
);
136 UINT16 WINAPI
GetProfileInt16(LPCSTR
,LPCSTR
,INT16
);
137 INT16 WINAPI
GetProfileSection16(LPCSTR
,LPSTR
,UINT16
);
138 WORD WINAPI
GetProfileSectionNames16(LPSTR
,WORD
);
139 INT16 WINAPI
GetProfileString16(LPCSTR
,LPCSTR
,LPCSTR
,LPSTR
,UINT16
);
140 UINT16 WINAPI
GetSystemDirectory16(LPSTR
,UINT16
);
141 UINT16 WINAPI
GetTempFileName16(BYTE
,LPCSTR
,UINT16
,LPSTR
);
142 LONG WINAPI
GetVersion16(void);
143 UINT16 WINAPI
GetWindowsDirectory16(LPSTR
,UINT16
);
144 DWORD WINAPI
GlobalCompact16(DWORD
);
145 UINT16 WINAPI
GlobalFlags16(HGLOBAL16
);
146 DWORD WINAPI
GlobalHandle16(WORD
);
147 HGLOBAL16 WINAPI
GlobalReAlloc16(HGLOBAL16
,DWORD
,UINT16
);
148 WORD WINAPI
InitAtomTable16(WORD
);
149 BOOL16 WINAPI
IsBadCodePtr16(SEGPTR
);
150 BOOL16 WINAPI
IsBadHugeReadPtr16(SEGPTR
,DWORD
);
151 BOOL16 WINAPI
IsBadHugeWritePtr16(SEGPTR
,DWORD
);
152 BOOL16 WINAPI
IsBadReadPtr16(SEGPTR
,UINT16
);
153 BOOL16 WINAPI
IsBadStringPtr16(SEGPTR
,UINT16
);
154 BOOL16 WINAPI
IsBadWritePtr16(SEGPTR
,UINT16
);
155 BOOL16 WINAPI
IsDBCSLeadByte16(BYTE
);
156 HGLOBAL16 WINAPI
LoadResource16(HINSTANCE16
,HRSRC16
);
157 UINT16 WINAPI
LocalCompact16(UINT16
);
158 UINT16 WINAPI
LocalFlags16(HLOCAL16
);
159 HLOCAL16 WINAPI
LocalFree16(HLOCAL16
);
160 HLOCAL16 WINAPI
LocalHandle16(WORD
);
161 SEGPTR WINAPI
LocalLock16(HLOCAL16
);
162 HLOCAL16 WINAPI
LocalReAlloc16(HLOCAL16
,WORD
,UINT16
);
163 UINT16 WINAPI
LocalShrink16(HGLOBAL16
,UINT16
);
164 UINT16 WINAPI
LocalSize16(HLOCAL16
);
165 BOOL16 WINAPI
LocalUnlock16(HLOCAL16
);
166 HGLOBAL16 WINAPI
LockSegment16(HGLOBAL16
);
167 FARPROC16 WINAPI
MakeProcInstance16(FARPROC16
,HANDLE16
);
168 VOID WINAPI
OutputDebugString16(LPCSTR
);
169 DWORD WINAPI
RegCloseKey16(HKEY
);
170 DWORD WINAPI
RegCreateKey16(HKEY
,LPCSTR
,LPHKEY
);
171 DWORD WINAPI
RegDeleteKey16(HKEY
,LPCSTR
);
172 DWORD WINAPI
RegDeleteValue16(HKEY
,LPSTR
);
173 DWORD WINAPI
RegEnumKey16(HKEY
,DWORD
,LPSTR
,DWORD
);
174 DWORD WINAPI
RegEnumValue16(HKEY
,DWORD
,LPSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPBYTE
,LPDWORD
);
175 DWORD WINAPI
RegOpenKey16(HKEY
,LPCSTR
,LPHKEY
);
176 DWORD WINAPI
RegQueryValue16(HKEY
,LPCSTR
,LPSTR
,LPDWORD
);
177 DWORD WINAPI
RegQueryValueEx16(HKEY
,LPCSTR
,LPDWORD
,LPDWORD
,LPBYTE
,LPDWORD
);
178 DWORD WINAPI
RegSetValue16(HKEY
,LPCSTR
,DWORD
,LPCSTR
,DWORD
);
179 DWORD WINAPI
RegSetValueEx16(HKEY
,LPCSTR
,DWORD
,DWORD
,CONST BYTE
*,DWORD
);
180 BOOL16 WINAPI
RemoveDirectory16(LPCSTR
);
181 BOOL16 WINAPI
SetCurrentDirectory16(LPCSTR
);
182 UINT16 WINAPI
SetErrorMode16(UINT16
);
183 BOOL16 WINAPI
SetFileAttributes16(LPCSTR
,DWORD
);
184 UINT16 WINAPI
SetHandleCount16(UINT16
);
185 LONG WINAPI
SetSwapAreaSize16(WORD
);
186 DWORD WINAPI
SizeofResource16(HMODULE16
,HRSRC16
);
187 void WINAPI
UnlockSegment16(HGLOBAL16
);
188 BOOL16 WINAPI
WritePrivateProfileString16(LPCSTR
,LPCSTR
,LPCSTR
,LPCSTR
);
189 BOOL16 WINAPI
WriteProfileString16(LPCSTR
,LPCSTR
,LPCSTR
);
190 VOID WINAPI
Yield16(void);
191 SEGPTR WINAPI
lstrcat16(SEGPTR
,LPCSTR
);
192 SEGPTR WINAPI
lstrcatn16(SEGPTR
,LPCSTR
,INT16
);
193 SEGPTR WINAPI
lstrcpy16(SEGPTR
,LPCSTR
);
194 SEGPTR WINAPI
lstrcpyn16(SEGPTR
,LPCSTR
,INT16
);
195 INT16 WINAPI
lstrlen16(LPCSTR
);
196 HINSTANCE16 WINAPI
WinExec16(LPCSTR
,UINT16
);
197 LONG WINAPI
_hread16(HFILE16
,LPVOID
,LONG
);
198 LONG WINAPI
_hwrite16(HFILE16
,LPCSTR
,LONG
);
199 HFILE16 WINAPI
_lcreat16(LPCSTR
,INT16
);
200 HFILE16 WINAPI
_lclose16(HFILE16
);
201 LONG WINAPI
_llseek16(HFILE16
,LONG
,INT16
);
202 HFILE16 WINAPI
_lopen16(LPCSTR
,INT16
);
203 UINT16 WINAPI
_lread16(HFILE16
,LPVOID
,UINT16
);
204 UINT16 WINAPI
_lwrite16(HFILE16
,LPCSTR
,UINT16
);
205 BOOL16 WINAPI
WritePrivateProfileSection16(LPCSTR
,LPCSTR
,LPCSTR
);
206 BOOL16 WINAPI
WritePrivateProfileStruct16(LPCSTR
,LPCSTR
,LPVOID
,UINT16
,LPCSTR
);
207 BOOL16 WINAPI
WriteProfileSection16(LPCSTR
,LPCSTR
);
208 DWORD WINAPI
GetSelectorBase(WORD
);
209 WORD WINAPI
SetSelectorBase(WORD
,DWORD
);
211 /* Extra functions that don't exist in the Windows API */
213 HPEN16 WINAPI
GetSysColorPen16(INT16
);
214 UINT WINAPI
WIN16_GetTempDrive(BYTE
);
215 SEGPTR WINAPI
WIN16_LockResource16(HGLOBAL16
);
216 LONG WINAPI
WIN16_hread(HFILE16
,SEGPTR
,LONG
);
217 UINT16 WINAPI
WIN16_lread(HFILE16
,SEGPTR
,UINT16
);
219 #endif /* __WINE_WINE_WINBASE16_H */