1 #ifndef _INCLUDE_WINE_WINBASE16_H
2 #define _INCLUDE_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 VOID 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 HMODULE WINAPI
LoadLibraryEx32W16(LPCSTR
,HANDLE16
,DWORD
);
93 FARPROC16 WINAPI
LocalNotify16(FARPROC16
);
94 HTASK16 WINAPI
LockCurrentTask16(BOOL16
);
95 VOID WINAPI
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(SEGPTR
);
111 BOOL16 WINAPI
CreateDirectory16(LPCSTR
,LPVOID
);
112 BOOL16 WINAPI
DefineHandleTable16(WORD
);
113 ATOM WINAPI
DeleteAtom16(ATOM
);
114 BOOL16 WINAPI
DeleteFile16(LPCSTR
);
115 void WINAPI
FatalAppExit16(UINT16
,LPCSTR
);
116 ATOM WINAPI
FindAtom16(SEGPTR
);
117 BOOL16 WINAPI
FindClose16(HANDLE16
);
118 HRSRC16 WINAPI
FindResource16(HINSTANCE16
,SEGPTR
,SEGPTR
);
119 BOOL16 WINAPI
FreeModule16(HMODULE16
);
120 void WINAPI
FreeProcInstance16(FARPROC16
);
121 BOOL16 WINAPI
FreeResource16(HGLOBAL16
);
122 UINT16 WINAPI
GetAtomName16(ATOM
,LPSTR
,INT16
);
123 UINT16 WINAPI
GetCurrentDirectory16(UINT16
,LPSTR
);
124 BOOL16 WINAPI
GetDiskFreeSpace16(LPCSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
);
125 UINT16 WINAPI
GetDriveType16(UINT16
); /* yes, the arguments differ */
126 DWORD WINAPI
GetFileAttributes16(LPCSTR
);
127 DWORD WINAPI
GetFreeSpace16(UINT16
);
128 INT16 WINAPI
GetModuleFileName16(HINSTANCE16
,LPSTR
,INT16
);
129 UINT16 WINAPI
GetPrivateProfileInt16(LPCSTR
,LPCSTR
,INT16
,LPCSTR
);
130 WORD WINAPI
GetPrivateProfileSectionNames16(LPSTR
,UINT16
,LPCSTR
);
131 INT16 WINAPI
GetPrivateProfileString16(LPCSTR
,LPCSTR
,LPCSTR
,LPSTR
,UINT16
,LPCSTR
);
132 FARPROC16 WINAPI
GetProcAddress16(HMODULE16
,SEGPTR
);
133 UINT16 WINAPI
GetProfileInt16(LPCSTR
,LPCSTR
,INT16
);
134 INT16 WINAPI
GetProfileString16(LPCSTR
,LPCSTR
,LPCSTR
,LPSTR
,UINT16
);
135 UINT16 WINAPI
GetSystemDirectory16(LPSTR
,UINT16
);
136 UINT16 WINAPI
GetTempFileName16(BYTE
,LPCSTR
,UINT16
,LPSTR
);
137 LONG WINAPI
GetVersion16(void);
138 UINT16 WINAPI
GetWindowsDirectory16(LPSTR
,UINT16
);
139 DWORD WINAPI
GlobalCompact16(DWORD
);
140 UINT16 WINAPI
GlobalFlags16(HGLOBAL16
);
141 DWORD WINAPI
GlobalHandle16(WORD
);
142 HGLOBAL16 WINAPI
GlobalReAlloc16(HGLOBAL16
,DWORD
,UINT16
);
143 WORD WINAPI
InitAtomTable16(WORD
);
144 BOOL16 WINAPI
IsBadCodePtr16(SEGPTR
);
145 BOOL16 WINAPI
IsBadHugeReadPtr16(SEGPTR
,DWORD
);
146 BOOL16 WINAPI
IsBadHugeWritePtr16(SEGPTR
,DWORD
);
147 BOOL16 WINAPI
IsBadReadPtr16(SEGPTR
,UINT16
);
148 BOOL16 WINAPI
IsBadStringPtr16(SEGPTR
,UINT16
);
149 BOOL16 WINAPI
IsBadWritePtr16(SEGPTR
,UINT16
);
150 BOOL16 WINAPI
IsDBCSLeadByte16(BYTE
);
151 HGLOBAL16 WINAPI
LoadResource16(HINSTANCE16
,HRSRC16
);
152 UINT16 WINAPI
LocalCompact16(UINT16
);
153 UINT16 WINAPI
LocalFlags16(HLOCAL16
);
154 HLOCAL16 WINAPI
LocalFree16(HLOCAL16
);
155 HLOCAL16 WINAPI
LocalHandle16(WORD
);
156 SEGPTR WINAPI
LocalLock16(HLOCAL16
);
157 HLOCAL16 WINAPI
LocalReAlloc16(HLOCAL16
,WORD
,UINT16
);
158 UINT16 WINAPI
LocalShrink16(HGLOBAL16
,UINT16
);
159 UINT16 WINAPI
LocalSize16(HLOCAL16
);
160 BOOL16 WINAPI
LocalUnlock16(HLOCAL16
);
161 HGLOBAL16 WINAPI
LockSegment16(HGLOBAL16
);
162 FARPROC16 WINAPI
MakeProcInstance16(FARPROC16
,HANDLE16
);
163 VOID WINAPI
OutputDebugString16(LPCSTR
);
164 DWORD WINAPI
RegCreateKey16(HKEY
,LPCSTR
,LPHKEY
);
165 DWORD WINAPI
RegDeleteKey16(HKEY
,LPCSTR
);
166 DWORD WINAPI
RegDeleteValue16(HKEY
,LPSTR
);
167 DWORD WINAPI
RegEnumKey16(HKEY
,DWORD
,LPSTR
,DWORD
);
168 DWORD WINAPI
RegEnumValue16(HKEY
,DWORD
,LPSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPBYTE
,LPDWORD
);
169 DWORD WINAPI
RegOpenKey16(HKEY
,LPCSTR
,LPHKEY
);
170 DWORD WINAPI
RegQueryValue16(HKEY
,LPSTR
,LPSTR
,LPDWORD
);
171 DWORD WINAPI
RegQueryValueEx16(HKEY
,LPSTR
,LPDWORD
,LPDWORD
,LPBYTE
,LPDWORD
);
172 DWORD WINAPI
RegSetValue16(HKEY
,LPCSTR
,DWORD
,LPCSTR
,DWORD
);
173 DWORD WINAPI
RegSetValueEx16(HKEY
,LPSTR
,DWORD
,DWORD
,LPBYTE
,DWORD
);
174 BOOL16 WINAPI
RemoveDirectory16(LPCSTR
);
175 BOOL16 WINAPI
SetCurrentDirectory16(LPCSTR
);
176 UINT16 WINAPI
SetErrorMode16(UINT16
);
177 BOOL16 WINAPI
SetFileAttributes16(LPCSTR
,DWORD
);
178 UINT16 WINAPI
SetHandleCount16(UINT16
);
179 LONG WINAPI
SetSwapAreaSize16(WORD
);
180 DWORD WINAPI
SizeofResource16(HMODULE16
,HRSRC16
);
181 void WINAPI
UnlockSegment16(HGLOBAL16
);
182 BOOL16 WINAPI
WritePrivateProfileString16(LPCSTR
,LPCSTR
,LPCSTR
,LPCSTR
);
183 BOOL16 WINAPI
WriteProfileString16(LPCSTR
,LPCSTR
,LPCSTR
);
184 VOID WINAPI
Yield16(void);
185 SEGPTR WINAPI
lstrcat16(SEGPTR
,LPCSTR
);
186 SEGPTR WINAPI
lstrcatn16(SEGPTR
,LPCSTR
,INT16
);
187 SEGPTR WINAPI
lstrcpy16(SEGPTR
,LPCSTR
);
188 SEGPTR WINAPI
lstrcpyn16(SEGPTR
,LPCSTR
,INT16
);
189 INT16 WINAPI
lstrlen16(LPCSTR
);
190 HINSTANCE16 WINAPI
WinExec16(LPCSTR
,UINT16
);
191 LONG WINAPI
_hread16(HFILE16
,LPVOID
,LONG
);
192 LONG WINAPI
_hwrite16(HFILE16
,LPCSTR
,LONG
);
193 HFILE16 WINAPI
_lcreat16(LPCSTR
,INT16
);
194 HFILE16 WINAPI
_lclose16(HFILE16
);
195 LONG WINAPI
_llseek16(HFILE16
,LONG
,INT16
);
196 HFILE16 WINAPI
_lopen16(LPCSTR
,INT16
);
197 UINT16 WINAPI
_lread16(HFILE16
,LPVOID
,UINT16
);
198 UINT16 WINAPI
_lwrite16(HFILE16
,LPCSTR
,UINT16
);
199 BOOL16 WINAPI
WritePrivateProfileSection16(LPCSTR
,LPCSTR
,LPCSTR
);
200 BOOL16 WINAPI
WritePrivateProfileStruct16(LPCSTR
,LPCSTR
,LPVOID
,UINT16
,LPCSTR
);
201 DWORD WINAPI
GetSelectorBase(WORD
);
202 WORD WINAPI
SetSelectorBase(WORD
,DWORD
);
204 /* Extra functions that don't exist in the Windows API */
206 HPEN16 WINAPI
GetSysColorPen16(INT16
);
207 UINT WINAPI
WIN16_GetTempDrive(BYTE
);
208 SEGPTR WINAPI
WIN16_LockResource16(HGLOBAL16
);
209 LONG WINAPI
WIN16_hread(HFILE16
,SEGPTR
,LONG
);
210 UINT16 WINAPI
WIN16_lread(HFILE16
,SEGPTR
,UINT16
);
212 #endif /* _INCLUDE_WINE_WINBASE16_H */