Mercurial > hg > xemacs-beta
comparison src/intl-auto-encap-win32.c @ 5920:0f2338afbabf cygwin
Minimum necessary to get started:
sufficient to compile OK, run -nw, but not with window
author | Henry Thompson <ht@markup.co.uk> |
---|---|
date | Mon, 21 Apr 2014 11:42:50 +0100 |
parents | 7eec2a1f3412 |
children | 68639fb08af8 |
comparison
equal
deleted
inserted
replaced
5919:2800105fcc9f | 5920:0f2338afbabf |
---|---|
11 | 11 |
12 #include "syswindows.h" | 12 #include "syswindows.h" |
13 | 13 |
14 | 14 |
15 /*----------------------------------------------------------------------*/ | 15 /*----------------------------------------------------------------------*/ |
16 /* Processing file WINCON.H */ | |
17 /*----------------------------------------------------------------------*/ | |
18 | |
19 /* Error if FillConsoleOutputCharacter used: split CHAR */ | |
20 | |
21 DWORD | |
22 qxeGetConsoleTitle (Extbyte * arg1, DWORD arg2) | |
23 { | |
24 if (XEUNICODE_P) | |
25 return GetConsoleTitleW ((LPWSTR) arg1, arg2); | |
26 else | |
27 return GetConsoleTitleA ((LPSTR) arg1, arg2); | |
28 } | |
29 | |
30 BOOL | |
31 qxePeekConsoleInput (HANDLE arg1, PINPUT_RECORD arg2, DWORD arg3, PDWORD arg4) | |
32 { | |
33 if (XEUNICODE_P) | |
34 return PeekConsoleInputW (arg1, arg2, arg3, arg4); | |
35 else | |
36 return PeekConsoleInputA (arg1, arg2, arg3, arg4); | |
37 } | |
38 | |
39 BOOL | |
40 qxeReadConsole (HANDLE arg1, PVOID arg2, DWORD arg3, PDWORD arg4, PVOID arg5) | |
41 { | |
42 if (XEUNICODE_P) | |
43 return ReadConsoleW (arg1, arg2, arg3, arg4, arg5); | |
44 else | |
45 return ReadConsoleA (arg1, arg2, arg3, arg4, arg5); | |
46 } | |
47 | |
48 BOOL | |
49 qxeReadConsoleInput (HANDLE arg1, PINPUT_RECORD arg2, DWORD arg3, PDWORD arg4) | |
50 { | |
51 if (XEUNICODE_P) | |
52 return ReadConsoleInputW (arg1, arg2, arg3, arg4); | |
53 else | |
54 return ReadConsoleInputA (arg1, arg2, arg3, arg4); | |
55 } | |
56 | |
57 BOOL | |
58 qxeReadConsoleOutputCharacter (HANDLE arg1, Extbyte * arg2, DWORD arg3, COORD arg4, PDWORD arg5) | |
59 { | |
60 if (XEUNICODE_P) | |
61 return ReadConsoleOutputCharacterW (arg1, (LPWSTR) arg2, arg3, arg4, arg5); | |
62 else | |
63 return ReadConsoleOutputCharacterA (arg1, (LPSTR) arg2, arg3, arg4, arg5); | |
64 } | |
65 | |
66 BOOL | |
67 qxeReadConsoleOutput (HANDLE arg1, PCHAR_INFO arg2, COORD arg3, COORD arg4, PSMALL_RECT arg5) | |
68 { | |
69 if (XEUNICODE_P) | |
70 return ReadConsoleOutputW (arg1, arg2, arg3, arg4, arg5); | |
71 else | |
72 return ReadConsoleOutputA (arg1, arg2, arg3, arg4, arg5); | |
73 } | |
74 | |
75 BOOL | |
76 qxeScrollConsoleScreenBuffer (HANDLE arg1, const SMALL_RECT* arg2, const SMALL_RECT* arg3, COORD arg4, const CHAR_INFO* arg5) | |
77 { | |
78 if (XEUNICODE_P) | |
79 return ScrollConsoleScreenBufferW (arg1, arg2, arg3, arg4, arg5); | |
80 else | |
81 return ScrollConsoleScreenBufferA (arg1, arg2, arg3, arg4, arg5); | |
82 } | |
83 | |
84 BOOL | |
85 qxeSetConsoleTitle (const Extbyte * arg1) | |
86 { | |
87 if (XEUNICODE_P) | |
88 return SetConsoleTitleW ((LPCWSTR) arg1); | |
89 else | |
90 return SetConsoleTitleA ((LPCSTR) arg1); | |
91 } | |
92 | |
93 BOOL | |
94 qxeWriteConsole (HANDLE arg1, PCVOID arg2, DWORD arg3, PDWORD arg4, PVOID arg5) | |
95 { | |
96 if (XEUNICODE_P) | |
97 return WriteConsoleW (arg1, arg2, arg3, arg4, arg5); | |
98 else | |
99 return WriteConsoleA (arg1, arg2, arg3, arg4, arg5); | |
100 } | |
101 | |
102 BOOL | |
103 qxeWriteConsoleInput (HANDLE arg1, const INPUT_RECORD* arg2, DWORD arg3, PDWORD arg4) | |
104 { | |
105 if (XEUNICODE_P) | |
106 return WriteConsoleInputW (arg1, arg2, arg3, arg4); | |
107 else | |
108 return WriteConsoleInputA (arg1, arg2, arg3, arg4); | |
109 } | |
110 | |
111 BOOL | |
112 qxeWriteConsoleOutput (HANDLE arg1, const CHAR_INFO* arg2, COORD arg3, COORD arg4, PSMALL_RECT arg5) | |
113 { | |
114 if (XEUNICODE_P) | |
115 return WriteConsoleOutputW (arg1, arg2, arg3, arg4, arg5); | |
116 else | |
117 return WriteConsoleOutputA (arg1, arg2, arg3, arg4, arg5); | |
118 } | |
119 | |
120 BOOL | |
121 qxeWriteConsoleOutputCharacter (HANDLE arg1, const Extbyte * arg2, DWORD arg3, COORD arg4, PDWORD arg5) | |
122 { | |
123 if (XEUNICODE_P) | |
124 return WriteConsoleOutputCharacterW (arg1, (LPCWSTR) arg2, arg3, arg4, arg5); | |
125 else | |
126 return WriteConsoleOutputCharacterA (arg1, (LPCSTR) arg2, arg3, arg4, arg5); | |
127 } | |
128 | |
129 | |
130 /*----------------------------------------------------------------------*/ | |
131 /* Processing file SHELLAPI.H */ | 16 /* Processing file SHELLAPI.H */ |
132 /*----------------------------------------------------------------------*/ | 17 /*----------------------------------------------------------------------*/ |
133 | 18 |
19 UINT | |
20 qxeDragQueryFile (HDROP hDrop, UINT iFile, Extbyte * lpszFile, UINT cch) | |
21 { | |
22 if (XEUNICODE_P) | |
23 return DragQueryFileW (hDrop, iFile, (LPWSTR) lpszFile, cch); | |
24 else | |
25 return DragQueryFileA (hDrop, iFile, (LPSTR) lpszFile, cch); | |
26 } | |
27 | |
28 HINSTANCE | |
29 qxeShellExecute (HWND hwnd, const Extbyte * lpOperation, const Extbyte * lpFile, const Extbyte * lpParameters, const Extbyte * lpDirectory, INT nShowCmd) | |
30 { | |
31 if (XEUNICODE_P) | |
32 return ShellExecuteW (hwnd, (LPCWSTR) lpOperation, (LPCWSTR) lpFile, (LPCWSTR) lpParameters, (LPCWSTR) lpDirectory, nShowCmd); | |
33 else | |
34 return ShellExecuteA (hwnd, (LPCSTR) lpOperation, (LPCSTR) lpFile, (LPCSTR) lpParameters, (LPCSTR) lpDirectory, nShowCmd); | |
35 } | |
36 | |
37 HINSTANCE | |
38 qxeFindExecutable (const Extbyte * lpFile, const Extbyte * lpDirectory, Extbyte * lpResult) | |
39 { | |
40 if (XEUNICODE_P) | |
41 return FindExecutableW ((LPCWSTR) lpFile, (LPCWSTR) lpDirectory, (LPWSTR) lpResult); | |
42 else | |
43 return FindExecutableA ((LPCSTR) lpFile, (LPCSTR) lpDirectory, (LPSTR) lpResult); | |
44 } | |
45 | |
134 /* Error if CommandLineToArgv used: Unicode-only */ | 46 /* Error if CommandLineToArgv used: Unicode-only */ |
135 | 47 |
136 UINT | 48 INT |
137 qxeDragQueryFile (HDROP arg1, UINT arg2, Extbyte * arg3, UINT arg4) | 49 qxeShellAbout (HWND hWnd, const Extbyte * szApp, const Extbyte * szOtherStuff, HICON hIcon) |
138 { | 50 { |
139 if (XEUNICODE_P) | 51 if (XEUNICODE_P) |
140 return DragQueryFileW (arg1, arg2, (LPWSTR) arg3, arg4); | 52 return ShellAboutW (hWnd, (LPCWSTR) szApp, (LPCWSTR) szOtherStuff, hIcon); |
141 else | 53 else |
142 return DragQueryFileA (arg1, arg2, (LPSTR) arg3, arg4); | 54 return ShellAboutA (hWnd, (LPCSTR) szApp, (LPCSTR) szOtherStuff, hIcon); |
143 } | 55 } |
144 | 56 |
145 /* NOTE: error arg2, Cygwin prototype, extra const. | 57 /* NOTE: error arg2, Cygwin prototype, extra const. |
146 NOTE: Prototype manually overridden. | 58 NOTE: Prototype manually overridden. |
147 Header file claims: | 59 Header file claims: |
148 HICON WINAPI ExtractAssociatedIcon(HINSTANCE,LPCWSTR,PWORD) | 60 SHSTDAPI_(HICON) ExtractAssociatedIcon(HINSTANCE hInst, LPWSTR pszIconPath, WORD *piIcon) |
149 Overridden with: | 61 Overridden with: |
150 HICON ExtractAssociatedIcon(HINSTANCE, LPWSTR, LPWORD) | 62 HICON ExtractAssociatedIcon(HINSTANCE, LPWSTR, LPWORD) |
151 Differences in return-type qualifiers, e.g. WINAPI, are not important. | 63 Differences in return-type qualifiers, e.g. WINAPI, are not important. |
152 */ | 64 */ |
153 HICON | 65 HICON |
157 return ExtractAssociatedIconW (arg1, (LPWSTR) arg2, arg3); | 69 return ExtractAssociatedIconW (arg1, (LPWSTR) arg2, arg3); |
158 else | 70 else |
159 return ExtractAssociatedIconA (arg1, (LPSTR) arg2, arg3); | 71 return ExtractAssociatedIconA (arg1, (LPSTR) arg2, arg3); |
160 } | 72 } |
161 | 73 |
74 /* Error if ExtractAssociatedIconEx used: HST: new? -- needs review */ | |
75 | |
162 HICON | 76 HICON |
163 qxeExtractIcon (HINSTANCE arg1, const Extbyte * arg2, UINT arg3) | 77 qxeExtractIcon (HINSTANCE hInst, const Extbyte * pszExeFileName, UINT nIconIndex) |
164 { | 78 { |
165 if (XEUNICODE_P) | 79 if (XEUNICODE_P) |
166 return ExtractIconW (arg1, (LPCWSTR) arg2, arg3); | 80 return ExtractIconW (hInst, (LPCWSTR) pszExeFileName, nIconIndex); |
167 else | 81 else |
168 return ExtractIconA (arg1, (LPCSTR) arg2, arg3); | 82 return ExtractIconA (hInst, (LPCSTR) pszExeFileName, nIconIndex); |
169 } | 83 } |
84 | |
85 #if !defined (CYGWIN_HEADERS) | |
86 | |
87 /* NOTE: NT 4.0+ only */ | |
88 DWORD | |
89 qxeDoEnvironmentSubst (Extbyte * pszSrc, UINT cchSrc) | |
90 { | |
91 if (XEUNICODE_P) | |
92 return DoEnvironmentSubstW ((LPWSTR) pszSrc, cchSrc); | |
93 else | |
94 return DoEnvironmentSubstA ((LPSTR) pszSrc, cchSrc); | |
95 } | |
96 | |
97 #endif /* !defined (CYGWIN_HEADERS) */ | |
170 | 98 |
171 /* NOTE: NT 4.0+ only, former error in Cygwin prototype but no more (Cygwin 1.7, 1-30-10) */ | 99 /* NOTE: NT 4.0+ only, former error in Cygwin prototype but no more (Cygwin 1.7, 1-30-10) */ |
172 UINT | 100 UINT |
173 qxeExtractIconEx (const Extbyte * arg1, int arg2, HICON* arg3, HICON* arg4, UINT arg5) | 101 qxeExtractIconEx (const Extbyte * lpszFile, int nIconIndex, HICON * phiconLarge, HICON * phiconSmall, UINT nIcons) |
174 { | 102 { |
175 if (XEUNICODE_P) | 103 if (XEUNICODE_P) |
176 return ExtractIconExW ((LPCWSTR) arg1, arg2, arg3, arg4, arg5); | 104 return ExtractIconExW ((LPCWSTR) lpszFile, nIconIndex, phiconLarge, phiconSmall, nIcons); |
177 else | 105 else |
178 return ExtractIconExA ((LPCSTR) arg1, arg2, arg3, arg4, arg5); | 106 return ExtractIconExA ((LPCSTR) lpszFile, nIconIndex, phiconLarge, phiconSmall, nIcons); |
179 } | |
180 | |
181 HINSTANCE | |
182 qxeFindExecutable (const Extbyte * arg1, const Extbyte * arg2, Extbyte * arg3) | |
183 { | |
184 if (XEUNICODE_P) | |
185 return FindExecutableW ((LPCWSTR) arg1, (LPCWSTR) arg2, (LPWSTR) arg3); | |
186 else | |
187 return FindExecutableA ((LPCSTR) arg1, (LPCSTR) arg2, (LPSTR) arg3); | |
188 } | |
189 | |
190 /* Error if Shell_NotifyIcon used: split-sized NOTIFYICONDATA, NT 4.0+ only */ | |
191 | |
192 int | |
193 qxeShellAbout (HWND arg1, const Extbyte * arg2, const Extbyte * arg3, HICON arg4) | |
194 { | |
195 if (XEUNICODE_P) | |
196 return ShellAboutW (arg1, (LPCWSTR) arg2, (LPCWSTR) arg3, arg4); | |
197 else | |
198 return ShellAboutA (arg1, (LPCSTR) arg2, (LPCSTR) arg3, arg4); | |
199 } | |
200 | |
201 HINSTANCE | |
202 qxeShellExecute (HWND arg1, const Extbyte * arg2, const Extbyte * arg3, const Extbyte * arg4, const Extbyte * arg5, INT arg6) | |
203 { | |
204 if (XEUNICODE_P) | |
205 return ShellExecuteW (arg1, (LPCWSTR) arg2, (LPCWSTR) arg3, (LPCWSTR) arg4, (LPCWSTR) arg5, arg6); | |
206 else | |
207 return ShellExecuteA (arg1, (LPCSTR) arg2, (LPCSTR) arg3, (LPCSTR) arg4, (LPCSTR) arg5, arg6); | |
208 } | |
209 | |
210 /* NOTE: NT 4.0+ only */ | |
211 BOOL | |
212 qxeShellExecuteEx (LPSHELLEXECUTEINFOW arg1) | |
213 { | |
214 if (XEUNICODE_P) | |
215 return ShellExecuteExW (arg1); | |
216 else | |
217 return ShellExecuteExA ((LPSHELLEXECUTEINFOA) arg1); | |
218 } | 107 } |
219 | 108 |
220 /* NOTE: NT 4.0+ only */ | 109 /* NOTE: NT 4.0+ only */ |
221 int | 110 int |
222 qxeSHFileOperation (LPSHFILEOPSTRUCTW arg1) | 111 qxeSHFileOperation (LPSHFILEOPSTRUCTW lpFileOp) |
223 { | 112 { |
224 if (XEUNICODE_P) | 113 if (XEUNICODE_P) |
225 return SHFileOperationW (arg1); | 114 return SHFileOperationW (lpFileOp); |
226 else | 115 else |
227 return SHFileOperationA ((LPSHFILEOPSTRUCTA) arg1); | 116 return SHFileOperationA ((LPSHFILEOPSTRUCTA) lpFileOp); |
228 } | 117 } |
229 | 118 |
230 /* Skipping SHGetFileInfo because split-sized SHFILEINFO, NT 4.0+ only */ | 119 /* NOTE: NT 4.0+ only */ |
120 WINBOOL | |
121 qxeShellExecuteEx (SHELLEXECUTEINFOW * pExecInfo) | |
122 { | |
123 if (XEUNICODE_P) | |
124 return ShellExecuteExW (pExecInfo); | |
125 else | |
126 return ShellExecuteExA (pExecInfo); | |
127 } | |
128 | |
129 /* Error if SHCreateProcessAsUser used: HST: new? -- needs review */ | |
231 | 130 |
232 #if !defined (CYGWIN_HEADERS) | 131 #if !defined (CYGWIN_HEADERS) |
233 | 132 |
234 /* NOTE: NT 4.0+ only */ | 133 /* NOTE: NT 4.0+ only */ |
235 HRESULT | 134 HRESULT |
236 qxeSHQueryRecycleBin (const Extbyte * arg1, LPSHQUERYRBINFO arg2) | 135 qxeSHQueryRecycleBin (const Extbyte * pszRootPath, LPSHQUERYRBINFO pSHQueryRBInfo) |
237 { | 136 { |
238 if (XEUNICODE_P) | 137 if (XEUNICODE_P) |
239 return SHQueryRecycleBinW ((LPCWSTR) arg1, arg2); | 138 return SHQueryRecycleBinW ((LPCWSTR) pszRootPath, pSHQueryRBInfo); |
240 else | 139 else |
241 return SHQueryRecycleBinA ((LPCSTR) arg1, arg2); | 140 return SHQueryRecycleBinA ((LPCSTR) pszRootPath, pSHQueryRBInfo); |
242 } | 141 } |
243 | 142 |
244 #endif /* !defined (CYGWIN_HEADERS) */ | 143 #endif /* !defined (CYGWIN_HEADERS) */ |
245 | 144 |
246 #if !defined (CYGWIN_HEADERS) | 145 #if !defined (CYGWIN_HEADERS) |
247 | 146 |
248 /* NOTE: NT 4.0+ only */ | 147 /* NOTE: NT 4.0+ only */ |
249 HRESULT | 148 HRESULT |
250 qxeSHEmptyRecycleBin (HWND arg1, const Extbyte * arg2, DWORD arg3) | 149 qxeSHEmptyRecycleBin (HWND hwnd, const Extbyte * pszRootPath, DWORD dwFlags) |
251 { | 150 { |
252 if (XEUNICODE_P) | 151 if (XEUNICODE_P) |
253 return SHEmptyRecycleBinW (arg1, (LPCWSTR) arg2, arg3); | 152 return SHEmptyRecycleBinW (hwnd, (LPCWSTR) pszRootPath, dwFlags); |
254 else | 153 else |
255 return SHEmptyRecycleBinA (arg1, (LPCSTR) arg2, arg3); | 154 return SHEmptyRecycleBinA (hwnd, (LPCSTR) pszRootPath, dwFlags); |
256 } | 155 } |
257 | 156 |
258 #endif /* !defined (CYGWIN_HEADERS) */ | 157 #endif /* !defined (CYGWIN_HEADERS) */ |
259 | 158 |
159 /* Error if Shell_NotifyIcon used: split-sized NOTIFYICONDATA, NT 4.0+ only */ | |
160 | |
161 /* Skipping SHGetFileInfo because split-sized SHFILEINFO, NT 4.0+ only */ | |
162 | |
163 /* Error if SHGetDiskFreeSpaceEx used: HST: new? -- needs review */ | |
164 | |
165 #if !defined (CYGWIN_HEADERS) | |
166 | |
167 /* NOTE: NT 4.0+ only */ | |
168 WINBOOL | |
169 qxeSHGetNewLinkInfo (const Extbyte * pszLinkTo, const Extbyte * pszDir, Extbyte * pszName, WINBOOL * pfMustCopy, UINT uFlags) | |
170 { | |
171 if (XEUNICODE_P) | |
172 return SHGetNewLinkInfoW ((LPCWSTR) pszLinkTo, (LPCWSTR) pszDir, (LPWSTR) pszName, pfMustCopy, uFlags); | |
173 else | |
174 return SHGetNewLinkInfoA ((LPCSTR) pszLinkTo, (LPCSTR) pszDir, (LPSTR) pszName, pfMustCopy, uFlags); | |
175 } | |
176 | |
177 #endif /* !defined (CYGWIN_HEADERS) */ | |
178 | |
179 #if !defined (CYGWIN_HEADERS) | |
180 | |
181 /* NOTE: NT 4.0+ only */ | |
182 WINBOOL | |
183 qxeSHInvokePrinterCommand (HWND hwnd, UINT uAction, const Extbyte * lpBuf1, const Extbyte * lpBuf2, WINBOOL fModal) | |
184 { | |
185 if (XEUNICODE_P) | |
186 return SHInvokePrinterCommandW (hwnd, uAction, (LPCWSTR) lpBuf1, (LPCWSTR) lpBuf2, fModal); | |
187 else | |
188 return SHInvokePrinterCommandA (hwnd, uAction, (LPCSTR) lpBuf1, (LPCSTR) lpBuf2, fModal); | |
189 } | |
190 | |
191 #endif /* !defined (CYGWIN_HEADERS) */ | |
192 | |
193 /* Error if IsLFNDrive used: HST: new? -- needs review */ | |
194 | |
195 /* Error if SHEnumerateUnreadMailAccounts used: HST: new? -- needs review */ | |
196 | |
197 /* Error if SHGetUnreadMailCount used: HST: new? -- needs review */ | |
198 | |
199 /* Error if SHSetUnreadMailCount used: HST: new? -- needs review */ | |
200 | |
260 | 201 |
261 /*----------------------------------------------------------------------*/ | 202 /*----------------------------------------------------------------------*/ |
262 /* Processing file WINSPOOL.H */ | 203 /* Processing file WINSPOOL.H */ |
263 /*----------------------------------------------------------------------*/ | 204 /*----------------------------------------------------------------------*/ |
264 | 205 |
265 #if defined (HAVE_MS_WINDOWS) | 206 #if defined (HAVE_MS_WINDOWS) |
266 | 207 |
208 /* NOTE: #### problems with DEVMODE pointer in PRINTER_INFO_2 */ | |
209 WINBOOL | |
210 qxeEnumPrinters (DWORD Flags, Extbyte * Name, DWORD Level, LPBYTE pPrinterEnum, DWORD cbBuf, LPDWORD pcbNeeded, LPDWORD pcReturned) | |
211 { | |
212 if (XEUNICODE_P) | |
213 return EnumPrintersW (Flags, (LPWSTR) Name, Level, pPrinterEnum, cbBuf, pcbNeeded, pcReturned); | |
214 else | |
215 return EnumPrintersA (Flags, (LPSTR) Name, Level, pPrinterEnum, cbBuf, pcbNeeded, pcReturned); | |
216 } | |
217 | |
218 #endif /* defined (HAVE_MS_WINDOWS) */ | |
219 | |
220 #if defined (HAVE_MS_WINDOWS) | |
221 | |
222 /* Skipping OpenPrinter because split-sized DEVMODE pointer in split PRINTER_DEFAULTS */ | |
223 | |
224 #endif /* defined (HAVE_MS_WINDOWS) */ | |
225 | |
226 #if defined (HAVE_MS_WINDOWS) | |
227 | |
228 /* Error if ResetPrinter used: split-sized DEVMODE pointer in split PRINTER_DEFAULTS */ | |
229 | |
230 #endif /* defined (HAVE_MS_WINDOWS) */ | |
231 | |
232 #if defined (HAVE_MS_WINDOWS) | |
233 | |
234 /* Error if SetJob used: split-sized DEVMODE pointer in split JOB_INFO_2 */ | |
235 | |
236 #endif /* defined (HAVE_MS_WINDOWS) */ | |
237 | |
238 #if defined (HAVE_MS_WINDOWS) | |
239 | |
240 /* Error if GetJob used: split-sized DEVMODE pointer in split JOB_INFO_2 */ | |
241 | |
242 #endif /* defined (HAVE_MS_WINDOWS) */ | |
243 | |
244 #if defined (HAVE_MS_WINDOWS) | |
245 | |
246 /* Error if EnumJobs used: split-sized DEVMODE pointer in split JOB_INFO_2 */ | |
247 | |
248 #endif /* defined (HAVE_MS_WINDOWS) */ | |
249 | |
250 #if defined (HAVE_MS_WINDOWS) | |
251 | |
252 /* Error if AddPrinter used: split-sized DEVMODE pointer in split PRINTER_INFO_2 */ | |
253 | |
254 #endif /* defined (HAVE_MS_WINDOWS) */ | |
255 | |
256 #if defined (HAVE_MS_WINDOWS) | |
257 | |
258 /* Error if SetPrinter used: split-sized DEVMODE pointer in split PRINTER_INFO_2 */ | |
259 | |
260 #endif /* defined (HAVE_MS_WINDOWS) */ | |
261 | |
262 #if defined (HAVE_MS_WINDOWS) | |
263 | |
264 /* Error if GetPrinter used: split-sized DEVMODE pointer in split PRINTER_INFO_2 */ | |
265 | |
266 #endif /* defined (HAVE_MS_WINDOWS) */ | |
267 | |
268 #if defined (HAVE_MS_WINDOWS) | |
269 | |
270 /* Error if AddPrinterDriver used: not used, complicated interface with split structures */ | |
271 | |
272 #endif /* defined (HAVE_MS_WINDOWS) */ | |
273 | |
274 #if defined (HAVE_MS_WINDOWS) | |
275 | |
276 /* Error if AddPrinterDriverEx used: not used, complicated interface with split structures */ | |
277 | |
278 #endif /* defined (HAVE_MS_WINDOWS) */ | |
279 | |
280 #if defined (HAVE_MS_WINDOWS) | |
281 | |
282 /* Error if EnumPrinterDrivers used: not used, complicated interface with split structures */ | |
283 | |
284 #endif /* defined (HAVE_MS_WINDOWS) */ | |
285 | |
286 #if defined (HAVE_MS_WINDOWS) | |
287 | |
288 /* Error if GetPrinterDriver used: not used, complicated interface with split structures */ | |
289 | |
290 #endif /* defined (HAVE_MS_WINDOWS) */ | |
291 | |
292 #if defined (HAVE_MS_WINDOWS) | |
293 | |
294 /* Error if GetPrinterDriverDirectory used: not used, complicated interface with split structures */ | |
295 | |
296 #endif /* defined (HAVE_MS_WINDOWS) */ | |
297 | |
298 #if defined (HAVE_MS_WINDOWS) | |
299 | |
300 /* Error if DeletePrinterDriver used: not used, complicated interface with split structures */ | |
301 | |
302 #endif /* defined (HAVE_MS_WINDOWS) */ | |
303 | |
304 #if defined (HAVE_MS_WINDOWS) | |
305 | |
306 /* Error if DeletePrinterDriverEx used: not used, complicated interface with split structures */ | |
307 | |
308 #endif /* defined (HAVE_MS_WINDOWS) */ | |
309 | |
310 #if defined (HAVE_MS_WINDOWS) | |
311 | |
312 /* Error if AddPrintProcessor used: not used, complicated interface with split structures */ | |
313 | |
314 #endif /* defined (HAVE_MS_WINDOWS) */ | |
315 | |
316 #if defined (HAVE_MS_WINDOWS) | |
317 | |
318 /* Error if EnumPrintProcessors used: not used, complicated interface with split structures */ | |
319 | |
320 #endif /* defined (HAVE_MS_WINDOWS) */ | |
321 | |
322 #if defined (HAVE_MS_WINDOWS) | |
323 | |
324 /* Error if GetPrintProcessorDirectory used: not used, complicated interface with split structures */ | |
325 | |
326 #endif /* defined (HAVE_MS_WINDOWS) */ | |
327 | |
328 #if defined (HAVE_MS_WINDOWS) | |
329 | |
330 /* Error if EnumPrintProcessorDatatypes used: not used, complicated interface with split structures */ | |
331 | |
332 #endif /* defined (HAVE_MS_WINDOWS) */ | |
333 | |
334 #if defined (HAVE_MS_WINDOWS) | |
335 | |
336 /* Error if DeletePrintProcessor used: not used, complicated interface with split structures */ | |
337 | |
338 #endif /* defined (HAVE_MS_WINDOWS) */ | |
339 | |
340 #if defined (HAVE_MS_WINDOWS) | |
341 | |
342 /* Error if StartDocPrinter used: not used, complicated interface with split structures */ | |
343 | |
344 #endif /* defined (HAVE_MS_WINDOWS) */ | |
345 | |
346 #if defined (HAVE_MS_WINDOWS) | |
347 | |
348 /* Error if AddJob used: not used, complicated interface with split structures */ | |
349 | |
350 #endif /* defined (HAVE_MS_WINDOWS) */ | |
351 | |
352 #if defined (HAVE_MS_WINDOWS) | |
353 | |
354 /* Skipping DocumentProperties because split-sized DEVMODE, error in Cygwin prototype */ | |
355 | |
356 #endif /* defined (HAVE_MS_WINDOWS) */ | |
357 | |
358 #if defined (HAVE_MS_WINDOWS) | |
359 | |
360 /* Error if AdvancedDocumentProperties used: not used, complicated interface with split structures */ | |
361 | |
362 #endif /* defined (HAVE_MS_WINDOWS) */ | |
363 | |
364 #if defined (HAVE_MS_WINDOWS) | |
365 | |
366 /* Error if GetPrinterData used: not used, complicated interface with split structures */ | |
367 | |
368 #endif /* defined (HAVE_MS_WINDOWS) */ | |
369 | |
370 #if defined (HAVE_MS_WINDOWS) | |
371 | |
372 /* Error if GetPrinterDataEx used: not used, complicated interface with split structures */ | |
373 | |
374 #endif /* defined (HAVE_MS_WINDOWS) */ | |
375 | |
376 #if defined (HAVE_MS_WINDOWS) | |
377 | |
378 /* Error if EnumPrinterData used: not used, complicated interface with split structures */ | |
379 | |
380 #endif /* defined (HAVE_MS_WINDOWS) */ | |
381 | |
382 #if defined (HAVE_MS_WINDOWS) | |
383 | |
384 /* Error if EnumPrinterDataEx used: not used, complicated interface with split structures */ | |
385 | |
386 #endif /* defined (HAVE_MS_WINDOWS) */ | |
387 | |
388 #if defined (HAVE_MS_WINDOWS) | |
389 | |
390 /* Error if EnumPrinterKey used: not used, complicated interface with split structures */ | |
391 | |
392 #endif /* defined (HAVE_MS_WINDOWS) */ | |
393 | |
394 #if defined (HAVE_MS_WINDOWS) | |
395 | |
396 /* Error if SetPrinterData used: not used, complicated interface with split structures */ | |
397 | |
398 #endif /* defined (HAVE_MS_WINDOWS) */ | |
399 | |
400 #if defined (HAVE_MS_WINDOWS) | |
401 | |
402 /* Error if SetPrinterDataEx used: not used, complicated interface with split structures */ | |
403 | |
404 #endif /* defined (HAVE_MS_WINDOWS) */ | |
405 | |
406 #if defined (HAVE_MS_WINDOWS) | |
407 | |
408 /* Error if DeletePrinterData used: not used, complicated interface with split structures */ | |
409 | |
410 #endif /* defined (HAVE_MS_WINDOWS) */ | |
411 | |
412 #if defined (HAVE_MS_WINDOWS) | |
413 | |
414 /* Error if DeletePrinterDataEx used: not used, complicated interface with split structures */ | |
415 | |
416 #endif /* defined (HAVE_MS_WINDOWS) */ | |
417 | |
418 #if defined (HAVE_MS_WINDOWS) | |
419 | |
420 /* Error if DeletePrinterKey used: not used, complicated interface with split structures */ | |
421 | |
422 #endif /* defined (HAVE_MS_WINDOWS) */ | |
423 | |
424 #if defined (HAVE_MS_WINDOWS) | |
425 | |
426 /* Error if PrinterMessageBox used: not used, complicated interface with split structures */ | |
427 | |
428 #endif /* defined (HAVE_MS_WINDOWS) */ | |
429 | |
430 #if defined (HAVE_MS_WINDOWS) | |
431 | |
267 /* Error if AddForm used: not used, complicated interface with split structures */ | 432 /* Error if AddForm used: not used, complicated interface with split structures */ |
268 | 433 |
269 #endif /* defined (HAVE_MS_WINDOWS) */ | 434 #endif /* defined (HAVE_MS_WINDOWS) */ |
270 | 435 |
271 #if defined (HAVE_MS_WINDOWS) | 436 #if defined (HAVE_MS_WINDOWS) |
272 | 437 |
273 /* Error if AddJob used: not used, complicated interface with split structures */ | 438 /* Error if DeleteForm used: not used, complicated interface with split structures */ |
439 | |
440 #endif /* defined (HAVE_MS_WINDOWS) */ | |
441 | |
442 #if defined (HAVE_MS_WINDOWS) | |
443 | |
444 /* Error if GetForm used: not used, complicated interface with split structures */ | |
445 | |
446 #endif /* defined (HAVE_MS_WINDOWS) */ | |
447 | |
448 #if defined (HAVE_MS_WINDOWS) | |
449 | |
450 /* Error if SetForm used: not used, complicated interface with split structures */ | |
451 | |
452 #endif /* defined (HAVE_MS_WINDOWS) */ | |
453 | |
454 #if defined (HAVE_MS_WINDOWS) | |
455 | |
456 /* Error if EnumForms used: not used, complicated interface with split structures */ | |
457 | |
458 #endif /* defined (HAVE_MS_WINDOWS) */ | |
459 | |
460 #if defined (HAVE_MS_WINDOWS) | |
461 | |
462 /* Error if EnumMonitors used: not used, complicated interface with split structures */ | |
274 | 463 |
275 #endif /* defined (HAVE_MS_WINDOWS) */ | 464 #endif /* defined (HAVE_MS_WINDOWS) */ |
276 | 465 |
277 #if defined (HAVE_MS_WINDOWS) | 466 #if defined (HAVE_MS_WINDOWS) |
278 | 467 |
280 | 469 |
281 #endif /* defined (HAVE_MS_WINDOWS) */ | 470 #endif /* defined (HAVE_MS_WINDOWS) */ |
282 | 471 |
283 #if defined (HAVE_MS_WINDOWS) | 472 #if defined (HAVE_MS_WINDOWS) |
284 | 473 |
474 /* Error if DeleteMonitor used: not used, complicated interface with split structures */ | |
475 | |
476 #endif /* defined (HAVE_MS_WINDOWS) */ | |
477 | |
478 #if defined (HAVE_MS_WINDOWS) | |
479 | |
480 /* Error if EnumPorts used: not used, complicated interface with split structures */ | |
481 | |
482 #endif /* defined (HAVE_MS_WINDOWS) */ | |
483 | |
484 #if defined (HAVE_MS_WINDOWS) | |
485 | |
285 /* Error if AddPort used: not used, complicated interface with split structures */ | 486 /* Error if AddPort used: not used, complicated interface with split structures */ |
286 | 487 |
287 #endif /* defined (HAVE_MS_WINDOWS) */ | 488 #endif /* defined (HAVE_MS_WINDOWS) */ |
288 | 489 |
289 #if defined (HAVE_MS_WINDOWS) | 490 #if defined (HAVE_MS_WINDOWS) |
290 | 491 |
291 /* Error if AddPrinter used: split-sized DEVMODE pointer in split PRINTER_INFO_2 */ | 492 /* Error if ConfigurePort used: not used, complicated interface with split structures */ |
493 | |
494 #endif /* defined (HAVE_MS_WINDOWS) */ | |
495 | |
496 #if defined (HAVE_MS_WINDOWS) | |
497 | |
498 /* Error if DeletePort used: not used, complicated interface with split structures */ | |
499 | |
500 #endif /* defined (HAVE_MS_WINDOWS) */ | |
501 | |
502 #if defined (HAVE_MS_WINDOWS) | |
503 | |
504 /* Error if XcvData used: not used, complicated interface with split structures */ | |
505 | |
506 #endif /* defined (HAVE_MS_WINDOWS) */ | |
507 | |
508 #if defined (HAVE_MS_WINDOWS) | |
509 | |
510 /* Error if GetDefaultPrinter used: Function needs review to determine how to handle it */ | |
511 | |
512 #endif /* defined (HAVE_MS_WINDOWS) */ | |
513 | |
514 #if defined (HAVE_MS_WINDOWS) | |
515 | |
516 /* Error if SetDefaultPrinter used: HST: new? -- needs review */ | |
517 | |
518 #endif /* defined (HAVE_MS_WINDOWS) */ | |
519 | |
520 #if defined (HAVE_MS_WINDOWS) | |
521 | |
522 /* Error if SetPort used: not used, complicated interface with split structures */ | |
292 | 523 |
293 #endif /* defined (HAVE_MS_WINDOWS) */ | 524 #endif /* defined (HAVE_MS_WINDOWS) */ |
294 | 525 |
295 #if defined (HAVE_MS_WINDOWS) | 526 #if defined (HAVE_MS_WINDOWS) |
296 | 527 |
298 | 529 |
299 #endif /* defined (HAVE_MS_WINDOWS) */ | 530 #endif /* defined (HAVE_MS_WINDOWS) */ |
300 | 531 |
301 #if defined (HAVE_MS_WINDOWS) | 532 #if defined (HAVE_MS_WINDOWS) |
302 | 533 |
303 /* Error if AddPrinterDriver used: not used, complicated interface with split structures */ | 534 /* Error if DeletePrinterConnection used: not used, complicated interface with split structures */ |
304 | |
305 #endif /* defined (HAVE_MS_WINDOWS) */ | |
306 | |
307 #if defined (HAVE_MS_WINDOWS) | |
308 | |
309 /* Error if AddPrintProcessor used: not used, complicated interface with split structures */ | |
310 | 535 |
311 #endif /* defined (HAVE_MS_WINDOWS) */ | 536 #endif /* defined (HAVE_MS_WINDOWS) */ |
312 | 537 |
313 #if defined (HAVE_MS_WINDOWS) | 538 #if defined (HAVE_MS_WINDOWS) |
314 | 539 |
316 | 541 |
317 #endif /* defined (HAVE_MS_WINDOWS) */ | 542 #endif /* defined (HAVE_MS_WINDOWS) */ |
318 | 543 |
319 #if defined (HAVE_MS_WINDOWS) | 544 #if defined (HAVE_MS_WINDOWS) |
320 | 545 |
321 /* Error if AdvancedDocumentProperties used: not used, complicated interface with split structures */ | |
322 | |
323 #endif /* defined (HAVE_MS_WINDOWS) */ | |
324 | |
325 #if defined (HAVE_MS_WINDOWS) | |
326 | |
327 /* Error if ConfigurePort used: not used, complicated interface with split structures */ | |
328 | |
329 #endif /* defined (HAVE_MS_WINDOWS) */ | |
330 | |
331 #if defined (HAVE_MS_WINDOWS) | |
332 | |
333 /* Error if DeleteForm used: not used, complicated interface with split structures */ | |
334 | |
335 #endif /* defined (HAVE_MS_WINDOWS) */ | |
336 | |
337 #if defined (HAVE_MS_WINDOWS) | |
338 | |
339 /* Error if DeleteMonitor used: not used, complicated interface with split structures */ | |
340 | |
341 #endif /* defined (HAVE_MS_WINDOWS) */ | |
342 | |
343 #if defined (HAVE_MS_WINDOWS) | |
344 | |
345 /* Error if DeletePort used: not used, complicated interface with split structures */ | |
346 | |
347 #endif /* defined (HAVE_MS_WINDOWS) */ | |
348 | |
349 #if defined (HAVE_MS_WINDOWS) | |
350 | |
351 /* Error if DeletePrinterConnection used: not used, complicated interface with split structures */ | |
352 | |
353 #endif /* defined (HAVE_MS_WINDOWS) */ | |
354 | |
355 #if defined (HAVE_MS_WINDOWS) | |
356 | |
357 /* Error if DeletePrinterData used: not used, complicated interface with split structures */ | |
358 | |
359 #endif /* defined (HAVE_MS_WINDOWS) */ | |
360 | |
361 #if defined (HAVE_MS_WINDOWS) | |
362 | |
363 /* Error if DeletePrinterDriver used: not used, complicated interface with split structures */ | |
364 | |
365 #endif /* defined (HAVE_MS_WINDOWS) */ | |
366 | |
367 #if defined (HAVE_MS_WINDOWS) | |
368 | |
369 /* Error if DeletePrintProcessor used: not used, complicated interface with split structures */ | |
370 | |
371 #endif /* defined (HAVE_MS_WINDOWS) */ | |
372 | |
373 #if defined (HAVE_MS_WINDOWS) | |
374 | |
375 /* Error if DeletePrintProvidor used: not used, complicated interface with split structures */ | 546 /* Error if DeletePrintProvidor used: not used, complicated interface with split structures */ |
376 | 547 |
377 #endif /* defined (HAVE_MS_WINDOWS) */ | 548 #endif /* defined (HAVE_MS_WINDOWS) */ |
378 | 549 |
379 #if defined (HAVE_MS_WINDOWS) | 550 #if defined (HAVE_MS_WINDOWS) |
380 | 551 |
381 /* Skipping DocumentProperties because split-sized DEVMODE, error in Cygwin prototype */ | 552 /* Error if AddPrinterConnection2 used: HST: new? -- needs review */ |
382 | 553 |
383 #endif /* defined (HAVE_MS_WINDOWS) */ | 554 #endif /* defined (HAVE_MS_WINDOWS) */ |
384 | 555 |
385 #if defined (HAVE_MS_WINDOWS) | 556 #if defined (HAVE_MS_WINDOWS) |
386 | 557 |
387 /* Error if EnumForms used: not used, complicated interface with split structures */ | 558 /* Error if DeletePrinterDriverPackage used: HST: new? -- needs review */ |
388 | 559 |
389 #endif /* defined (HAVE_MS_WINDOWS) */ | 560 #endif /* defined (HAVE_MS_WINDOWS) */ |
390 | 561 |
391 #if defined (HAVE_MS_WINDOWS) | 562 #if defined (HAVE_MS_WINDOWS) |
392 | 563 |
393 /* Error if EnumJobs used: split-sized DEVMODE pointer in split JOB_INFO_2 */ | 564 /* Error if DocumentEvent used: HST: new? -- needs review */ |
394 | 565 |
395 #endif /* defined (HAVE_MS_WINDOWS) */ | 566 #endif /* defined (HAVE_MS_WINDOWS) */ |
396 | 567 |
397 #if defined (HAVE_MS_WINDOWS) | 568 #if defined (HAVE_MS_WINDOWS) |
398 | 569 |
399 /* Error if EnumMonitors used: not used, complicated interface with split structures */ | 570 /* Error if GetCorePrinterDrivers used: HST: new? -- needs review */ |
400 | 571 |
401 #endif /* defined (HAVE_MS_WINDOWS) */ | 572 #endif /* defined (HAVE_MS_WINDOWS) */ |
402 | 573 |
403 #if defined (HAVE_MS_WINDOWS) | 574 #if defined (HAVE_MS_WINDOWS) |
404 | 575 |
405 /* Error if EnumPorts used: not used, complicated interface with split structures */ | 576 /* Error if GetPrinterDriver2 used: HST: new? -- needs review */ |
406 | 577 |
407 #endif /* defined (HAVE_MS_WINDOWS) */ | 578 #endif /* defined (HAVE_MS_WINDOWS) */ |
408 | 579 |
409 #if defined (HAVE_MS_WINDOWS) | 580 #if defined (HAVE_MS_WINDOWS) |
410 | 581 |
411 /* Error if EnumPrinterData used: not used, complicated interface with split structures */ | 582 /* Error if GetPrinterDriverPackagePath used: HST: new? -- needs review */ |
412 | 583 |
413 #endif /* defined (HAVE_MS_WINDOWS) */ | 584 #endif /* defined (HAVE_MS_WINDOWS) */ |
414 | 585 |
415 #if defined (HAVE_MS_WINDOWS) | 586 #if defined (HAVE_MS_WINDOWS) |
416 | 587 |
417 /* Error if EnumPrinterDrivers used: not used, complicated interface with split structures */ | 588 /* Error if GetSpoolFileHandle used: HST: new? -- needs review */ |
418 | 589 |
419 #endif /* defined (HAVE_MS_WINDOWS) */ | 590 #endif /* defined (HAVE_MS_WINDOWS) */ |
420 | 591 |
421 #if defined (HAVE_MS_WINDOWS) | 592 #if defined (HAVE_MS_WINDOWS) |
422 | 593 |
423 /* NOTE: #### problems with DEVMODE pointer in PRINTER_INFO_2 */ | 594 /* Error if OpenPrinter2 used: HST: new? -- needs review */ |
424 BOOL | 595 |
425 qxeEnumPrinters (DWORD arg1, Extbyte * arg2, DWORD arg3, PBYTE arg4, DWORD arg5, PDWORD arg6, PDWORD arg7) | 596 #endif /* defined (HAVE_MS_WINDOWS) */ |
426 { | 597 |
427 if (XEUNICODE_P) | 598 #if defined (HAVE_MS_WINDOWS) |
428 return EnumPrintersW (arg1, (LPWSTR) arg2, arg3, arg4, arg5, arg6, arg7); | 599 |
429 else | 600 /* Error if UploadPrinterDriverPackage used: HST: new? -- needs review */ |
430 return EnumPrintersA (arg1, (LPSTR) arg2, arg3, arg4, arg5, arg6, arg7); | |
431 } | |
432 | |
433 #endif /* defined (HAVE_MS_WINDOWS) */ | |
434 | |
435 #if defined (HAVE_MS_WINDOWS) | |
436 | |
437 /* Error if EnumPrintProcessorDatatypes used: not used, complicated interface with split structures */ | |
438 | |
439 #endif /* defined (HAVE_MS_WINDOWS) */ | |
440 | |
441 #if defined (HAVE_MS_WINDOWS) | |
442 | |
443 /* Error if EnumPrintProcessors used: not used, complicated interface with split structures */ | |
444 | |
445 #endif /* defined (HAVE_MS_WINDOWS) */ | |
446 | |
447 #if defined (HAVE_MS_WINDOWS) | |
448 | |
449 /* Error if GetDefaultPrinter used: Function needs review to determine how to handle it */ | |
450 | |
451 #endif /* defined (HAVE_MS_WINDOWS) */ | |
452 | |
453 #if defined (HAVE_MS_WINDOWS) | |
454 | |
455 /* Error if GetForm used: not used, complicated interface with split structures */ | |
456 | |
457 #endif /* defined (HAVE_MS_WINDOWS) */ | |
458 | |
459 #if defined (HAVE_MS_WINDOWS) | |
460 | |
461 /* Error if GetJob used: split-sized DEVMODE pointer in split JOB_INFO_2 */ | |
462 | |
463 #endif /* defined (HAVE_MS_WINDOWS) */ | |
464 | |
465 #if defined (HAVE_MS_WINDOWS) | |
466 | |
467 /* Error if GetPrinter used: split-sized DEVMODE pointer in split PRINTER_INFO_2 */ | |
468 | |
469 #endif /* defined (HAVE_MS_WINDOWS) */ | |
470 | |
471 #if defined (HAVE_MS_WINDOWS) | |
472 | |
473 /* Error if GetPrinterData used: not used, complicated interface with split structures */ | |
474 | |
475 #endif /* defined (HAVE_MS_WINDOWS) */ | |
476 | |
477 #if defined (HAVE_MS_WINDOWS) | |
478 | |
479 /* Error if GetPrinterDriver used: not used, complicated interface with split structures */ | |
480 | |
481 #endif /* defined (HAVE_MS_WINDOWS) */ | |
482 | |
483 #if defined (HAVE_MS_WINDOWS) | |
484 | |
485 /* Error if GetPrinterDriverDirectory used: not used, complicated interface with split structures */ | |
486 | |
487 #endif /* defined (HAVE_MS_WINDOWS) */ | |
488 | |
489 #if defined (HAVE_MS_WINDOWS) | |
490 | |
491 /* Error if GetPrintProcessorDirectory used: not used, complicated interface with split structures */ | |
492 | |
493 #endif /* defined (HAVE_MS_WINDOWS) */ | |
494 | |
495 #if defined (HAVE_MS_WINDOWS) | |
496 | |
497 /* Skipping OpenPrinter because split-sized DEVMODE pointer in split PRINTER_DEFAULTS */ | |
498 | |
499 #endif /* defined (HAVE_MS_WINDOWS) */ | |
500 | |
501 #if defined (HAVE_MS_WINDOWS) | |
502 | |
503 /* Error if PrinterMessageBox used: not used, complicated interface with split structures */ | |
504 | |
505 #endif /* defined (HAVE_MS_WINDOWS) */ | |
506 | |
507 #if defined (HAVE_MS_WINDOWS) | |
508 | |
509 /* Error if ResetPrinter used: split-sized DEVMODE pointer in split PRINTER_DEFAULTS */ | |
510 | |
511 #endif /* defined (HAVE_MS_WINDOWS) */ | |
512 | |
513 #if defined (HAVE_MS_WINDOWS) | |
514 | |
515 /* Error if SetForm used: not used, complicated interface with split structures */ | |
516 | |
517 #endif /* defined (HAVE_MS_WINDOWS) */ | |
518 | |
519 #if defined (HAVE_MS_WINDOWS) | |
520 | |
521 /* Error if SetJob used: split-sized DEVMODE pointer in split JOB_INFO_2 */ | |
522 | |
523 #endif /* defined (HAVE_MS_WINDOWS) */ | |
524 | |
525 #if defined (HAVE_MS_WINDOWS) | |
526 | |
527 /* Error if SetPrinter used: split-sized DEVMODE pointer in split PRINTER_INFO_2 */ | |
528 | |
529 #endif /* defined (HAVE_MS_WINDOWS) */ | |
530 | |
531 #if defined (HAVE_MS_WINDOWS) | |
532 | |
533 /* Error if SetPrinterData used: not used, complicated interface with split structures */ | |
534 | |
535 #endif /* defined (HAVE_MS_WINDOWS) */ | |
536 | |
537 #if defined (HAVE_MS_WINDOWS) | |
538 | |
539 /* Error if StartDocPrinter used: not used, complicated interface with split structures */ | |
540 | |
541 #endif /* defined (HAVE_MS_WINDOWS) */ | |
542 | |
543 | |
544 /*----------------------------------------------------------------------*/ | |
545 /* Processing file WINNETWK.H */ | |
546 /*----------------------------------------------------------------------*/ | |
547 | |
548 #if defined (HAVE_MS_WINDOWS) | |
549 | |
550 DWORD | |
551 qxeWNetAddConnection (const Extbyte * arg1, const Extbyte * arg2, const Extbyte * arg3) | |
552 { | |
553 if (XEUNICODE_P) | |
554 return WNetAddConnectionW ((LPCWSTR) arg1, (LPCWSTR) arg2, (LPCWSTR) arg3); | |
555 else | |
556 return WNetAddConnectionA ((LPCSTR) arg1, (LPCSTR) arg2, (LPCSTR) arg3); | |
557 } | |
558 | |
559 #endif /* defined (HAVE_MS_WINDOWS) */ | |
560 | |
561 #if defined (HAVE_MS_WINDOWS) | |
562 | |
563 DWORD | |
564 qxeWNetAddConnection2 (LPNETRESOURCEW arg1, const Extbyte * arg2, const Extbyte * arg3, DWORD arg4) | |
565 { | |
566 if (XEUNICODE_P) | |
567 return WNetAddConnection2W (arg1, (LPCWSTR) arg2, (LPCWSTR) arg3, arg4); | |
568 else | |
569 return WNetAddConnection2A ((LPNETRESOURCEA) arg1, (LPCSTR) arg2, (LPCSTR) arg3, arg4); | |
570 } | |
571 | |
572 #endif /* defined (HAVE_MS_WINDOWS) */ | |
573 | |
574 #if defined (HAVE_MS_WINDOWS) | |
575 | |
576 DWORD | |
577 qxeWNetAddConnection3 (HWND arg1, LPNETRESOURCEW arg2, const Extbyte * arg3, const Extbyte * arg4, DWORD arg5) | |
578 { | |
579 if (XEUNICODE_P) | |
580 return WNetAddConnection3W (arg1, arg2, (LPCWSTR) arg3, (LPCWSTR) arg4, arg5); | |
581 else | |
582 return WNetAddConnection3A (arg1, (LPNETRESOURCEA) arg2, (LPCSTR) arg3, (LPCSTR) arg4, arg5); | |
583 } | |
584 | |
585 #endif /* defined (HAVE_MS_WINDOWS) */ | |
586 | |
587 #if defined (HAVE_MS_WINDOWS) | |
588 | |
589 DWORD | |
590 qxeWNetCancelConnection (const Extbyte * arg1, BOOL arg2) | |
591 { | |
592 if (XEUNICODE_P) | |
593 return WNetCancelConnectionW ((LPCWSTR) arg1, arg2); | |
594 else | |
595 return WNetCancelConnectionA ((LPCSTR) arg1, arg2); | |
596 } | |
597 | |
598 #endif /* defined (HAVE_MS_WINDOWS) */ | |
599 | |
600 #if defined (HAVE_MS_WINDOWS) | |
601 | |
602 DWORD | |
603 qxeWNetCancelConnection2 (const Extbyte * arg1, DWORD arg2, BOOL arg3) | |
604 { | |
605 if (XEUNICODE_P) | |
606 return WNetCancelConnection2W ((LPCWSTR) arg1, arg2, arg3); | |
607 else | |
608 return WNetCancelConnection2A ((LPCSTR) arg1, arg2, arg3); | |
609 } | |
610 | |
611 #endif /* defined (HAVE_MS_WINDOWS) */ | |
612 | |
613 #if defined (HAVE_MS_WINDOWS) | |
614 | |
615 DWORD | |
616 qxeWNetGetConnection (const Extbyte * arg1, Extbyte * arg2, PDWORD arg3) | |
617 { | |
618 if (XEUNICODE_P) | |
619 return WNetGetConnectionW ((LPCWSTR) arg1, (LPWSTR) arg2, arg3); | |
620 else | |
621 return WNetGetConnectionA ((LPCSTR) arg1, (LPSTR) arg2, arg3); | |
622 } | |
623 | |
624 #endif /* defined (HAVE_MS_WINDOWS) */ | |
625 | |
626 #if defined (HAVE_MS_WINDOWS) | |
627 | |
628 DWORD | |
629 qxeWNetUseConnection (HWND arg1, LPNETRESOURCEW arg2, const Extbyte * arg3, const Extbyte * arg4, DWORD arg5, Extbyte * arg6, PDWORD arg7, PDWORD arg8) | |
630 { | |
631 if (XEUNICODE_P) | |
632 return WNetUseConnectionW (arg1, arg2, (LPCWSTR) arg3, (LPCWSTR) arg4, arg5, (LPWSTR) arg6, arg7, arg8); | |
633 else | |
634 return WNetUseConnectionA (arg1, (LPNETRESOURCEA) arg2, (LPCSTR) arg3, (LPCSTR) arg4, arg5, (LPSTR) arg6, arg7, arg8); | |
635 } | |
636 | |
637 #endif /* defined (HAVE_MS_WINDOWS) */ | |
638 | |
639 #if defined (HAVE_MS_WINDOWS) | |
640 | |
641 /* Error if WNetSetConnection used: Function needs review to determine how to handle it */ | |
642 | |
643 #endif /* defined (HAVE_MS_WINDOWS) */ | |
644 | |
645 #if defined (HAVE_MS_WINDOWS) | |
646 | |
647 /* NOTE: contains split-simple LPNETRESOURCE */ | |
648 DWORD | |
649 qxeWNetConnectionDialog1 (LPCONNECTDLGSTRUCTW arg1) | |
650 { | |
651 if (XEUNICODE_P) | |
652 return WNetConnectionDialog1W (arg1); | |
653 else | |
654 return WNetConnectionDialog1A ((LPCONNECTDLGSTRUCTA) arg1); | |
655 } | |
656 | |
657 #endif /* defined (HAVE_MS_WINDOWS) */ | |
658 | |
659 #if defined (HAVE_MS_WINDOWS) | |
660 | |
661 DWORD | |
662 qxeWNetDisconnectDialog1 (LPDISCDLGSTRUCTW arg1) | |
663 { | |
664 if (XEUNICODE_P) | |
665 return WNetDisconnectDialog1W (arg1); | |
666 else | |
667 return WNetDisconnectDialog1A ((LPDISCDLGSTRUCTA) arg1); | |
668 } | |
669 | |
670 #endif /* defined (HAVE_MS_WINDOWS) */ | |
671 | |
672 #if defined (HAVE_MS_WINDOWS) | |
673 | |
674 DWORD | |
675 qxeWNetOpenEnum (DWORD arg1, DWORD arg2, DWORD arg3, LPNETRESOURCEW arg4, LPHANDLE arg5) | |
676 { | |
677 if (XEUNICODE_P) | |
678 return WNetOpenEnumW (arg1, arg2, arg3, arg4, arg5); | |
679 else | |
680 return WNetOpenEnumA (arg1, arg2, arg3, (LPNETRESOURCEA) arg4, arg5); | |
681 } | |
682 | |
683 #endif /* defined (HAVE_MS_WINDOWS) */ | |
684 | |
685 #if defined (HAVE_MS_WINDOWS) | |
686 | |
687 DWORD | |
688 qxeWNetEnumResource (HANDLE arg1, PDWORD arg2, PVOID arg3, PDWORD arg4) | |
689 { | |
690 if (XEUNICODE_P) | |
691 return WNetEnumResourceW (arg1, arg2, arg3, arg4); | |
692 else | |
693 return WNetEnumResourceA (arg1, arg2, arg3, arg4); | |
694 } | |
695 | |
696 #endif /* defined (HAVE_MS_WINDOWS) */ | |
697 | |
698 #if defined (HAVE_MS_WINDOWS) | |
699 | |
700 DWORD | |
701 qxeWNetGetUniversalName (const Extbyte * arg1, DWORD arg2, PVOID arg3, PDWORD arg4) | |
702 { | |
703 if (XEUNICODE_P) | |
704 return WNetGetUniversalNameW ((LPCWSTR) arg1, arg2, arg3, arg4); | |
705 else | |
706 return WNetGetUniversalNameA ((LPCSTR) arg1, arg2, arg3, arg4); | |
707 } | |
708 | |
709 #endif /* defined (HAVE_MS_WINDOWS) */ | |
710 | |
711 #if defined (HAVE_MS_WINDOWS) | |
712 | |
713 DWORD | |
714 qxeWNetGetUser (const Extbyte * arg1, Extbyte * arg2, PDWORD arg3) | |
715 { | |
716 if (XEUNICODE_P) | |
717 return WNetGetUserW ((LPCWSTR) arg1, (LPWSTR) arg2, arg3); | |
718 else | |
719 return WNetGetUserA ((LPCSTR) arg1, (LPSTR) arg2, arg3); | |
720 } | |
721 | |
722 #endif /* defined (HAVE_MS_WINDOWS) */ | |
723 | |
724 #if defined (HAVE_MS_WINDOWS) | |
725 | |
726 DWORD | |
727 qxeWNetGetProviderName (DWORD arg1, Extbyte * arg2, PDWORD arg3) | |
728 { | |
729 if (XEUNICODE_P) | |
730 return WNetGetProviderNameW (arg1, (LPWSTR) arg2, arg3); | |
731 else | |
732 return WNetGetProviderNameA (arg1, (LPSTR) arg2, arg3); | |
733 } | |
734 | |
735 #endif /* defined (HAVE_MS_WINDOWS) */ | |
736 | |
737 #if defined (HAVE_MS_WINDOWS) | |
738 | |
739 DWORD | |
740 qxeWNetGetNetworkInformation (const Extbyte * arg1, LPNETINFOSTRUCT arg2) | |
741 { | |
742 if (XEUNICODE_P) | |
743 return WNetGetNetworkInformationW ((LPCWSTR) arg1, arg2); | |
744 else | |
745 return WNetGetNetworkInformationA ((LPCSTR) arg1, arg2); | |
746 } | |
747 | |
748 #endif /* defined (HAVE_MS_WINDOWS) */ | |
749 | |
750 #if defined (HAVE_MS_WINDOWS) | |
751 | |
752 /* Error if WNetGetResourceInformation used: Function needs review to determine how to handle it */ | |
753 | |
754 #endif /* defined (HAVE_MS_WINDOWS) */ | |
755 | |
756 #if defined (HAVE_MS_WINDOWS) | |
757 | |
758 /* Error if WNetGetResourceParent used: Function needs review to determine how to handle it */ | |
759 | |
760 #endif /* defined (HAVE_MS_WINDOWS) */ | |
761 | |
762 #if defined (HAVE_MS_WINDOWS) | |
763 | |
764 DWORD | |
765 qxeWNetGetLastError (PDWORD arg1, Extbyte * arg2, DWORD arg3, Extbyte * arg4, DWORD arg5) | |
766 { | |
767 if (XEUNICODE_P) | |
768 return WNetGetLastErrorW (arg1, (LPWSTR) arg2, arg3, (LPWSTR) arg4, arg5); | |
769 else | |
770 return WNetGetLastErrorA (arg1, (LPSTR) arg2, arg3, (LPSTR) arg4, arg5); | |
771 } | |
772 | |
773 #endif /* defined (HAVE_MS_WINDOWS) */ | |
774 | |
775 #if defined (HAVE_MS_WINDOWS) | |
776 | |
777 DWORD | |
778 qxeMultinetGetConnectionPerformance (LPNETRESOURCEW arg1, LPNETCONNECTINFOSTRUCT arg2) | |
779 { | |
780 if (XEUNICODE_P) | |
781 return MultinetGetConnectionPerformanceW (arg1, arg2); | |
782 else | |
783 return MultinetGetConnectionPerformanceA ((LPNETRESOURCEA) arg1, arg2); | |
784 } | |
785 | 601 |
786 #endif /* defined (HAVE_MS_WINDOWS) */ | 602 #endif /* defined (HAVE_MS_WINDOWS) */ |
787 | 603 |
788 | 604 |
789 /*----------------------------------------------------------------------*/ | 605 /*----------------------------------------------------------------------*/ |
790 /* Processing file WINUSER.H */ | 606 /* Processing file WINUSER.H */ |
791 /*----------------------------------------------------------------------*/ | 607 /*----------------------------------------------------------------------*/ |
792 | 608 |
793 BOOL | |
794 qxeAppendMenu (HMENU arg1, UINT arg2, UINT_PTR arg3, const Extbyte * arg4) | |
795 { | |
796 if (XEUNICODE_P) | |
797 return AppendMenuW (arg1, arg2, arg3, (LPCWSTR) arg4); | |
798 else | |
799 return AppendMenuA (arg1, arg2, arg3, (LPCSTR) arg4); | |
800 } | |
801 | |
802 /* Error if BroadcastSystemMessage used: win95 version not split; NT 4.0+ only */ | |
803 | |
804 /* Error if BroadcastSystemMessageEx used: Function needs review to determine how to handle it */ | |
805 | |
806 #if !defined (CYGWIN_HEADERS) | |
807 | |
808 BOOL | |
809 qxeCallMsgFilter (LPMSG arg1, INT arg2) | |
810 { | |
811 if (XEUNICODE_P) | |
812 return CallMsgFilterW (arg1, arg2); | |
813 else | |
814 return CallMsgFilterA (arg1, arg2); | |
815 } | |
816 | |
817 #endif /* !defined (CYGWIN_HEADERS) */ | |
818 | |
819 /* Error if CallWindowProc used: two versions, STRICT and non-STRICT */ | |
820 | |
821 /* Error if ChangeDisplaySettings used: split-sized LPDEVMODE */ | |
822 | |
823 /* Error if ChangeDisplaySettingsEx used: split-sized LPDEVMODE; NT 5.0/Win98+ only */ | |
824 | |
825 BOOL | |
826 qxeChangeMenu (HMENU arg1, UINT arg2, const Extbyte * arg3, UINT arg4, UINT arg5) | |
827 { | |
828 if (XEUNICODE_P) | |
829 return ChangeMenuW (arg1, arg2, (LPCWSTR) arg3, arg4, arg5); | |
830 else | |
831 return ChangeMenuA (arg1, arg2, (LPCSTR) arg3, arg4, arg5); | |
832 } | |
833 | |
834 Extbyte * | |
835 qxeCharLower (Extbyte * arg1) | |
836 { | |
837 if (XEUNICODE_P) | |
838 return (Extbyte *) CharLowerW ((LPWSTR) arg1); | |
839 else | |
840 return (Extbyte *) CharLowerA ((LPSTR) arg1); | |
841 } | |
842 | |
843 DWORD | |
844 qxeCharLowerBuff (Extbyte * arg1, DWORD arg2) | |
845 { | |
846 if (XEUNICODE_P) | |
847 return CharLowerBuffW ((LPWSTR) arg1, arg2); | |
848 else | |
849 return CharLowerBuffA ((LPSTR) arg1, arg2); | |
850 } | |
851 | |
852 Extbyte * | |
853 qxeCharNext (const Extbyte * arg1) | |
854 { | |
855 if (XEUNICODE_P) | |
856 return (Extbyte *) CharNextW ((LPCWSTR) arg1); | |
857 else | |
858 return (Extbyte *) CharNextA ((LPCSTR) arg1); | |
859 } | |
860 | |
861 Extbyte * | |
862 qxeCharPrev (const Extbyte * arg1, const Extbyte * arg2) | |
863 { | |
864 if (XEUNICODE_P) | |
865 return (Extbyte *) CharPrevW ((LPCWSTR) arg1, (LPCWSTR) arg2); | |
866 else | |
867 return (Extbyte *) CharPrevA ((LPCSTR) arg1, (LPCSTR) arg2); | |
868 } | |
869 | |
870 BOOL | |
871 qxeCharToOem (const Extbyte * arg1, LPSTR arg2) | |
872 { | |
873 if (XEUNICODE_P) | |
874 return CharToOemW ((LPCWSTR) arg1, arg2); | |
875 else | |
876 return CharToOemA ((LPCSTR) arg1, arg2); | |
877 } | |
878 | |
879 BOOL | |
880 qxeCharToOemBuff (const Extbyte * arg1, LPSTR arg2, DWORD arg3) | |
881 { | |
882 if (XEUNICODE_P) | |
883 return CharToOemBuffW ((LPCWSTR) arg1, arg2, arg3); | |
884 else | |
885 return CharToOemBuffA ((LPCSTR) arg1, arg2, arg3); | |
886 } | |
887 | |
888 Extbyte * | |
889 qxeCharUpper (Extbyte * arg1) | |
890 { | |
891 if (XEUNICODE_P) | |
892 return (Extbyte *) CharUpperW ((LPWSTR) arg1); | |
893 else | |
894 return (Extbyte *) CharUpperA ((LPSTR) arg1); | |
895 } | |
896 | |
897 DWORD | |
898 qxeCharUpperBuff (Extbyte * arg1, DWORD arg2) | |
899 { | |
900 if (XEUNICODE_P) | |
901 return CharUpperBuffW ((LPWSTR) arg1, arg2); | |
902 else | |
903 return CharUpperBuffA ((LPSTR) arg1, arg2); | |
904 } | |
905 | |
906 int | 609 int |
907 qxeCopyAcceleratorTable (HACCEL arg1, LPACCEL arg2, int arg3) | 610 qxewvsprintf (Extbyte * arg1, const Extbyte * arg2, va_list arglist) |
908 { | 611 { |
909 if (XEUNICODE_P) | 612 if (XEUNICODE_P) |
910 return CopyAcceleratorTableW (arg1, arg2, arg3); | 613 return wvsprintfW ((LPWSTR) arg1, (LPCWSTR) arg2, arglist); |
911 else | 614 else |
912 return CopyAcceleratorTableA (arg1, arg2, arg3); | 615 return wvsprintfA ((LPSTR) arg1, (LPCSTR) arg2, arglist); |
913 } | 616 } |
914 | 617 |
915 HACCEL | 618 HKL |
916 qxeCreateAcceleratorTable (LPACCEL arg1, int arg2) | 619 qxeLoadKeyboardLayout (const Extbyte * pwszKLID, UINT Flags) |
917 { | 620 { |
918 if (XEUNICODE_P) | 621 if (XEUNICODE_P) |
919 return CreateAcceleratorTableW (arg1, arg2); | 622 return LoadKeyboardLayoutW ((LPCWSTR) pwszKLID, Flags); |
920 else | 623 else |
921 return CreateAcceleratorTableA (arg1, arg2); | 624 return LoadKeyboardLayoutA ((LPCSTR) pwszKLID, Flags); |
625 } | |
626 | |
627 WINBOOL | |
628 qxeGetKeyboardLayoutName (Extbyte * pwszKLID) | |
629 { | |
630 if (XEUNICODE_P) | |
631 return GetKeyboardLayoutNameW ((LPWSTR) pwszKLID); | |
632 else | |
633 return GetKeyboardLayoutNameA ((LPSTR) pwszKLID); | |
922 } | 634 } |
923 | 635 |
924 /* Error if CreateDesktop used: split-sized LPDEVMODE */ | 636 /* Error if CreateDesktop used: split-sized LPDEVMODE */ |
925 | 637 |
926 /* NOTE: error in Cygwin prototype (no split) but fixable with typedef */ | 638 HDESK |
927 HWND | 639 qxeOpenDesktop (const Extbyte * lpszDesktop, DWORD dwFlags, WINBOOL fInherit, ACCESS_MASK dwDesiredAccess) |
928 qxeCreateDialogIndirectParam (HINSTANCE arg1, LPCDLGTEMPLATE arg2, HWND arg3, DLGPROC arg4, LPARAM arg5) | 640 { |
929 { | 641 if (XEUNICODE_P) |
930 if (XEUNICODE_P) | 642 return OpenDesktopW ((LPCWSTR) lpszDesktop, dwFlags, fInherit, dwDesiredAccess); |
931 return CreateDialogIndirectParamW (arg1, arg2, arg3, arg4, arg5); | 643 else |
932 else | 644 return OpenDesktopA ((LPCSTR) lpszDesktop, dwFlags, fInherit, dwDesiredAccess); |
933 return CreateDialogIndirectParamA (arg1, arg2, arg3, arg4, arg5); | 645 } |
934 } | 646 |
935 | 647 /* NOTE: // callback fun differs only in string pointer type */ |
936 HWND | 648 WINBOOL |
937 qxeCreateDialogParam (HINSTANCE arg1, const Extbyte * arg2, HWND arg3, DLGPROC arg4, LPARAM arg5) | 649 qxeEnumDesktops (HWINSTA hwinsta, DESKTOPENUMPROCW lpEnumFunc, LPARAM lParam) |
938 { | 650 { |
939 if (XEUNICODE_P) | 651 if (XEUNICODE_P) |
940 return CreateDialogParamW (arg1, (LPCWSTR) arg2, arg3, arg4, arg5); | 652 return EnumDesktopsW (hwinsta, lpEnumFunc, lParam); |
941 else | 653 else |
942 return CreateDialogParamA (arg1, (LPCSTR) arg2, arg3, arg4, arg5); | 654 return EnumDesktopsA (hwinsta, (DESKTOPENUMPROCA) lpEnumFunc, lParam); |
943 } | 655 } |
944 | 656 |
945 /* NOTE: error arg 1, VS6 prototype, missing const. | 657 /* NOTE: error arg 1, VS6 prototype, missing const. |
946 NOTE: Prototype manually overridden. | 658 NOTE: Prototype manually overridden. |
947 Header file claims: | 659 Header file claims: |
948 WINUSERAPI HWND WINAPI CreateMDIWindow(LPCWSTR,LPCWSTR,DWORD,int,int,int,int,HWND,HINSTANCE,LPARAM) | 660 WINUSERAPI HWINSTA WINAPI CreateWindowStation(LPCWSTR lpwinsta,DWORD dwFlags,ACCESS_MASK dwDesiredAccess,LPSECURITY_ATTRIBUTES lpsa) |
661 Overridden with: | |
662 HWINSTA CreateWindowStation(LPWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES) | |
663 Differences in return-type qualifiers, e.g. WINAPI, are not important. | |
664 */ | |
665 HWINSTA | |
666 qxeCreateWindowStation (Extbyte * arg1, DWORD arg2, DWORD arg3, LPSECURITY_ATTRIBUTES arg4) | |
667 { | |
668 if (XEUNICODE_P) | |
669 return CreateWindowStationW ((LPWSTR) arg1, arg2, arg3, arg4); | |
670 else | |
671 return CreateWindowStationA ((LPSTR) arg1, arg2, arg3, arg4); | |
672 } | |
673 | |
674 HWINSTA | |
675 qxeOpenWindowStation (const Extbyte * lpszWinSta, WINBOOL fInherit, ACCESS_MASK dwDesiredAccess) | |
676 { | |
677 if (XEUNICODE_P) | |
678 return OpenWindowStationW ((LPCWSTR) lpszWinSta, fInherit, dwDesiredAccess); | |
679 else | |
680 return OpenWindowStationA ((LPCSTR) lpszWinSta, fInherit, dwDesiredAccess); | |
681 } | |
682 | |
683 /* NOTE: // callback fun differs only in string pointer type */ | |
684 WINBOOL | |
685 qxeEnumWindowStations (WINSTAENUMPROCW lpEnumFunc, LPARAM lParam) | |
686 { | |
687 if (XEUNICODE_P) | |
688 return EnumWindowStationsW (lpEnumFunc, lParam); | |
689 else | |
690 return EnumWindowStationsA ((WINSTAENUMPROCA) lpEnumFunc, lParam); | |
691 } | |
692 | |
693 WINBOOL | |
694 qxeGetUserObjectInformation (HANDLE hObj, int nIndex, PVOID pvInfo, DWORD nLength, LPDWORD lpnLengthNeeded) | |
695 { | |
696 if (XEUNICODE_P) | |
697 return GetUserObjectInformationW (hObj, nIndex, pvInfo, nLength, lpnLengthNeeded); | |
698 else | |
699 return GetUserObjectInformationA (hObj, nIndex, pvInfo, nLength, lpnLengthNeeded); | |
700 } | |
701 | |
702 WINBOOL | |
703 qxeSetUserObjectInformation (HANDLE hObj, int nIndex, PVOID pvInfo, DWORD nLength) | |
704 { | |
705 if (XEUNICODE_P) | |
706 return SetUserObjectInformationW (hObj, nIndex, pvInfo, nLength); | |
707 else | |
708 return SetUserObjectInformationA (hObj, nIndex, pvInfo, nLength); | |
709 } | |
710 | |
711 UINT | |
712 qxeRegisterWindowMessage (const Extbyte * lpString) | |
713 { | |
714 if (XEUNICODE_P) | |
715 return RegisterWindowMessageW ((LPCWSTR) lpString); | |
716 else | |
717 return RegisterWindowMessageA ((LPCSTR) lpString); | |
718 } | |
719 | |
720 WINBOOL | |
721 qxeGetMessage (LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax) | |
722 { | |
723 if (XEUNICODE_P) | |
724 return GetMessageW (lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax); | |
725 else | |
726 return GetMessageA (lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax); | |
727 } | |
728 | |
729 LRESULT | |
730 qxeDispatchMessage (CONST MSG * lpMsg) | |
731 { | |
732 if (XEUNICODE_P) | |
733 return DispatchMessageW (lpMsg); | |
734 else | |
735 return DispatchMessageA (lpMsg); | |
736 } | |
737 | |
738 WINBOOL | |
739 qxePeekMessage (LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax, UINT wRemoveMsg) | |
740 { | |
741 if (XEUNICODE_P) | |
742 return PeekMessageW (lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax, wRemoveMsg); | |
743 else | |
744 return PeekMessageA (lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax, wRemoveMsg); | |
745 } | |
746 | |
747 /* Skipping SendMessage because split messages and structures */ | |
748 | |
749 /* Error if SendMessageTimeout used: VS6 has erroneous seventh parameter DWORD_PTR instead of PDWORD_PTR */ | |
750 | |
751 WINBOOL | |
752 qxeSendNotifyMessage (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam) | |
753 { | |
754 if (XEUNICODE_P) | |
755 return SendNotifyMessageW (hWnd, Msg, wParam, lParam); | |
756 else | |
757 return SendNotifyMessageA (hWnd, Msg, wParam, lParam); | |
758 } | |
759 | |
760 WINBOOL | |
761 qxeSendMessageCallback (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, SENDASYNCPROC lpResultCallBack, ULONG_PTR dwData) | |
762 { | |
763 if (XEUNICODE_P) | |
764 return SendMessageCallbackW (hWnd, Msg, wParam, lParam, lpResultCallBack, dwData); | |
765 else | |
766 return SendMessageCallbackA (hWnd, Msg, wParam, lParam, lpResultCallBack, dwData); | |
767 } | |
768 | |
769 /* Error if BroadcastSystemMessageEx used: Function needs review to determine how to handle it */ | |
770 | |
771 /* Error if BroadcastSystemMessage used: win95 version not split; NT 4.0+ only */ | |
772 | |
773 /* Error if RegisterDeviceNotification used: NT 5.0+ only */ | |
774 | |
775 WINBOOL | |
776 qxePostMessage (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam) | |
777 { | |
778 if (XEUNICODE_P) | |
779 return PostMessageW (hWnd, Msg, wParam, lParam); | |
780 else | |
781 return PostMessageA (hWnd, Msg, wParam, lParam); | |
782 } | |
783 | |
784 WINBOOL | |
785 qxePostThreadMessage (DWORD idThread, UINT Msg, WPARAM wParam, LPARAM lParam) | |
786 { | |
787 if (XEUNICODE_P) | |
788 return PostThreadMessageW (idThread, Msg, wParam, lParam); | |
789 else | |
790 return PostThreadMessageA (idThread, Msg, wParam, lParam); | |
791 } | |
792 | |
793 /* Skipping DefWindowProc because return value is conditionalized on _MAC, messes up parser */ | |
794 | |
795 /* Error if CallWindowProc used: two versions, STRICT and non-STRICT */ | |
796 | |
797 /* Skipping RegisterClass because need to intercept so we can provide our own window procedure and handle split notify messages; split-simple WNDCLASS */ | |
798 | |
799 /* Skipping UnregisterClass because need to intercept for reasons related to RegisterClass */ | |
800 | |
801 WINBOOL | |
802 qxeGetClassInfo (HINSTANCE hInstance, const Extbyte * lpClassName, LPWNDCLASSW lpWndClass) | |
803 { | |
804 if (XEUNICODE_P) | |
805 return GetClassInfoW (hInstance, (LPCWSTR) lpClassName, lpWndClass); | |
806 else | |
807 return GetClassInfoA (hInstance, (LPCSTR) lpClassName, (LPWNDCLASSA) lpWndClass); | |
808 } | |
809 | |
810 /* Skipping RegisterClassEx because need to intercept so we can provide our own window procedure and handle split notify messages; split-simple WNDCLASSEX; NT 4.0+ only */ | |
811 | |
812 /* NOTE: NT 4.0+ only */ | |
813 WINBOOL | |
814 qxeGetClassInfoEx (HINSTANCE hInstance, const Extbyte * lpszClass, LPWNDCLASSEXW lpwcx) | |
815 { | |
816 if (XEUNICODE_P) | |
817 return GetClassInfoExW (hInstance, (LPCWSTR) lpszClass, lpwcx); | |
818 else | |
819 return GetClassInfoExA (hInstance, (LPCSTR) lpszClass, (LPWNDCLASSEXA) lpwcx); | |
820 } | |
821 | |
822 HWND | |
823 qxeCreateWindowEx (DWORD dwExStyle, const Extbyte * lpClassName, const Extbyte * lpWindowName, DWORD dwStyle, int X, int Y, int nWidth, int nHeight, HWND hWndParent, HMENU hMenu, HINSTANCE hInstance, LPVOID lpParam) | |
824 { | |
825 if (XEUNICODE_P) | |
826 return CreateWindowExW (dwExStyle, (LPCWSTR) lpClassName, (LPCWSTR) lpWindowName, dwStyle, X, Y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam); | |
827 else | |
828 return CreateWindowExA (dwExStyle, (LPCSTR) lpClassName, (LPCSTR) lpWindowName, dwStyle, X, Y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam); | |
829 } | |
830 | |
831 HWND | |
832 qxeCreateDialogParam (HINSTANCE hInstance, const Extbyte * lpTemplateName, HWND hWndParent, DLGPROC lpDialogFunc, LPARAM dwInitParam) | |
833 { | |
834 if (XEUNICODE_P) | |
835 return CreateDialogParamW (hInstance, (LPCWSTR) lpTemplateName, hWndParent, lpDialogFunc, dwInitParam); | |
836 else | |
837 return CreateDialogParamA (hInstance, (LPCSTR) lpTemplateName, hWndParent, lpDialogFunc, dwInitParam); | |
838 } | |
839 | |
840 /* NOTE: error in Cygwin prototype (no split) but fixable with typedef */ | |
841 HWND | |
842 qxeCreateDialogIndirectParam (HINSTANCE hInstance, LPCDLGTEMPLATEW lpTemplate, HWND hWndParent, DLGPROC lpDialogFunc, LPARAM dwInitParam) | |
843 { | |
844 if (XEUNICODE_P) | |
845 return CreateDialogIndirectParamW (hInstance, lpTemplate, hWndParent, lpDialogFunc, dwInitParam); | |
846 else | |
847 return CreateDialogIndirectParamA (hInstance, (LPCDLGTEMPLATEA) lpTemplate, hWndParent, lpDialogFunc, dwInitParam); | |
848 } | |
849 | |
850 INT_PTR | |
851 qxeDialogBoxParam (HINSTANCE hInstance, const Extbyte * lpTemplateName, HWND hWndParent, DLGPROC lpDialogFunc, LPARAM dwInitParam) | |
852 { | |
853 if (XEUNICODE_P) | |
854 return DialogBoxParamW (hInstance, (LPCWSTR) lpTemplateName, hWndParent, lpDialogFunc, dwInitParam); | |
855 else | |
856 return DialogBoxParamA (hInstance, (LPCSTR) lpTemplateName, hWndParent, lpDialogFunc, dwInitParam); | |
857 } | |
858 | |
859 /* NOTE: error in Cygwin prototype (no split) but fixable with typedef */ | |
860 INT_PTR | |
861 qxeDialogBoxIndirectParam (HINSTANCE hInstance, LPCDLGTEMPLATEW hDialogTemplate, HWND hWndParent, DLGPROC lpDialogFunc, LPARAM dwInitParam) | |
862 { | |
863 if (XEUNICODE_P) | |
864 return DialogBoxIndirectParamW (hInstance, hDialogTemplate, hWndParent, lpDialogFunc, dwInitParam); | |
865 else | |
866 return DialogBoxIndirectParamA (hInstance, (LPCDLGTEMPLATEA) hDialogTemplate, hWndParent, lpDialogFunc, dwInitParam); | |
867 } | |
868 | |
869 WINBOOL | |
870 qxeSetDlgItemText (HWND hDlg, int nIDDlgItem, const Extbyte * lpString) | |
871 { | |
872 if (XEUNICODE_P) | |
873 return SetDlgItemTextW (hDlg, nIDDlgItem, (LPCWSTR) lpString); | |
874 else | |
875 return SetDlgItemTextA (hDlg, nIDDlgItem, (LPCSTR) lpString); | |
876 } | |
877 | |
878 UINT | |
879 qxeGetDlgItemText (HWND hDlg, int nIDDlgItem, Extbyte * lpString, int cchMax) | |
880 { | |
881 if (XEUNICODE_P) | |
882 return GetDlgItemTextW (hDlg, nIDDlgItem, (LPWSTR) lpString, cchMax); | |
883 else | |
884 return GetDlgItemTextA (hDlg, nIDDlgItem, (LPSTR) lpString, cchMax); | |
885 } | |
886 | |
887 LRESULT | |
888 qxeSendDlgItemMessage (HWND hDlg, int nIDDlgItem, UINT Msg, WPARAM wParam, LPARAM lParam) | |
889 { | |
890 if (XEUNICODE_P) | |
891 return SendDlgItemMessageW (hDlg, nIDDlgItem, Msg, wParam, lParam); | |
892 else | |
893 return SendDlgItemMessageA (hDlg, nIDDlgItem, Msg, wParam, lParam); | |
894 } | |
895 | |
896 /* Error if DefDlgProc used: return value is conditionalized on _MAC, messes up parser */ | |
897 | |
898 #if !defined (CYGWIN_HEADERS) | |
899 | |
900 WINBOOL | |
901 qxeCallMsgFilter (LPMSG lpMsg, int nCode) | |
902 { | |
903 if (XEUNICODE_P) | |
904 return CallMsgFilterW (lpMsg, nCode); | |
905 else | |
906 return CallMsgFilterA (lpMsg, nCode); | |
907 } | |
908 | |
909 #endif /* !defined (CYGWIN_HEADERS) */ | |
910 | |
911 UINT | |
912 qxeRegisterClipboardFormat (const Extbyte * lpszFormat) | |
913 { | |
914 if (XEUNICODE_P) | |
915 return RegisterClipboardFormatW ((LPCWSTR) lpszFormat); | |
916 else | |
917 return RegisterClipboardFormatA ((LPCSTR) lpszFormat); | |
918 } | |
919 | |
920 int | |
921 qxeGetClipboardFormatName (UINT format, Extbyte * lpszFormatName, int cchMaxCount) | |
922 { | |
923 if (XEUNICODE_P) | |
924 return GetClipboardFormatNameW (format, (LPWSTR) lpszFormatName, cchMaxCount); | |
925 else | |
926 return GetClipboardFormatNameA (format, (LPSTR) lpszFormatName, cchMaxCount); | |
927 } | |
928 | |
929 WINBOOL | |
930 qxeCharToOem (const Extbyte * lpszSrc, LPSTR lpszDst) | |
931 { | |
932 if (XEUNICODE_P) | |
933 return CharToOemW ((LPCWSTR) lpszSrc, lpszDst); | |
934 else | |
935 return CharToOemA ((LPCSTR) lpszSrc, lpszDst); | |
936 } | |
937 | |
938 WINBOOL | |
939 qxeOemToChar (LPCSTR lpszSrc, Extbyte * lpszDst) | |
940 { | |
941 if (XEUNICODE_P) | |
942 return OemToCharW (lpszSrc, (LPWSTR) lpszDst); | |
943 else | |
944 return OemToCharA (lpszSrc, (LPSTR) lpszDst); | |
945 } | |
946 | |
947 WINBOOL | |
948 qxeCharToOemBuff (const Extbyte * lpszSrc, LPSTR lpszDst, DWORD cchDstLength) | |
949 { | |
950 if (XEUNICODE_P) | |
951 return CharToOemBuffW ((LPCWSTR) lpszSrc, lpszDst, cchDstLength); | |
952 else | |
953 return CharToOemBuffA ((LPCSTR) lpszSrc, lpszDst, cchDstLength); | |
954 } | |
955 | |
956 WINBOOL | |
957 qxeOemToCharBuff (LPCSTR lpszSrc, Extbyte * lpszDst, DWORD cchDstLength) | |
958 { | |
959 if (XEUNICODE_P) | |
960 return OemToCharBuffW (lpszSrc, (LPWSTR) lpszDst, cchDstLength); | |
961 else | |
962 return OemToCharBuffA (lpszSrc, (LPSTR) lpszDst, cchDstLength); | |
963 } | |
964 | |
965 Extbyte * | |
966 qxeCharUpper (Extbyte * lpsz) | |
967 { | |
968 if (XEUNICODE_P) | |
969 return (Extbyte *) CharUpperW ((LPWSTR) lpsz); | |
970 else | |
971 return (Extbyte *) CharUpperA ((LPSTR) lpsz); | |
972 } | |
973 | |
974 DWORD | |
975 qxeCharUpperBuff (Extbyte * lpsz, DWORD cchLength) | |
976 { | |
977 if (XEUNICODE_P) | |
978 return CharUpperBuffW ((LPWSTR) lpsz, cchLength); | |
979 else | |
980 return CharUpperBuffA ((LPSTR) lpsz, cchLength); | |
981 } | |
982 | |
983 Extbyte * | |
984 qxeCharLower (Extbyte * lpsz) | |
985 { | |
986 if (XEUNICODE_P) | |
987 return (Extbyte *) CharLowerW ((LPWSTR) lpsz); | |
988 else | |
989 return (Extbyte *) CharLowerA ((LPSTR) lpsz); | |
990 } | |
991 | |
992 DWORD | |
993 qxeCharLowerBuff (Extbyte * lpsz, DWORD cchLength) | |
994 { | |
995 if (XEUNICODE_P) | |
996 return CharLowerBuffW ((LPWSTR) lpsz, cchLength); | |
997 else | |
998 return CharLowerBuffA ((LPSTR) lpsz, cchLength); | |
999 } | |
1000 | |
1001 Extbyte * | |
1002 qxeCharNext (const Extbyte * lpsz) | |
1003 { | |
1004 if (XEUNICODE_P) | |
1005 return (Extbyte *) CharNextW ((LPCWSTR) lpsz); | |
1006 else | |
1007 return (Extbyte *) CharNextA ((LPCSTR) lpsz); | |
1008 } | |
1009 | |
1010 Extbyte * | |
1011 qxeCharPrev (const Extbyte * lpszStart, const Extbyte * lpszCurrent) | |
1012 { | |
1013 if (XEUNICODE_P) | |
1014 return (Extbyte *) CharPrevW ((LPCWSTR) lpszStart, (LPCWSTR) lpszCurrent); | |
1015 else | |
1016 return (Extbyte *) CharPrevA ((LPCSTR) lpszStart, (LPCSTR) lpszCurrent); | |
1017 } | |
1018 | |
1019 /* Error if IsCharAlpha used: split CHAR */ | |
1020 | |
1021 /* Error if IsCharAlphaNumeric used: split CHAR */ | |
1022 | |
1023 /* Error if IsCharUpper used: split CHAR */ | |
1024 | |
1025 /* Error if IsCharLower used: split CHAR */ | |
1026 | |
1027 int | |
1028 qxeGetKeyNameText (LONG lParam, Extbyte * lpString, int cchSize) | |
1029 { | |
1030 if (XEUNICODE_P) | |
1031 return GetKeyNameTextW (lParam, (LPWSTR) lpString, cchSize); | |
1032 else | |
1033 return GetKeyNameTextA (lParam, (LPSTR) lpString, cchSize); | |
1034 } | |
1035 | |
1036 /* Skipping VkKeyScan because split CHAR */ | |
1037 | |
1038 /* Error if VkKeyScanEx used: split CHAR; NT 4.0+ only */ | |
1039 | |
1040 UINT | |
1041 qxeMapVirtualKey (UINT uCode, UINT uMapType) | |
1042 { | |
1043 if (XEUNICODE_P) | |
1044 return MapVirtualKeyW (uCode, uMapType); | |
1045 else | |
1046 return MapVirtualKeyA (uCode, uMapType); | |
1047 } | |
1048 | |
1049 /* NOTE: NT 4.0+ only */ | |
1050 UINT | |
1051 qxeMapVirtualKeyEx (UINT uCode, UINT uMapType, HKL dwhkl) | |
1052 { | |
1053 if (XEUNICODE_P) | |
1054 return MapVirtualKeyExW (uCode, uMapType, dwhkl); | |
1055 else | |
1056 return MapVirtualKeyExA (uCode, uMapType, dwhkl); | |
1057 } | |
1058 | |
1059 HACCEL | |
1060 qxeLoadAccelerators (HINSTANCE hInstance, const Extbyte * lpTableName) | |
1061 { | |
1062 if (XEUNICODE_P) | |
1063 return LoadAcceleratorsW (hInstance, (LPCWSTR) lpTableName); | |
1064 else | |
1065 return LoadAcceleratorsA (hInstance, (LPCSTR) lpTableName); | |
1066 } | |
1067 | |
1068 HACCEL | |
1069 qxeCreateAcceleratorTable (LPACCEL paccel, int cAccel) | |
1070 { | |
1071 if (XEUNICODE_P) | |
1072 return CreateAcceleratorTableW (paccel, cAccel); | |
1073 else | |
1074 return CreateAcceleratorTableA (paccel, cAccel); | |
1075 } | |
1076 | |
1077 int | |
1078 qxeCopyAcceleratorTable (HACCEL hAccelSrc, LPACCEL lpAccelDst, int cAccelEntries) | |
1079 { | |
1080 if (XEUNICODE_P) | |
1081 return CopyAcceleratorTableW (hAccelSrc, lpAccelDst, cAccelEntries); | |
1082 else | |
1083 return CopyAcceleratorTableA (hAccelSrc, lpAccelDst, cAccelEntries); | |
1084 } | |
1085 | |
1086 int | |
1087 qxeTranslateAccelerator (HWND hWnd, HACCEL hAccTable, LPMSG lpMsg) | |
1088 { | |
1089 if (XEUNICODE_P) | |
1090 return TranslateAcceleratorW (hWnd, hAccTable, lpMsg); | |
1091 else | |
1092 return TranslateAcceleratorA (hWnd, hAccTable, lpMsg); | |
1093 } | |
1094 | |
1095 HMENU | |
1096 qxeLoadMenu (HINSTANCE hInstance, const Extbyte * lpMenuName) | |
1097 { | |
1098 if (XEUNICODE_P) | |
1099 return LoadMenuW (hInstance, (LPCWSTR) lpMenuName); | |
1100 else | |
1101 return LoadMenuA (hInstance, (LPCSTR) lpMenuName); | |
1102 } | |
1103 | |
1104 HMENU | |
1105 qxeLoadMenuIndirect (CONST MENUTEMPLATEW * lpMenuTemplate) | |
1106 { | |
1107 if (XEUNICODE_P) | |
1108 return LoadMenuIndirectW (lpMenuTemplate); | |
1109 else | |
1110 return LoadMenuIndirectA ((CONST MENUTEMPLATEA *) lpMenuTemplate); | |
1111 } | |
1112 | |
1113 WINBOOL | |
1114 qxeChangeMenu (HMENU hMenu, UINT cmd, const Extbyte * lpszNewItem, UINT cmdInsert, UINT flags) | |
1115 { | |
1116 if (XEUNICODE_P) | |
1117 return ChangeMenuW (hMenu, cmd, (LPCWSTR) lpszNewItem, cmdInsert, flags); | |
1118 else | |
1119 return ChangeMenuA (hMenu, cmd, (LPCSTR) lpszNewItem, cmdInsert, flags); | |
1120 } | |
1121 | |
1122 int | |
1123 qxeGetMenuString (HMENU hMenu, UINT uIDItem, Extbyte * lpString, int cchMax, UINT flags) | |
1124 { | |
1125 if (XEUNICODE_P) | |
1126 return GetMenuStringW (hMenu, uIDItem, (LPWSTR) lpString, cchMax, flags); | |
1127 else | |
1128 return GetMenuStringA (hMenu, uIDItem, (LPSTR) lpString, cchMax, flags); | |
1129 } | |
1130 | |
1131 WINBOOL | |
1132 qxeInsertMenu (HMENU hMenu, UINT uPosition, UINT uFlags, UINT_PTR uIDNewItem, const Extbyte * lpNewItem) | |
1133 { | |
1134 if (XEUNICODE_P) | |
1135 return InsertMenuW (hMenu, uPosition, uFlags, uIDNewItem, (LPCWSTR) lpNewItem); | |
1136 else | |
1137 return InsertMenuA (hMenu, uPosition, uFlags, uIDNewItem, (LPCSTR) lpNewItem); | |
1138 } | |
1139 | |
1140 WINBOOL | |
1141 qxeAppendMenu (HMENU hMenu, UINT uFlags, UINT_PTR uIDNewItem, const Extbyte * lpNewItem) | |
1142 { | |
1143 if (XEUNICODE_P) | |
1144 return AppendMenuW (hMenu, uFlags, uIDNewItem, (LPCWSTR) lpNewItem); | |
1145 else | |
1146 return AppendMenuA (hMenu, uFlags, uIDNewItem, (LPCSTR) lpNewItem); | |
1147 } | |
1148 | |
1149 WINBOOL | |
1150 qxeModifyMenu (HMENU hMnu, UINT uPosition, UINT uFlags, UINT_PTR uIDNewItem, const Extbyte * lpNewItem) | |
1151 { | |
1152 if (XEUNICODE_P) | |
1153 return ModifyMenuW (hMnu, uPosition, uFlags, uIDNewItem, (LPCWSTR) lpNewItem); | |
1154 else | |
1155 return ModifyMenuA (hMnu, uPosition, uFlags, uIDNewItem, (LPCSTR) lpNewItem); | |
1156 } | |
1157 | |
1158 /* NOTE: NT 4.0+ only */ | |
1159 WINBOOL | |
1160 qxeInsertMenuItem (HMENU hmenu, UINT item, WINBOOL fByPosition, LPCMENUITEMINFOW lpmi) | |
1161 { | |
1162 if (XEUNICODE_P) | |
1163 return InsertMenuItemW (hmenu, item, fByPosition, lpmi); | |
1164 else | |
1165 return InsertMenuItemA (hmenu, item, fByPosition, (LPCMENUITEMINFOA) lpmi); | |
1166 } | |
1167 | |
1168 /* NOTE: NT 4.0+ only */ | |
1169 WINBOOL | |
1170 qxeGetMenuItemInfo (HMENU hmenu, UINT item, WINBOOL fByPosition, LPMENUITEMINFOW lpmii) | |
1171 { | |
1172 if (XEUNICODE_P) | |
1173 return GetMenuItemInfoW (hmenu, item, fByPosition, lpmii); | |
1174 else | |
1175 return GetMenuItemInfoA (hmenu, item, fByPosition, (LPMENUITEMINFOA) lpmii); | |
1176 } | |
1177 | |
1178 /* NOTE: NT 4.0+ only */ | |
1179 WINBOOL | |
1180 qxeSetMenuItemInfo (HMENU hmenu, UINT item, WINBOOL fByPositon, LPCMENUITEMINFOW lpmii) | |
1181 { | |
1182 if (XEUNICODE_P) | |
1183 return SetMenuItemInfoW (hmenu, item, fByPositon, lpmii); | |
1184 else | |
1185 return SetMenuItemInfoA (hmenu, item, fByPositon, (LPCMENUITEMINFOA) lpmii); | |
1186 } | |
1187 | |
1188 int | |
1189 qxeDrawText (HDC hdc, const Extbyte * lpchText, int cchText, LPRECT lprc, UINT format) | |
1190 { | |
1191 if (XEUNICODE_P) | |
1192 return DrawTextW (hdc, (LPCWSTR) lpchText, cchText, lprc, format); | |
1193 else | |
1194 return DrawTextA (hdc, (LPCSTR) lpchText, cchText, lprc, format); | |
1195 } | |
1196 | |
1197 /* NOTE: NT 4.0+ only */ | |
1198 int | |
1199 qxeDrawTextEx (HDC hdc, Extbyte * lpchText, int cchText, LPRECT lprc, UINT format, LPDRAWTEXTPARAMS lpdtp) | |
1200 { | |
1201 if (XEUNICODE_P) | |
1202 return DrawTextExW (hdc, (LPWSTR) lpchText, cchText, lprc, format, lpdtp); | |
1203 else | |
1204 return DrawTextExA (hdc, (LPSTR) lpchText, cchText, lprc, format, lpdtp); | |
1205 } | |
1206 | |
1207 WINBOOL | |
1208 qxeGrayString (HDC hDC, HBRUSH hBrush, GRAYSTRINGPROC lpOutputFunc, LPARAM lpData, int nCount, int X, int Y, int nWidth, int nHeight) | |
1209 { | |
1210 if (XEUNICODE_P) | |
1211 return GrayStringW (hDC, hBrush, lpOutputFunc, lpData, nCount, X, Y, nWidth, nHeight); | |
1212 else | |
1213 return GrayStringA (hDC, hBrush, lpOutputFunc, lpData, nCount, X, Y, nWidth, nHeight); | |
1214 } | |
1215 | |
1216 /* NOTE: NT 4.0+ only */ | |
1217 WINBOOL | |
1218 qxeDrawState (HDC hdc, HBRUSH hbrFore, DRAWSTATEPROC qfnCallBack, LPARAM lData, WPARAM wData, int x, int y, int cx, int cy, UINT uFlags) | |
1219 { | |
1220 if (XEUNICODE_P) | |
1221 return DrawStateW (hdc, hbrFore, qfnCallBack, lData, wData, x, y, cx, cy, uFlags); | |
1222 else | |
1223 return DrawStateA (hdc, hbrFore, qfnCallBack, lData, wData, x, y, cx, cy, uFlags); | |
1224 } | |
1225 | |
1226 LONG | |
1227 qxeTabbedTextOut (HDC hdc, int x, int y, const Extbyte * lpString, int chCount, int nTabPositions, CONST INT * lpnTabStopPositions, int nTabOrigin) | |
1228 { | |
1229 if (XEUNICODE_P) | |
1230 return TabbedTextOutW (hdc, x, y, (LPCWSTR) lpString, chCount, nTabPositions, lpnTabStopPositions, nTabOrigin); | |
1231 else | |
1232 return TabbedTextOutA (hdc, x, y, (LPCSTR) lpString, chCount, nTabPositions, lpnTabStopPositions, nTabOrigin); | |
1233 } | |
1234 | |
1235 DWORD | |
1236 qxeGetTabbedTextExtent (HDC hdc, const Extbyte * lpString, int chCount, int nTabPositions, CONST INT * lpnTabStopPositions) | |
1237 { | |
1238 if (XEUNICODE_P) | |
1239 return GetTabbedTextExtentW (hdc, (LPCWSTR) lpString, chCount, nTabPositions, lpnTabStopPositions); | |
1240 else | |
1241 return GetTabbedTextExtentA (hdc, (LPCSTR) lpString, chCount, nTabPositions, lpnTabStopPositions); | |
1242 } | |
1243 | |
1244 WINBOOL | |
1245 qxeSetProp (HWND hWnd, const Extbyte * lpString, HANDLE hData) | |
1246 { | |
1247 if (XEUNICODE_P) | |
1248 return SetPropW (hWnd, (LPCWSTR) lpString, hData); | |
1249 else | |
1250 return SetPropA (hWnd, (LPCSTR) lpString, hData); | |
1251 } | |
1252 | |
1253 HANDLE | |
1254 qxeGetProp (HWND hWnd, const Extbyte * lpString) | |
1255 { | |
1256 if (XEUNICODE_P) | |
1257 return GetPropW (hWnd, (LPCWSTR) lpString); | |
1258 else | |
1259 return GetPropA (hWnd, (LPCSTR) lpString); | |
1260 } | |
1261 | |
1262 HANDLE | |
1263 qxeRemoveProp (HWND hWnd, const Extbyte * lpString) | |
1264 { | |
1265 if (XEUNICODE_P) | |
1266 return RemovePropW (hWnd, (LPCWSTR) lpString); | |
1267 else | |
1268 return RemovePropA (hWnd, (LPCSTR) lpString); | |
1269 } | |
1270 | |
1271 /* NOTE: // callback fun differs only in string pointer type */ | |
1272 int | |
1273 qxeEnumPropsEx (HWND hWnd, PROPENUMPROCEXW lpEnumFunc, LPARAM lParam) | |
1274 { | |
1275 if (XEUNICODE_P) | |
1276 return EnumPropsExW (hWnd, lpEnumFunc, lParam); | |
1277 else | |
1278 return EnumPropsExA (hWnd, (PROPENUMPROCEXA) lpEnumFunc, lParam); | |
1279 } | |
1280 | |
1281 /* NOTE: // callback fun differs only in string pointer type */ | |
1282 int | |
1283 qxeEnumProps (HWND hWnd, PROPENUMPROCW lpEnumFunc) | |
1284 { | |
1285 if (XEUNICODE_P) | |
1286 return EnumPropsW (hWnd, lpEnumFunc); | |
1287 else | |
1288 return EnumPropsA (hWnd, (PROPENUMPROCA) lpEnumFunc); | |
1289 } | |
1290 | |
1291 WINBOOL | |
1292 qxeSetWindowText (HWND hWnd, const Extbyte * lpString) | |
1293 { | |
1294 if (XEUNICODE_P) | |
1295 return SetWindowTextW (hWnd, (LPCWSTR) lpString); | |
1296 else | |
1297 return SetWindowTextA (hWnd, (LPCSTR) lpString); | |
1298 } | |
1299 | |
1300 int | |
1301 qxeGetWindowText (HWND hWnd, Extbyte * lpString, int nMaxCount) | |
1302 { | |
1303 if (XEUNICODE_P) | |
1304 return GetWindowTextW (hWnd, (LPWSTR) lpString, nMaxCount); | |
1305 else | |
1306 return GetWindowTextA (hWnd, (LPSTR) lpString, nMaxCount); | |
1307 } | |
1308 | |
1309 int | |
1310 qxeGetWindowTextLength (HWND hWnd) | |
1311 { | |
1312 if (XEUNICODE_P) | |
1313 return GetWindowTextLengthW (hWnd); | |
1314 else | |
1315 return GetWindowTextLengthA (hWnd); | |
1316 } | |
1317 | |
1318 int | |
1319 qxeMessageBox (HWND hWnd, const Extbyte * lpText, const Extbyte * lpCaption, UINT uType) | |
1320 { | |
1321 if (XEUNICODE_P) | |
1322 return MessageBoxW (hWnd, (LPCWSTR) lpText, (LPCWSTR) lpCaption, uType); | |
1323 else | |
1324 return MessageBoxA (hWnd, (LPCSTR) lpText, (LPCSTR) lpCaption, uType); | |
1325 } | |
1326 | |
1327 int | |
1328 qxeMessageBoxEx (HWND hWnd, const Extbyte * lpText, const Extbyte * lpCaption, UINT uType, WORD wLanguageId) | |
1329 { | |
1330 if (XEUNICODE_P) | |
1331 return MessageBoxExW (hWnd, (LPCWSTR) lpText, (LPCWSTR) lpCaption, uType, wLanguageId); | |
1332 else | |
1333 return MessageBoxExA (hWnd, (LPCSTR) lpText, (LPCSTR) lpCaption, uType, wLanguageId); | |
1334 } | |
1335 | |
1336 /* Error if MessageBoxIndirect used: Cygwin has split MSGBOXPARAMS* instead of LPMSGBOXPARAMS */ | |
1337 | |
1338 LONG | |
1339 qxeGetWindowLong (HWND hWnd, int nIndex) | |
1340 { | |
1341 if (XEUNICODE_P) | |
1342 return GetWindowLongW (hWnd, nIndex); | |
1343 else | |
1344 return GetWindowLongA (hWnd, nIndex); | |
1345 } | |
1346 | |
1347 LONG | |
1348 qxeSetWindowLong (HWND hWnd, int nIndex, LONG dwNewLong) | |
1349 { | |
1350 if (XEUNICODE_P) | |
1351 return SetWindowLongW (hWnd, nIndex, dwNewLong); | |
1352 else | |
1353 return SetWindowLongA (hWnd, nIndex, dwNewLong); | |
1354 } | |
1355 | |
1356 LONG_PTR | |
1357 qxeGetWindowLongPtr (HWND hWnd, int nIndex) | |
1358 { | |
1359 if (XEUNICODE_P) | |
1360 return GetWindowLongPtrW (hWnd, nIndex); | |
1361 else | |
1362 return GetWindowLongPtrA (hWnd, nIndex); | |
1363 } | |
1364 | |
1365 LONG_PTR | |
1366 qxeSetWindowLongPtr (HWND hWnd, int nIndex, LONG_PTR dwNewLong) | |
1367 { | |
1368 if (XEUNICODE_P) | |
1369 return SetWindowLongPtrW (hWnd, nIndex, dwNewLong); | |
1370 else | |
1371 return SetWindowLongPtrA (hWnd, nIndex, dwNewLong); | |
1372 } | |
1373 | |
1374 DWORD | |
1375 qxeGetClassLong (HWND hWnd, int nIndex) | |
1376 { | |
1377 if (XEUNICODE_P) | |
1378 return GetClassLongW (hWnd, nIndex); | |
1379 else | |
1380 return GetClassLongA (hWnd, nIndex); | |
1381 } | |
1382 | |
1383 DWORD | |
1384 qxeSetClassLong (HWND hWnd, int nIndex, LONG dwNewLong) | |
1385 { | |
1386 if (XEUNICODE_P) | |
1387 return SetClassLongW (hWnd, nIndex, dwNewLong); | |
1388 else | |
1389 return SetClassLongA (hWnd, nIndex, dwNewLong); | |
1390 } | |
1391 | |
1392 /* Error if GetClassLongPtr used: Function needs review to determine how to handle it */ | |
1393 | |
1394 ULONG_PTR | |
1395 qxeSetClassLongPtr (HWND hWnd, int nIndex, LONG_PTR dwNewLong) | |
1396 { | |
1397 if (XEUNICODE_P) | |
1398 return SetClassLongPtrW (hWnd, nIndex, dwNewLong); | |
1399 else | |
1400 return SetClassLongPtrA (hWnd, nIndex, dwNewLong); | |
1401 } | |
1402 | |
1403 HWND | |
1404 qxeFindWindow (const Extbyte * lpClassName, const Extbyte * lpWindowName) | |
1405 { | |
1406 if (XEUNICODE_P) | |
1407 return FindWindowW ((LPCWSTR) lpClassName, (LPCWSTR) lpWindowName); | |
1408 else | |
1409 return FindWindowA ((LPCSTR) lpClassName, (LPCSTR) lpWindowName); | |
1410 } | |
1411 | |
1412 /* NOTE: NT 4.0+ only */ | |
1413 HWND | |
1414 qxeFindWindowEx (HWND hWndParent, HWND hWndChildAfter, const Extbyte * lpszClass, const Extbyte * lpszWindow) | |
1415 { | |
1416 if (XEUNICODE_P) | |
1417 return FindWindowExW (hWndParent, hWndChildAfter, (LPCWSTR) lpszClass, (LPCWSTR) lpszWindow); | |
1418 else | |
1419 return FindWindowExA (hWndParent, hWndChildAfter, (LPCSTR) lpszClass, (LPCSTR) lpszWindow); | |
1420 } | |
1421 | |
1422 int | |
1423 qxeGetClassName (HWND hWnd, Extbyte * lpClassName, int nMaxCount) | |
1424 { | |
1425 if (XEUNICODE_P) | |
1426 return GetClassNameW (hWnd, (LPWSTR) lpClassName, nMaxCount); | |
1427 else | |
1428 return GetClassNameA (hWnd, (LPSTR) lpClassName, nMaxCount); | |
1429 } | |
1430 | |
1431 /* Error if SetWindowsHook used: obsolete; two versions, STRICT and non-STRICT */ | |
1432 | |
1433 HHOOK | |
1434 qxeSetWindowsHookEx (int idHook, HOOKPROC lpfn, HINSTANCE hmod, DWORD dwThreadId) | |
1435 { | |
1436 if (XEUNICODE_P) | |
1437 return SetWindowsHookExW (idHook, lpfn, hmod, dwThreadId); | |
1438 else | |
1439 return SetWindowsHookExA (idHook, lpfn, hmod, dwThreadId); | |
1440 } | |
1441 | |
1442 HBITMAP | |
1443 qxeLoadBitmap (HINSTANCE hInstance, const Extbyte * lpBitmapName) | |
1444 { | |
1445 if (XEUNICODE_P) | |
1446 return LoadBitmapW (hInstance, (LPCWSTR) lpBitmapName); | |
1447 else | |
1448 return LoadBitmapA (hInstance, (LPCSTR) lpBitmapName); | |
1449 } | |
1450 | |
1451 HCURSOR | |
1452 qxeLoadCursor (HINSTANCE hInstance, const Extbyte * lpCursorName) | |
1453 { | |
1454 if (XEUNICODE_P) | |
1455 return LoadCursorW (hInstance, (LPCWSTR) lpCursorName); | |
1456 else | |
1457 return LoadCursorA (hInstance, (LPCSTR) lpCursorName); | |
1458 } | |
1459 | |
1460 HCURSOR | |
1461 qxeLoadCursorFromFile (const Extbyte * lpFileName) | |
1462 { | |
1463 if (XEUNICODE_P) | |
1464 return LoadCursorFromFileW ((LPCWSTR) lpFileName); | |
1465 else | |
1466 return LoadCursorFromFileA ((LPCSTR) lpFileName); | |
1467 } | |
1468 | |
1469 HICON | |
1470 qxeLoadIcon (HINSTANCE hInstance, const Extbyte * lpIconName) | |
1471 { | |
1472 if (XEUNICODE_P) | |
1473 return LoadIconW (hInstance, (LPCWSTR) lpIconName); | |
1474 else | |
1475 return LoadIconA (hInstance, (LPCSTR) lpIconName); | |
1476 } | |
1477 | |
1478 /* Error if PrivateExtractIcons used: HST: new? -- needs review */ | |
1479 | |
1480 /* NOTE: NT 4.0+ only */ | |
1481 HANDLE | |
1482 qxeLoadImage (HINSTANCE hInst, const Extbyte * name, UINT type, int cx, int cy, UINT fuLoad) | |
1483 { | |
1484 if (XEUNICODE_P) | |
1485 return LoadImageW (hInst, (LPCWSTR) name, type, cx, cy, fuLoad); | |
1486 else | |
1487 return LoadImageA (hInst, (LPCSTR) name, type, cx, cy, fuLoad); | |
1488 } | |
1489 | |
1490 WINBOOL | |
1491 qxeIsDialogMessage (HWND hDlg, LPMSG lpMsg) | |
1492 { | |
1493 if (XEUNICODE_P) | |
1494 return IsDialogMessageW (hDlg, lpMsg); | |
1495 else | |
1496 return IsDialogMessageA (hDlg, lpMsg); | |
1497 } | |
1498 | |
1499 int | |
1500 qxeDlgDirList (HWND hDlg, Extbyte * lpPathSpec, int nIDListBox, int nIDStaticPath, UINT uFileType) | |
1501 { | |
1502 if (XEUNICODE_P) | |
1503 return DlgDirListW (hDlg, (LPWSTR) lpPathSpec, nIDListBox, nIDStaticPath, uFileType); | |
1504 else | |
1505 return DlgDirListA (hDlg, (LPSTR) lpPathSpec, nIDListBox, nIDStaticPath, uFileType); | |
1506 } | |
1507 | |
1508 WINBOOL | |
1509 qxeDlgDirSelectEx (HWND hwndDlg, Extbyte * lpString, int chCount, int idListBox) | |
1510 { | |
1511 if (XEUNICODE_P) | |
1512 return DlgDirSelectExW (hwndDlg, (LPWSTR) lpString, chCount, idListBox); | |
1513 else | |
1514 return DlgDirSelectExA (hwndDlg, (LPSTR) lpString, chCount, idListBox); | |
1515 } | |
1516 | |
1517 int | |
1518 qxeDlgDirListComboBox (HWND hDlg, Extbyte * lpPathSpec, int nIDComboBox, int nIDStaticPath, UINT uFiletype) | |
1519 { | |
1520 if (XEUNICODE_P) | |
1521 return DlgDirListComboBoxW (hDlg, (LPWSTR) lpPathSpec, nIDComboBox, nIDStaticPath, uFiletype); | |
1522 else | |
1523 return DlgDirListComboBoxA (hDlg, (LPSTR) lpPathSpec, nIDComboBox, nIDStaticPath, uFiletype); | |
1524 } | |
1525 | |
1526 WINBOOL | |
1527 qxeDlgDirSelectComboBoxEx (HWND hwndDlg, Extbyte * lpString, int cchOut, int idComboBox) | |
1528 { | |
1529 if (XEUNICODE_P) | |
1530 return DlgDirSelectComboBoxExW (hwndDlg, (LPWSTR) lpString, cchOut, idComboBox); | |
1531 else | |
1532 return DlgDirSelectComboBoxExA (hwndDlg, (LPSTR) lpString, cchOut, idComboBox); | |
1533 } | |
1534 | |
1535 LRESULT | |
1536 qxeDefFrameProc (HWND hWnd, HWND hWndMDIClient, UINT uMsg, WPARAM wParam, LPARAM lParam) | |
1537 { | |
1538 if (XEUNICODE_P) | |
1539 return DefFrameProcW (hWnd, hWndMDIClient, uMsg, wParam, lParam); | |
1540 else | |
1541 return DefFrameProcA (hWnd, hWndMDIClient, uMsg, wParam, lParam); | |
1542 } | |
1543 | |
1544 /* Error if DefMDIChildProc used: return value is conditionalized on _MAC, messes up parser */ | |
1545 | |
1546 /* NOTE: error arg 1, VS6 prototype, missing const. | |
1547 NOTE: Prototype manually overridden. | |
1548 Header file claims: | |
1549 WINUSERAPI HWND WINAPI CreateMDIWindow(LPCWSTR lpClassName,LPCWSTR lpWindowName,DWORD dwStyle,int X,int Y,int nWidth,int nHeight,HWND hWndParent,HINSTANCE hInstance,LPARAM lParam) | |
949 Overridden with: | 1550 Overridden with: |
950 HWND CreateMDIWindow(LPWSTR,LPWSTR,DWORD,int,int,int,int,HWND,HINSTANCE,LPARAM) | 1551 HWND CreateMDIWindow(LPWSTR,LPWSTR,DWORD,int,int,int,int,HWND,HINSTANCE,LPARAM) |
951 Differences in return-type qualifiers, e.g. WINAPI, are not important. | 1552 Differences in return-type qualifiers, e.g. WINAPI, are not important. |
952 */ | 1553 */ |
953 HWND | 1554 HWND |
957 return CreateMDIWindowW ((LPWSTR) arg1, (LPWSTR) arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10); | 1558 return CreateMDIWindowW ((LPWSTR) arg1, (LPWSTR) arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10); |
958 else | 1559 else |
959 return CreateMDIWindowA ((LPSTR) arg1, (LPSTR) arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10); | 1560 return CreateMDIWindowA ((LPSTR) arg1, (LPSTR) arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10); |
960 } | 1561 } |
961 | 1562 |
962 HWND | 1563 WINBOOL |
963 qxeCreateWindowEx (DWORD arg1, const Extbyte * arg2, const Extbyte * arg3, DWORD arg4, int arg5, int arg6, int arg7, int arg8, HWND arg9, HMENU arg10, HINSTANCE arg11, LPVOID arg12) | 1564 qxeWinHelp (HWND hWndMain, const Extbyte * lpszHelp, UINT uCommand, ULONG_PTR dwData) |
964 { | 1565 { |
965 if (XEUNICODE_P) | 1566 if (XEUNICODE_P) |
966 return CreateWindowExW (arg1, (LPCWSTR) arg2, (LPCWSTR) arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12); | 1567 return WinHelpW (hWndMain, (LPCWSTR) lpszHelp, uCommand, dwData); |
967 else | 1568 else |
968 return CreateWindowExA (arg1, (LPCSTR) arg2, (LPCSTR) arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12); | 1569 return WinHelpA (hWndMain, (LPCSTR) lpszHelp, uCommand, dwData); |
969 } | 1570 } |
970 | 1571 |
971 /* NOTE: error arg 1, VS6 prototype, missing const. | 1572 /* Error if ChangeDisplaySettings used: split-sized LPDEVMODE */ |
972 NOTE: Prototype manually overridden. | 1573 |
973 Header file claims: | 1574 /* Error if ChangeDisplaySettingsEx used: split-sized LPDEVMODE; NT 5.0/Win98+ only */ |
974 WINUSERAPI HWINSTA WINAPI CreateWindowStation(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES) | 1575 |
975 Overridden with: | 1576 /* Error if EnumDisplaySettings used: split-sized LPDEVMODE */ |
976 HWINSTA CreateWindowStation(LPWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES) | 1577 |
977 Differences in return-type qualifiers, e.g. WINAPI, are not important. | 1578 /* Error if EnumDisplaySettingsEx used: Function needs review to determine how to handle it */ |
978 */ | 1579 |
979 HWINSTA | 1580 /* Error if EnumDisplayDevices used: split-sized PDISPLAY_DEVICE; NT 5.0+ only, no Win98 */ |
980 qxeCreateWindowStation (Extbyte * arg1, DWORD arg2, DWORD arg3, LPSECURITY_ATTRIBUTES arg4) | 1581 |
981 { | 1582 /* NOTE: probs w/ICONMETRICS, NONCLIENTMETRICS */ |
982 if (XEUNICODE_P) | 1583 WINBOOL |
983 return CreateWindowStationW ((LPWSTR) arg1, arg2, arg3, arg4); | 1584 qxeSystemParametersInfo (UINT uiAction, UINT uiParam, PVOID pvParam, UINT fWinIni) |
984 else | 1585 { |
985 return CreateWindowStationA ((LPSTR) arg1, arg2, arg3, arg4); | 1586 if (XEUNICODE_P) |
986 } | 1587 return SystemParametersInfoW (uiAction, uiParam, pvParam, fWinIni); |
987 | 1588 else |
988 /* Error if DefDlgProc used: return value is conditionalized on _MAC, messes up parser */ | 1589 return SystemParametersInfoA (uiAction, uiParam, pvParam, fWinIni); |
989 | 1590 } |
1591 | |
1592 /* Error if GetMonitorInfo used: NT 5.0/Win98+ only */ | |
1593 | |
1594 /* Error if GetWindowModuleFileName used: NT 5.0+ only */ | |
1595 | |
1596 /* Error if RealGetWindowClass used: NT 5.0+ only */ | |
1597 | |
1598 /* Error if GetAltTabInfo used: NT 5.0+ only */ | |
1599 | |
1600 /* Error if GetRawInputDeviceInfo used: HST: new? -- needs review */ | |
1601 | |
1602 /* Error if CreateDesktopEx used: HST: new? -- needs review */ | |
1603 | |
1604 | |
1605 /*----------------------------------------------------------------------*/ | |
1606 /* Processing file SYNCHAPI.H */ | |
1607 /*----------------------------------------------------------------------*/ | |
1608 | |
1609 HANDLE | |
1610 qxeOpenMutex (DWORD dwDesiredAccess, WINBOOL bInheritHandle, const Extbyte * lpName) | |
1611 { | |
1612 if (XEUNICODE_P) | |
1613 return OpenMutexW (dwDesiredAccess, bInheritHandle, (LPCWSTR) lpName); | |
1614 else | |
1615 return OpenMutexA (dwDesiredAccess, bInheritHandle, (LPCSTR) lpName); | |
1616 } | |
1617 | |
1618 HANDLE | |
1619 qxeOpenEvent (DWORD dwDesiredAccess, WINBOOL bInheritHandle, const Extbyte * lpName) | |
1620 { | |
1621 if (XEUNICODE_P) | |
1622 return OpenEventW (dwDesiredAccess, bInheritHandle, (LPCWSTR) lpName); | |
1623 else | |
1624 return OpenEventA (dwDesiredAccess, bInheritHandle, (LPCSTR) lpName); | |
1625 } | |
1626 | |
1627 HANDLE | |
1628 qxeOpenSemaphore (DWORD dwDesiredAccess, WINBOOL bInheritHandle, const Extbyte * lpName) | |
1629 { | |
1630 if (XEUNICODE_P) | |
1631 return OpenSemaphoreW (dwDesiredAccess, bInheritHandle, (LPCWSTR) lpName); | |
1632 else | |
1633 return OpenSemaphoreA (dwDesiredAccess, bInheritHandle, (LPCSTR) lpName); | |
1634 } | |
1635 | |
1636 /* Error if SleepConditionVariableSR used: HST: new? -- needs review */ | |
1637 | |
1638 /* Error if CreateMutexEx used: HST: new? -- needs review */ | |
1639 | |
1640 /* Error if CreateEventEx used: HST: new? -- needs review */ | |
1641 | |
1642 /* Error if CreateSemaphoreEx used: HST: new? -- needs review */ | |
1643 | |
1644 HANDLE | |
1645 qxeCreateMutex (LPSECURITY_ATTRIBUTES lpMutexAttributes, WINBOOL bInitialOwner, const Extbyte * lpName) | |
1646 { | |
1647 if (XEUNICODE_P) | |
1648 return CreateMutexW (lpMutexAttributes, bInitialOwner, (LPCWSTR) lpName); | |
1649 else | |
1650 return CreateMutexA (lpMutexAttributes, bInitialOwner, (LPCSTR) lpName); | |
1651 } | |
1652 | |
1653 HANDLE | |
1654 qxeCreateEvent (LPSECURITY_ATTRIBUTES lpEventAttributes, WINBOOL bManualReset, WINBOOL bInitialState, const Extbyte * lpName) | |
1655 { | |
1656 if (XEUNICODE_P) | |
1657 return CreateEventW (lpEventAttributes, bManualReset, bInitialState, (LPCWSTR) lpName); | |
1658 else | |
1659 return CreateEventA (lpEventAttributes, bManualReset, bInitialState, (LPCSTR) lpName); | |
1660 } | |
1661 | |
1662 HANDLE | |
1663 qxeOpenWaitableTimer (DWORD dwDesiredAccess, WINBOOL bInheritHandle, const Extbyte * lpTimerName) | |
1664 { | |
1665 if (XEUNICODE_P) | |
1666 return OpenWaitableTimerW (dwDesiredAccess, bInheritHandle, (LPCWSTR) lpTimerName); | |
1667 else | |
1668 return OpenWaitableTimerA (dwDesiredAccess, bInheritHandle, (LPCSTR) lpTimerName); | |
1669 } | |
1670 | |
1671 /* Error if CreateWaitableTimerEx used: HST: new? -- needs review */ | |
1672 | |
1673 | |
1674 /*----------------------------------------------------------------------*/ | |
1675 /* Processing file SECURITYBASEAPI.H */ | |
1676 /*----------------------------------------------------------------------*/ | |
1677 | |
1678 WINBOOL | |
1679 qxeAccessCheckAndAuditAlarm (const Extbyte * SubsystemName, LPVOID HandleId, Extbyte * ObjectTypeName, Extbyte * ObjectName, PSECURITY_DESCRIPTOR SecurityDescriptor, DWORD DesiredAccess, PGENERIC_MAPPING GenericMapping, WINBOOL ObjectCreation, LPDWORD GrantedAccess, LPBOOL AccessStatus, LPBOOL pfGenerateOnClose) | |
1680 { | |
1681 if (XEUNICODE_P) | |
1682 return AccessCheckAndAuditAlarmW ((LPCWSTR) SubsystemName, HandleId, (LPWSTR) ObjectTypeName, (LPWSTR) ObjectName, SecurityDescriptor, DesiredAccess, GenericMapping, ObjectCreation, GrantedAccess, AccessStatus, pfGenerateOnClose); | |
1683 else | |
1684 return AccessCheckAndAuditAlarmA ((LPCSTR) SubsystemName, HandleId, (LPSTR) ObjectTypeName, (LPSTR) ObjectName, SecurityDescriptor, DesiredAccess, GenericMapping, ObjectCreation, GrantedAccess, AccessStatus, pfGenerateOnClose); | |
1685 } | |
1686 | |
1687 /* Error if AccessCheckByTypeAndAuditAlarm used: HST: new? -- needs review */ | |
1688 | |
1689 /* Error if AccessCheckByTypeResultListAndAuditAlarm used: HST: new? -- needs review */ | |
1690 | |
1691 /* Error if AccessCheckByTypeResultListAndAuditAlarmByHandle used: HST: new? -- needs review */ | |
1692 | |
1693 WINBOOL | |
1694 qxeGetFileSecurity (const Extbyte * lpFileName, SECURITY_INFORMATION RequestedInformation, PSECURITY_DESCRIPTOR pSecurityDescriptor, DWORD nLength, LPDWORD lpnLengthNeeded) | |
1695 { | |
1696 if (XEUNICODE_P) | |
1697 return GetFileSecurityW ((LPCWSTR) lpFileName, RequestedInformation, pSecurityDescriptor, nLength, lpnLengthNeeded); | |
1698 else | |
1699 return GetFileSecurityA ((LPCSTR) lpFileName, RequestedInformation, pSecurityDescriptor, nLength, lpnLengthNeeded); | |
1700 } | |
1701 | |
1702 WINBOOL | |
1703 qxeObjectCloseAuditAlarm (const Extbyte * SubsystemName, LPVOID HandleId, WINBOOL GenerateOnClose) | |
1704 { | |
1705 if (XEUNICODE_P) | |
1706 return ObjectCloseAuditAlarmW ((LPCWSTR) SubsystemName, HandleId, GenerateOnClose); | |
1707 else | |
1708 return ObjectCloseAuditAlarmA ((LPCSTR) SubsystemName, HandleId, GenerateOnClose); | |
1709 } | |
1710 | |
1711 WINBOOL | |
1712 qxeObjectDeleteAuditAlarm (const Extbyte * SubsystemName, LPVOID HandleId, WINBOOL GenerateOnClose) | |
1713 { | |
1714 if (XEUNICODE_P) | |
1715 return ObjectDeleteAuditAlarmW ((LPCWSTR) SubsystemName, HandleId, GenerateOnClose); | |
1716 else | |
1717 return ObjectDeleteAuditAlarmA ((LPCSTR) SubsystemName, HandleId, GenerateOnClose); | |
1718 } | |
1719 | |
1720 WINBOOL | |
1721 qxeObjectOpenAuditAlarm (const Extbyte * SubsystemName, LPVOID HandleId, Extbyte * ObjectTypeName, Extbyte * ObjectName, PSECURITY_DESCRIPTOR pSecurityDescriptor, HANDLE ClientToken, DWORD DesiredAccess, DWORD GrantedAccess, PPRIVILEGE_SET Privileges, WINBOOL ObjectCreation, WINBOOL AccessGranted, LPBOOL GenerateOnClose) | |
1722 { | |
1723 if (XEUNICODE_P) | |
1724 return ObjectOpenAuditAlarmW ((LPCWSTR) SubsystemName, HandleId, (LPWSTR) ObjectTypeName, (LPWSTR) ObjectName, pSecurityDescriptor, ClientToken, DesiredAccess, GrantedAccess, Privileges, ObjectCreation, AccessGranted, GenerateOnClose); | |
1725 else | |
1726 return ObjectOpenAuditAlarmA ((LPCSTR) SubsystemName, HandleId, (LPSTR) ObjectTypeName, (LPSTR) ObjectName, pSecurityDescriptor, ClientToken, DesiredAccess, GrantedAccess, Privileges, ObjectCreation, AccessGranted, GenerateOnClose); | |
1727 } | |
1728 | |
1729 WINBOOL | |
1730 qxeObjectPrivilegeAuditAlarm (const Extbyte * SubsystemName, LPVOID HandleId, HANDLE ClientToken, DWORD DesiredAccess, PPRIVILEGE_SET Privileges, WINBOOL AccessGranted) | |
1731 { | |
1732 if (XEUNICODE_P) | |
1733 return ObjectPrivilegeAuditAlarmW ((LPCWSTR) SubsystemName, HandleId, ClientToken, DesiredAccess, Privileges, AccessGranted); | |
1734 else | |
1735 return ObjectPrivilegeAuditAlarmA ((LPCSTR) SubsystemName, HandleId, ClientToken, DesiredAccess, Privileges, AccessGranted); | |
1736 } | |
1737 | |
1738 WINBOOL | |
1739 qxePrivilegedServiceAuditAlarm (const Extbyte * SubsystemName, const Extbyte * ServiceName, HANDLE ClientToken, PPRIVILEGE_SET Privileges, WINBOOL AccessGranted) | |
1740 { | |
1741 if (XEUNICODE_P) | |
1742 return PrivilegedServiceAuditAlarmW ((LPCWSTR) SubsystemName, (LPCWSTR) ServiceName, ClientToken, Privileges, AccessGranted); | |
1743 else | |
1744 return PrivilegedServiceAuditAlarmA ((LPCSTR) SubsystemName, (LPCSTR) ServiceName, ClientToken, Privileges, AccessGranted); | |
1745 } | |
1746 | |
1747 WINBOOL | |
1748 qxeSetFileSecurity (const Extbyte * lpFileName, SECURITY_INFORMATION SecurityInformation, PSECURITY_DESCRIPTOR pSecurityDescriptor) | |
1749 { | |
1750 if (XEUNICODE_P) | |
1751 return SetFileSecurityW ((LPCWSTR) lpFileName, SecurityInformation, pSecurityDescriptor); | |
1752 else | |
1753 return SetFileSecurityA ((LPCSTR) lpFileName, SecurityInformation, pSecurityDescriptor); | |
1754 } | |
1755 | |
1756 | |
1757 /*----------------------------------------------------------------------*/ | |
1758 /* Processing file PROCESSENV.H */ | |
1759 /*----------------------------------------------------------------------*/ | |
1760 | |
1761 /* Error if GetEnvironmentStrings used: HST: new? -- needs review */ | |
1762 | |
1763 /* Error if SetEnvironmentStrings used: HST: new? -- needs review */ | |
1764 | |
1765 WINBOOL | |
1766 qxeFreeEnvironmentStrings (LPWCH penv) | |
1767 { | |
1768 if (XEUNICODE_P) | |
1769 return FreeEnvironmentStringsW (penv); | |
1770 else | |
1771 return FreeEnvironmentStringsA (penv); | |
1772 } | |
1773 | |
1774 Extbyte * | |
1775 qxeGetCommandLine (void) | |
1776 { | |
1777 if (XEUNICODE_P) | |
1778 return (Extbyte *) GetCommandLineW (); | |
1779 else | |
1780 return (Extbyte *) GetCommandLineA (); | |
1781 } | |
1782 | |
1783 DWORD | |
1784 qxeGetEnvironmentVariable (const Extbyte * lpName, Extbyte * lpBuffer, DWORD nSize) | |
1785 { | |
1786 if (XEUNICODE_P) | |
1787 return GetEnvironmentVariableW ((LPCWSTR) lpName, (LPWSTR) lpBuffer, nSize); | |
1788 else | |
1789 return GetEnvironmentVariableA ((LPCSTR) lpName, (LPSTR) lpBuffer, nSize); | |
1790 } | |
1791 | |
1792 WINBOOL | |
1793 qxeSetEnvironmentVariable (const Extbyte * lpName, const Extbyte * lpValue) | |
1794 { | |
1795 if (XEUNICODE_P) | |
1796 return SetEnvironmentVariableW ((LPCWSTR) lpName, (LPCWSTR) lpValue); | |
1797 else | |
1798 return SetEnvironmentVariableA ((LPCSTR) lpName, (LPCSTR) lpValue); | |
1799 } | |
1800 | |
1801 DWORD | |
1802 qxeExpandEnvironmentStrings (const Extbyte * lpSrc, Extbyte * lpDst, DWORD nSize) | |
1803 { | |
1804 if (XEUNICODE_P) | |
1805 return ExpandEnvironmentStringsW ((LPCWSTR) lpSrc, (LPWSTR) lpDst, nSize); | |
1806 else | |
1807 return ExpandEnvironmentStringsA ((LPCSTR) lpSrc, (LPSTR) lpDst, nSize); | |
1808 } | |
1809 | |
1810 WINBOOL | |
1811 qxeSetCurrentDirectory (const Extbyte * lpPathName) | |
1812 { | |
1813 if (XEUNICODE_P) | |
1814 return SetCurrentDirectoryW ((LPCWSTR) lpPathName); | |
1815 else | |
1816 return SetCurrentDirectoryA ((LPCSTR) lpPathName); | |
1817 } | |
1818 | |
1819 DWORD | |
1820 qxeGetCurrentDirectory (DWORD nBufferLength, Extbyte * lpBuffer) | |
1821 { | |
1822 if (XEUNICODE_P) | |
1823 return GetCurrentDirectoryW (nBufferLength, (LPWSTR) lpBuffer); | |
1824 else | |
1825 return GetCurrentDirectoryA (nBufferLength, (LPSTR) lpBuffer); | |
1826 } | |
1827 | |
1828 DWORD | |
1829 qxeSearchPath (const Extbyte * lpPath, const Extbyte * lpFileName, const Extbyte * lpExtension, DWORD nBufferLength, Extbyte * lpBuffer, Extbyte * * lpFilePart) | |
1830 { | |
1831 if (XEUNICODE_P) | |
1832 return SearchPathW ((LPCWSTR) lpPath, (LPCWSTR) lpFileName, (LPCWSTR) lpExtension, nBufferLength, (LPWSTR) lpBuffer, (LPWSTR *) lpFilePart); | |
1833 else | |
1834 return SearchPathA ((LPCSTR) lpPath, (LPCSTR) lpFileName, (LPCSTR) lpExtension, nBufferLength, (LPSTR) lpBuffer, (LPSTR *) lpFilePart); | |
1835 } | |
1836 | |
1837 /* Error if NeedCurrentDirectoryForExePath used: HST: new? -- needs review */ | |
1838 | |
1839 | |
1840 /*----------------------------------------------------------------------*/ | |
1841 /* Processing file DBGENG.H */ | |
1842 /*----------------------------------------------------------------------*/ | |
1843 | |
1844 | |
1845 /*----------------------------------------------------------------------*/ | |
1846 /* Processing file LIBLOADERAPI.H */ | |
1847 /*----------------------------------------------------------------------*/ | |
1848 | |
1849 HRSRC | |
1850 qxeFindResourceEx (HMODULE hModule, const Extbyte * lpType, const Extbyte * lpName, WORD wLanguage) | |
1851 { | |
1852 if (XEUNICODE_P) | |
1853 return FindResourceExW (hModule, (LPCWSTR) lpType, (LPCWSTR) lpName, wLanguage); | |
1854 else | |
1855 return FindResourceExA (hModule, (LPCSTR) lpType, (LPCSTR) lpName, wLanguage); | |
1856 } | |
1857 | |
1858 DWORD | |
1859 qxeGetModuleFileName (HMODULE hModule, Extbyte * lpFilename, DWORD nSize) | |
1860 { | |
1861 if (XEUNICODE_P) | |
1862 return GetModuleFileNameW (hModule, (LPWSTR) lpFilename, nSize); | |
1863 else | |
1864 return GetModuleFileNameA (hModule, (LPSTR) lpFilename, nSize); | |
1865 } | |
1866 | |
1867 HMODULE | |
1868 qxeGetModuleHandle (const Extbyte * lpModuleName) | |
1869 { | |
1870 if (XEUNICODE_P) | |
1871 return GetModuleHandleW ((LPCWSTR) lpModuleName); | |
1872 else | |
1873 return GetModuleHandleA ((LPCSTR) lpModuleName); | |
1874 } | |
1875 | |
1876 HMODULE | |
1877 qxeLoadLibraryEx (const Extbyte * lpLibFileName, HANDLE hFile, DWORD dwFlags) | |
1878 { | |
1879 if (XEUNICODE_P) | |
1880 return LoadLibraryExW ((LPCWSTR) lpLibFileName, hFile, dwFlags); | |
1881 else | |
1882 return LoadLibraryExA ((LPCSTR) lpLibFileName, hFile, dwFlags); | |
1883 } | |
1884 | |
1885 int | |
1886 qxeLoadString (HINSTANCE hInstance, UINT uID, Extbyte * lpBuffer, int cchBufferMax) | |
1887 { | |
1888 if (XEUNICODE_P) | |
1889 return LoadStringW (hInstance, uID, (LPWSTR) lpBuffer, cchBufferMax); | |
1890 else | |
1891 return LoadStringA (hInstance, uID, (LPSTR) lpBuffer, cchBufferMax); | |
1892 } | |
1893 | |
1894 /* Error if GetModuleHandleEx used: HST: new? -- needs review */ | |
1895 | |
1896 /* Error if EnumResourceLanguages used: HST: new? -- needs review */ | |
1897 | |
1898 /* Error if EnumResourceLanguagesEx used: HST: new? -- needs review */ | |
1899 | |
1900 /* Error if EnumResourceNamesEx used: HST: new? -- needs review */ | |
1901 | |
1902 /* Error if EnumResourceTypesEx used: HST: new? -- needs review */ | |
1903 | |
1904 | |
1905 /*----------------------------------------------------------------------*/ | |
1906 /* Processing file IMM.H */ | |
1907 /*----------------------------------------------------------------------*/ | |
1908 | |
1909 #if defined (HAVE_MS_WINDOWS) | |
1910 | |
1911 HKL | |
1912 qxeImmInstallIME (const Extbyte * lpszIMEFileName, const Extbyte * lpszLayoutText) | |
1913 { | |
1914 if (XEUNICODE_P) | |
1915 return ImmInstallIMEW ((LPCWSTR) lpszIMEFileName, (LPCWSTR) lpszLayoutText); | |
1916 else | |
1917 return ImmInstallIMEA ((LPCSTR) lpszIMEFileName, (LPCSTR) lpszLayoutText); | |
1918 } | |
1919 | |
1920 #endif /* defined (HAVE_MS_WINDOWS) */ | |
1921 | |
1922 #if defined (HAVE_MS_WINDOWS) | |
1923 | |
1924 UINT | |
1925 qxeImmGetDescription (HKL arg1, Extbyte * arg2, UINT uBufLen) | |
1926 { | |
1927 if (XEUNICODE_P) | |
1928 return ImmGetDescriptionW (arg1, (LPWSTR) arg2, uBufLen); | |
1929 else | |
1930 return ImmGetDescriptionA (arg1, (LPSTR) arg2, uBufLen); | |
1931 } | |
1932 | |
1933 #endif /* defined (HAVE_MS_WINDOWS) */ | |
1934 | |
1935 #if defined (HAVE_MS_WINDOWS) | |
1936 | |
1937 UINT | |
1938 qxeImmGetIMEFileName (HKL arg1, Extbyte * arg2, UINT uBufLen) | |
1939 { | |
1940 if (XEUNICODE_P) | |
1941 return ImmGetIMEFileNameW (arg1, (LPWSTR) arg2, uBufLen); | |
1942 else | |
1943 return ImmGetIMEFileNameA (arg1, (LPSTR) arg2, uBufLen); | |
1944 } | |
1945 | |
1946 #endif /* defined (HAVE_MS_WINDOWS) */ | |
1947 | |
1948 #if defined (HAVE_MS_WINDOWS) | |
1949 | |
1950 LONG | |
1951 qxeImmGetCompositionString (HIMC arg1, DWORD arg2, LPVOID arg3, DWORD arg4) | |
1952 { | |
1953 if (XEUNICODE_P) | |
1954 return ImmGetCompositionStringW (arg1, arg2, arg3, arg4); | |
1955 else | |
1956 return ImmGetCompositionStringA (arg1, arg2, arg3, arg4); | |
1957 } | |
1958 | |
1959 #endif /* defined (HAVE_MS_WINDOWS) */ | |
1960 | |
1961 #if defined (HAVE_MS_WINDOWS) | |
1962 | |
1963 /* Skipping ImmSetCompositionString because different prototypes in VC6 and VC7 */ | |
1964 | |
1965 #endif /* defined (HAVE_MS_WINDOWS) */ | |
1966 | |
1967 #if defined (HAVE_MS_WINDOWS) | |
1968 | |
1969 DWORD | |
1970 qxeImmGetCandidateListCount (HIMC arg1, LPDWORD lpdwListCount) | |
1971 { | |
1972 if (XEUNICODE_P) | |
1973 return ImmGetCandidateListCountW (arg1, lpdwListCount); | |
1974 else | |
1975 return ImmGetCandidateListCountA (arg1, lpdwListCount); | |
1976 } | |
1977 | |
1978 #endif /* defined (HAVE_MS_WINDOWS) */ | |
1979 | |
1980 #if defined (HAVE_MS_WINDOWS) | |
1981 | |
1982 DWORD | |
1983 qxeImmGetCandidateList (HIMC arg1, DWORD deIndex, LPCANDIDATELIST arg3, DWORD dwBufLen) | |
1984 { | |
1985 if (XEUNICODE_P) | |
1986 return ImmGetCandidateListW (arg1, deIndex, arg3, dwBufLen); | |
1987 else | |
1988 return ImmGetCandidateListA (arg1, deIndex, arg3, dwBufLen); | |
1989 } | |
1990 | |
1991 #endif /* defined (HAVE_MS_WINDOWS) */ | |
1992 | |
1993 #if defined (HAVE_MS_WINDOWS) | |
1994 | |
1995 DWORD | |
1996 qxeImmGetGuideLine (HIMC arg1, DWORD dwIndex, Extbyte * arg3, DWORD dwBufLen) | |
1997 { | |
1998 if (XEUNICODE_P) | |
1999 return ImmGetGuideLineW (arg1, dwIndex, (LPWSTR) arg3, dwBufLen); | |
2000 else | |
2001 return ImmGetGuideLineA (arg1, dwIndex, (LPSTR) arg3, dwBufLen); | |
2002 } | |
2003 | |
2004 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2005 | |
2006 #if defined (HAVE_MS_WINDOWS) | |
2007 | |
2008 /* Skipping ImmGetCompositionFont because split-sized LOGFONT */ | |
2009 | |
2010 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2011 | |
2012 #if defined (HAVE_MS_WINDOWS) | |
2013 | |
2014 /* Skipping ImmSetCompositionFont because split-sized LOGFONT */ | |
2015 | |
2016 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2017 | |
2018 #if defined (HAVE_MS_WINDOWS) | |
2019 | |
2020 /* NOTE: // split-simple REGISTERWORD */ | |
2021 WINBOOL | |
2022 qxeImmConfigureIME (HKL arg1, HWND arg2, DWORD arg3, LPVOID arg4) | |
2023 { | |
2024 if (XEUNICODE_P) | |
2025 return ImmConfigureIMEW (arg1, arg2, arg3, arg4); | |
2026 else | |
2027 return ImmConfigureIMEA (arg1, arg2, arg3, arg4); | |
2028 } | |
2029 | |
2030 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2031 | |
2032 #if defined (HAVE_MS_WINDOWS) | |
2033 | |
2034 /* NOTE: // strings of various sorts */ | |
990 LRESULT | 2035 LRESULT |
991 qxeDefFrameProc (HWND arg1, HWND arg2, UINT arg3, WPARAM arg4, LPARAM arg5) | 2036 qxeImmEscape (HKL arg1, HIMC arg2, UINT arg3, LPVOID arg4) |
992 { | 2037 { |
993 if (XEUNICODE_P) | 2038 if (XEUNICODE_P) |
994 return DefFrameProcW (arg1, arg2, arg3, arg4, arg5); | 2039 return ImmEscapeW (arg1, arg2, arg3, arg4); |
995 else | 2040 else |
996 return DefFrameProcA (arg1, arg2, arg3, arg4, arg5); | 2041 return ImmEscapeA (arg1, arg2, arg3, arg4); |
997 } | 2042 } |
998 | 2043 |
999 /* Error if DefMDIChildProc used: return value is conditionalized on _MAC, messes up parser */ | 2044 #endif /* defined (HAVE_MS_WINDOWS) */ |
1000 | 2045 |
1001 /* Skipping DefWindowProc because return value is conditionalized on _MAC, messes up parser */ | 2046 #if defined (HAVE_MS_WINDOWS) |
1002 | 2047 |
1003 /* NOTE: error in Cygwin prototype (no split) but fixable with typedef */ | 2048 DWORD |
2049 qxeImmGetConversionList (HKL arg1, HIMC arg2, const Extbyte * arg3, LPCANDIDATELIST arg4, DWORD dwBufLen, UINT uFlag) | |
2050 { | |
2051 if (XEUNICODE_P) | |
2052 return ImmGetConversionListW (arg1, arg2, (LPCWSTR) arg3, arg4, dwBufLen, uFlag); | |
2053 else | |
2054 return ImmGetConversionListA (arg1, arg2, (LPCSTR) arg3, arg4, dwBufLen, uFlag); | |
2055 } | |
2056 | |
2057 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2058 | |
2059 #if defined (HAVE_MS_WINDOWS) | |
2060 | |
2061 WINBOOL | |
2062 qxeImmIsUIMessage (HWND arg1, UINT arg2, WPARAM arg3, LPARAM arg4) | |
2063 { | |
2064 if (XEUNICODE_P) | |
2065 return ImmIsUIMessageW (arg1, arg2, arg3, arg4); | |
2066 else | |
2067 return ImmIsUIMessageA (arg1, arg2, arg3, arg4); | |
2068 } | |
2069 | |
2070 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2071 | |
2072 #if defined (HAVE_MS_WINDOWS) | |
2073 | |
2074 WINBOOL | |
2075 qxeImmRegisterWord (HKL arg1, const Extbyte * lpszReading, DWORD arg3, const Extbyte * lpszRegister) | |
2076 { | |
2077 if (XEUNICODE_P) | |
2078 return ImmRegisterWordW (arg1, (LPCWSTR) lpszReading, arg3, (LPCWSTR) lpszRegister); | |
2079 else | |
2080 return ImmRegisterWordA (arg1, (LPCSTR) lpszReading, arg3, (LPCSTR) lpszRegister); | |
2081 } | |
2082 | |
2083 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2084 | |
2085 #if defined (HAVE_MS_WINDOWS) | |
2086 | |
2087 WINBOOL | |
2088 qxeImmUnregisterWord (HKL arg1, const Extbyte * lpszReading, DWORD arg3, const Extbyte * lpszUnregister) | |
2089 { | |
2090 if (XEUNICODE_P) | |
2091 return ImmUnregisterWordW (arg1, (LPCWSTR) lpszReading, arg3, (LPCWSTR) lpszUnregister); | |
2092 else | |
2093 return ImmUnregisterWordA (arg1, (LPCSTR) lpszReading, arg3, (LPCSTR) lpszUnregister); | |
2094 } | |
2095 | |
2096 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2097 | |
2098 #if defined (HAVE_MS_WINDOWS) | |
2099 | |
2100 /* Error if ImmGetRegisterWordStyle used: split-sized STYLEBUF */ | |
2101 | |
2102 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2103 | |
2104 #if defined (HAVE_MS_WINDOWS) | |
2105 | |
2106 UINT | |
2107 qxeImmEnumRegisterWord (HKL arg1, REGISTERWORDENUMPROCW arg2, const Extbyte * lpszReading, DWORD arg4, const Extbyte * lpszRegister, LPVOID arg6) | |
2108 { | |
2109 if (XEUNICODE_P) | |
2110 return ImmEnumRegisterWordW (arg1, arg2, (LPCWSTR) lpszReading, arg4, (LPCWSTR) lpszRegister, arg6); | |
2111 else | |
2112 return ImmEnumRegisterWordA (arg1, (REGISTERWORDENUMPROCA) arg2, (LPCSTR) lpszReading, arg4, (LPCSTR) lpszRegister, arg6); | |
2113 } | |
2114 | |
2115 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2116 | |
2117 #if defined (HAVE_MS_WINDOWS) | |
2118 | |
2119 /* Error if ImmGetImeMenuItems used: split-sized IMEMENUITEMINFO */ | |
2120 | |
2121 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2122 | |
2123 | |
2124 /*----------------------------------------------------------------------*/ | |
2125 /* Processing file NAMEDPIPEAPI.H */ | |
2126 /*----------------------------------------------------------------------*/ | |
2127 | |
2128 HANDLE | |
2129 qxeCreateNamedPipe (const Extbyte * lpName, DWORD dwOpenMode, DWORD dwPipeMode, DWORD nMaxInstances, DWORD nOutBufferSize, DWORD nInBufferSize, DWORD nDefaultTimeOut, LPSECURITY_ATTRIBUTES lpSecurityAttributes) | |
2130 { | |
2131 if (XEUNICODE_P) | |
2132 return CreateNamedPipeW ((LPCWSTR) lpName, dwOpenMode, dwPipeMode, nMaxInstances, nOutBufferSize, nInBufferSize, nDefaultTimeOut, lpSecurityAttributes); | |
2133 else | |
2134 return CreateNamedPipeA ((LPCSTR) lpName, dwOpenMode, dwPipeMode, nMaxInstances, nOutBufferSize, nInBufferSize, nDefaultTimeOut, lpSecurityAttributes); | |
2135 } | |
2136 | |
2137 WINBOOL | |
2138 qxeWaitNamedPipe (const Extbyte * lpNamedPipeName, DWORD nTimeOut) | |
2139 { | |
2140 if (XEUNICODE_P) | |
2141 return WaitNamedPipeW ((LPCWSTR) lpNamedPipeName, nTimeOut); | |
2142 else | |
2143 return WaitNamedPipeA ((LPCSTR) lpNamedPipeName, nTimeOut); | |
2144 } | |
2145 | |
2146 /* Error if GetNamedPipeClientComputerName used: HST: new? -- needs review */ | |
2147 | |
2148 | |
2149 /*----------------------------------------------------------------------*/ | |
2150 /* Processing file MEMORYAPI.H */ | |
2151 /*----------------------------------------------------------------------*/ | |
2152 | |
2153 HANDLE | |
2154 qxeCreateFileMapping (HANDLE hFile, LPSECURITY_ATTRIBUTES lpFileMappingAttributes, DWORD flProtect, DWORD dwMaximumSizeHigh, DWORD dwMaximumSizeLow, const Extbyte * lpName) | |
2155 { | |
2156 if (XEUNICODE_P) | |
2157 return CreateFileMappingW (hFile, lpFileMappingAttributes, flProtect, dwMaximumSizeHigh, dwMaximumSizeLow, (LPCWSTR) lpName); | |
2158 else | |
2159 return CreateFileMappingA (hFile, lpFileMappingAttributes, flProtect, dwMaximumSizeHigh, dwMaximumSizeLow, (LPCSTR) lpName); | |
2160 } | |
2161 | |
2162 HANDLE | |
2163 qxeOpenFileMapping (DWORD dwDesiredAccess, WINBOOL bInheritHandle, const Extbyte * lpName) | |
2164 { | |
2165 if (XEUNICODE_P) | |
2166 return OpenFileMappingW (dwDesiredAccess, bInheritHandle, (LPCWSTR) lpName); | |
2167 else | |
2168 return OpenFileMappingA (dwDesiredAccess, bInheritHandle, (LPCSTR) lpName); | |
2169 } | |
2170 | |
2171 /* Error if CreateFileMappingNuma used: HST: new? -- needs review */ | |
2172 | |
2173 | |
2174 /*----------------------------------------------------------------------*/ | |
2175 /* Processing file MMSYSTEM.H */ | |
2176 /*----------------------------------------------------------------------*/ | |
2177 | |
2178 WINBOOL | |
2179 qxesndPlaySound (const Extbyte * pszSound, UINT fuSound) | |
2180 { | |
2181 if (XEUNICODE_P) | |
2182 return sndPlaySoundW ((LPCWSTR) pszSound, fuSound); | |
2183 else | |
2184 return sndPlaySoundA ((LPCSTR) pszSound, fuSound); | |
2185 } | |
2186 | |
2187 WINBOOL | |
2188 qxePlaySound (const Extbyte * pszSound, HMODULE hmod, DWORD fdwSound) | |
2189 { | |
2190 if (XEUNICODE_P) | |
2191 return PlaySoundW ((LPCWSTR) pszSound, hmod, fdwSound); | |
2192 else | |
2193 return PlaySoundA ((LPCSTR) pszSound, hmod, fdwSound); | |
2194 } | |
2195 | |
2196 /* Error if waveOutGetDevCaps used: split-sized LPWAVEOUTCAPS */ | |
2197 | |
2198 MMRESULT | |
2199 qxewaveOutGetErrorText (MMRESULT mmrError, Extbyte * pszText, UINT cchText) | |
2200 { | |
2201 if (XEUNICODE_P) | |
2202 return waveOutGetErrorTextW (mmrError, (LPWSTR) pszText, cchText); | |
2203 else | |
2204 return waveOutGetErrorTextA (mmrError, (LPSTR) pszText, cchText); | |
2205 } | |
2206 | |
2207 /* Error if waveInGetDevCaps used: split-sized LPWAVEINCAPS */ | |
2208 | |
2209 MMRESULT | |
2210 qxewaveInGetErrorText (MMRESULT mmrError, Extbyte * pszText, UINT cchText) | |
2211 { | |
2212 if (XEUNICODE_P) | |
2213 return waveInGetErrorTextW (mmrError, (LPWSTR) pszText, cchText); | |
2214 else | |
2215 return waveInGetErrorTextA (mmrError, (LPSTR) pszText, cchText); | |
2216 } | |
2217 | |
2218 /* Error if midiOutGetDevCaps used: split-sized LPMIDIOUTCAPS */ | |
2219 | |
2220 MMRESULT | |
2221 qxemidiOutGetErrorText (MMRESULT mmrError, Extbyte * pszText, UINT cchText) | |
2222 { | |
2223 if (XEUNICODE_P) | |
2224 return midiOutGetErrorTextW (mmrError, (LPWSTR) pszText, cchText); | |
2225 else | |
2226 return midiOutGetErrorTextA (mmrError, (LPSTR) pszText, cchText); | |
2227 } | |
2228 | |
2229 /* Error if midiInGetDevCaps used: split-sized LPMIDIOUTCAPS */ | |
2230 | |
2231 MMRESULT | |
2232 qxemidiInGetErrorText (MMRESULT mmrError, Extbyte * pszText, UINT cchText) | |
2233 { | |
2234 if (XEUNICODE_P) | |
2235 return midiInGetErrorTextW (mmrError, (LPWSTR) pszText, cchText); | |
2236 else | |
2237 return midiInGetErrorTextA (mmrError, (LPSTR) pszText, cchText); | |
2238 } | |
2239 | |
2240 /* Error if auxGetDevCaps used: split-sized LPAUXCAPS */ | |
2241 | |
2242 /* Error if mixerGetDevCaps used: split-sized LPMIXERCAPS */ | |
2243 | |
2244 /* Error if mixerGetLineInfo used: split-sized LPMIXERLINE */ | |
2245 | |
2246 /* Error if mixerGetLineControls used: split-sized LPMIXERCONTROL */ | |
2247 | |
2248 /* Error if mixerGetControlDetails used: split-sized LPMIXERCONTROL in LPMIXERLINECONTROLS in LPMIXERCONTROLDETAILS */ | |
2249 | |
2250 /* Error if joyGetDevCaps used: split-sized LPJOYCAPS */ | |
2251 | |
2252 FOURCC | |
2253 qxemmioStringToFOURCC (const Extbyte * sz, UINT uFlags) | |
2254 { | |
2255 if (XEUNICODE_P) | |
2256 return mmioStringToFOURCCW ((LPCWSTR) sz, uFlags); | |
2257 else | |
2258 return mmioStringToFOURCCA ((LPCSTR) sz, uFlags); | |
2259 } | |
2260 | |
2261 LPMMIOPROC | |
2262 qxemmioInstallIOProc (FOURCC fccIOProc, LPMMIOPROC pIOProc, DWORD dwFlags) | |
2263 { | |
2264 if (XEUNICODE_P) | |
2265 return mmioInstallIOProcW (fccIOProc, pIOProc, dwFlags); | |
2266 else | |
2267 return mmioInstallIOProcA (fccIOProc, pIOProc, dwFlags); | |
2268 } | |
2269 | |
2270 HMMIO | |
2271 qxemmioOpen (Extbyte * pszFileName, LPMMIOINFO pmmioinfo, DWORD fdwOpen) | |
2272 { | |
2273 if (XEUNICODE_P) | |
2274 return mmioOpenW ((LPWSTR) pszFileName, pmmioinfo, fdwOpen); | |
2275 else | |
2276 return mmioOpenA ((LPSTR) pszFileName, pmmioinfo, fdwOpen); | |
2277 } | |
2278 | |
2279 MMRESULT | |
2280 qxemmioRename (const Extbyte * pszFileName, const Extbyte * pszNewFileName, LPCMMIOINFO pmmioinfo, DWORD fdwRename) | |
2281 { | |
2282 if (XEUNICODE_P) | |
2283 return mmioRenameW ((LPCWSTR) pszFileName, (LPCWSTR) pszNewFileName, pmmioinfo, fdwRename); | |
2284 else | |
2285 return mmioRenameA ((LPCSTR) pszFileName, (LPCSTR) pszNewFileName, pmmioinfo, fdwRename); | |
2286 } | |
2287 | |
2288 MCIERROR | |
2289 qxemciSendCommand (MCIDEVICEID mciId, UINT uMsg, DWORD_PTR dwParam1, DWORD_PTR dwParam2) | |
2290 { | |
2291 if (XEUNICODE_P) | |
2292 return mciSendCommandW (mciId, uMsg, dwParam1, dwParam2); | |
2293 else | |
2294 return mciSendCommandA (mciId, uMsg, dwParam1, dwParam2); | |
2295 } | |
2296 | |
2297 MCIERROR | |
2298 qxemciSendString (const Extbyte * lpstrCommand, Extbyte * lpstrReturnString, UINT uReturnLength, HWND hwndCallback) | |
2299 { | |
2300 if (XEUNICODE_P) | |
2301 return mciSendStringW ((LPCWSTR) lpstrCommand, (LPWSTR) lpstrReturnString, uReturnLength, hwndCallback); | |
2302 else | |
2303 return mciSendStringA ((LPCSTR) lpstrCommand, (LPSTR) lpstrReturnString, uReturnLength, hwndCallback); | |
2304 } | |
2305 | |
2306 MCIDEVICEID | |
2307 qxemciGetDeviceID (const Extbyte * pszDevice) | |
2308 { | |
2309 if (XEUNICODE_P) | |
2310 return mciGetDeviceIDW ((LPCWSTR) pszDevice); | |
2311 else | |
2312 return mciGetDeviceIDA ((LPCSTR) pszDevice); | |
2313 } | |
2314 | |
2315 #if !defined (MINGW) | |
2316 | |
2317 /* Error if mciGetDeviceIDFromElementID used: missing from Win98se version of ADVAPI32.dll */ | |
2318 | |
2319 #endif /* !defined (MINGW) */ | |
2320 | |
2321 WINBOOL | |
2322 qxemciGetErrorString (MCIERROR mcierr, Extbyte * pszText, UINT cchText) | |
2323 { | |
2324 if (XEUNICODE_P) | |
2325 return mciGetErrorStringW (mcierr, (LPWSTR) pszText, cchText); | |
2326 else | |
2327 return mciGetErrorStringA (mcierr, (LPSTR) pszText, cchText); | |
2328 } | |
2329 | |
2330 | |
2331 /*----------------------------------------------------------------------*/ | |
2332 /* Processing file WINCON.H */ | |
2333 /*----------------------------------------------------------------------*/ | |
2334 | |
2335 WINBOOL | |
2336 qxePeekConsoleInput (HANDLE hConsoleInput, PINPUT_RECORD lpBuffer, DWORD nLength, LPDWORD lpNumberOfEventsRead) | |
2337 { | |
2338 if (XEUNICODE_P) | |
2339 return PeekConsoleInputW (hConsoleInput, lpBuffer, nLength, lpNumberOfEventsRead); | |
2340 else | |
2341 return PeekConsoleInputA (hConsoleInput, lpBuffer, nLength, lpNumberOfEventsRead); | |
2342 } | |
2343 | |
2344 WINBOOL | |
2345 qxeReadConsoleInput (HANDLE hConsoleInput, PINPUT_RECORD lpBuffer, DWORD nLength, LPDWORD lpNumberOfEventsRead) | |
2346 { | |
2347 if (XEUNICODE_P) | |
2348 return ReadConsoleInputW (hConsoleInput, lpBuffer, nLength, lpNumberOfEventsRead); | |
2349 else | |
2350 return ReadConsoleInputA (hConsoleInput, lpBuffer, nLength, lpNumberOfEventsRead); | |
2351 } | |
2352 | |
2353 WINBOOL | |
2354 qxeWriteConsoleInput (HANDLE hConsoleInput, CONST INPUT_RECORD * lpBuffer, DWORD nLength, LPDWORD lpNumberOfEventsWritten) | |
2355 { | |
2356 if (XEUNICODE_P) | |
2357 return WriteConsoleInputW (hConsoleInput, lpBuffer, nLength, lpNumberOfEventsWritten); | |
2358 else | |
2359 return WriteConsoleInputA (hConsoleInput, lpBuffer, nLength, lpNumberOfEventsWritten); | |
2360 } | |
2361 | |
2362 WINBOOL | |
2363 qxeReadConsoleOutput (HANDLE hConsoleOutput, PCHAR_INFO lpBuffer, COORD dwBufferSize, COORD dwBufferCoord, PSMALL_RECT lpReadRegion) | |
2364 { | |
2365 if (XEUNICODE_P) | |
2366 return ReadConsoleOutputW (hConsoleOutput, lpBuffer, dwBufferSize, dwBufferCoord, lpReadRegion); | |
2367 else | |
2368 return ReadConsoleOutputA (hConsoleOutput, lpBuffer, dwBufferSize, dwBufferCoord, lpReadRegion); | |
2369 } | |
2370 | |
2371 WINBOOL | |
2372 qxeWriteConsoleOutput (HANDLE hConsoleOutput, CONST CHAR_INFO * lpBuffer, COORD dwBufferSize, COORD dwBufferCoord, PSMALL_RECT lpWriteRegion) | |
2373 { | |
2374 if (XEUNICODE_P) | |
2375 return WriteConsoleOutputW (hConsoleOutput, lpBuffer, dwBufferSize, dwBufferCoord, lpWriteRegion); | |
2376 else | |
2377 return WriteConsoleOutputA (hConsoleOutput, lpBuffer, dwBufferSize, dwBufferCoord, lpWriteRegion); | |
2378 } | |
2379 | |
2380 WINBOOL | |
2381 qxeReadConsoleOutputCharacter (HANDLE hConsoleOutput, Extbyte * lpCharacter, DWORD nLength, COORD dwReadCoord, LPDWORD lpNumberOfCharsRead) | |
2382 { | |
2383 if (XEUNICODE_P) | |
2384 return ReadConsoleOutputCharacterW (hConsoleOutput, (LPWSTR) lpCharacter, nLength, dwReadCoord, lpNumberOfCharsRead); | |
2385 else | |
2386 return ReadConsoleOutputCharacterA (hConsoleOutput, (LPSTR) lpCharacter, nLength, dwReadCoord, lpNumberOfCharsRead); | |
2387 } | |
2388 | |
2389 WINBOOL | |
2390 qxeWriteConsoleOutputCharacter (HANDLE hConsoleOutput, const Extbyte * lpCharacter, DWORD nLength, COORD dwWriteCoord, LPDWORD lpNumberOfCharsWritten) | |
2391 { | |
2392 if (XEUNICODE_P) | |
2393 return WriteConsoleOutputCharacterW (hConsoleOutput, (LPCWSTR) lpCharacter, nLength, dwWriteCoord, lpNumberOfCharsWritten); | |
2394 else | |
2395 return WriteConsoleOutputCharacterA (hConsoleOutput, (LPCSTR) lpCharacter, nLength, dwWriteCoord, lpNumberOfCharsWritten); | |
2396 } | |
2397 | |
2398 /* Error if FillConsoleOutputCharacter used: split CHAR */ | |
2399 | |
2400 WINBOOL | |
2401 qxeScrollConsoleScreenBuffer (HANDLE hConsoleOutput, CONST SMALL_RECT * lpScrollRectangle, CONST SMALL_RECT * lpClipRectangle, COORD dwDestinationOrigin, CONST CHAR_INFO * lpFill) | |
2402 { | |
2403 if (XEUNICODE_P) | |
2404 return ScrollConsoleScreenBufferW (hConsoleOutput, lpScrollRectangle, lpClipRectangle, dwDestinationOrigin, lpFill); | |
2405 else | |
2406 return ScrollConsoleScreenBufferA (hConsoleOutput, lpScrollRectangle, lpClipRectangle, dwDestinationOrigin, lpFill); | |
2407 } | |
2408 | |
2409 DWORD | |
2410 qxeGetConsoleTitle (Extbyte * lpConsoleTitle, DWORD nSize) | |
2411 { | |
2412 if (XEUNICODE_P) | |
2413 return GetConsoleTitleW ((LPWSTR) lpConsoleTitle, nSize); | |
2414 else | |
2415 return GetConsoleTitleA ((LPSTR) lpConsoleTitle, nSize); | |
2416 } | |
2417 | |
2418 WINBOOL | |
2419 qxeSetConsoleTitle (const Extbyte * lpConsoleTitle) | |
2420 { | |
2421 if (XEUNICODE_P) | |
2422 return SetConsoleTitleW ((LPCWSTR) lpConsoleTitle); | |
2423 else | |
2424 return SetConsoleTitleA ((LPCSTR) lpConsoleTitle); | |
2425 } | |
2426 | |
2427 WINBOOL | |
2428 qxeReadConsole (HANDLE hConsoleInput, LPVOID lpBuffer, DWORD nNumberOfCharsToRead, LPDWORD lpNumberOfCharsRead, LPVOID lpReserved) | |
2429 { | |
2430 if (XEUNICODE_P) | |
2431 return ReadConsoleW (hConsoleInput, lpBuffer, nNumberOfCharsToRead, lpNumberOfCharsRead, lpReserved); | |
2432 else | |
2433 return ReadConsoleA (hConsoleInput, lpBuffer, nNumberOfCharsToRead, lpNumberOfCharsRead, lpReserved); | |
2434 } | |
2435 | |
2436 WINBOOL | |
2437 qxeWriteConsole (HANDLE hConsoleOutput, CONST VOID * lpBuffer, DWORD nNumberOfCharsToWrite, LPDWORD lpNumberOfCharsWritten, LPVOID lpReserved) | |
2438 { | |
2439 if (XEUNICODE_P) | |
2440 return WriteConsoleW (hConsoleOutput, lpBuffer, nNumberOfCharsToWrite, lpNumberOfCharsWritten, lpReserved); | |
2441 else | |
2442 return WriteConsoleA (hConsoleOutput, lpBuffer, nNumberOfCharsToWrite, lpNumberOfCharsWritten, lpReserved); | |
2443 } | |
2444 | |
2445 /* Error if AddConsoleAlias used: HST: new? -- needs review */ | |
2446 | |
2447 /* Error if GetConsoleAlias used: HST: new? -- needs review */ | |
2448 | |
2449 /* Error if GetConsoleAliasesLength used: HST: new? -- needs review */ | |
2450 | |
2451 /* Error if GetConsoleAliasExesLength used: HST: new? -- needs review */ | |
2452 | |
2453 /* Error if GetConsoleAliases used: HST: new? -- needs review */ | |
2454 | |
2455 /* Error if GetConsoleAliasExes used: HST: new? -- needs review */ | |
2456 | |
2457 /* Error if GetConsoleOriginalTitle used: HST: new? -- needs review */ | |
2458 | |
2459 | |
2460 /*----------------------------------------------------------------------*/ | |
2461 /* Processing file DEBUGAPI.H */ | |
2462 /*----------------------------------------------------------------------*/ | |
2463 | |
2464 VOID | |
2465 qxeOutputDebugString (const Extbyte * lpOutputString) | |
2466 { | |
2467 if (XEUNICODE_P) | |
2468 OutputDebugStringW ((LPCWSTR) lpOutputString); | |
2469 else | |
2470 OutputDebugStringA ((LPCSTR) lpOutputString); | |
2471 } | |
2472 | |
2473 | |
2474 /*----------------------------------------------------------------------*/ | |
2475 /* Processing file WINNETWK.H */ | |
2476 /*----------------------------------------------------------------------*/ | |
2477 | |
2478 #if defined (HAVE_MS_WINDOWS) | |
2479 | |
2480 DWORD | |
2481 qxeWNetAddConnection (const Extbyte * lpRemoteName, const Extbyte * lpPassword, const Extbyte * lpLocalName) | |
2482 { | |
2483 if (XEUNICODE_P) | |
2484 return WNetAddConnectionW ((LPCWSTR) lpRemoteName, (LPCWSTR) lpPassword, (LPCWSTR) lpLocalName); | |
2485 else | |
2486 return WNetAddConnectionA ((LPCSTR) lpRemoteName, (LPCSTR) lpPassword, (LPCSTR) lpLocalName); | |
2487 } | |
2488 | |
2489 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2490 | |
2491 #if defined (HAVE_MS_WINDOWS) | |
2492 | |
2493 DWORD | |
2494 qxeWNetAddConnection2 (LPNETRESOURCEW lpNetResource, const Extbyte * lpPassword, const Extbyte * lpUserName, DWORD dwFlags) | |
2495 { | |
2496 if (XEUNICODE_P) | |
2497 return WNetAddConnection2W (lpNetResource, (LPCWSTR) lpPassword, (LPCWSTR) lpUserName, dwFlags); | |
2498 else | |
2499 return WNetAddConnection2A ((LPNETRESOURCEA) lpNetResource, (LPCSTR) lpPassword, (LPCSTR) lpUserName, dwFlags); | |
2500 } | |
2501 | |
2502 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2503 | |
2504 #if defined (HAVE_MS_WINDOWS) | |
2505 | |
2506 DWORD | |
2507 qxeWNetAddConnection3 (HWND hwndOwner, LPNETRESOURCEW lpNetResource, const Extbyte * lpPassword, const Extbyte * lpUserName, DWORD dwFlags) | |
2508 { | |
2509 if (XEUNICODE_P) | |
2510 return WNetAddConnection3W (hwndOwner, lpNetResource, (LPCWSTR) lpPassword, (LPCWSTR) lpUserName, dwFlags); | |
2511 else | |
2512 return WNetAddConnection3A (hwndOwner, (LPNETRESOURCEA) lpNetResource, (LPCSTR) lpPassword, (LPCSTR) lpUserName, dwFlags); | |
2513 } | |
2514 | |
2515 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2516 | |
2517 #if defined (HAVE_MS_WINDOWS) | |
2518 | |
2519 DWORD | |
2520 qxeWNetCancelConnection (const Extbyte * lpName, WINBOOL fForce) | |
2521 { | |
2522 if (XEUNICODE_P) | |
2523 return WNetCancelConnectionW ((LPCWSTR) lpName, fForce); | |
2524 else | |
2525 return WNetCancelConnectionA ((LPCSTR) lpName, fForce); | |
2526 } | |
2527 | |
2528 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2529 | |
2530 #if defined (HAVE_MS_WINDOWS) | |
2531 | |
2532 DWORD | |
2533 qxeWNetCancelConnection2 (const Extbyte * lpName, DWORD dwFlags, WINBOOL fForce) | |
2534 { | |
2535 if (XEUNICODE_P) | |
2536 return WNetCancelConnection2W ((LPCWSTR) lpName, dwFlags, fForce); | |
2537 else | |
2538 return WNetCancelConnection2A ((LPCSTR) lpName, dwFlags, fForce); | |
2539 } | |
2540 | |
2541 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2542 | |
2543 #if defined (HAVE_MS_WINDOWS) | |
2544 | |
2545 DWORD | |
2546 qxeWNetGetConnection (const Extbyte * lpLocalName, Extbyte * lpRemoteName, LPDWORD lpnLength) | |
2547 { | |
2548 if (XEUNICODE_P) | |
2549 return WNetGetConnectionW ((LPCWSTR) lpLocalName, (LPWSTR) lpRemoteName, lpnLength); | |
2550 else | |
2551 return WNetGetConnectionA ((LPCSTR) lpLocalName, (LPSTR) lpRemoteName, lpnLength); | |
2552 } | |
2553 | |
2554 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2555 | |
2556 #if defined (HAVE_MS_WINDOWS) | |
2557 | |
2558 DWORD | |
2559 qxeWNetUseConnection (HWND hwndOwner, LPNETRESOURCEW lpNetResource, const Extbyte * lpPassword, const Extbyte * lpUserID, DWORD dwFlags, Extbyte * lpAccessName, LPDWORD lpBufferSize, LPDWORD lpResult) | |
2560 { | |
2561 if (XEUNICODE_P) | |
2562 return WNetUseConnectionW (hwndOwner, lpNetResource, (LPCWSTR) lpPassword, (LPCWSTR) lpUserID, dwFlags, (LPWSTR) lpAccessName, lpBufferSize, lpResult); | |
2563 else | |
2564 return WNetUseConnectionA (hwndOwner, (LPNETRESOURCEA) lpNetResource, (LPCSTR) lpPassword, (LPCSTR) lpUserID, dwFlags, (LPSTR) lpAccessName, lpBufferSize, lpResult); | |
2565 } | |
2566 | |
2567 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2568 | |
2569 #if defined (HAVE_MS_WINDOWS) | |
2570 | |
2571 /* Error if WNetRestoreSingleConnection used: HST: new? -- needs review */ | |
2572 | |
2573 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2574 | |
2575 #if defined (HAVE_MS_WINDOWS) | |
2576 | |
2577 /* Error if WNetRestoreConnection used: HST: new? -- needs review */ | |
2578 | |
2579 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2580 | |
2581 #if defined (HAVE_MS_WINDOWS) | |
2582 | |
2583 /* NOTE: contains split-simple LPNETRESOURCE */ | |
2584 DWORD | |
2585 qxeWNetConnectionDialog1 (LPCONNECTDLGSTRUCTW lpConnDlgStruct) | |
2586 { | |
2587 if (XEUNICODE_P) | |
2588 return WNetConnectionDialog1W (lpConnDlgStruct); | |
2589 else | |
2590 return WNetConnectionDialog1A ((LPCONNECTDLGSTRUCTA) lpConnDlgStruct); | |
2591 } | |
2592 | |
2593 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2594 | |
2595 #if defined (HAVE_MS_WINDOWS) | |
2596 | |
2597 DWORD | |
2598 qxeWNetDisconnectDialog1 (LPDISCDLGSTRUCTW lpConnDlgStruct) | |
2599 { | |
2600 if (XEUNICODE_P) | |
2601 return WNetDisconnectDialog1W (lpConnDlgStruct); | |
2602 else | |
2603 return WNetDisconnectDialog1A ((LPDISCDLGSTRUCTA) lpConnDlgStruct); | |
2604 } | |
2605 | |
2606 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2607 | |
2608 #if defined (HAVE_MS_WINDOWS) | |
2609 | |
2610 DWORD | |
2611 qxeWNetOpenEnum (DWORD dwScope, DWORD dwType, DWORD dwUsage, LPNETRESOURCEW lpNetResource, LPHANDLE lphEnum) | |
2612 { | |
2613 if (XEUNICODE_P) | |
2614 return WNetOpenEnumW (dwScope, dwType, dwUsage, lpNetResource, lphEnum); | |
2615 else | |
2616 return WNetOpenEnumA (dwScope, dwType, dwUsage, (LPNETRESOURCEA) lpNetResource, lphEnum); | |
2617 } | |
2618 | |
2619 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2620 | |
2621 #if defined (HAVE_MS_WINDOWS) | |
2622 | |
2623 DWORD | |
2624 qxeWNetEnumResource (HANDLE hEnum, LPDWORD lpcCount, LPVOID lpBuffer, LPDWORD lpBufferSize) | |
2625 { | |
2626 if (XEUNICODE_P) | |
2627 return WNetEnumResourceW (hEnum, lpcCount, lpBuffer, lpBufferSize); | |
2628 else | |
2629 return WNetEnumResourceA (hEnum, lpcCount, lpBuffer, lpBufferSize); | |
2630 } | |
2631 | |
2632 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2633 | |
2634 #if defined (HAVE_MS_WINDOWS) | |
2635 | |
2636 /* Error if WNetGetResourceParent used: Function needs review to determine how to handle it */ | |
2637 | |
2638 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2639 | |
2640 #if defined (HAVE_MS_WINDOWS) | |
2641 | |
2642 /* Error if WNetGetResourceInformation used: Function needs review to determine how to handle it */ | |
2643 | |
2644 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2645 | |
2646 #if defined (HAVE_MS_WINDOWS) | |
2647 | |
2648 DWORD | |
2649 qxeWNetGetUniversalName (const Extbyte * lpLocalPath, DWORD dwInfoLevel, LPVOID lpBuffer, LPDWORD lpBufferSize) | |
2650 { | |
2651 if (XEUNICODE_P) | |
2652 return WNetGetUniversalNameW ((LPCWSTR) lpLocalPath, dwInfoLevel, lpBuffer, lpBufferSize); | |
2653 else | |
2654 return WNetGetUniversalNameA ((LPCSTR) lpLocalPath, dwInfoLevel, lpBuffer, lpBufferSize); | |
2655 } | |
2656 | |
2657 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2658 | |
2659 #if defined (HAVE_MS_WINDOWS) | |
2660 | |
2661 DWORD | |
2662 qxeWNetGetUser (const Extbyte * lpName, Extbyte * lpUserName, LPDWORD lpnLength) | |
2663 { | |
2664 if (XEUNICODE_P) | |
2665 return WNetGetUserW ((LPCWSTR) lpName, (LPWSTR) lpUserName, lpnLength); | |
2666 else | |
2667 return WNetGetUserA ((LPCSTR) lpName, (LPSTR) lpUserName, lpnLength); | |
2668 } | |
2669 | |
2670 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2671 | |
2672 #if defined (HAVE_MS_WINDOWS) | |
2673 | |
2674 DWORD | |
2675 qxeWNetGetProviderName (DWORD dwNetType, Extbyte * lpProviderName, LPDWORD lpBufferSize) | |
2676 { | |
2677 if (XEUNICODE_P) | |
2678 return WNetGetProviderNameW (dwNetType, (LPWSTR) lpProviderName, lpBufferSize); | |
2679 else | |
2680 return WNetGetProviderNameA (dwNetType, (LPSTR) lpProviderName, lpBufferSize); | |
2681 } | |
2682 | |
2683 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2684 | |
2685 #if defined (HAVE_MS_WINDOWS) | |
2686 | |
2687 DWORD | |
2688 qxeWNetGetNetworkInformation (const Extbyte * lpProvider, LPNETINFOSTRUCT lpNetInfoStruct) | |
2689 { | |
2690 if (XEUNICODE_P) | |
2691 return WNetGetNetworkInformationW ((LPCWSTR) lpProvider, lpNetInfoStruct); | |
2692 else | |
2693 return WNetGetNetworkInformationA ((LPCSTR) lpProvider, lpNetInfoStruct); | |
2694 } | |
2695 | |
2696 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2697 | |
2698 #if defined (HAVE_MS_WINDOWS) | |
2699 | |
2700 DWORD | |
2701 qxeWNetGetLastError (LPDWORD lpError, Extbyte * lpErrorBuf, DWORD nErrorBufSize, Extbyte * lpNameBuf, DWORD nNameBufSize) | |
2702 { | |
2703 if (XEUNICODE_P) | |
2704 return WNetGetLastErrorW (lpError, (LPWSTR) lpErrorBuf, nErrorBufSize, (LPWSTR) lpNameBuf, nNameBufSize); | |
2705 else | |
2706 return WNetGetLastErrorA (lpError, (LPSTR) lpErrorBuf, nErrorBufSize, (LPSTR) lpNameBuf, nNameBufSize); | |
2707 } | |
2708 | |
2709 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2710 | |
2711 #if defined (HAVE_MS_WINDOWS) | |
2712 | |
2713 DWORD | |
2714 qxeMultinetGetConnectionPerformance (LPNETRESOURCEW lpNetResource, LPNETCONNECTINFOSTRUCT lpNetConnectInfoStruct) | |
2715 { | |
2716 if (XEUNICODE_P) | |
2717 return MultinetGetConnectionPerformanceW (lpNetResource, lpNetConnectInfoStruct); | |
2718 else | |
2719 return MultinetGetConnectionPerformanceA ((LPNETRESOURCEA) lpNetResource, lpNetConnectInfoStruct); | |
2720 } | |
2721 | |
2722 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2723 | |
2724 | |
2725 /*----------------------------------------------------------------------*/ | |
2726 /* Processing file DDEML.H */ | |
2727 /*----------------------------------------------------------------------*/ | |
2728 | |
2729 UINT | |
2730 qxeDdeInitialize (LPDWORD pidInst, PFNCALLBACK pfnCallback, DWORD afCmd, DWORD ulRes) | |
2731 { | |
2732 if (XEUNICODE_P) | |
2733 return DdeInitializeW (pidInst, pfnCallback, afCmd, ulRes); | |
2734 else | |
2735 return DdeInitializeA (pidInst, pfnCallback, afCmd, ulRes); | |
2736 } | |
2737 | |
2738 /* NOTE: former error in Cygwin prototype, but no more (Cygwin 1.7, 1-30-10) */ | |
2739 HSZ | |
2740 qxeDdeCreateStringHandle (DWORD idInst, const Extbyte * psz, int iCodePage) | |
2741 { | |
2742 if (XEUNICODE_P) | |
2743 return DdeCreateStringHandleW (idInst, (LPCWSTR) psz, iCodePage); | |
2744 else | |
2745 return DdeCreateStringHandleA (idInst, (LPCSTR) psz, iCodePage); | |
2746 } | |
2747 | |
2748 DWORD | |
2749 qxeDdeQueryString (DWORD idInst, HSZ hsz, Extbyte * psz, DWORD cchMax, int iCodePage) | |
2750 { | |
2751 if (XEUNICODE_P) | |
2752 return DdeQueryStringW (idInst, hsz, (LPWSTR) psz, cchMax, iCodePage); | |
2753 else | |
2754 return DdeQueryStringA (idInst, hsz, (LPSTR) psz, cchMax, iCodePage); | |
2755 } | |
2756 | |
2757 | |
2758 /*----------------------------------------------------------------------*/ | |
2759 /* Processing file WINGDI.H */ | |
2760 /*----------------------------------------------------------------------*/ | |
2761 | |
2762 #if defined (HAVE_MS_WINDOWS) | |
2763 | |
1004 int | 2764 int |
1005 qxeDialogBoxIndirectParam (HINSTANCE arg1, LPCDLGTEMPLATE arg2, HWND arg3, DLGPROC arg4, LPARAM arg5) | 2765 qxeAddFontResource (const Extbyte * arg1) |
1006 { | 2766 { |
1007 if (XEUNICODE_P) | 2767 if (XEUNICODE_P) |
1008 return DialogBoxIndirectParamW (arg1, arg2, arg3, arg4, arg5); | 2768 return AddFontResourceW ((LPCWSTR) arg1); |
1009 else | 2769 else |
1010 return DialogBoxIndirectParamA (arg1, arg2, arg3, arg4, arg5); | 2770 return AddFontResourceA ((LPCSTR) arg1); |
1011 } | 2771 } |
2772 | |
2773 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2774 | |
2775 #if defined (HAVE_MS_WINDOWS) | |
2776 | |
2777 HMETAFILE | |
2778 qxeCopyMetaFile (HMETAFILE arg1, const Extbyte * arg2) | |
2779 { | |
2780 if (XEUNICODE_P) | |
2781 return CopyMetaFileW (arg1, (LPCWSTR) arg2); | |
2782 else | |
2783 return CopyMetaFileA (arg1, (LPCSTR) arg2); | |
2784 } | |
2785 | |
2786 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2787 | |
2788 #if defined (HAVE_MS_WINDOWS) | |
2789 | |
2790 /* Skipping CreateDC because split-sized DEVMODE */ | |
2791 | |
2792 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2793 | |
2794 #if defined (HAVE_MS_WINDOWS) | |
2795 | |
2796 /* Skipping CreateFontIndirect because split-sized LOGFONT */ | |
2797 | |
2798 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2799 | |
2800 #if defined (HAVE_MS_WINDOWS) | |
2801 | |
2802 HFONT | |
2803 qxeCreateFont (int cHeight, int cWidth, int cEscapement, int cOrientation, int cWeight, DWORD bItalic, DWORD bUnderline, DWORD bStrikeOut, DWORD iCharSet, DWORD iOutPrecision, DWORD iClipPrecision, DWORD iQuality, DWORD iPitchAndFamily, const Extbyte * pszFaceName) | |
2804 { | |
2805 if (XEUNICODE_P) | |
2806 return CreateFontW (cHeight, cWidth, cEscapement, cOrientation, cWeight, bItalic, bUnderline, bStrikeOut, iCharSet, iOutPrecision, iClipPrecision, iQuality, iPitchAndFamily, (LPCWSTR) pszFaceName); | |
2807 else | |
2808 return CreateFontA (cHeight, cWidth, cEscapement, cOrientation, cWeight, bItalic, bUnderline, bStrikeOut, iCharSet, iOutPrecision, iClipPrecision, iQuality, iPitchAndFamily, (LPCSTR) pszFaceName); | |
2809 } | |
2810 | |
2811 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2812 | |
2813 #if defined (HAVE_MS_WINDOWS) | |
2814 | |
2815 /* Skipping CreateIC because split-sized DEVMODE */ | |
2816 | |
2817 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2818 | |
2819 #if defined (HAVE_MS_WINDOWS) | |
2820 | |
2821 HDC | |
2822 qxeCreateMetaFile (const Extbyte * pszFile) | |
2823 { | |
2824 if (XEUNICODE_P) | |
2825 return CreateMetaFileW ((LPCWSTR) pszFile); | |
2826 else | |
2827 return CreateMetaFileA ((LPCSTR) pszFile); | |
2828 } | |
2829 | |
2830 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2831 | |
2832 #if defined (HAVE_MS_WINDOWS) | |
2833 | |
2834 WINBOOL | |
2835 qxeCreateScalableFontResource (DWORD fdwHidden, const Extbyte * lpszFont, const Extbyte * lpszFile, const Extbyte * lpszPath) | |
2836 { | |
2837 if (XEUNICODE_P) | |
2838 return CreateScalableFontResourceW (fdwHidden, (LPCWSTR) lpszFont, (LPCWSTR) lpszFile, (LPCWSTR) lpszPath); | |
2839 else | |
2840 return CreateScalableFontResourceA (fdwHidden, (LPCSTR) lpszFont, (LPCSTR) lpszFile, (LPCSTR) lpszPath); | |
2841 } | |
2842 | |
2843 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2844 | |
2845 #if defined (HAVE_MS_WINDOWS) | |
2846 | |
2847 /* Skipping DeviceCapabilities because split-sized DEVMODE */ | |
2848 | |
2849 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2850 | |
2851 #if defined (HAVE_MS_WINDOWS) | |
2852 | |
2853 /* Skipping EnumFontFamiliesEx because split-complex FONTENUMPROC; NT 4.0+ only */ | |
2854 | |
2855 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2856 | |
2857 #if defined (HAVE_MS_WINDOWS) | |
2858 | |
2859 /* Error if EnumFontFamilies used: split-complex FONTENUMPROC */ | |
2860 | |
2861 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2862 | |
2863 #if defined (HAVE_MS_WINDOWS) | |
2864 | |
2865 /* Error if EnumFonts used: split-complex FONTENUMPROC */ | |
2866 | |
2867 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2868 | |
2869 #if defined (HAVE_MS_WINDOWS) | |
2870 | |
2871 WINBOOL | |
2872 qxeGetCharWidth (HDC hdc, UINT iFirst, UINT iLast, LPINT lpBuffer) | |
2873 { | |
2874 if (XEUNICODE_P) | |
2875 return GetCharWidthW (hdc, iFirst, iLast, lpBuffer); | |
2876 else | |
2877 return GetCharWidthA (hdc, iFirst, iLast, lpBuffer); | |
2878 } | |
2879 | |
2880 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2881 | |
2882 #if defined (HAVE_MS_WINDOWS) | |
2883 | |
2884 WINBOOL | |
2885 qxeGetCharWidth32 (HDC hdc, UINT iFirst, UINT iLast, LPINT lpBuffer) | |
2886 { | |
2887 if (XEUNICODE_P) | |
2888 return GetCharWidth32W (hdc, iFirst, iLast, lpBuffer); | |
2889 else | |
2890 return GetCharWidth32A (hdc, iFirst, iLast, lpBuffer); | |
2891 } | |
2892 | |
2893 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2894 | |
2895 #if defined (HAVE_MS_WINDOWS) | |
2896 | |
2897 WINBOOL | |
2898 qxeGetCharWidthFloat (HDC hdc, UINT iFirst, UINT iLast, PFLOAT lpBuffer) | |
2899 { | |
2900 if (XEUNICODE_P) | |
2901 return GetCharWidthFloatW (hdc, iFirst, iLast, lpBuffer); | |
2902 else | |
2903 return GetCharWidthFloatA (hdc, iFirst, iLast, lpBuffer); | |
2904 } | |
2905 | |
2906 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2907 | |
2908 #if defined (HAVE_MS_WINDOWS) | |
2909 | |
2910 WINBOOL | |
2911 qxeGetCharABCWidths (HDC hdc, UINT wFirst, UINT wLast, LPABC lpABC) | |
2912 { | |
2913 if (XEUNICODE_P) | |
2914 return GetCharABCWidthsW (hdc, wFirst, wLast, lpABC); | |
2915 else | |
2916 return GetCharABCWidthsA (hdc, wFirst, wLast, lpABC); | |
2917 } | |
2918 | |
2919 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2920 | |
2921 #if defined (HAVE_MS_WINDOWS) | |
2922 | |
2923 WINBOOL | |
2924 qxeGetCharABCWidthsFloat (HDC hdc, UINT iFirst, UINT iLast, LPABCFLOAT lpABC) | |
2925 { | |
2926 if (XEUNICODE_P) | |
2927 return GetCharABCWidthsFloatW (hdc, iFirst, iLast, lpABC); | |
2928 else | |
2929 return GetCharABCWidthsFloatA (hdc, iFirst, iLast, lpABC); | |
2930 } | |
2931 | |
2932 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2933 | |
2934 #if defined (HAVE_MS_WINDOWS) | |
2935 | |
2936 DWORD | |
2937 qxeGetGlyphOutline (HDC hdc, UINT uChar, UINT fuFormat, LPGLYPHMETRICS lpgm, DWORD cjBuffer, LPVOID pvBuffer, CONST MAT2 * lpmat2) | |
2938 { | |
2939 if (XEUNICODE_P) | |
2940 return GetGlyphOutlineW (hdc, uChar, fuFormat, lpgm, cjBuffer, pvBuffer, lpmat2); | |
2941 else | |
2942 return GetGlyphOutlineA (hdc, uChar, fuFormat, lpgm, cjBuffer, pvBuffer, lpmat2); | |
2943 } | |
2944 | |
2945 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2946 | |
2947 #if defined (HAVE_MS_WINDOWS) | |
2948 | |
2949 HMETAFILE | |
2950 qxeGetMetaFile (const Extbyte * lpName) | |
2951 { | |
2952 if (XEUNICODE_P) | |
2953 return GetMetaFileW ((LPCWSTR) lpName); | |
2954 else | |
2955 return GetMetaFileA ((LPCSTR) lpName); | |
2956 } | |
2957 | |
2958 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2959 | |
2960 #if defined (HAVE_MS_WINDOWS) | |
2961 | |
2962 /* Error if GetOutlineTextMetrics used: split-sized LPOUTLINETEXTMETRIC */ | |
2963 | |
2964 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2965 | |
2966 #if defined (HAVE_MS_WINDOWS) | |
2967 | |
2968 WINBOOL | |
2969 qxeGetTextExtentPoint (HDC hdc, const Extbyte * lpString, int c, LPSIZE lpsz) | |
2970 { | |
2971 if (XEUNICODE_P) | |
2972 return GetTextExtentPointW (hdc, (LPCWSTR) lpString, c, lpsz); | |
2973 else | |
2974 return GetTextExtentPointA (hdc, (LPCSTR) lpString, c, lpsz); | |
2975 } | |
2976 | |
2977 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2978 | |
2979 #if defined (HAVE_MS_WINDOWS) | |
2980 | |
2981 WINBOOL | |
2982 qxeGetTextExtentPoint32 (HDC hdc, const Extbyte * lpString, int c, LPSIZE psizl) | |
2983 { | |
2984 if (XEUNICODE_P) | |
2985 return GetTextExtentPoint32W (hdc, (LPCWSTR) lpString, c, psizl); | |
2986 else | |
2987 return GetTextExtentPoint32A (hdc, (LPCSTR) lpString, c, psizl); | |
2988 } | |
2989 | |
2990 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2991 | |
2992 #if defined (HAVE_MS_WINDOWS) | |
2993 | |
2994 WINBOOL | |
2995 qxeGetTextExtentExPoint (HDC hdc, const Extbyte * lpszString, int cchString, int nMaxExtent, LPINT lpnFit, LPINT lpnDx, LPSIZE lpSize) | |
2996 { | |
2997 if (XEUNICODE_P) | |
2998 return GetTextExtentExPointW (hdc, (LPCWSTR) lpszString, cchString, nMaxExtent, lpnFit, lpnDx, lpSize); | |
2999 else | |
3000 return GetTextExtentExPointA (hdc, (LPCSTR) lpszString, cchString, nMaxExtent, lpnFit, lpnDx, lpSize); | |
3001 } | |
3002 | |
3003 #endif /* defined (HAVE_MS_WINDOWS) */ | |
3004 | |
3005 #if defined (HAVE_MS_WINDOWS) | |
3006 | |
3007 /* NOTE: NT 4.0+ only */ | |
3008 DWORD | |
3009 qxeGetCharacterPlacement (HDC hdc, const Extbyte * lpString, int nCount, int nMexExtent, LPGCP_RESULTSW lpResults, DWORD dwFlags) | |
3010 { | |
3011 if (XEUNICODE_P) | |
3012 return GetCharacterPlacementW (hdc, (LPCWSTR) lpString, nCount, nMexExtent, lpResults, dwFlags); | |
3013 else | |
3014 return GetCharacterPlacementA (hdc, (LPCSTR) lpString, nCount, nMexExtent, (LPGCP_RESULTSA) lpResults, dwFlags); | |
3015 } | |
3016 | |
3017 #endif /* defined (HAVE_MS_WINDOWS) */ | |
3018 | |
3019 #if defined (HAVE_MS_WINDOWS) | |
3020 | |
3021 /* Error if GetGlyphIndices used: NT 5.0+ only */ | |
3022 | |
3023 #endif /* defined (HAVE_MS_WINDOWS) */ | |
3024 | |
3025 #if defined (HAVE_MS_WINDOWS) | |
3026 | |
3027 /* Error if AddFontResourceEx used: NT 5.0+ only */ | |
3028 | |
3029 #endif /* defined (HAVE_MS_WINDOWS) */ | |
3030 | |
3031 #if defined (HAVE_MS_WINDOWS) | |
3032 | |
3033 /* Error if RemoveFontResourceEx used: NT 5.0+ only */ | |
3034 | |
3035 #endif /* defined (HAVE_MS_WINDOWS) */ | |
3036 | |
3037 #if defined (HAVE_MS_WINDOWS) | |
3038 | |
3039 /* Error if CreateFontIndirectEx used: split-sized ENUMLOGFONTEXDV; NT 5.0+ only */ | |
3040 | |
3041 #endif /* defined (HAVE_MS_WINDOWS) */ | |
3042 | |
3043 #if defined (HAVE_MS_WINDOWS) | |
3044 | |
3045 /* Skipping ResetDC because split-sized DEVMODE */ | |
3046 | |
3047 #endif /* defined (HAVE_MS_WINDOWS) */ | |
3048 | |
3049 #if defined (HAVE_MS_WINDOWS) | |
3050 | |
3051 WINBOOL | |
3052 qxeRemoveFontResource (const Extbyte * lpFileName) | |
3053 { | |
3054 if (XEUNICODE_P) | |
3055 return RemoveFontResourceW ((LPCWSTR) lpFileName); | |
3056 else | |
3057 return RemoveFontResourceA ((LPCSTR) lpFileName); | |
3058 } | |
3059 | |
3060 #endif /* defined (HAVE_MS_WINDOWS) */ | |
3061 | |
3062 #if defined (HAVE_MS_WINDOWS) | |
3063 | |
3064 HENHMETAFILE | |
3065 qxeCopyEnhMetaFile (HENHMETAFILE hEnh, const Extbyte * lpFileName) | |
3066 { | |
3067 if (XEUNICODE_P) | |
3068 return CopyEnhMetaFileW (hEnh, (LPCWSTR) lpFileName); | |
3069 else | |
3070 return CopyEnhMetaFileA (hEnh, (LPCSTR) lpFileName); | |
3071 } | |
3072 | |
3073 #endif /* defined (HAVE_MS_WINDOWS) */ | |
3074 | |
3075 #if defined (HAVE_MS_WINDOWS) | |
3076 | |
3077 HDC | |
3078 qxeCreateEnhMetaFile (HDC hdc, const Extbyte * lpFilename, CONST RECT * lprc, const Extbyte * lpDesc) | |
3079 { | |
3080 if (XEUNICODE_P) | |
3081 return CreateEnhMetaFileW (hdc, (LPCWSTR) lpFilename, lprc, (LPCWSTR) lpDesc); | |
3082 else | |
3083 return CreateEnhMetaFileA (hdc, (LPCSTR) lpFilename, lprc, (LPCSTR) lpDesc); | |
3084 } | |
3085 | |
3086 #endif /* defined (HAVE_MS_WINDOWS) */ | |
3087 | |
3088 #if defined (HAVE_MS_WINDOWS) | |
3089 | |
3090 HENHMETAFILE | |
3091 qxeGetEnhMetaFile (const Extbyte * lpName) | |
3092 { | |
3093 if (XEUNICODE_P) | |
3094 return GetEnhMetaFileW ((LPCWSTR) lpName); | |
3095 else | |
3096 return GetEnhMetaFileA ((LPCSTR) lpName); | |
3097 } | |
3098 | |
3099 #endif /* defined (HAVE_MS_WINDOWS) */ | |
3100 | |
3101 #if defined (HAVE_MS_WINDOWS) | |
3102 | |
3103 UINT | |
3104 qxeGetEnhMetaFileDescription (HENHMETAFILE hemf, UINT cchBuffer, Extbyte * lpDescription) | |
3105 { | |
3106 if (XEUNICODE_P) | |
3107 return GetEnhMetaFileDescriptionW (hemf, cchBuffer, (LPWSTR) lpDescription); | |
3108 else | |
3109 return GetEnhMetaFileDescriptionA (hemf, cchBuffer, (LPSTR) lpDescription); | |
3110 } | |
3111 | |
3112 #endif /* defined (HAVE_MS_WINDOWS) */ | |
3113 | |
3114 #if defined (HAVE_MS_WINDOWS) | |
3115 | |
3116 /* Skipping GetTextMetrics because split-sized LPTEXTMETRIC */ | |
3117 | |
3118 #endif /* defined (HAVE_MS_WINDOWS) */ | |
3119 | |
3120 #if defined (HAVE_MS_WINDOWS) | |
1012 | 3121 |
1013 int | 3122 int |
1014 qxeDialogBoxParam (HINSTANCE arg1, const Extbyte * arg2, HWND arg3, DLGPROC arg4, LPARAM arg5) | 3123 qxeStartDoc (HDC hdc, CONST DOCINFOW * lpdi) |
1015 { | 3124 { |
1016 if (XEUNICODE_P) | 3125 if (XEUNICODE_P) |
1017 return DialogBoxParamW (arg1, (LPCWSTR) arg2, arg3, arg4, arg5); | 3126 return StartDocW (hdc, lpdi); |
1018 else | 3127 else |
1019 return DialogBoxParamA (arg1, (LPCSTR) arg2, arg3, arg4, arg5); | 3128 return StartDocA (hdc, (CONST DOCINFOA *) lpdi); |
1020 } | 3129 } |
1021 | 3130 |
1022 LONG | 3131 #endif /* defined (HAVE_MS_WINDOWS) */ |
1023 qxeDispatchMessage (const MSG* arg1) | 3132 |
1024 { | 3133 #if defined (HAVE_MS_WINDOWS) |
1025 if (XEUNICODE_P) | 3134 |
1026 return DispatchMessageW (arg1); | 3135 /* Skipping GetObject because split-sized LOGFONT */ |
1027 else | 3136 |
1028 return DispatchMessageA (arg1); | 3137 #endif /* defined (HAVE_MS_WINDOWS) */ |
1029 } | 3138 |
3139 #if defined (HAVE_MS_WINDOWS) | |
3140 | |
3141 WINBOOL | |
3142 qxeTextOut (HDC hdc, int x, int y, const Extbyte * lpString, int c) | |
3143 { | |
3144 if (XEUNICODE_P) | |
3145 return TextOutW (hdc, x, y, (LPCWSTR) lpString, c); | |
3146 else | |
3147 return TextOutA (hdc, x, y, (LPCSTR) lpString, c); | |
3148 } | |
3149 | |
3150 #endif /* defined (HAVE_MS_WINDOWS) */ | |
3151 | |
3152 #if defined (HAVE_MS_WINDOWS) | |
3153 | |
3154 WINBOOL | |
3155 qxeExtTextOut (HDC hdc, int x, int y, UINT options, CONST RECT * lprect, const Extbyte * lpString, UINT c, CONST INT * lpDx) | |
3156 { | |
3157 if (XEUNICODE_P) | |
3158 return ExtTextOutW (hdc, x, y, options, lprect, (LPCWSTR) lpString, c, lpDx); | |
3159 else | |
3160 return ExtTextOutA (hdc, x, y, options, lprect, (LPCSTR) lpString, c, lpDx); | |
3161 } | |
3162 | |
3163 #endif /* defined (HAVE_MS_WINDOWS) */ | |
3164 | |
3165 #if defined (HAVE_MS_WINDOWS) | |
3166 | |
3167 WINBOOL | |
3168 qxePolyTextOut (HDC hdc, CONST POLYTEXTW * ppt, int nstrings) | |
3169 { | |
3170 if (XEUNICODE_P) | |
3171 return PolyTextOutW (hdc, ppt, nstrings); | |
3172 else | |
3173 return PolyTextOutA (hdc, (CONST POLYTEXTA *) ppt, nstrings); | |
3174 } | |
3175 | |
3176 #endif /* defined (HAVE_MS_WINDOWS) */ | |
3177 | |
3178 #if defined (HAVE_MS_WINDOWS) | |
1030 | 3179 |
1031 int | 3180 int |
1032 qxeDlgDirList (HWND arg1, Extbyte * arg2, int arg3, int arg4, UINT arg5) | 3181 qxeGetTextFace (HDC hdc, int c, Extbyte * lpName) |
1033 { | 3182 { |
1034 if (XEUNICODE_P) | 3183 if (XEUNICODE_P) |
1035 return DlgDirListW (arg1, (LPWSTR) arg2, arg3, arg4, arg5); | 3184 return GetTextFaceW (hdc, c, (LPWSTR) lpName); |
1036 else | 3185 else |
1037 return DlgDirListA (arg1, (LPSTR) arg2, arg3, arg4, arg5); | 3186 return GetTextFaceA (hdc, c, (LPSTR) lpName); |
1038 } | 3187 } |
1039 | 3188 |
1040 int | 3189 #endif /* defined (HAVE_MS_WINDOWS) */ |
1041 qxeDlgDirListComboBox (HWND arg1, Extbyte * arg2, int arg3, int arg4, UINT arg5) | 3190 |
1042 { | 3191 #if defined (HAVE_MS_WINDOWS) |
1043 if (XEUNICODE_P) | 3192 |
1044 return DlgDirListComboBoxW (arg1, (LPWSTR) arg2, arg3, arg4, arg5); | 3193 DWORD |
1045 else | 3194 qxeGetKerningPairs (HDC hdc, DWORD nPairs, LPKERNINGPAIR lpKernPair) |
1046 return DlgDirListComboBoxA (arg1, (LPSTR) arg2, arg3, arg4, arg5); | 3195 { |
1047 } | 3196 if (XEUNICODE_P) |
1048 | 3197 return GetKerningPairsW (hdc, nPairs, lpKernPair); |
1049 BOOL | 3198 else |
1050 qxeDlgDirSelectComboBoxEx (HWND arg1, Extbyte * arg2, int arg3, int arg4) | 3199 return GetKerningPairsA (hdc, nPairs, lpKernPair); |
1051 { | 3200 } |
1052 if (XEUNICODE_P) | 3201 |
1053 return DlgDirSelectComboBoxExW (arg1, (LPWSTR) arg2, arg3, arg4); | 3202 #endif /* defined (HAVE_MS_WINDOWS) */ |
1054 else | 3203 |
1055 return DlgDirSelectComboBoxExA (arg1, (LPSTR) arg2, arg3, arg4); | 3204 #if defined (HAVE_MS_WINDOWS) |
1056 } | 3205 |
1057 | 3206 /* Error if GetLogColorSpace used: split-sized LPLOGCOLORSPACE; NT 4.0+ only */ |
1058 BOOL | 3207 |
1059 qxeDlgDirSelectEx (HWND arg1, Extbyte * arg2, int arg3, int arg4) | 3208 #endif /* defined (HAVE_MS_WINDOWS) */ |
1060 { | 3209 |
1061 if (XEUNICODE_P) | 3210 #if defined (HAVE_MS_WINDOWS) |
1062 return DlgDirSelectExW (arg1, (LPWSTR) arg2, arg3, arg4); | 3211 |
1063 else | 3212 /* Error if CreateColorSpace used: split-sized LPLOGCOLORSPACE; NT 4.0+ only */ |
1064 return DlgDirSelectExA (arg1, (LPSTR) arg2, arg3, arg4); | 3213 |
1065 } | 3214 #endif /* defined (HAVE_MS_WINDOWS) */ |
3215 | |
3216 #if defined (HAVE_MS_WINDOWS) | |
3217 | |
3218 /* NOTE: NT 4.0+ only, former error in Cygwin prototype but no more (Cygwin 1.7, 1-30-10) */ | |
3219 WINBOOL | |
3220 qxeGetICMProfile (HDC hdc, LPDWORD pBufSize, Extbyte * pszFilename) | |
3221 { | |
3222 if (XEUNICODE_P) | |
3223 return GetICMProfileW (hdc, pBufSize, (LPWSTR) pszFilename); | |
3224 else | |
3225 return GetICMProfileA (hdc, pBufSize, (LPSTR) pszFilename); | |
3226 } | |
3227 | |
3228 #endif /* defined (HAVE_MS_WINDOWS) */ | |
3229 | |
3230 #if defined (HAVE_MS_WINDOWS) | |
1066 | 3231 |
1067 /* NOTE: NT 4.0+ only */ | 3232 /* NOTE: NT 4.0+ only */ |
1068 BOOL | 3233 WINBOOL |
1069 qxeDrawState (HDC arg1, HBRUSH arg2, DRAWSTATEPROC arg3, LPARAM arg4, WPARAM arg5, int arg6, int arg7, int arg8, int arg9, UINT arg10) | 3234 qxeSetICMProfile (HDC hdc, Extbyte * lpFileName) |
1070 { | 3235 { |
1071 if (XEUNICODE_P) | 3236 if (XEUNICODE_P) |
1072 return DrawStateW (arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10); | 3237 return SetICMProfileW (hdc, (LPWSTR) lpFileName); |
1073 else | 3238 else |
1074 return DrawStateA (arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10); | 3239 return SetICMProfileA (hdc, (LPSTR) lpFileName); |
1075 } | 3240 } |
1076 | 3241 |
1077 int | 3242 #endif /* defined (HAVE_MS_WINDOWS) */ |
1078 qxeDrawText (HDC arg1, const Extbyte * arg2, int arg3, LPRECT arg4, UINT arg5) | 3243 |
1079 { | 3244 #if defined (HAVE_MS_WINDOWS) |
1080 if (XEUNICODE_P) | |
1081 return DrawTextW (arg1, (LPCWSTR) arg2, arg3, arg4, arg5); | |
1082 else | |
1083 return DrawTextA (arg1, (LPCSTR) arg2, arg3, arg4, arg5); | |
1084 } | |
1085 | 3245 |
1086 /* NOTE: NT 4.0+ only */ | 3246 /* NOTE: NT 4.0+ only */ |
1087 int | 3247 int |
1088 qxeDrawTextEx (HDC arg1, Extbyte * arg2, int arg3, LPRECT arg4, UINT arg5, LPDRAWTEXTPARAMS arg6) | 3248 qxeEnumICMProfiles (HDC hdc, ICMENUMPROCW lpProc, LPARAM lParam) |
1089 { | 3249 { |
1090 if (XEUNICODE_P) | 3250 if (XEUNICODE_P) |
1091 return DrawTextExW (arg1, (LPWSTR) arg2, arg3, arg4, arg5, arg6); | 3251 return EnumICMProfilesW (hdc, lpProc, lParam); |
1092 else | 3252 else |
1093 return DrawTextExA (arg1, (LPSTR) arg2, arg3, arg4, arg5, arg6); | 3253 return EnumICMProfilesA (hdc, (ICMENUMPROCA) lpProc, lParam); |
1094 } | 3254 } |
1095 | 3255 |
1096 /* NOTE: // callback fun differs only in string pointer type */ | 3256 #endif /* defined (HAVE_MS_WINDOWS) */ |
1097 BOOL | 3257 |
1098 qxeEnumDesktops (HWINSTA arg1, DESKTOPENUMPROCW arg2, LPARAM arg3) | 3258 #if defined (HAVE_MS_WINDOWS) |
1099 { | 3259 |
1100 if (XEUNICODE_P) | 3260 /* Skipping UpdateICMRegKey because NT 4.0+ only, error in Cygwin prototype */ |
1101 return EnumDesktopsW (arg1, arg2, arg3); | 3261 |
1102 else | 3262 #endif /* defined (HAVE_MS_WINDOWS) */ |
1103 return EnumDesktopsA (arg1, (DESKTOPENUMPROCA) arg2, arg3); | 3263 |
1104 } | 3264 #if defined (HAVE_MS_WINDOWS) |
1105 | 3265 |
1106 /* Error if EnumDisplaySettings used: split-sized LPDEVMODE */ | 3266 /* Error if wglUseFontBitmaps used: causes link error */ |
1107 | 3267 |
1108 /* Error if EnumDisplaySettingsEx used: Function needs review to determine how to handle it */ | 3268 #endif /* defined (HAVE_MS_WINDOWS) */ |
1109 | 3269 |
1110 /* Error if EnumDisplayDevices used: split-sized PDISPLAY_DEVICE; NT 5.0+ only, no Win98 */ | 3270 #if defined (HAVE_MS_WINDOWS) |
1111 | 3271 |
1112 /* NOTE: // callback fun differs only in string pointer type */ | 3272 /* Error if wglUseFontOutlines used: causes link error */ |
3273 | |
3274 #endif /* defined (HAVE_MS_WINDOWS) */ | |
3275 | |
3276 | |
3277 /*----------------------------------------------------------------------*/ | |
3278 /* Processing file WINNLS.H */ | |
3279 /*----------------------------------------------------------------------*/ | |
3280 | |
3281 /* Error if LCMapString used: not used, not examined yet */ | |
3282 | |
1113 int | 3283 int |
1114 qxeEnumProps (HWND arg1, PROPENUMPROCW arg2) | 3284 qxeGetLocaleInfo (LCID Locale, LCTYPE LCType, Extbyte * lpLCData, int cchData) |
1115 { | 3285 { |
1116 if (XEUNICODE_P) | 3286 if (XEUNICODE_P) |
1117 return EnumPropsW (arg1, arg2); | 3287 return GetLocaleInfoW (Locale, LCType, (LPWSTR) lpLCData, cchData); |
1118 else | 3288 else |
1119 return EnumPropsA (arg1, (PROPENUMPROCA) arg2); | 3289 return GetLocaleInfoA (Locale, LCType, (LPSTR) lpLCData, cchData); |
1120 } | 3290 } |
1121 | 3291 |
1122 /* NOTE: // callback fun differs only in string pointer type */ | 3292 /* Error if GetNumberFormat used: not used, not examined yet */ |
1123 int | 3293 |
1124 qxeEnumPropsEx (HWND arg1, PROPENUMPROCEXW arg2, LPARAM arg3) | 3294 /* Error if GetCurrencyFormat used: not used, not examined yet */ |
1125 { | 3295 |
1126 if (XEUNICODE_P) | 3296 /* Error if EnumCalendarInfo used: not used, not examined yet */ |
1127 return EnumPropsExW (arg1, arg2, arg3); | 3297 |
1128 else | 3298 /* Error if EnumCalendarInfoEx used: not used, not examined yet */ |
1129 return EnumPropsExA (arg1, (PROPENUMPROCEXA) arg2, arg3); | 3299 |
1130 } | 3300 /* Error if EnumTimeFormats used: not used, not examined yet */ |
1131 | 3301 |
1132 /* NOTE: // callback fun differs only in string pointer type */ | 3302 /* Error if EnumDateFormats used: not used, not examined yet */ |
1133 BOOL | 3303 |
1134 qxeEnumWindowStations (WINSTAENUMPROCW arg1, LPARAM arg2) | 3304 /* Error if EnumDateFormatsEx used: not used, not examined yet */ |
1135 { | 3305 |
1136 if (XEUNICODE_P) | 3306 WINBOOL |
1137 return EnumWindowStationsW (arg1, arg2); | 3307 qxeSetLocaleInfo (LCID Locale, LCTYPE LCType, const Extbyte * lpLCData) |
1138 else | 3308 { |
1139 return EnumWindowStationsA ((WINSTAENUMPROCA) arg1, arg2); | 3309 if (XEUNICODE_P) |
1140 } | 3310 return SetLocaleInfoW (Locale, LCType, (LPCWSTR) lpLCData); |
1141 | 3311 else |
1142 /* NOTE: NT 4.0+ only */ | 3312 return SetLocaleInfoA (Locale, LCType, (LPCSTR) lpLCData); |
1143 HWND | 3313 } |
1144 qxeFindWindowEx (HWND arg1, HWND arg2, const Extbyte * arg3, const Extbyte * arg4) | 3314 |
1145 { | 3315 /* Error if GetCalendarInfo used: Function needs review to determine how to handle it */ |
1146 if (XEUNICODE_P) | 3316 |
1147 return FindWindowExW (arg1, arg2, (LPCWSTR) arg3, (LPCWSTR) arg4); | 3317 /* Error if SetCalendarInfo used: Function needs review to determine how to handle it */ |
1148 else | 3318 |
1149 return FindWindowExA (arg1, arg2, (LPCSTR) arg3, (LPCSTR) arg4); | 3319 /* Error if GetGeoInfo used: Function needs review to determine how to handle it */ |
1150 } | 3320 |
1151 | 3321 /* Error if GetCPInfoEx used: not used, not examined yet */ |
1152 HWND | 3322 |
1153 qxeFindWindow (const Extbyte * arg1, const Extbyte * arg2) | 3323 /* Error if EnumSystemLocales used: not used, not examined yet */ |
1154 { | 3324 |
1155 if (XEUNICODE_P) | 3325 /* Error if EnumSystemLanguageGroups used: Function needs review to determine how to handle it */ |
1156 return FindWindowW ((LPCWSTR) arg1, (LPCWSTR) arg2); | 3326 |
1157 else | 3327 /* Error if EnumLanguageGroupLocales used: Function needs review to determine how to handle it */ |
1158 return FindWindowA ((LPCSTR) arg1, (LPCSTR) arg2); | 3328 |
1159 } | 3329 /* Error if EnumUILanguages used: Function needs review to determine how to handle it */ |
1160 | 3330 |
1161 BOOL | 3331 /* Error if EnumSystemCodePages used: not used, not examined yet */ |
1162 qxeGetClassInfo (HINSTANCE arg1, const Extbyte * arg2, LPWNDCLASSW arg3) | 3332 |
1163 { | 3333 |
1164 if (XEUNICODE_P) | 3334 /*----------------------------------------------------------------------*/ |
1165 return GetClassInfoW (arg1, (LPCWSTR) arg2, arg3); | 3335 /* Processing file WINREG.H */ |
1166 else | 3336 /*----------------------------------------------------------------------*/ |
1167 return GetClassInfoA (arg1, (LPCSTR) arg2, (LPWNDCLASSA) arg3); | 3337 |
1168 } | 3338 /* NOTE: former error in Cygwin prototype, but no more (Cygwin 1.7, 1-30-10) */ |
1169 | |
1170 /* NOTE: NT 4.0+ only */ | |
1171 BOOL | |
1172 qxeGetClassInfoEx (HINSTANCE arg1, const Extbyte * arg2, LPWNDCLASSEXW arg3) | |
1173 { | |
1174 if (XEUNICODE_P) | |
1175 return GetClassInfoExW (arg1, (LPCWSTR) arg2, arg3); | |
1176 else | |
1177 return GetClassInfoExA (arg1, (LPCSTR) arg2, (LPWNDCLASSEXA) arg3); | |
1178 } | |
1179 | |
1180 DWORD | |
1181 qxeGetClassLong (HWND arg1, int arg2) | |
1182 { | |
1183 if (XEUNICODE_P) | |
1184 return GetClassLongW (arg1, arg2); | |
1185 else | |
1186 return GetClassLongA (arg1, arg2); | |
1187 } | |
1188 | |
1189 /* Error if GetClassLongPtr used: Function needs review to determine how to handle it */ | |
1190 | |
1191 int | |
1192 qxeGetClassName (HWND arg1, Extbyte * arg2, int arg3) | |
1193 { | |
1194 if (XEUNICODE_P) | |
1195 return GetClassNameW (arg1, (LPWSTR) arg2, arg3); | |
1196 else | |
1197 return GetClassNameA (arg1, (LPSTR) arg2, arg3); | |
1198 } | |
1199 | |
1200 int | |
1201 qxeGetClipboardFormatName (UINT arg1, Extbyte * arg2, int arg3) | |
1202 { | |
1203 if (XEUNICODE_P) | |
1204 return GetClipboardFormatNameW (arg1, (LPWSTR) arg2, arg3); | |
1205 else | |
1206 return GetClipboardFormatNameA (arg1, (LPSTR) arg2, arg3); | |
1207 } | |
1208 | |
1209 UINT | |
1210 qxeGetDlgItemText (HWND arg1, int arg2, Extbyte * arg3, int arg4) | |
1211 { | |
1212 if (XEUNICODE_P) | |
1213 return GetDlgItemTextW (arg1, arg2, (LPWSTR) arg3, arg4); | |
1214 else | |
1215 return GetDlgItemTextA (arg1, arg2, (LPSTR) arg3, arg4); | |
1216 } | |
1217 | |
1218 BOOL | |
1219 qxeGetKeyboardLayoutName (Extbyte * arg1) | |
1220 { | |
1221 if (XEUNICODE_P) | |
1222 return GetKeyboardLayoutNameW ((LPWSTR) arg1); | |
1223 else | |
1224 return GetKeyboardLayoutNameA ((LPSTR) arg1); | |
1225 } | |
1226 | |
1227 int | |
1228 qxeGetKeyNameText (LONG arg1, Extbyte * arg2, int arg3) | |
1229 { | |
1230 if (XEUNICODE_P) | |
1231 return GetKeyNameTextW (arg1, (LPWSTR) arg2, arg3); | |
1232 else | |
1233 return GetKeyNameTextA (arg1, (LPSTR) arg2, arg3); | |
1234 } | |
1235 | |
1236 /* NOTE: NT 4.0+ only */ | |
1237 BOOL | |
1238 qxeGetMenuItemInfo (HMENU arg1, UINT arg2, BOOL arg3, LPMENUITEMINFOW arg4) | |
1239 { | |
1240 if (XEUNICODE_P) | |
1241 return GetMenuItemInfoW (arg1, arg2, arg3, arg4); | |
1242 else | |
1243 return GetMenuItemInfoA (arg1, arg2, arg3, (LPMENUITEMINFOA) arg4); | |
1244 } | |
1245 | |
1246 int | |
1247 qxeGetMenuString (HMENU arg1, UINT arg2, Extbyte * arg3, int arg4, UINT arg5) | |
1248 { | |
1249 if (XEUNICODE_P) | |
1250 return GetMenuStringW (arg1, arg2, (LPWSTR) arg3, arg4, arg5); | |
1251 else | |
1252 return GetMenuStringA (arg1, arg2, (LPSTR) arg3, arg4, arg5); | |
1253 } | |
1254 | |
1255 BOOL | |
1256 qxeGetMessage (LPMSG arg1, HWND arg2, UINT arg3, UINT arg4) | |
1257 { | |
1258 if (XEUNICODE_P) | |
1259 return GetMessageW (arg1, arg2, arg3, arg4); | |
1260 else | |
1261 return GetMessageA (arg1, arg2, arg3, arg4); | |
1262 } | |
1263 | |
1264 HANDLE | |
1265 qxeGetProp (HWND arg1, const Extbyte * arg2) | |
1266 { | |
1267 if (XEUNICODE_P) | |
1268 return GetPropW (arg1, (LPCWSTR) arg2); | |
1269 else | |
1270 return GetPropA (arg1, (LPCSTR) arg2); | |
1271 } | |
1272 | |
1273 /* Error if GetRawInputDeviceInfo used: Function needs review to determine how to handle it */ | |
1274 | |
1275 DWORD | |
1276 qxeGetTabbedTextExtent (HDC arg1, const Extbyte * arg2, int arg3, int arg4, LPINT arg5) | |
1277 { | |
1278 if (XEUNICODE_P) | |
1279 return GetTabbedTextExtentW (arg1, (LPCWSTR) arg2, arg3, arg4, arg5); | |
1280 else | |
1281 return GetTabbedTextExtentA (arg1, (LPCSTR) arg2, arg3, arg4, arg5); | |
1282 } | |
1283 | |
1284 LONG | 3339 LONG |
1285 qxeGetWindowLong (HWND arg1, int arg2) | 3340 qxeRegConnectRegistry (const Extbyte * lpMachineName, HKEY hKey, PHKEY phkResult) |
1286 { | 3341 { |
1287 if (XEUNICODE_P) | 3342 if (XEUNICODE_P) |
1288 return GetWindowLongW (arg1, arg2); | 3343 return RegConnectRegistryW ((LPCWSTR) lpMachineName, hKey, phkResult); |
1289 else | 3344 else |
1290 return GetWindowLongA (arg1, arg2); | 3345 return RegConnectRegistryA ((LPCSTR) lpMachineName, hKey, phkResult); |
1291 } | 3346 } |
1292 | 3347 |
1293 /* Error if GetWindowLongPtr used: Function needs review to determine how to handle it */ | 3348 /* Error if RegConnectRegistryEx used: HST: new? -- needs review */ |
1294 | |
1295 BOOL | |
1296 qxeGetUserObjectInformation (HANDLE arg1, int arg2, PVOID arg3, DWORD arg4, PDWORD arg5) | |
1297 { | |
1298 if (XEUNICODE_P) | |
1299 return GetUserObjectInformationW (arg1, arg2, arg3, arg4, arg5); | |
1300 else | |
1301 return GetUserObjectInformationA (arg1, arg2, arg3, arg4, arg5); | |
1302 } | |
1303 | |
1304 int | |
1305 qxeGetWindowTextLength (HWND arg1) | |
1306 { | |
1307 if (XEUNICODE_P) | |
1308 return GetWindowTextLengthW (arg1); | |
1309 else | |
1310 return GetWindowTextLengthA (arg1); | |
1311 } | |
1312 | |
1313 int | |
1314 qxeGetWindowText (HWND arg1, Extbyte * arg2, int arg3) | |
1315 { | |
1316 if (XEUNICODE_P) | |
1317 return GetWindowTextW (arg1, (LPWSTR) arg2, arg3); | |
1318 else | |
1319 return GetWindowTextA (arg1, (LPSTR) arg2, arg3); | |
1320 } | |
1321 | |
1322 /* Error if GetAltTabInfo used: NT 5.0+ only */ | |
1323 | |
1324 /* Error if GetMonitorInfo used: NT 5.0/Win98+ only */ | |
1325 | |
1326 /* Error if GetWindowModuleFileName used: NT 5.0+ only */ | |
1327 | |
1328 BOOL | |
1329 qxeGrayString (HDC arg1, HBRUSH arg2, GRAYSTRINGPROC arg3, LPARAM arg4, int arg5, int arg6, int arg7, int arg8, int arg9) | |
1330 { | |
1331 if (XEUNICODE_P) | |
1332 return GrayStringW (arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); | |
1333 else | |
1334 return GrayStringA (arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); | |
1335 } | |
1336 | |
1337 BOOL | |
1338 qxeInsertMenu (HMENU arg1, UINT arg2, UINT arg3, UINT arg4, const Extbyte * arg5) | |
1339 { | |
1340 if (XEUNICODE_P) | |
1341 return InsertMenuW (arg1, arg2, arg3, arg4, (LPCWSTR) arg5); | |
1342 else | |
1343 return InsertMenuA (arg1, arg2, arg3, arg4, (LPCSTR) arg5); | |
1344 } | |
1345 | |
1346 /* NOTE: NT 4.0+ only */ | |
1347 BOOL | |
1348 qxeInsertMenuItem (HMENU arg1, UINT arg2, BOOL arg3, LPCMENUITEMINFOW arg4) | |
1349 { | |
1350 if (XEUNICODE_P) | |
1351 return InsertMenuItemW (arg1, arg2, arg3, arg4); | |
1352 else | |
1353 return InsertMenuItemA (arg1, arg2, arg3, (LPCMENUITEMINFOA) arg4); | |
1354 } | |
1355 | |
1356 /* Error if IsCharAlphaNumeric used: split CHAR */ | |
1357 | |
1358 /* Error if IsCharAlpha used: split CHAR */ | |
1359 | |
1360 /* Error if IsCharLower used: split CHAR */ | |
1361 | |
1362 /* Error if IsCharUpper used: split CHAR */ | |
1363 | |
1364 BOOL | |
1365 qxeIsDialogMessage (HWND arg1, LPMSG arg2) | |
1366 { | |
1367 if (XEUNICODE_P) | |
1368 return IsDialogMessageW (arg1, arg2); | |
1369 else | |
1370 return IsDialogMessageA (arg1, arg2); | |
1371 } | |
1372 | |
1373 HACCEL | |
1374 qxeLoadAccelerators (HINSTANCE arg1, const Extbyte * arg2) | |
1375 { | |
1376 if (XEUNICODE_P) | |
1377 return LoadAcceleratorsW (arg1, (LPCWSTR) arg2); | |
1378 else | |
1379 return LoadAcceleratorsA (arg1, (LPCSTR) arg2); | |
1380 } | |
1381 | |
1382 HBITMAP | |
1383 qxeLoadBitmap (HINSTANCE arg1, const Extbyte * arg2) | |
1384 { | |
1385 if (XEUNICODE_P) | |
1386 return LoadBitmapW (arg1, (LPCWSTR) arg2); | |
1387 else | |
1388 return LoadBitmapA (arg1, (LPCSTR) arg2); | |
1389 } | |
1390 | |
1391 HCURSOR | |
1392 qxeLoadCursorFromFile (const Extbyte * arg1) | |
1393 { | |
1394 if (XEUNICODE_P) | |
1395 return LoadCursorFromFileW ((LPCWSTR) arg1); | |
1396 else | |
1397 return LoadCursorFromFileA ((LPCSTR) arg1); | |
1398 } | |
1399 | |
1400 HCURSOR | |
1401 qxeLoadCursor (HINSTANCE arg1, const Extbyte * arg2) | |
1402 { | |
1403 if (XEUNICODE_P) | |
1404 return LoadCursorW (arg1, (LPCWSTR) arg2); | |
1405 else | |
1406 return LoadCursorA (arg1, (LPCSTR) arg2); | |
1407 } | |
1408 | |
1409 HICON | |
1410 qxeLoadIcon (HINSTANCE arg1, const Extbyte * arg2) | |
1411 { | |
1412 if (XEUNICODE_P) | |
1413 return LoadIconW (arg1, (LPCWSTR) arg2); | |
1414 else | |
1415 return LoadIconA (arg1, (LPCSTR) arg2); | |
1416 } | |
1417 | |
1418 /* NOTE: NT 4.0+ only */ | |
1419 HANDLE | |
1420 qxeLoadImage (HINSTANCE arg1, const Extbyte * arg2, UINT arg3, int arg4, int arg5, UINT arg6) | |
1421 { | |
1422 if (XEUNICODE_P) | |
1423 return LoadImageW (arg1, (LPCWSTR) arg2, arg3, arg4, arg5, arg6); | |
1424 else | |
1425 return LoadImageA (arg1, (LPCSTR) arg2, arg3, arg4, arg5, arg6); | |
1426 } | |
1427 | |
1428 HKL | |
1429 qxeLoadKeyboardLayout (const Extbyte * arg1, UINT arg2) | |
1430 { | |
1431 if (XEUNICODE_P) | |
1432 return LoadKeyboardLayoutW ((LPCWSTR) arg1, arg2); | |
1433 else | |
1434 return LoadKeyboardLayoutA ((LPCSTR) arg1, arg2); | |
1435 } | |
1436 | |
1437 HMENU | |
1438 qxeLoadMenuIndirect (const MENUTEMPLATE* arg1) | |
1439 { | |
1440 if (XEUNICODE_P) | |
1441 return LoadMenuIndirectW (arg1); | |
1442 else | |
1443 return LoadMenuIndirectA (arg1); | |
1444 } | |
1445 | |
1446 HMENU | |
1447 qxeLoadMenu (HINSTANCE arg1, const Extbyte * arg2) | |
1448 { | |
1449 if (XEUNICODE_P) | |
1450 return LoadMenuW (arg1, (LPCWSTR) arg2); | |
1451 else | |
1452 return LoadMenuA (arg1, (LPCSTR) arg2); | |
1453 } | |
1454 | |
1455 int | |
1456 qxeLoadString (HINSTANCE arg1, UINT arg2, Extbyte * arg3, int arg4) | |
1457 { | |
1458 if (XEUNICODE_P) | |
1459 return LoadStringW (arg1, arg2, (LPWSTR) arg3, arg4); | |
1460 else | |
1461 return LoadStringA (arg1, arg2, (LPSTR) arg3, arg4); | |
1462 } | |
1463 | |
1464 /* NOTE: NT 4.0+ only */ | |
1465 UINT | |
1466 qxeMapVirtualKeyEx (UINT arg1, UINT arg2, HKL arg3) | |
1467 { | |
1468 if (XEUNICODE_P) | |
1469 return MapVirtualKeyExW (arg1, arg2, arg3); | |
1470 else | |
1471 return MapVirtualKeyExA (arg1, arg2, arg3); | |
1472 } | |
1473 | |
1474 UINT | |
1475 qxeMapVirtualKey (UINT arg1, UINT arg2) | |
1476 { | |
1477 if (XEUNICODE_P) | |
1478 return MapVirtualKeyW (arg1, arg2); | |
1479 else | |
1480 return MapVirtualKeyA (arg1, arg2); | |
1481 } | |
1482 | |
1483 int | |
1484 qxeMessageBox (HWND arg1, const Extbyte * arg2, const Extbyte * arg3, UINT arg4) | |
1485 { | |
1486 if (XEUNICODE_P) | |
1487 return MessageBoxW (arg1, (LPCWSTR) arg2, (LPCWSTR) arg3, arg4); | |
1488 else | |
1489 return MessageBoxA (arg1, (LPCSTR) arg2, (LPCSTR) arg3, arg4); | |
1490 } | |
1491 | |
1492 int | |
1493 qxeMessageBoxEx (HWND arg1, const Extbyte * arg2, const Extbyte * arg3, UINT arg4, WORD arg5) | |
1494 { | |
1495 if (XEUNICODE_P) | |
1496 return MessageBoxExW (arg1, (LPCWSTR) arg2, (LPCWSTR) arg3, arg4, arg5); | |
1497 else | |
1498 return MessageBoxExA (arg1, (LPCSTR) arg2, (LPCSTR) arg3, arg4, arg5); | |
1499 } | |
1500 | |
1501 /* Error if MessageBoxIndirect used: Cygwin has split MSGBOXPARAMS* instead of LPMSGBOXPARAMS */ | |
1502 | |
1503 BOOL | |
1504 qxeModifyMenu (HMENU arg1, UINT arg2, UINT arg3, UINT arg4, const Extbyte * arg5) | |
1505 { | |
1506 if (XEUNICODE_P) | |
1507 return ModifyMenuW (arg1, arg2, arg3, arg4, (LPCWSTR) arg5); | |
1508 else | |
1509 return ModifyMenuA (arg1, arg2, arg3, arg4, (LPCSTR) arg5); | |
1510 } | |
1511 | |
1512 BOOL | |
1513 qxeOemToCharBuff (LPCSTR arg1, Extbyte * arg2, DWORD arg3) | |
1514 { | |
1515 if (XEUNICODE_P) | |
1516 return OemToCharBuffW (arg1, (LPWSTR) arg2, arg3); | |
1517 else | |
1518 return OemToCharBuffA (arg1, (LPSTR) arg2, arg3); | |
1519 } | |
1520 | |
1521 BOOL | |
1522 qxeOemToChar (LPCSTR arg1, Extbyte * arg2) | |
1523 { | |
1524 if (XEUNICODE_P) | |
1525 return OemToCharW (arg1, (LPWSTR) arg2); | |
1526 else | |
1527 return OemToCharA (arg1, (LPSTR) arg2); | |
1528 } | |
1529 | |
1530 HDESK | |
1531 qxeOpenDesktop (Extbyte * arg1, DWORD arg2, BOOL arg3, DWORD arg4) | |
1532 { | |
1533 if (XEUNICODE_P) | |
1534 return OpenDesktopW ((LPWSTR) arg1, arg2, arg3, arg4); | |
1535 else | |
1536 return OpenDesktopA ((LPSTR) arg1, arg2, arg3, arg4); | |
1537 } | |
1538 | |
1539 HWINSTA | |
1540 qxeOpenWindowStation (Extbyte * arg1, BOOL arg2, DWORD arg3) | |
1541 { | |
1542 if (XEUNICODE_P) | |
1543 return OpenWindowStationW ((LPWSTR) arg1, arg2, arg3); | |
1544 else | |
1545 return OpenWindowStationA ((LPSTR) arg1, arg2, arg3); | |
1546 } | |
1547 | |
1548 BOOL | |
1549 qxePeekMessage (LPMSG arg1, HWND arg2, UINT arg3, UINT arg4, UINT arg5) | |
1550 { | |
1551 if (XEUNICODE_P) | |
1552 return PeekMessageW (arg1, arg2, arg3, arg4, arg5); | |
1553 else | |
1554 return PeekMessageA (arg1, arg2, arg3, arg4, arg5); | |
1555 } | |
1556 | |
1557 BOOL | |
1558 qxePostMessage (HWND arg1, UINT arg2, WPARAM arg3, LPARAM arg4) | |
1559 { | |
1560 if (XEUNICODE_P) | |
1561 return PostMessageW (arg1, arg2, arg3, arg4); | |
1562 else | |
1563 return PostMessageA (arg1, arg2, arg3, arg4); | |
1564 } | |
1565 | |
1566 BOOL | |
1567 qxePostThreadMessage (DWORD arg1, UINT arg2, WPARAM arg3, LPARAM arg4) | |
1568 { | |
1569 if (XEUNICODE_P) | |
1570 return PostThreadMessageW (arg1, arg2, arg3, arg4); | |
1571 else | |
1572 return PostThreadMessageA (arg1, arg2, arg3, arg4); | |
1573 } | |
1574 | |
1575 /* Error if RealGetWindowClass used: NT 5.0+ only */ | |
1576 | |
1577 /* Skipping RegisterClass because need to intercept so we can provide our own window procedure and handle split notify messages; split-simple WNDCLASS */ | |
1578 | |
1579 /* Skipping RegisterClassEx because need to intercept so we can provide our own window procedure and handle split notify messages; split-simple WNDCLASSEX; NT 4.0+ only */ | |
1580 | |
1581 UINT | |
1582 qxeRegisterClipboardFormat (const Extbyte * arg1) | |
1583 { | |
1584 if (XEUNICODE_P) | |
1585 return RegisterClipboardFormatW ((LPCWSTR) arg1); | |
1586 else | |
1587 return RegisterClipboardFormatA ((LPCSTR) arg1); | |
1588 } | |
1589 | |
1590 /* Error if RegisterDeviceNotification used: NT 5.0+ only */ | |
1591 | |
1592 UINT | |
1593 qxeRegisterWindowMessage (const Extbyte * arg1) | |
1594 { | |
1595 if (XEUNICODE_P) | |
1596 return RegisterWindowMessageW ((LPCWSTR) arg1); | |
1597 else | |
1598 return RegisterWindowMessageA ((LPCSTR) arg1); | |
1599 } | |
1600 | |
1601 HANDLE | |
1602 qxeRemoveProp (HWND arg1, const Extbyte * arg2) | |
1603 { | |
1604 if (XEUNICODE_P) | |
1605 return RemovePropW (arg1, (LPCWSTR) arg2); | |
1606 else | |
1607 return RemovePropA (arg1, (LPCSTR) arg2); | |
1608 } | |
1609 | 3349 |
1610 LONG | 3350 LONG |
1611 qxeSendDlgItemMessage (HWND arg1, int arg2, UINT arg3, WPARAM arg4, LPARAM arg5) | 3351 qxeRegCreateKey (HKEY hKey, const Extbyte * lpSubKey, PHKEY phkResult) |
1612 { | 3352 { |
1613 if (XEUNICODE_P) | 3353 if (XEUNICODE_P) |
1614 return SendDlgItemMessageW (arg1, arg2, arg3, arg4, arg5); | 3354 return RegCreateKeyW (hKey, (LPCWSTR) lpSubKey, phkResult); |
1615 else | 3355 else |
1616 return SendDlgItemMessageA (arg1, arg2, arg3, arg4, arg5); | 3356 return RegCreateKeyA (hKey, (LPCSTR) lpSubKey, phkResult); |
1617 } | |
1618 | |
1619 BOOL | |
1620 qxeSendMessageCallback (HWND arg1, UINT arg2, WPARAM arg3, LPARAM arg4, SENDASYNCPROC arg5, DWORD arg6) | |
1621 { | |
1622 if (XEUNICODE_P) | |
1623 return SendMessageCallbackW (arg1, arg2, arg3, arg4, arg5, arg6); | |
1624 else | |
1625 return SendMessageCallbackA (arg1, arg2, arg3, arg4, arg5, arg6); | |
1626 } | |
1627 | |
1628 /* Error if SendMessageTimeout used: VS6 has erroneous seventh parameter DWORD_PTR instead of PDWORD_PTR */ | |
1629 | |
1630 /* Skipping SendMessage because split messages and structures */ | |
1631 | |
1632 BOOL | |
1633 qxeSendNotifyMessage (HWND arg1, UINT arg2, WPARAM arg3, LPARAM arg4) | |
1634 { | |
1635 if (XEUNICODE_P) | |
1636 return SendNotifyMessageW (arg1, arg2, arg3, arg4); | |
1637 else | |
1638 return SendNotifyMessageA (arg1, arg2, arg3, arg4); | |
1639 } | |
1640 | |
1641 DWORD | |
1642 qxeSetClassLong (HWND arg1, int arg2, LONG arg3) | |
1643 { | |
1644 if (XEUNICODE_P) | |
1645 return SetClassLongW (arg1, arg2, arg3); | |
1646 else | |
1647 return SetClassLongA (arg1, arg2, arg3); | |
1648 } | |
1649 | |
1650 /* Error if SetClassLongPtr used: Function needs review to determine how to handle it */ | |
1651 | |
1652 BOOL | |
1653 qxeSetDlgItemText (HWND arg1, int arg2, const Extbyte * arg3) | |
1654 { | |
1655 if (XEUNICODE_P) | |
1656 return SetDlgItemTextW (arg1, arg2, (LPCWSTR) arg3); | |
1657 else | |
1658 return SetDlgItemTextA (arg1, arg2, (LPCSTR) arg3); | |
1659 } | |
1660 | |
1661 /* NOTE: NT 4.0+ only */ | |
1662 BOOL | |
1663 qxeSetMenuItemInfo (HMENU arg1, UINT arg2, BOOL arg3, LPCMENUITEMINFOW arg4) | |
1664 { | |
1665 if (XEUNICODE_P) | |
1666 return SetMenuItemInfoW (arg1, arg2, arg3, arg4); | |
1667 else | |
1668 return SetMenuItemInfoA (arg1, arg2, arg3, (LPCMENUITEMINFOA) arg4); | |
1669 } | |
1670 | |
1671 BOOL | |
1672 qxeSetProp (HWND arg1, const Extbyte * arg2, HANDLE arg3) | |
1673 { | |
1674 if (XEUNICODE_P) | |
1675 return SetPropW (arg1, (LPCWSTR) arg2, arg3); | |
1676 else | |
1677 return SetPropA (arg1, (LPCSTR) arg2, arg3); | |
1678 } | |
1679 | |
1680 BOOL | |
1681 qxeSetUserObjectInformation (HANDLE arg1, int arg2, PVOID arg3, DWORD arg4) | |
1682 { | |
1683 if (XEUNICODE_P) | |
1684 return SetUserObjectInformationW (arg1, arg2, arg3, arg4); | |
1685 else | |
1686 return SetUserObjectInformationA (arg1, arg2, arg3, arg4); | |
1687 } | 3357 } |
1688 | 3358 |
1689 LONG | 3359 LONG |
1690 qxeSetWindowLong (HWND arg1, int arg2, LONG arg3) | 3360 qxeRegCreateKeyEx (HKEY hKey, const Extbyte * lpSubKey, DWORD Reserved, Extbyte * lpClass, DWORD dwOptions, REGSAM samDesired, LPSECURITY_ATTRIBUTES lpSecurityAttributes, PHKEY phkResult, LPDWORD lpdwDisposition) |
1691 { | 3361 { |
1692 if (XEUNICODE_P) | 3362 if (XEUNICODE_P) |
1693 return SetWindowLongW (arg1, arg2, arg3); | 3363 return RegCreateKeyExW (hKey, (LPCWSTR) lpSubKey, Reserved, (LPWSTR) lpClass, dwOptions, samDesired, lpSecurityAttributes, phkResult, lpdwDisposition); |
1694 else | 3364 else |
1695 return SetWindowLongA (arg1, arg2, arg3); | 3365 return RegCreateKeyExA (hKey, (LPCSTR) lpSubKey, Reserved, (LPSTR) lpClass, dwOptions, samDesired, lpSecurityAttributes, phkResult, lpdwDisposition); |
1696 } | |
1697 | |
1698 /* Error if SetWindowLongPtr used: Function needs review to determine how to handle it */ | |
1699 | |
1700 /* Error if SetWindowsHook used: obsolete; two versions, STRICT and non-STRICT */ | |
1701 | |
1702 HHOOK | |
1703 qxeSetWindowsHookEx (int arg1, HOOKPROC arg2, HINSTANCE arg3, DWORD arg4) | |
1704 { | |
1705 if (XEUNICODE_P) | |
1706 return SetWindowsHookExW (arg1, arg2, arg3, arg4); | |
1707 else | |
1708 return SetWindowsHookExA (arg1, arg2, arg3, arg4); | |
1709 } | |
1710 | |
1711 BOOL | |
1712 qxeSetWindowText (HWND arg1, const Extbyte * arg2) | |
1713 { | |
1714 if (XEUNICODE_P) | |
1715 return SetWindowTextW (arg1, (LPCWSTR) arg2); | |
1716 else | |
1717 return SetWindowTextA (arg1, (LPCSTR) arg2); | |
1718 } | |
1719 | |
1720 /* NOTE: probs w/ICONMETRICS, NONCLIENTMETRICS */ | |
1721 BOOL | |
1722 qxeSystemParametersInfo (UINT arg1, UINT arg2, PVOID arg3, UINT arg4) | |
1723 { | |
1724 if (XEUNICODE_P) | |
1725 return SystemParametersInfoW (arg1, arg2, arg3, arg4); | |
1726 else | |
1727 return SystemParametersInfoA (arg1, arg2, arg3, arg4); | |
1728 } | 3366 } |
1729 | 3367 |
1730 LONG | 3368 LONG |
1731 qxeTabbedTextOut (HDC arg1, int arg2, int arg3, const Extbyte * arg4, int arg5, int arg6, LPINT arg7, int arg8) | 3369 qxeRegDeleteKey (HKEY hKey, const Extbyte * lpSubKey) |
1732 { | 3370 { |
1733 if (XEUNICODE_P) | 3371 if (XEUNICODE_P) |
1734 return TabbedTextOutW (arg1, arg2, arg3, (LPCWSTR) arg4, arg5, arg6, arg7, arg8); | 3372 return RegDeleteKeyW (hKey, (LPCWSTR) lpSubKey); |
1735 else | 3373 else |
1736 return TabbedTextOutA (arg1, arg2, arg3, (LPCSTR) arg4, arg5, arg6, arg7, arg8); | 3374 return RegDeleteKeyA (hKey, (LPCSTR) lpSubKey); |
1737 } | 3375 } |
1738 | 3376 |
1739 int | 3377 /* Error if RegDeleteKeyEx used: Function needs review to determine how to handle it */ |
1740 qxeTranslateAccelerator (HWND arg1, HACCEL arg2, LPMSG arg3) | 3378 |
1741 { | 3379 LONG |
1742 if (XEUNICODE_P) | 3380 qxeRegDeleteValue (HKEY hKey, const Extbyte * lpValueName) |
1743 return TranslateAcceleratorW (arg1, arg2, arg3); | 3381 { |
1744 else | 3382 if (XEUNICODE_P) |
1745 return TranslateAcceleratorA (arg1, arg2, arg3); | 3383 return RegDeleteValueW (hKey, (LPCWSTR) lpValueName); |
1746 } | 3384 else |
1747 | 3385 return RegDeleteValueA (hKey, (LPCSTR) lpValueName); |
1748 /* Skipping UnregisterClass because need to intercept for reasons related to RegisterClass */ | 3386 } |
1749 | 3387 |
1750 /* Error if VkKeyScanEx used: split CHAR; NT 4.0+ only */ | 3388 LONG |
1751 | 3389 qxeRegEnumKey (HKEY hKey, DWORD dwIndex, Extbyte * lpName, DWORD cchName) |
1752 /* Skipping VkKeyScan because split CHAR */ | 3390 { |
1753 | 3391 if (XEUNICODE_P) |
1754 BOOL | 3392 return RegEnumKeyW (hKey, dwIndex, (LPWSTR) lpName, cchName); |
1755 qxeWinHelp (HWND arg1, const Extbyte * arg2, UINT arg3, DWORD arg4) | 3393 else |
1756 { | 3394 return RegEnumKeyA (hKey, dwIndex, (LPSTR) lpName, cchName); |
1757 if (XEUNICODE_P) | 3395 } |
1758 return WinHelpW (arg1, (LPCWSTR) arg2, arg3, arg4); | 3396 |
1759 else | 3397 LONG |
1760 return WinHelpA (arg1, (LPCSTR) arg2, arg3, arg4); | 3398 qxeRegEnumKeyEx (HKEY hKey, DWORD dwIndex, Extbyte * lpName, LPDWORD lpcchName, LPDWORD lpReserved, Extbyte * lpClass, LPDWORD lpcchClass, PFILETIME lpftLastWriteTime) |
1761 } | 3399 { |
1762 | 3400 if (XEUNICODE_P) |
1763 int | 3401 return RegEnumKeyExW (hKey, dwIndex, (LPWSTR) lpName, lpcchName, lpReserved, (LPWSTR) lpClass, lpcchClass, lpftLastWriteTime); |
1764 qxewvsprintf (Extbyte * arg1, const Extbyte * arg2, va_list arglist) | 3402 else |
1765 { | 3403 return RegEnumKeyExA (hKey, dwIndex, (LPSTR) lpName, lpcchName, lpReserved, (LPSTR) lpClass, lpcchClass, lpftLastWriteTime); |
1766 if (XEUNICODE_P) | 3404 } |
1767 return wvsprintfW ((LPWSTR) arg1, (LPCWSTR) arg2, arglist); | 3405 |
1768 else | 3406 LONG |
1769 return wvsprintfA ((LPSTR) arg1, (LPCSTR) arg2, arglist); | 3407 qxeRegEnumValue (HKEY hKey, DWORD dwIndex, Extbyte * lpValueName, LPDWORD lpcchValueName, LPDWORD lpReserved, LPDWORD lpType, LPBYTE lpData, LPDWORD lpcbData) |
1770 } | 3408 { |
1771 | 3409 if (XEUNICODE_P) |
1772 | 3410 return RegEnumValueW (hKey, dwIndex, (LPWSTR) lpValueName, lpcchValueName, lpReserved, lpType, lpData, lpcbData); |
1773 /*----------------------------------------------------------------------*/ | 3411 else |
1774 /* Processing file DDEML.H */ | 3412 return RegEnumValueA (hKey, dwIndex, (LPSTR) lpValueName, lpcchValueName, lpReserved, lpType, lpData, lpcbData); |
1775 /*----------------------------------------------------------------------*/ | 3413 } |
1776 | 3414 |
1777 /* NOTE: former error in Cygwin prototype, but no more (Cygwin 1.7, 1-30-10) */ | 3415 LONG |
1778 HSZ | 3416 qxeRegLoadKey (HKEY hKey, const Extbyte * lpSubKey, const Extbyte * lpFile) |
1779 qxeDdeCreateStringHandle (DWORD arg1, const Extbyte * arg2, int arg3) | 3417 { |
1780 { | 3418 if (XEUNICODE_P) |
1781 if (XEUNICODE_P) | 3419 return RegLoadKeyW (hKey, (LPCWSTR) lpSubKey, (LPCWSTR) lpFile); |
1782 return DdeCreateStringHandleW (arg1, (LPCWSTR) arg2, arg3); | 3420 else |
1783 else | 3421 return RegLoadKeyA (hKey, (LPCSTR) lpSubKey, (LPCSTR) lpFile); |
1784 return DdeCreateStringHandleA (arg1, (LPCSTR) arg2, arg3); | 3422 } |
1785 } | 3423 |
1786 | 3424 LONG |
1787 UINT | 3425 qxeRegOpenKey (HKEY hKey, const Extbyte * lpSubKey, PHKEY phkResult) |
1788 qxeDdeInitialize (PDWORD arg1, PFNCALLBACK arg2, DWORD arg3, DWORD arg4) | 3426 { |
1789 { | 3427 if (XEUNICODE_P) |
1790 if (XEUNICODE_P) | 3428 return RegOpenKeyW (hKey, (LPCWSTR) lpSubKey, phkResult); |
1791 return DdeInitializeW (arg1, arg2, arg3, arg4); | 3429 else |
1792 else | 3430 return RegOpenKeyA (hKey, (LPCSTR) lpSubKey, phkResult); |
1793 return DdeInitializeA (arg1, arg2, arg3, arg4); | 3431 } |
1794 } | 3432 |
1795 | 3433 LONG |
1796 DWORD | 3434 qxeRegOpenKeyEx (HKEY hKey, const Extbyte * lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult) |
1797 qxeDdeQueryString (DWORD arg1, HSZ arg2, Extbyte * arg3, DWORD arg4, int arg5) | 3435 { |
1798 { | 3436 if (XEUNICODE_P) |
1799 if (XEUNICODE_P) | 3437 return RegOpenKeyExW (hKey, (LPCWSTR) lpSubKey, ulOptions, samDesired, phkResult); |
1800 return DdeQueryStringW (arg1, arg2, (LPWSTR) arg3, arg4, arg5); | 3438 else |
1801 else | 3439 return RegOpenKeyExA (hKey, (LPCSTR) lpSubKey, ulOptions, samDesired, phkResult); |
1802 return DdeQueryStringA (arg1, arg2, (LPSTR) arg3, arg4, arg5); | 3440 } |
1803 } | 3441 |
1804 | 3442 LONG |
1805 | 3443 qxeRegQueryInfoKey (HKEY hKey, Extbyte * lpClass, LPDWORD lpcchClass, LPDWORD lpReserved, LPDWORD lpcSubKeys, LPDWORD lpcbMaxSubKeyLen, LPDWORD lpcbMaxClassLen, LPDWORD lpcValues, LPDWORD lpcbMaxValueNameLen, LPDWORD lpcbMaxValueLen, LPDWORD lpcbSecurityDescriptor, PFILETIME lpftLastWriteTime) |
1806 /*----------------------------------------------------------------------*/ | 3444 { |
1807 /* Processing file WINREG.H */ | 3445 if (XEUNICODE_P) |
1808 /*----------------------------------------------------------------------*/ | 3446 return RegQueryInfoKeyW (hKey, (LPWSTR) lpClass, lpcchClass, lpReserved, lpcSubKeys, lpcbMaxSubKeyLen, lpcbMaxClassLen, lpcValues, lpcbMaxValueNameLen, lpcbMaxValueLen, lpcbSecurityDescriptor, lpftLastWriteTime); |
3447 else | |
3448 return RegQueryInfoKeyA (hKey, (LPSTR) lpClass, lpcchClass, lpReserved, lpcSubKeys, lpcbMaxSubKeyLen, lpcbMaxClassLen, lpcValues, lpcbMaxValueNameLen, lpcbMaxValueLen, lpcbSecurityDescriptor, lpftLastWriteTime); | |
3449 } | |
3450 | |
3451 LONG | |
3452 qxeRegQueryValue (HKEY hKey, const Extbyte * lpSubKey, Extbyte * lpData, PLONG lpcbData) | |
3453 { | |
3454 if (XEUNICODE_P) | |
3455 return RegQueryValueW (hKey, (LPCWSTR) lpSubKey, (LPWSTR) lpData, lpcbData); | |
3456 else | |
3457 return RegQueryValueA (hKey, (LPCSTR) lpSubKey, (LPSTR) lpData, lpcbData); | |
3458 } | |
3459 | |
3460 LONG | |
3461 qxeRegQueryMultipleValues (HKEY hKey, PVALENTW val_list, DWORD num_vals, Extbyte * lpValueBuf, LPDWORD ldwTotsize) | |
3462 { | |
3463 if (XEUNICODE_P) | |
3464 return RegQueryMultipleValuesW (hKey, val_list, num_vals, (LPWSTR) lpValueBuf, ldwTotsize); | |
3465 else | |
3466 return RegQueryMultipleValuesA (hKey, (PVALENTA) val_list, num_vals, (LPSTR) lpValueBuf, ldwTotsize); | |
3467 } | |
3468 | |
3469 LONG | |
3470 qxeRegQueryValueEx (HKEY hKey, const Extbyte * lpValueName, LPDWORD lpReserved, LPDWORD lpType, LPBYTE lpData, LPDWORD lpcbData) | |
3471 { | |
3472 if (XEUNICODE_P) | |
3473 return RegQueryValueExW (hKey, (LPCWSTR) lpValueName, lpReserved, lpType, lpData, lpcbData); | |
3474 else | |
3475 return RegQueryValueExA (hKey, (LPCSTR) lpValueName, lpReserved, lpType, lpData, lpcbData); | |
3476 } | |
3477 | |
3478 LONG | |
3479 qxeRegReplaceKey (HKEY hKey, const Extbyte * lpSubKey, const Extbyte * lpNewFile, const Extbyte * lpOldFile) | |
3480 { | |
3481 if (XEUNICODE_P) | |
3482 return RegReplaceKeyW (hKey, (LPCWSTR) lpSubKey, (LPCWSTR) lpNewFile, (LPCWSTR) lpOldFile); | |
3483 else | |
3484 return RegReplaceKeyA (hKey, (LPCSTR) lpSubKey, (LPCSTR) lpNewFile, (LPCSTR) lpOldFile); | |
3485 } | |
3486 | |
3487 LONG | |
3488 qxeRegRestoreKey (HKEY hKey, const Extbyte * lpFile, DWORD dwFlags) | |
3489 { | |
3490 if (XEUNICODE_P) | |
3491 return RegRestoreKeyW (hKey, (LPCWSTR) lpFile, dwFlags); | |
3492 else | |
3493 return RegRestoreKeyA (hKey, (LPCSTR) lpFile, dwFlags); | |
3494 } | |
3495 | |
3496 LONG | |
3497 qxeRegSaveKey (HKEY hKey, const Extbyte * lpFile, LPSECURITY_ATTRIBUTES lpSecurityAttributes) | |
3498 { | |
3499 if (XEUNICODE_P) | |
3500 return RegSaveKeyW (hKey, (LPCWSTR) lpFile, lpSecurityAttributes); | |
3501 else | |
3502 return RegSaveKeyA (hKey, (LPCSTR) lpFile, lpSecurityAttributes); | |
3503 } | |
3504 | |
3505 LONG | |
3506 qxeRegSetValue (HKEY hKey, const Extbyte * lpSubKey, DWORD dwType, const Extbyte * lpData, DWORD cbData) | |
3507 { | |
3508 if (XEUNICODE_P) | |
3509 return RegSetValueW (hKey, (LPCWSTR) lpSubKey, dwType, (LPCWSTR) lpData, cbData); | |
3510 else | |
3511 return RegSetValueA (hKey, (LPCSTR) lpSubKey, dwType, (LPCSTR) lpData, cbData); | |
3512 } | |
3513 | |
3514 LONG | |
3515 qxeRegSetValueEx (HKEY hKey, const Extbyte * lpValueName, DWORD Reserved, DWORD dwType, CONST BYTE * lpData, DWORD cbData) | |
3516 { | |
3517 if (XEUNICODE_P) | |
3518 return RegSetValueExW (hKey, (LPCWSTR) lpValueName, Reserved, dwType, lpData, cbData); | |
3519 else | |
3520 return RegSetValueExA (hKey, (LPCSTR) lpValueName, Reserved, dwType, lpData, cbData); | |
3521 } | |
3522 | |
3523 LONG | |
3524 qxeRegUnLoadKey (HKEY hKey, const Extbyte * lpSubKey) | |
3525 { | |
3526 if (XEUNICODE_P) | |
3527 return RegUnLoadKeyW (hKey, (LPCWSTR) lpSubKey); | |
3528 else | |
3529 return RegUnLoadKeyA (hKey, (LPCSTR) lpSubKey); | |
3530 } | |
3531 | |
3532 /* Error if RegGetValue used: HST: new? -- needs review */ | |
3533 | |
3534 WINBOOL | |
3535 qxeInitiateSystemShutdown (Extbyte * lpMachineName, Extbyte * lpMessage, DWORD dwTimeout, WINBOOL bForceAppsClosed, WINBOOL bRebootAfterShutdown) | |
3536 { | |
3537 if (XEUNICODE_P) | |
3538 return InitiateSystemShutdownW ((LPWSTR) lpMachineName, (LPWSTR) lpMessage, dwTimeout, bForceAppsClosed, bRebootAfterShutdown); | |
3539 else | |
3540 return InitiateSystemShutdownA ((LPSTR) lpMachineName, (LPSTR) lpMessage, dwTimeout, bForceAppsClosed, bRebootAfterShutdown); | |
3541 } | |
1809 | 3542 |
1810 /* NOTE: error arg 1, Cygwin prototype, extra const. | 3543 /* NOTE: error arg 1, Cygwin prototype, extra const. |
1811 NOTE: Prototype manually overridden. | 3544 NOTE: Prototype manually overridden. |
1812 Header file claims: | 3545 Header file claims: |
1813 WINADVAPI BOOL WINAPI AbortSystemShutdown(LPCWSTR) | 3546 WINADVAPI WINBOOL WINAPI AbortSystemShutdown(LPWSTR lpMachineName) |
1814 Overridden with: | 3547 Overridden with: |
1815 BOOL AbortSystemShutdown(LPWSTR) | 3548 BOOL AbortSystemShutdown(LPWSTR) |
1816 Differences in return-type qualifiers, e.g. WINAPI, are not important. | 3549 Differences in return-type qualifiers, e.g. WINAPI, are not important. |
1817 */ | 3550 */ |
1818 BOOL | 3551 BOOL |
1822 return AbortSystemShutdownW ((LPWSTR) arg1); | 3555 return AbortSystemShutdownW ((LPWSTR) arg1); |
1823 else | 3556 else |
1824 return AbortSystemShutdownA ((LPSTR) arg1); | 3557 return AbortSystemShutdownA ((LPSTR) arg1); |
1825 } | 3558 } |
1826 | 3559 |
1827 BOOL | 3560 /* Error if InitiateSystemShutdownEx used: HST: new? -- needs review */ |
1828 qxeInitiateSystemShutdown (Extbyte * arg1, Extbyte * arg2, DWORD arg3, BOOL arg4, BOOL arg5) | 3561 |
1829 { | 3562 /* Error if RegSaveKeyEx used: HST: new? -- needs review */ |
1830 if (XEUNICODE_P) | 3563 |
1831 return InitiateSystemShutdownW ((LPWSTR) arg1, (LPWSTR) arg2, arg3, arg4, arg5); | 3564 /* Error if RegCopyTree used: HST: new? -- needs review */ |
1832 else | 3565 |
1833 return InitiateSystemShutdownA ((LPSTR) arg1, (LPSTR) arg2, arg3, arg4, arg5); | 3566 /* Error if RegCreateKeyTransacted used: HST: new? -- needs review */ |
1834 } | 3567 |
1835 | 3568 /* Error if RegDeleteKeyTransacted used: HST: new? -- needs review */ |
1836 /* NOTE: former error in Cygwin prototype, but no more (Cygwin 1.7, 1-30-10) */ | 3569 |
1837 LONG | 3570 /* Error if RegDeleteKeyValue used: HST: new? -- needs review */ |
1838 qxeRegConnectRegistry (const Extbyte * arg1, HKEY arg2, PHKEY arg3) | 3571 |
1839 { | 3572 /* Error if RegDeleteTree used: HST: new? -- needs review */ |
1840 if (XEUNICODE_P) | 3573 |
1841 return RegConnectRegistryW ((LPCWSTR) arg1, arg2, arg3); | 3574 /* Error if RegLoadAppKey used: HST: new? -- needs review */ |
1842 else | 3575 |
1843 return RegConnectRegistryA ((LPCSTR) arg1, arg2, arg3); | 3576 /* Error if RegLoadMUIString used: HST: new? -- needs review */ |
1844 } | 3577 |
1845 | 3578 /* Error if RegOpenKeyTransacted used: HST: new? -- needs review */ |
1846 LONG | 3579 |
1847 qxeRegCreateKeyEx (HKEY arg1, const Extbyte * arg2, DWORD arg3, Extbyte * arg4, DWORD arg5, REGSAM arg6, LPSECURITY_ATTRIBUTES arg7, PHKEY arg8, PDWORD arg9) | 3580 /* Error if RegSetKeyValue used: HST: new? -- needs review */ |
1848 { | 3581 |
1849 if (XEUNICODE_P) | 3582 |
1850 return RegCreateKeyExW (arg1, (LPCWSTR) arg2, arg3, (LPWSTR) arg4, arg5, arg6, arg7, arg8, arg9); | 3583 /*----------------------------------------------------------------------*/ |
1851 else | 3584 /* Processing file SYSINFOAPI.H */ |
1852 return RegCreateKeyExA (arg1, (LPCSTR) arg2, arg3, (LPSTR) arg4, arg5, arg6, arg7, arg8, arg9); | 3585 /*----------------------------------------------------------------------*/ |
1853 } | |
1854 | |
1855 LONG | |
1856 qxeRegCreateKey (HKEY arg1, const Extbyte * arg2, PHKEY arg3) | |
1857 { | |
1858 if (XEUNICODE_P) | |
1859 return RegCreateKeyW (arg1, (LPCWSTR) arg2, arg3); | |
1860 else | |
1861 return RegCreateKeyA (arg1, (LPCSTR) arg2, arg3); | |
1862 } | |
1863 | |
1864 LONG | |
1865 qxeRegDeleteKey (HKEY arg1, const Extbyte * arg2) | |
1866 { | |
1867 if (XEUNICODE_P) | |
1868 return RegDeleteKeyW (arg1, (LPCWSTR) arg2); | |
1869 else | |
1870 return RegDeleteKeyA (arg1, (LPCSTR) arg2); | |
1871 } | |
1872 | |
1873 /* Error if RegDeleteKeyEx used: Function needs review to determine how to handle it */ | |
1874 | |
1875 LONG | |
1876 qxeRegDeleteValue (HKEY arg1, const Extbyte * arg2) | |
1877 { | |
1878 if (XEUNICODE_P) | |
1879 return RegDeleteValueW (arg1, (LPCWSTR) arg2); | |
1880 else | |
1881 return RegDeleteValueA (arg1, (LPCSTR) arg2); | |
1882 } | |
1883 | |
1884 LONG | |
1885 qxeRegEnumKey (HKEY arg1, DWORD arg2, Extbyte * arg3, DWORD arg4) | |
1886 { | |
1887 if (XEUNICODE_P) | |
1888 return RegEnumKeyW (arg1, arg2, (LPWSTR) arg3, arg4); | |
1889 else | |
1890 return RegEnumKeyA (arg1, arg2, (LPSTR) arg3, arg4); | |
1891 } | |
1892 | |
1893 LONG | |
1894 qxeRegEnumKeyEx (HKEY arg1, DWORD arg2, Extbyte * arg3, PDWORD arg4, PDWORD arg5, Extbyte * arg6, PDWORD arg7, PFILETIME arg8) | |
1895 { | |
1896 if (XEUNICODE_P) | |
1897 return RegEnumKeyExW (arg1, arg2, (LPWSTR) arg3, arg4, arg5, (LPWSTR) arg6, arg7, arg8); | |
1898 else | |
1899 return RegEnumKeyExA (arg1, arg2, (LPSTR) arg3, arg4, arg5, (LPSTR) arg6, arg7, arg8); | |
1900 } | |
1901 | |
1902 LONG | |
1903 qxeRegEnumValue (HKEY arg1, DWORD arg2, Extbyte * arg3, PDWORD arg4, PDWORD arg5, PDWORD arg6, LPBYTE arg7, PDWORD arg8) | |
1904 { | |
1905 if (XEUNICODE_P) | |
1906 return RegEnumValueW (arg1, arg2, (LPWSTR) arg3, arg4, arg5, arg6, arg7, arg8); | |
1907 else | |
1908 return RegEnumValueA (arg1, arg2, (LPSTR) arg3, arg4, arg5, arg6, arg7, arg8); | |
1909 } | |
1910 | |
1911 LONG | |
1912 qxeRegLoadKey (HKEY arg1, const Extbyte * arg2, const Extbyte * arg3) | |
1913 { | |
1914 if (XEUNICODE_P) | |
1915 return RegLoadKeyW (arg1, (LPCWSTR) arg2, (LPCWSTR) arg3); | |
1916 else | |
1917 return RegLoadKeyA (arg1, (LPCSTR) arg2, (LPCSTR) arg3); | |
1918 } | |
1919 | |
1920 LONG | |
1921 qxeRegOpenKeyEx (HKEY arg1, const Extbyte * arg2, DWORD arg3, REGSAM arg4, PHKEY arg5) | |
1922 { | |
1923 if (XEUNICODE_P) | |
1924 return RegOpenKeyExW (arg1, (LPCWSTR) arg2, arg3, arg4, arg5); | |
1925 else | |
1926 return RegOpenKeyExA (arg1, (LPCSTR) arg2, arg3, arg4, arg5); | |
1927 } | |
1928 | |
1929 LONG | |
1930 qxeRegOpenKey (HKEY arg1, const Extbyte * arg2, PHKEY arg3) | |
1931 { | |
1932 if (XEUNICODE_P) | |
1933 return RegOpenKeyW (arg1, (LPCWSTR) arg2, arg3); | |
1934 else | |
1935 return RegOpenKeyA (arg1, (LPCSTR) arg2, arg3); | |
1936 } | |
1937 | |
1938 LONG | |
1939 qxeRegQueryInfoKey (HKEY arg1, Extbyte * arg2, PDWORD arg3, PDWORD arg4, PDWORD arg5, PDWORD arg6, PDWORD arg7, PDWORD arg8, PDWORD arg9, PDWORD arg10, PDWORD arg11, PFILETIME arg12) | |
1940 { | |
1941 if (XEUNICODE_P) | |
1942 return RegQueryInfoKeyW (arg1, (LPWSTR) arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12); | |
1943 else | |
1944 return RegQueryInfoKeyA (arg1, (LPSTR) arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12); | |
1945 } | |
1946 | |
1947 LONG | |
1948 qxeRegQueryMultipleValues (HKEY arg1, PVALENTW arg2, DWORD arg3, Extbyte * arg4, LPDWORD arg5) | |
1949 { | |
1950 if (XEUNICODE_P) | |
1951 return RegQueryMultipleValuesW (arg1, arg2, arg3, (LPWSTR) arg4, arg5); | |
1952 else | |
1953 return RegQueryMultipleValuesA (arg1, (PVALENTA) arg2, arg3, (LPSTR) arg4, arg5); | |
1954 } | |
1955 | |
1956 LONG | |
1957 qxeRegQueryValueEx (HKEY arg1, const Extbyte * arg2, LPDWORD arg3, LPDWORD arg4, LPBYTE arg5, LPDWORD arg6) | |
1958 { | |
1959 if (XEUNICODE_P) | |
1960 return RegQueryValueExW (arg1, (LPCWSTR) arg2, arg3, arg4, arg5, arg6); | |
1961 else | |
1962 return RegQueryValueExA (arg1, (LPCSTR) arg2, arg3, arg4, arg5, arg6); | |
1963 } | |
1964 | |
1965 LONG | |
1966 qxeRegQueryValue (HKEY arg1, const Extbyte * arg2, Extbyte * arg3, PLONG arg4) | |
1967 { | |
1968 if (XEUNICODE_P) | |
1969 return RegQueryValueW (arg1, (LPCWSTR) arg2, (LPWSTR) arg3, arg4); | |
1970 else | |
1971 return RegQueryValueA (arg1, (LPCSTR) arg2, (LPSTR) arg3, arg4); | |
1972 } | |
1973 | |
1974 LONG | |
1975 qxeRegReplaceKey (HKEY arg1, const Extbyte * arg2, const Extbyte * arg3, const Extbyte * arg4) | |
1976 { | |
1977 if (XEUNICODE_P) | |
1978 return RegReplaceKeyW (arg1, (LPCWSTR) arg2, (LPCWSTR) arg3, (LPCWSTR) arg4); | |
1979 else | |
1980 return RegReplaceKeyA (arg1, (LPCSTR) arg2, (LPCSTR) arg3, (LPCSTR) arg4); | |
1981 } | |
1982 | |
1983 LONG | |
1984 qxeRegRestoreKey (HKEY arg1, const Extbyte * arg2, DWORD arg3) | |
1985 { | |
1986 if (XEUNICODE_P) | |
1987 return RegRestoreKeyW (arg1, (LPCWSTR) arg2, arg3); | |
1988 else | |
1989 return RegRestoreKeyA (arg1, (LPCSTR) arg2, arg3); | |
1990 } | |
1991 | |
1992 LONG | |
1993 qxeRegSaveKey (HKEY arg1, const Extbyte * arg2, LPSECURITY_ATTRIBUTES arg3) | |
1994 { | |
1995 if (XEUNICODE_P) | |
1996 return RegSaveKeyW (arg1, (LPCWSTR) arg2, arg3); | |
1997 else | |
1998 return RegSaveKeyA (arg1, (LPCSTR) arg2, arg3); | |
1999 } | |
2000 | |
2001 LONG | |
2002 qxeRegSetValueEx (HKEY arg1, const Extbyte * arg2, DWORD arg3, DWORD arg4, const BYTE* arg5, DWORD arg6) | |
2003 { | |
2004 if (XEUNICODE_P) | |
2005 return RegSetValueExW (arg1, (LPCWSTR) arg2, arg3, arg4, arg5, arg6); | |
2006 else | |
2007 return RegSetValueExA (arg1, (LPCSTR) arg2, arg3, arg4, arg5, arg6); | |
2008 } | |
2009 | |
2010 LONG | |
2011 qxeRegSetValue (HKEY arg1, const Extbyte * arg2, DWORD arg3, const Extbyte * arg4, DWORD arg5) | |
2012 { | |
2013 if (XEUNICODE_P) | |
2014 return RegSetValueW (arg1, (LPCWSTR) arg2, arg3, (LPCWSTR) arg4, arg5); | |
2015 else | |
2016 return RegSetValueA (arg1, (LPCSTR) arg2, arg3, (LPCSTR) arg4, arg5); | |
2017 } | |
2018 | |
2019 LONG | |
2020 qxeRegUnLoadKey (HKEY arg1, const Extbyte * arg2) | |
2021 { | |
2022 if (XEUNICODE_P) | |
2023 return RegUnLoadKeyW (arg1, (LPCWSTR) arg2); | |
2024 else | |
2025 return RegUnLoadKeyA (arg1, (LPCSTR) arg2); | |
2026 } | |
2027 | |
2028 | |
2029 /*----------------------------------------------------------------------*/ | |
2030 /* Processing file WINNLS.H */ | |
2031 /*----------------------------------------------------------------------*/ | |
2032 | |
2033 /* Error if CompareString used: not used, not examined yet */ | |
2034 | |
2035 /* Error if EnumCalendarInfo used: not used, not examined yet */ | |
2036 | |
2037 /* Error if EnumDateFormats used: not used, not examined yet */ | |
2038 | |
2039 /* Error if EnumSystemCodePages used: not used, not examined yet */ | |
2040 | |
2041 /* Error if EnumSystemLocales used: not used, not examined yet */ | |
2042 | |
2043 /* Error if EnumTimeFormats used: not used, not examined yet */ | |
2044 | |
2045 /* Error if FoldString used: not used, not examined yet */ | |
2046 | |
2047 /* Error if GetCalendarInfo used: Function needs review to determine how to handle it */ | |
2048 | |
2049 /* Error if GetCPInfoEx used: not used, not examined yet */ | |
2050 | |
2051 /* Error if GetCurrencyFormat used: not used, not examined yet */ | |
2052 | |
2053 /* Error if GetDateFormat used: not used, not examined yet */ | |
2054 | |
2055 /* Error if GetGeoInfo used: Function needs review to determine how to handle it */ | |
2056 | |
2057 int | |
2058 qxeGetLocaleInfo (LCID arg1, LCTYPE arg2, Extbyte * arg3, int arg4) | |
2059 { | |
2060 if (XEUNICODE_P) | |
2061 return GetLocaleInfoW (arg1, arg2, (LPWSTR) arg3, arg4); | |
2062 else | |
2063 return GetLocaleInfoA (arg1, arg2, (LPSTR) arg3, arg4); | |
2064 } | |
2065 | |
2066 /* Error if GetNumberFormat used: not used, not examined yet */ | |
2067 | |
2068 /* Error if GetStringType used: no such fun; A and W versions have different nos. of args */ | |
2069 | |
2070 /* Error if GetStringTypeEx used: not used, not examined yet */ | |
2071 | |
2072 /* Error if GetTimeFormat used: not used, not examined yet */ | |
2073 | |
2074 /* Error if LCMapString used: not used, not examined yet */ | |
2075 | |
2076 /* Error if SetCalendarInfo used: Function needs review to determine how to handle it */ | |
2077 | |
2078 BOOL | |
2079 qxeSetLocaleInfo (LCID arg1, LCTYPE arg2, const Extbyte * arg3) | |
2080 { | |
2081 if (XEUNICODE_P) | |
2082 return SetLocaleInfoW (arg1, arg2, (LPCWSTR) arg3); | |
2083 else | |
2084 return SetLocaleInfoA (arg1, arg2, (LPCSTR) arg3); | |
2085 } | |
2086 | |
2087 /* Error if EnumCalendarInfoEx used: not used, not examined yet */ | |
2088 | |
2089 /* Error if EnumDateFormatsEx used: not used, not examined yet */ | |
2090 | |
2091 /* Error if EnumSystemLanguageGroups used: Function needs review to determine how to handle it */ | |
2092 | |
2093 /* Error if EnumLanguageGroupLocales used: Function needs review to determine how to handle it */ | |
2094 | |
2095 /* Error if EnumUILanguages used: Function needs review to determine how to handle it */ | |
2096 | |
2097 | |
2098 /*----------------------------------------------------------------------*/ | |
2099 /* Processing file WINGDI.H */ | |
2100 /*----------------------------------------------------------------------*/ | |
2101 | |
2102 #if defined (HAVE_MS_WINDOWS) | |
2103 | |
2104 int | |
2105 qxeAddFontResource (const Extbyte * arg1) | |
2106 { | |
2107 if (XEUNICODE_P) | |
2108 return AddFontResourceW ((LPCWSTR) arg1); | |
2109 else | |
2110 return AddFontResourceA ((LPCSTR) arg1); | |
2111 } | |
2112 | |
2113 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2114 | |
2115 #if defined (HAVE_MS_WINDOWS) | |
2116 | |
2117 /* Error if AddFontResourceEx used: NT 5.0+ only */ | |
2118 | |
2119 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2120 | |
2121 #if defined (HAVE_MS_WINDOWS) | |
2122 | |
2123 HENHMETAFILE | |
2124 qxeCopyEnhMetaFile (HENHMETAFILE arg1, const Extbyte * arg2) | |
2125 { | |
2126 if (XEUNICODE_P) | |
2127 return CopyEnhMetaFileW (arg1, (LPCWSTR) arg2); | |
2128 else | |
2129 return CopyEnhMetaFileA (arg1, (LPCSTR) arg2); | |
2130 } | |
2131 | |
2132 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2133 | |
2134 #if defined (HAVE_MS_WINDOWS) | |
2135 | |
2136 HMETAFILE | |
2137 qxeCopyMetaFile (HMETAFILE arg1, const Extbyte * arg2) | |
2138 { | |
2139 if (XEUNICODE_P) | |
2140 return CopyMetaFileW (arg1, (LPCWSTR) arg2); | |
2141 else | |
2142 return CopyMetaFileA (arg1, (LPCSTR) arg2); | |
2143 } | |
2144 | |
2145 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2146 | |
2147 #if defined (HAVE_MS_WINDOWS) | |
2148 | |
2149 /* Error if CreateColorSpace used: split-sized LPLOGCOLORSPACE; NT 4.0+ only */ | |
2150 | |
2151 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2152 | |
2153 #if defined (HAVE_MS_WINDOWS) | |
2154 | |
2155 /* Skipping CreateDC because split-sized DEVMODE */ | |
2156 | |
2157 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2158 | |
2159 #if defined (HAVE_MS_WINDOWS) | |
2160 | |
2161 HDC | |
2162 qxeCreateEnhMetaFile (HDC arg1, const Extbyte * arg2, LPCRECT arg3, const Extbyte * arg4) | |
2163 { | |
2164 if (XEUNICODE_P) | |
2165 return CreateEnhMetaFileW (arg1, (LPCWSTR) arg2, arg3, (LPCWSTR) arg4); | |
2166 else | |
2167 return CreateEnhMetaFileA (arg1, (LPCSTR) arg2, arg3, (LPCSTR) arg4); | |
2168 } | |
2169 | |
2170 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2171 | |
2172 #if defined (HAVE_MS_WINDOWS) | |
2173 | |
2174 HFONT | |
2175 qxeCreateFont (int arg1, int arg2, int arg3, int arg4, int arg5, DWORD arg6, DWORD arg7, DWORD arg8, DWORD arg9, DWORD arg10, DWORD arg11, DWORD arg12, DWORD arg13, const Extbyte * arg14) | |
2176 { | |
2177 if (XEUNICODE_P) | |
2178 return CreateFontW (arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, (LPCWSTR) arg14); | |
2179 else | |
2180 return CreateFontA (arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, (LPCSTR) arg14); | |
2181 } | |
2182 | |
2183 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2184 | |
2185 #if defined (HAVE_MS_WINDOWS) | |
2186 | |
2187 /* Skipping CreateFontIndirect because split-sized LOGFONT */ | |
2188 | |
2189 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2190 | |
2191 #if defined (HAVE_MS_WINDOWS) | |
2192 | |
2193 /* Skipping CreateIC because split-sized DEVMODE */ | |
2194 | |
2195 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2196 | |
2197 #if defined (HAVE_MS_WINDOWS) | |
2198 | |
2199 HDC | |
2200 qxeCreateMetaFile (const Extbyte * arg1) | |
2201 { | |
2202 if (XEUNICODE_P) | |
2203 return CreateMetaFileW ((LPCWSTR) arg1); | |
2204 else | |
2205 return CreateMetaFileA ((LPCSTR) arg1); | |
2206 } | |
2207 | |
2208 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2209 | |
2210 #if defined (HAVE_MS_WINDOWS) | |
2211 | |
2212 BOOL | |
2213 qxeCreateScalableFontResource (DWORD arg1, const Extbyte * arg2, const Extbyte * arg3, const Extbyte * arg4) | |
2214 { | |
2215 if (XEUNICODE_P) | |
2216 return CreateScalableFontResourceW (arg1, (LPCWSTR) arg2, (LPCWSTR) arg3, (LPCWSTR) arg4); | |
2217 else | |
2218 return CreateScalableFontResourceA (arg1, (LPCSTR) arg2, (LPCSTR) arg3, (LPCSTR) arg4); | |
2219 } | |
2220 | |
2221 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2222 | |
2223 #if defined (HAVE_MS_WINDOWS) | |
2224 | |
2225 /* Skipping DeviceCapabilities because split-sized DEVMODE */ | |
2226 | |
2227 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2228 | |
2229 #if defined (HAVE_MS_WINDOWS) | |
2230 | |
2231 /* Error if EnumFontFamilies used: split-complex FONTENUMPROC */ | |
2232 | |
2233 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2234 | |
2235 #if defined (HAVE_MS_WINDOWS) | |
2236 | |
2237 /* Skipping EnumFontFamiliesEx because split-complex FONTENUMPROC; NT 4.0+ only */ | |
2238 | |
2239 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2240 | |
2241 #if defined (HAVE_MS_WINDOWS) | |
2242 | |
2243 /* Error if EnumFonts used: split-complex FONTENUMPROC */ | |
2244 | |
2245 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2246 | |
2247 #if defined (HAVE_MS_WINDOWS) | |
2248 | |
2249 /* NOTE: NT 4.0+ only */ | |
2250 int | |
2251 qxeEnumICMProfiles (HDC arg1, ICMENUMPROCW arg2, LPARAM arg3) | |
2252 { | |
2253 if (XEUNICODE_P) | |
2254 return EnumICMProfilesW (arg1, arg2, arg3); | |
2255 else | |
2256 return EnumICMProfilesA (arg1, (ICMENUMPROCA) arg2, arg3); | |
2257 } | |
2258 | |
2259 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2260 | |
2261 #if defined (HAVE_MS_WINDOWS) | |
2262 | |
2263 BOOL | |
2264 qxeExtTextOut (HDC arg1, int arg2, int arg3, UINT arg4, LPCRECT arg5, const Extbyte * arg6, UINT arg7, const INT* arg8) | |
2265 { | |
2266 if (XEUNICODE_P) | |
2267 return ExtTextOutW (arg1, arg2, arg3, arg4, arg5, (LPCWSTR) arg6, arg7, arg8); | |
2268 else | |
2269 return ExtTextOutA (arg1, arg2, arg3, arg4, arg5, (LPCSTR) arg6, arg7, arg8); | |
2270 } | |
2271 | |
2272 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2273 | |
2274 #if defined (HAVE_MS_WINDOWS) | |
2275 | |
2276 BOOL | |
2277 qxeGetCharABCWidths (HDC arg1, UINT arg2, UINT arg3, LPABC arg4) | |
2278 { | |
2279 if (XEUNICODE_P) | |
2280 return GetCharABCWidthsW (arg1, arg2, arg3, arg4); | |
2281 else | |
2282 return GetCharABCWidthsA (arg1, arg2, arg3, arg4); | |
2283 } | |
2284 | |
2285 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2286 | |
2287 #if defined (HAVE_MS_WINDOWS) | |
2288 | |
2289 BOOL | |
2290 qxeGetCharABCWidthsFloat (HDC arg1, UINT arg2, UINT arg3, LPABCFLOAT arg4) | |
2291 { | |
2292 if (XEUNICODE_P) | |
2293 return GetCharABCWidthsFloatW (arg1, arg2, arg3, arg4); | |
2294 else | |
2295 return GetCharABCWidthsFloatA (arg1, arg2, arg3, arg4); | |
2296 } | |
2297 | |
2298 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2299 | |
2300 #if defined (HAVE_MS_WINDOWS) | |
2301 | |
2302 /* NOTE: NT 4.0+ only */ | |
2303 DWORD | |
2304 qxeGetCharacterPlacement (HDC arg1, const Extbyte * arg2, int arg3, int arg4, LPGCP_RESULTSW arg5, DWORD arg6) | |
2305 { | |
2306 if (XEUNICODE_P) | |
2307 return GetCharacterPlacementW (arg1, (LPCWSTR) arg2, arg3, arg4, arg5, arg6); | |
2308 else | |
2309 return GetCharacterPlacementA (arg1, (LPCSTR) arg2, arg3, arg4, (LPGCP_RESULTSA) arg5, arg6); | |
2310 } | |
2311 | |
2312 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2313 | |
2314 #if defined (HAVE_MS_WINDOWS) | |
2315 | |
2316 BOOL | |
2317 qxeGetCharWidth32 (HDC arg1, UINT arg2, UINT arg3, LPINT arg4) | |
2318 { | |
2319 if (XEUNICODE_P) | |
2320 return GetCharWidth32W (arg1, arg2, arg3, arg4); | |
2321 else | |
2322 return GetCharWidth32A (arg1, arg2, arg3, arg4); | |
2323 } | |
2324 | |
2325 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2326 | |
2327 #if defined (HAVE_MS_WINDOWS) | |
2328 | |
2329 BOOL | |
2330 qxeGetCharWidth (HDC arg1, UINT arg2, UINT arg3, LPINT arg4) | |
2331 { | |
2332 if (XEUNICODE_P) | |
2333 return GetCharWidthW (arg1, arg2, arg3, arg4); | |
2334 else | |
2335 return GetCharWidthA (arg1, arg2, arg3, arg4); | |
2336 } | |
2337 | |
2338 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2339 | |
2340 #if defined (HAVE_MS_WINDOWS) | |
2341 | |
2342 BOOL | |
2343 qxeGetCharWidthFloat (HDC arg1, UINT arg2, UINT arg3, PFLOAT arg4) | |
2344 { | |
2345 if (XEUNICODE_P) | |
2346 return GetCharWidthFloatW (arg1, arg2, arg3, arg4); | |
2347 else | |
2348 return GetCharWidthFloatA (arg1, arg2, arg3, arg4); | |
2349 } | |
2350 | |
2351 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2352 | |
2353 #if defined (HAVE_MS_WINDOWS) | |
2354 | |
2355 HENHMETAFILE | |
2356 qxeGetEnhMetaFile (const Extbyte * arg1) | |
2357 { | |
2358 if (XEUNICODE_P) | |
2359 return GetEnhMetaFileW ((LPCWSTR) arg1); | |
2360 else | |
2361 return GetEnhMetaFileA ((LPCSTR) arg1); | |
2362 } | |
2363 | |
2364 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2365 | |
2366 #if defined (HAVE_MS_WINDOWS) | |
2367 | 3586 |
2368 UINT | 3587 UINT |
2369 qxeGetEnhMetaFileDescription (HENHMETAFILE arg1, UINT arg2, Extbyte * arg3) | 3588 qxeGetSystemDirectory (Extbyte * lpBuffer, UINT uSize) |
2370 { | 3589 { |
2371 if (XEUNICODE_P) | 3590 if (XEUNICODE_P) |
2372 return GetEnhMetaFileDescriptionW (arg1, arg2, (LPWSTR) arg3); | 3591 return GetSystemDirectoryW ((LPWSTR) lpBuffer, uSize); |
2373 else | 3592 else |
2374 return GetEnhMetaFileDescriptionA (arg1, arg2, (LPSTR) arg3); | 3593 return GetSystemDirectoryA ((LPSTR) lpBuffer, uSize); |
2375 } | 3594 } |
2376 | 3595 |
2377 #endif /* defined (HAVE_MS_WINDOWS) */ | 3596 UINT |
2378 | 3597 qxeGetWindowsDirectory (Extbyte * lpBuffer, UINT uSize) |
2379 #if defined (HAVE_MS_WINDOWS) | 3598 { |
2380 | 3599 if (XEUNICODE_P) |
2381 DWORD | 3600 return GetWindowsDirectoryW ((LPWSTR) lpBuffer, uSize); |
2382 qxeGetGlyphOutline (HDC arg1, UINT arg2, UINT arg3, LPGLYPHMETRICS arg4, DWORD arg5, PVOID arg6, const MAT2* arg7) | 3601 else |
2383 { | 3602 return GetWindowsDirectoryA ((LPSTR) lpBuffer, uSize); |
2384 if (XEUNICODE_P) | 3603 } |
2385 return GetGlyphOutlineW (arg1, arg2, arg3, arg4, arg5, arg6, arg7); | 3604 |
2386 else | 3605 /* Error if GetSystemWindowsDirectory used: HST: new? -- needs review */ |
2387 return GetGlyphOutlineA (arg1, arg2, arg3, arg4, arg5, arg6, arg7); | 3606 |
2388 } | 3607 /* Error if GetComputerNameEx used: HST: new? -- needs review */ |
2389 | 3608 |
2390 #endif /* defined (HAVE_MS_WINDOWS) */ | 3609 /* Error if SetComputerNameEx used: HST: new? -- needs review */ |
2391 | 3610 |
2392 #if defined (HAVE_MS_WINDOWS) | 3611 /* Error if GetVersionEx used: HST: new? -- needs review */ |
2393 | |
2394 /* NOTE: NT 4.0+ only, former error in Cygwin prototype but no more (Cygwin 1.7, 1-30-10) */ | |
2395 BOOL | |
2396 qxeGetICMProfile (HDC arg1, LPDWORD arg2, Extbyte * arg3) | |
2397 { | |
2398 if (XEUNICODE_P) | |
2399 return GetICMProfileW (arg1, arg2, (LPWSTR) arg3); | |
2400 else | |
2401 return GetICMProfileA (arg1, arg2, (LPSTR) arg3); | |
2402 } | |
2403 | |
2404 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2405 | |
2406 #if defined (HAVE_MS_WINDOWS) | |
2407 | |
2408 DWORD | |
2409 qxeGetKerningPairs (HDC arg1, DWORD arg2, LPKERNINGPAIR arg3) | |
2410 { | |
2411 if (XEUNICODE_P) | |
2412 return GetKerningPairsW (arg1, arg2, arg3); | |
2413 else | |
2414 return GetKerningPairsA (arg1, arg2, arg3); | |
2415 } | |
2416 | |
2417 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2418 | |
2419 #if defined (HAVE_MS_WINDOWS) | |
2420 | |
2421 /* Error if GetLogColorSpace used: split-sized LPLOGCOLORSPACE; NT 4.0+ only */ | |
2422 | |
2423 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2424 | |
2425 #if defined (HAVE_MS_WINDOWS) | |
2426 | |
2427 HMETAFILE | |
2428 qxeGetMetaFile (const Extbyte * arg1) | |
2429 { | |
2430 if (XEUNICODE_P) | |
2431 return GetMetaFileW ((LPCWSTR) arg1); | |
2432 else | |
2433 return GetMetaFileA ((LPCSTR) arg1); | |
2434 } | |
2435 | |
2436 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2437 | |
2438 #if defined (HAVE_MS_WINDOWS) | |
2439 | |
2440 /* Skipping GetObject because split-sized LOGFONT */ | |
2441 | |
2442 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2443 | |
2444 #if defined (HAVE_MS_WINDOWS) | |
2445 | |
2446 /* Error if GetOutlineTextMetrics used: split-sized LPOUTLINETEXTMETRIC */ | |
2447 | |
2448 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2449 | |
2450 #if defined (HAVE_MS_WINDOWS) | |
2451 | |
2452 BOOL | |
2453 qxeGetTextExtentExPoint (HDC arg1, const Extbyte * arg2, int arg3, int arg4, LPINT arg5, LPINT arg6, LPSIZE arg7) | |
2454 { | |
2455 if (XEUNICODE_P) | |
2456 return GetTextExtentExPointW (arg1, (LPCWSTR) arg2, arg3, arg4, arg5, arg6, arg7); | |
2457 else | |
2458 return GetTextExtentExPointA (arg1, (LPCSTR) arg2, arg3, arg4, arg5, arg6, arg7); | |
2459 } | |
2460 | |
2461 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2462 | |
2463 #if defined (HAVE_MS_WINDOWS) | |
2464 | |
2465 BOOL | |
2466 qxeGetTextExtentPoint (HDC arg1, const Extbyte * arg2, int arg3, LPSIZE arg4) | |
2467 { | |
2468 if (XEUNICODE_P) | |
2469 return GetTextExtentPointW (arg1, (LPCWSTR) arg2, arg3, arg4); | |
2470 else | |
2471 return GetTextExtentPointA (arg1, (LPCSTR) arg2, arg3, arg4); | |
2472 } | |
2473 | |
2474 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2475 | |
2476 #if defined (HAVE_MS_WINDOWS) | |
2477 | |
2478 BOOL | |
2479 qxeGetTextExtentPoint32 (HDC arg1, const Extbyte * arg2, int arg3, LPSIZE arg4) | |
2480 { | |
2481 if (XEUNICODE_P) | |
2482 return GetTextExtentPoint32W (arg1, (LPCWSTR) arg2, arg3, arg4); | |
2483 else | |
2484 return GetTextExtentPoint32A (arg1, (LPCSTR) arg2, arg3, arg4); | |
2485 } | |
2486 | |
2487 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2488 | |
2489 #if defined (HAVE_MS_WINDOWS) | |
2490 | |
2491 int | |
2492 qxeGetTextFace (HDC arg1, int arg2, Extbyte * arg3) | |
2493 { | |
2494 if (XEUNICODE_P) | |
2495 return GetTextFaceW (arg1, arg2, (LPWSTR) arg3); | |
2496 else | |
2497 return GetTextFaceA (arg1, arg2, (LPSTR) arg3); | |
2498 } | |
2499 | |
2500 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2501 | |
2502 #if defined (HAVE_MS_WINDOWS) | |
2503 | |
2504 /* Skipping GetTextMetrics because split-sized LPTEXTMETRIC */ | |
2505 | |
2506 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2507 | |
2508 #if defined (HAVE_MS_WINDOWS) | |
2509 | |
2510 BOOL | |
2511 qxePolyTextOut (HDC arg1, const POLYTEXTW* arg2, int arg3) | |
2512 { | |
2513 if (XEUNICODE_P) | |
2514 return PolyTextOutW (arg1, arg2, arg3); | |
2515 else | |
2516 return PolyTextOutA (arg1, (const POLYTEXTA*) arg2, arg3); | |
2517 } | |
2518 | |
2519 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2520 | |
2521 #if defined (HAVE_MS_WINDOWS) | |
2522 | |
2523 BOOL | |
2524 qxeRemoveFontResource (const Extbyte * arg1) | |
2525 { | |
2526 if (XEUNICODE_P) | |
2527 return RemoveFontResourceW ((LPCWSTR) arg1); | |
2528 else | |
2529 return RemoveFontResourceA ((LPCSTR) arg1); | |
2530 } | |
2531 | |
2532 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2533 | |
2534 #if defined (HAVE_MS_WINDOWS) | |
2535 | |
2536 /* Error if RemoveFontResourceEx used: NT 5.0+ only */ | |
2537 | |
2538 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2539 | |
2540 #if defined (HAVE_MS_WINDOWS) | |
2541 | |
2542 /* Skipping ResetDC because split-sized DEVMODE */ | |
2543 | |
2544 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2545 | |
2546 #if defined (HAVE_MS_WINDOWS) | |
2547 | |
2548 /* NOTE: NT 4.0+ only */ | |
2549 BOOL | |
2550 qxeSetICMProfile (HDC arg1, Extbyte * arg2) | |
2551 { | |
2552 if (XEUNICODE_P) | |
2553 return SetICMProfileW (arg1, (LPWSTR) arg2); | |
2554 else | |
2555 return SetICMProfileA (arg1, (LPSTR) arg2); | |
2556 } | |
2557 | |
2558 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2559 | |
2560 #if defined (HAVE_MS_WINDOWS) | |
2561 | |
2562 int | |
2563 qxeStartDoc (HDC arg1, const DOCINFOW* arg2) | |
2564 { | |
2565 if (XEUNICODE_P) | |
2566 return StartDocW (arg1, arg2); | |
2567 else | |
2568 return StartDocA (arg1, (const DOCINFOA*) arg2); | |
2569 } | |
2570 | |
2571 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2572 | |
2573 #if defined (HAVE_MS_WINDOWS) | |
2574 | |
2575 BOOL | |
2576 qxeTextOut (HDC arg1, int arg2, int arg3, const Extbyte * arg4, int arg5) | |
2577 { | |
2578 if (XEUNICODE_P) | |
2579 return TextOutW (arg1, arg2, arg3, (LPCWSTR) arg4, arg5); | |
2580 else | |
2581 return TextOutA (arg1, arg2, arg3, (LPCSTR) arg4, arg5); | |
2582 } | |
2583 | |
2584 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2585 | |
2586 #if defined (HAVE_MS_WINDOWS) | |
2587 | |
2588 /* Skipping UpdateICMRegKey because NT 4.0+ only, error in Cygwin prototype */ | |
2589 | |
2590 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2591 | |
2592 #if defined (HAVE_MS_WINDOWS) | |
2593 | |
2594 /* Error if wglUseFontBitmaps used: causes link error */ | |
2595 | |
2596 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2597 | |
2598 #if defined (HAVE_MS_WINDOWS) | |
2599 | |
2600 /* Error if wglUseFontOutlines used: causes link error */ | |
2601 | |
2602 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2603 | |
2604 #if defined (HAVE_MS_WINDOWS) | |
2605 | |
2606 /* Error if GetGlyphIndices used: NT 5.0+ only */ | |
2607 | |
2608 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2609 | |
2610 | |
2611 /*----------------------------------------------------------------------*/ | |
2612 /* Processing file SHLOBJ.H */ | |
2613 /*----------------------------------------------------------------------*/ | |
2614 | |
2615 /* Skipping SHBrowseForFolder because need to intercept callback for SendMessage */ | |
2616 | |
2617 /* Skipping SHGetDataFromIDList because split-sized WIN32_FIND_DATA or split-simple NETRESOURCE, missing from Cygwin libraries */ | |
2618 | |
2619 BOOL | |
2620 qxeSHGetPathFromIDList (LPCITEMIDLIST arg1, Extbyte * arg2) | |
2621 { | |
2622 if (XEUNICODE_P) | |
2623 return SHGetPathFromIDListW (arg1, (LPWSTR) arg2); | |
2624 else | |
2625 return SHGetPathFromIDListA (arg1, (LPSTR) arg2); | |
2626 } | |
2627 | |
2628 /* Skipping SHGetSpecialFolderPath because error in Cygwin prototype, missing from Cygwin libraries */ | |
2629 | |
2630 /* Error if SHGetFolderPath used: Function needs review to determine how to handle it */ | |
2631 | |
2632 /* Error if SHGetIconOverlayIndex used: Function needs review to determine how to handle it */ | |
2633 | |
2634 /* Error if SHCreateDirectoryEx used: Function needs review to determine how to handle it */ | |
2635 | |
2636 /* Error if SHGetFolderPathAndSubDir used: Function needs review to determine how to handle it */ | |
2637 | 3612 |
2638 | 3613 |
2639 /*----------------------------------------------------------------------*/ | 3614 /*----------------------------------------------------------------------*/ |
2640 /* Processing file COMMDLG.H */ | 3615 /* Processing file COMMDLG.H */ |
2641 /*----------------------------------------------------------------------*/ | 3616 /*----------------------------------------------------------------------*/ |
2642 | 3617 |
2643 #if defined (HAVE_MS_WINDOWS) | 3618 #if defined (HAVE_MS_WINDOWS) |
2644 | 3619 |
2645 BOOL | 3620 WINBOOL |
3621 qxeGetOpenFileName (LPOPENFILENAMEW arg1) | |
3622 { | |
3623 if (XEUNICODE_P) | |
3624 return GetOpenFileNameW (arg1); | |
3625 else | |
3626 return GetOpenFileNameA ((LPOPENFILENAMEA) arg1); | |
3627 } | |
3628 | |
3629 #endif /* defined (HAVE_MS_WINDOWS) */ | |
3630 | |
3631 #if defined (HAVE_MS_WINDOWS) | |
3632 | |
3633 WINBOOL | |
3634 qxeGetSaveFileName (LPOPENFILENAMEW arg1) | |
3635 { | |
3636 if (XEUNICODE_P) | |
3637 return GetSaveFileNameW (arg1); | |
3638 else | |
3639 return GetSaveFileNameA ((LPOPENFILENAMEA) arg1); | |
3640 } | |
3641 | |
3642 #endif /* defined (HAVE_MS_WINDOWS) */ | |
3643 | |
3644 #if defined (HAVE_MS_WINDOWS) | |
3645 | |
3646 short | |
3647 qxeGetFileTitle (const Extbyte * arg1, Extbyte * arg2, WORD arg3) | |
3648 { | |
3649 if (XEUNICODE_P) | |
3650 return GetFileTitleW ((LPCWSTR) arg1, (LPWSTR) arg2, arg3); | |
3651 else | |
3652 return GetFileTitleA ((LPCSTR) arg1, (LPSTR) arg2, arg3); | |
3653 } | |
3654 | |
3655 #endif /* defined (HAVE_MS_WINDOWS) */ | |
3656 | |
3657 #if defined (HAVE_MS_WINDOWS) | |
3658 | |
3659 WINBOOL | |
2646 qxeChooseColor (LPCHOOSECOLORW arg1) | 3660 qxeChooseColor (LPCHOOSECOLORW arg1) |
2647 { | 3661 { |
2648 if (XEUNICODE_P) | 3662 if (XEUNICODE_P) |
2649 return ChooseColorW (arg1); | 3663 return ChooseColorW (arg1); |
2650 else | 3664 else |
2651 return ChooseColorA ((LPCHOOSECOLORA) arg1); | 3665 return ChooseColorA ((LPCHOOSECOLORA) arg1); |
2652 } | 3666 } |
2653 | |
2654 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2655 | |
2656 #if defined (HAVE_MS_WINDOWS) | |
2657 | |
2658 /* Error if ChooseFont used: split-sized LPLOGFONT in LPCHOOSEFONT */ | |
2659 | 3667 |
2660 #endif /* defined (HAVE_MS_WINDOWS) */ | 3668 #endif /* defined (HAVE_MS_WINDOWS) */ |
2661 | 3669 |
2662 #if defined (HAVE_MS_WINDOWS) | 3670 #if defined (HAVE_MS_WINDOWS) |
2663 | 3671 |
2672 | 3680 |
2673 #endif /* defined (HAVE_MS_WINDOWS) */ | 3681 #endif /* defined (HAVE_MS_WINDOWS) */ |
2674 | 3682 |
2675 #if defined (HAVE_MS_WINDOWS) | 3683 #if defined (HAVE_MS_WINDOWS) |
2676 | 3684 |
2677 short | |
2678 qxeGetFileTitle (const Extbyte * arg1, Extbyte * arg2, WORD arg3) | |
2679 { | |
2680 if (XEUNICODE_P) | |
2681 return GetFileTitleW ((LPCWSTR) arg1, (LPWSTR) arg2, arg3); | |
2682 else | |
2683 return GetFileTitleA ((LPCSTR) arg1, (LPSTR) arg2, arg3); | |
2684 } | |
2685 | |
2686 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2687 | |
2688 #if defined (HAVE_MS_WINDOWS) | |
2689 | |
2690 BOOL | |
2691 qxeGetOpenFileName (LPOPENFILENAMEW arg1) | |
2692 { | |
2693 if (XEUNICODE_P) | |
2694 return GetOpenFileNameW (arg1); | |
2695 else | |
2696 return GetOpenFileNameA ((LPOPENFILENAMEA) arg1); | |
2697 } | |
2698 | |
2699 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2700 | |
2701 #if defined (HAVE_MS_WINDOWS) | |
2702 | |
2703 BOOL | |
2704 qxeGetSaveFileName (LPOPENFILENAMEW arg1) | |
2705 { | |
2706 if (XEUNICODE_P) | |
2707 return GetSaveFileNameW (arg1); | |
2708 else | |
2709 return GetSaveFileNameA ((LPOPENFILENAMEA) arg1); | |
2710 } | |
2711 | |
2712 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2713 | |
2714 #if defined (HAVE_MS_WINDOWS) | |
2715 | |
2716 /* Skipping PageSetupDlg because LPPAGESETUPDLG with split-sized DEVMODE handle */ | |
2717 | |
2718 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2719 | |
2720 #if defined (HAVE_MS_WINDOWS) | |
2721 | |
2722 /* Skipping PrintDlg because LPPRINTDLG with split-sized DEVMODE handle */ | |
2723 | |
2724 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2725 | |
2726 #if defined (HAVE_MS_WINDOWS) | |
2727 | |
2728 HWND | 3685 HWND |
2729 qxeReplaceText (LPFINDREPLACEW arg1) | 3686 qxeReplaceText (LPFINDREPLACEW arg1) |
2730 { | 3687 { |
2731 if (XEUNICODE_P) | 3688 if (XEUNICODE_P) |
2732 return ReplaceTextW (arg1); | 3689 return ReplaceTextW (arg1); |
2736 | 3693 |
2737 #endif /* defined (HAVE_MS_WINDOWS) */ | 3694 #endif /* defined (HAVE_MS_WINDOWS) */ |
2738 | 3695 |
2739 #if defined (HAVE_MS_WINDOWS) | 3696 #if defined (HAVE_MS_WINDOWS) |
2740 | 3697 |
3698 /* Error if ChooseFont used: split-sized LPLOGFONT in LPCHOOSEFONT */ | |
3699 | |
3700 #endif /* defined (HAVE_MS_WINDOWS) */ | |
3701 | |
3702 #if defined (HAVE_MS_WINDOWS) | |
3703 | |
3704 /* Skipping PrintDlg because LPPRINTDLG with split-sized DEVMODE handle */ | |
3705 | |
3706 #endif /* defined (HAVE_MS_WINDOWS) */ | |
3707 | |
3708 #if defined (HAVE_MS_WINDOWS) | |
3709 | |
2741 /* Error if PrintDlgEx used: Function needs review to determine how to handle it */ | 3710 /* Error if PrintDlgEx used: Function needs review to determine how to handle it */ |
2742 | 3711 |
2743 #endif /* defined (HAVE_MS_WINDOWS) */ | 3712 #endif /* defined (HAVE_MS_WINDOWS) */ |
2744 | 3713 |
2745 | 3714 #if defined (HAVE_MS_WINDOWS) |
2746 /*----------------------------------------------------------------------*/ | 3715 |
2747 /* Processing file IMM.H */ | 3716 /* Skipping PageSetupDlg because LPPAGESETUPDLG with split-sized DEVMODE handle */ |
2748 /*----------------------------------------------------------------------*/ | 3717 |
2749 | 3718 #endif /* defined (HAVE_MS_WINDOWS) */ |
2750 #if defined (HAVE_MS_WINDOWS) | 3719 |
2751 | 3720 |
2752 HKL | 3721 /*----------------------------------------------------------------------*/ |
2753 qxeImmInstallIME (const Extbyte * arg1, const Extbyte * arg2) | 3722 /* Processing file SHLOBJ.H */ |
2754 { | 3723 /*----------------------------------------------------------------------*/ |
2755 if (XEUNICODE_P) | 3724 |
2756 return ImmInstallIMEW ((LPCWSTR) arg1, (LPCWSTR) arg2); | 3725 /* Error if SHGetIconOverlayIndex used: Function needs review to determine how to handle it */ |
2757 else | 3726 |
2758 return ImmInstallIMEA ((LPCSTR) arg1, (LPCSTR) arg2); | 3727 /* Error if ILCreateFromPath used: HST: new? -- needs review */ |
2759 } | 3728 |
2760 | 3729 WINBOOL |
2761 #endif /* defined (HAVE_MS_WINDOWS) */ | 3730 qxeSHGetPathFromIDList (PCIDLIST_ABSOLUTE pidl, Extbyte * pszPath) |
2762 | 3731 { |
2763 #if defined (HAVE_MS_WINDOWS) | 3732 if (XEUNICODE_P) |
3733 return SHGetPathFromIDListW (pidl, (LPWSTR) pszPath); | |
3734 else | |
3735 return SHGetPathFromIDListA (pidl, (LPSTR) pszPath); | |
3736 } | |
3737 | |
3738 /* Error if SHCreateDirectoryEx used: Function needs review to determine how to handle it */ | |
3739 | |
3740 /* Skipping SHGetSpecialFolderPath because error in Cygwin prototype, missing from Cygwin libraries */ | |
3741 | |
3742 /* Error if SHGetFolderPath used: Function needs review to determine how to handle it */ | |
3743 | |
3744 /* Error if SHSetFolderPath used: HST: new? -- needs review */ | |
3745 | |
3746 /* Error if SHGetFolderPathAndSubDir used: Function needs review to determine how to handle it */ | |
3747 | |
3748 /* Skipping SHBrowseForFolder because need to intercept callback for SendMessage */ | |
3749 | |
3750 /* Error if SHUpdateImage used: HST: new? -- needs review */ | |
3751 | |
3752 /* Error if PathIsSlow used: HST: new? -- needs review */ | |
3753 | |
3754 /* Error if SHStartNetConnectionDialog used: HST: new? -- needs review */ | |
3755 | |
3756 /* Error if SHDefExtractIcon used: HST: new? -- needs review */ | |
3757 | |
3758 /* Error if Shell_GetCachedImageIndex used: HST: new? -- needs review */ | |
3759 | |
3760 | |
3761 /*----------------------------------------------------------------------*/ | |
3762 /* Processing file PROCESSTHREADSAPI.H */ | |
3763 /*----------------------------------------------------------------------*/ | |
3764 | |
3765 VOID | |
3766 qxeGetStartupInfo (LPSTARTUPINFOW lpStartupInfo) | |
3767 { | |
3768 if (XEUNICODE_P) | |
3769 GetStartupInfoW (lpStartupInfo); | |
3770 else | |
3771 GetStartupInfoA ((LPSTARTUPINFOA) lpStartupInfo); | |
3772 } | |
3773 | |
3774 /* Error if CreateProcess used: HST: new? -- needs review */ | |
3775 | |
3776 WINBOOL | |
3777 qxeCreateProcessAsUser (HANDLE hToken, const Extbyte * lpApplicationName, Extbyte * lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, WINBOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, const Extbyte * lpCurrentDirectory, LPSTARTUPINFOW lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation) | |
3778 { | |
3779 if (XEUNICODE_P) | |
3780 return CreateProcessAsUserW (hToken, (LPCWSTR) lpApplicationName, (LPWSTR) lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, (LPCWSTR) lpCurrentDirectory, lpStartupInfo, lpProcessInformation); | |
3781 else | |
3782 return CreateProcessAsUserA (hToken, (LPCSTR) lpApplicationName, (LPSTR) lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, (LPCSTR) lpCurrentDirectory, (LPSTARTUPINFOA) lpStartupInfo, lpProcessInformation); | |
3783 } | |
3784 | |
3785 | |
3786 /*----------------------------------------------------------------------*/ | |
3787 /* Processing file WINBASE.H */ | |
3788 /*----------------------------------------------------------------------*/ | |
3789 | |
3790 WINBOOL | |
3791 qxeGetBinaryType (const Extbyte * lpApplicationName, LPDWORD lpBinaryType) | |
3792 { | |
3793 if (XEUNICODE_P) | |
3794 return GetBinaryTypeW ((LPCWSTR) lpApplicationName, lpBinaryType); | |
3795 else | |
3796 return GetBinaryTypeA ((LPCSTR) lpApplicationName, lpBinaryType); | |
3797 } | |
3798 | |
3799 /* Error if GetLongPathNameTransacted used: HST: new? -- needs review */ | |
3800 | |
3801 /* Error if SetFileShortName used: Function needs review to determine how to handle it */ | |
3802 | |
3803 DWORD | |
3804 qxeFormatMessage (DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, DWORD dwLanguageId, Extbyte * lpBuffer, DWORD nSize, va_list * Arguments) | |
3805 { | |
3806 if (XEUNICODE_P) | |
3807 return FormatMessageW (dwFlags, lpSource, dwMessageId, dwLanguageId, (LPWSTR) lpBuffer, nSize, Arguments); | |
3808 else | |
3809 return FormatMessageA (dwFlags, lpSource, dwMessageId, dwLanguageId, (LPSTR) lpBuffer, nSize, Arguments); | |
3810 } | |
3811 | |
3812 HANDLE | |
3813 qxeCreateMailslot (const Extbyte * lpName, DWORD nMaxMessageSize, DWORD lReadTimeout, LPSECURITY_ATTRIBUTES lpSecurityAttributes) | |
3814 { | |
3815 if (XEUNICODE_P) | |
3816 return CreateMailslotW ((LPCWSTR) lpName, nMaxMessageSize, lReadTimeout, lpSecurityAttributes); | |
3817 else | |
3818 return CreateMailslotA ((LPCSTR) lpName, nMaxMessageSize, lReadTimeout, lpSecurityAttributes); | |
3819 } | |
3820 | |
3821 #if !defined (CYGWIN_HEADERS) | |
3822 | |
3823 /* Error if EncryptFile used: Win2K+ only */ | |
3824 | |
3825 #endif /* !defined (CYGWIN_HEADERS) */ | |
3826 | |
3827 #if !defined (CYGWIN_HEADERS) | |
3828 | |
3829 /* Error if DecryptFile used: Win2K+ only */ | |
3830 | |
3831 #endif /* !defined (CYGWIN_HEADERS) */ | |
3832 | |
3833 /* Error if FileEncryptionStatus used: Function needs review to determine how to handle it */ | |
3834 | |
3835 /* Error if OpenEncryptedFileRaw used: HST: new? -- needs review */ | |
3836 | |
3837 int | |
3838 qxelstrcmp (const Extbyte * lpString1, const Extbyte * lpString2) | |
3839 { | |
3840 if (XEUNICODE_P) | |
3841 return lstrcmpW ((LPCWSTR) lpString1, (LPCWSTR) lpString2); | |
3842 else | |
3843 return lstrcmpA ((LPCSTR) lpString1, (LPCSTR) lpString2); | |
3844 } | |
3845 | |
3846 int | |
3847 qxelstrcmpi (const Extbyte * lpString1, const Extbyte * lpString2) | |
3848 { | |
3849 if (XEUNICODE_P) | |
3850 return lstrcmpiW ((LPCWSTR) lpString1, (LPCWSTR) lpString2); | |
3851 else | |
3852 return lstrcmpiA ((LPCSTR) lpString1, (LPCSTR) lpString2); | |
3853 } | |
3854 | |
3855 Extbyte * | |
3856 qxelstrcpyn (Extbyte * lpString1, const Extbyte * lpString2, int iMaxLength) | |
3857 { | |
3858 if (XEUNICODE_P) | |
3859 return (Extbyte *) lstrcpynW ((LPWSTR) lpString1, (LPCWSTR) lpString2, iMaxLength); | |
3860 else | |
3861 return (Extbyte *) lstrcpynA ((LPSTR) lpString1, (LPCSTR) lpString2, iMaxLength); | |
3862 } | |
3863 | |
3864 Extbyte * | |
3865 qxelstrcpy (Extbyte * lpString1, const Extbyte * lpString2) | |
3866 { | |
3867 if (XEUNICODE_P) | |
3868 return (Extbyte *) lstrcpyW ((LPWSTR) lpString1, (LPCWSTR) lpString2); | |
3869 else | |
3870 return (Extbyte *) lstrcpyA ((LPSTR) lpString1, (LPCSTR) lpString2); | |
3871 } | |
3872 | |
3873 Extbyte * | |
3874 qxelstrcat (Extbyte * lpString1, const Extbyte * lpString2) | |
3875 { | |
3876 if (XEUNICODE_P) | |
3877 return (Extbyte *) lstrcatW ((LPWSTR) lpString1, (LPCWSTR) lpString2); | |
3878 else | |
3879 return (Extbyte *) lstrcatA ((LPSTR) lpString1, (LPCSTR) lpString2); | |
3880 } | |
3881 | |
3882 int | |
3883 qxelstrlen (const Extbyte * lpString) | |
3884 { | |
3885 if (XEUNICODE_P) | |
3886 return lstrlenW ((LPCWSTR) lpString); | |
3887 else | |
3888 return lstrlenA ((LPCSTR) lpString); | |
3889 } | |
3890 | |
3891 HANDLE | |
3892 qxeCreateSemaphore (LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, LONG lInitialCount, LONG lMaximumCount, const Extbyte * lpName) | |
3893 { | |
3894 if (XEUNICODE_P) | |
3895 return CreateSemaphoreW (lpSemaphoreAttributes, lInitialCount, lMaximumCount, (LPCWSTR) lpName); | |
3896 else | |
3897 return CreateSemaphoreA (lpSemaphoreAttributes, lInitialCount, lMaximumCount, (LPCSTR) lpName); | |
3898 } | |
3899 | |
3900 HANDLE | |
3901 qxeCreateWaitableTimer (LPSECURITY_ATTRIBUTES lpTimerAttributes, WINBOOL bManualReset, const Extbyte * lpTimerName) | |
3902 { | |
3903 if (XEUNICODE_P) | |
3904 return CreateWaitableTimerW (lpTimerAttributes, bManualReset, (LPCWSTR) lpTimerName); | |
3905 else | |
3906 return CreateWaitableTimerA (lpTimerAttributes, bManualReset, (LPCSTR) lpTimerName); | |
3907 } | |
3908 | |
3909 HMODULE | |
3910 qxeLoadLibrary (const Extbyte * lpLibFileName) | |
3911 { | |
3912 if (XEUNICODE_P) | |
3913 return LoadLibraryW ((LPCWSTR) lpLibFileName); | |
3914 else | |
3915 return LoadLibraryA ((LPCSTR) lpLibFileName); | |
3916 } | |
3917 | |
3918 /* Error if QueryFullProcessImageName used: HST: new? -- needs review */ | |
3919 | |
3920 VOID | |
3921 qxeFatalAppExit (UINT uAction, const Extbyte * lpMessageText) | |
3922 { | |
3923 if (XEUNICODE_P) | |
3924 FatalAppExitW (uAction, (LPCWSTR) lpMessageText); | |
3925 else | |
3926 FatalAppExitA (uAction, (LPCSTR) lpMessageText); | |
3927 } | |
3928 | |
3929 /* Error if GetFirmwareEnvironmentVariable used: Function needs review to determine how to handle it */ | |
3930 | |
3931 /* Error if SetFirmwareEnvironmentVariable used: Function needs review to determine how to handle it */ | |
3932 | |
3933 HRSRC | |
3934 qxeFindResource (HMODULE hModule, const Extbyte * lpName, const Extbyte * lpType) | |
3935 { | |
3936 if (XEUNICODE_P) | |
3937 return FindResourceW (hModule, (LPCWSTR) lpName, (LPCWSTR) lpType); | |
3938 else | |
3939 return FindResourceA (hModule, (LPCSTR) lpName, (LPCSTR) lpType); | |
3940 } | |
3941 | |
3942 /* Skipping EnumResourceTypes because different prototypes in VC6 and VC7 */ | |
3943 | |
3944 /* Skipping EnumResourceNames because different prototypes in VC6 and VC7 */ | |
3945 | |
3946 HANDLE | |
3947 qxeBeginUpdateResource (const Extbyte * pFileName, WINBOOL bDeleteExistingResources) | |
3948 { | |
3949 if (XEUNICODE_P) | |
3950 return BeginUpdateResourceW ((LPCWSTR) pFileName, bDeleteExistingResources); | |
3951 else | |
3952 return BeginUpdateResourceA ((LPCSTR) pFileName, bDeleteExistingResources); | |
3953 } | |
3954 | |
3955 WINBOOL | |
3956 qxeUpdateResource (HANDLE hUpdate, const Extbyte * lpType, const Extbyte * lpName, WORD wLanguage, LPVOID lpData, DWORD cb) | |
3957 { | |
3958 if (XEUNICODE_P) | |
3959 return UpdateResourceW (hUpdate, (LPCWSTR) lpType, (LPCWSTR) lpName, wLanguage, lpData, cb); | |
3960 else | |
3961 return UpdateResourceA (hUpdate, (LPCSTR) lpType, (LPCSTR) lpName, wLanguage, lpData, cb); | |
3962 } | |
3963 | |
3964 WINBOOL | |
3965 qxeEndUpdateResource (HANDLE hUpdate, WINBOOL fDiscard) | |
3966 { | |
3967 if (XEUNICODE_P) | |
3968 return EndUpdateResourceW (hUpdate, fDiscard); | |
3969 else | |
3970 return EndUpdateResourceA (hUpdate, fDiscard); | |
3971 } | |
3972 | |
3973 /* Error if GetFirmwareEnvironmentVariableEx used: HST: new? -- needs review */ | |
3974 | |
3975 /* Error if SetFirmwareEnvironmentVariableEx used: HST: new? -- needs review */ | |
3976 | |
3977 ATOM | |
3978 qxeGlobalAddAtom (const Extbyte * lpString) | |
3979 { | |
3980 if (XEUNICODE_P) | |
3981 return GlobalAddAtomW ((LPCWSTR) lpString); | |
3982 else | |
3983 return GlobalAddAtomA ((LPCSTR) lpString); | |
3984 } | |
3985 | |
3986 /* Error if GlobalAddAtomEx used: HST: new? -- needs review */ | |
3987 | |
3988 ATOM | |
3989 qxeGlobalFindAtom (const Extbyte * lpString) | |
3990 { | |
3991 if (XEUNICODE_P) | |
3992 return GlobalFindAtomW ((LPCWSTR) lpString); | |
3993 else | |
3994 return GlobalFindAtomA ((LPCSTR) lpString); | |
3995 } | |
2764 | 3996 |
2765 UINT | 3997 UINT |
2766 qxeImmGetDescription (HKL arg1, Extbyte * arg2, UINT arg3) | 3998 qxeGlobalGetAtomName (ATOM nAtom, Extbyte * lpBuffer, int nSize) |
2767 { | 3999 { |
2768 if (XEUNICODE_P) | 4000 if (XEUNICODE_P) |
2769 return ImmGetDescriptionW (arg1, (LPWSTR) arg2, arg3); | 4001 return GlobalGetAtomNameW (nAtom, (LPWSTR) lpBuffer, nSize); |
2770 else | 4002 else |
2771 return ImmGetDescriptionA (arg1, (LPSTR) arg2, arg3); | 4003 return GlobalGetAtomNameA (nAtom, (LPSTR) lpBuffer, nSize); |
2772 } | 4004 } |
2773 | 4005 |
2774 #endif /* defined (HAVE_MS_WINDOWS) */ | 4006 ATOM |
2775 | 4007 qxeAddAtom (const Extbyte * lpString) |
2776 #if defined (HAVE_MS_WINDOWS) | 4008 { |
4009 if (XEUNICODE_P) | |
4010 return AddAtomW ((LPCWSTR) lpString); | |
4011 else | |
4012 return AddAtomA ((LPCSTR) lpString); | |
4013 } | |
4014 | |
4015 ATOM | |
4016 qxeFindAtom (const Extbyte * lpString) | |
4017 { | |
4018 if (XEUNICODE_P) | |
4019 return FindAtomW ((LPCWSTR) lpString); | |
4020 else | |
4021 return FindAtomA ((LPCSTR) lpString); | |
4022 } | |
2777 | 4023 |
2778 UINT | 4024 UINT |
2779 qxeImmGetIMEFileName (HKL arg1, Extbyte * arg2, UINT arg3) | 4025 qxeGetAtomName (ATOM nAtom, Extbyte * lpBuffer, int nSize) |
2780 { | 4026 { |
2781 if (XEUNICODE_P) | 4027 if (XEUNICODE_P) |
2782 return ImmGetIMEFileNameW (arg1, (LPWSTR) arg2, arg3); | 4028 return GetAtomNameW (nAtom, (LPWSTR) lpBuffer, nSize); |
2783 else | 4029 else |
2784 return ImmGetIMEFileNameA (arg1, (LPSTR) arg2, arg3); | 4030 return GetAtomNameA (nAtom, (LPSTR) lpBuffer, nSize); |
2785 } | 4031 } |
2786 | |
2787 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2788 | |
2789 #if defined (HAVE_MS_WINDOWS) | |
2790 | |
2791 LONG | |
2792 qxeImmGetCompositionString (HIMC arg1, DWORD arg2, PVOID arg3, DWORD arg4) | |
2793 { | |
2794 if (XEUNICODE_P) | |
2795 return ImmGetCompositionStringW (arg1, arg2, arg3, arg4); | |
2796 else | |
2797 return ImmGetCompositionStringA (arg1, arg2, arg3, arg4); | |
2798 } | |
2799 | |
2800 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2801 | |
2802 #if defined (HAVE_MS_WINDOWS) | |
2803 | |
2804 /* Skipping ImmSetCompositionString because different prototypes in VC6 and VC7 */ | |
2805 | |
2806 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2807 | |
2808 #if defined (HAVE_MS_WINDOWS) | |
2809 | |
2810 DWORD | |
2811 qxeImmGetCandidateListCount (HIMC arg1, PDWORD arg2) | |
2812 { | |
2813 if (XEUNICODE_P) | |
2814 return ImmGetCandidateListCountW (arg1, arg2); | |
2815 else | |
2816 return ImmGetCandidateListCountA (arg1, arg2); | |
2817 } | |
2818 | |
2819 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2820 | |
2821 #if defined (HAVE_MS_WINDOWS) | |
2822 | |
2823 DWORD | |
2824 qxeImmGetCandidateList (HIMC arg1, DWORD arg2, PCANDIDATELIST arg3, DWORD arg4) | |
2825 { | |
2826 if (XEUNICODE_P) | |
2827 return ImmGetCandidateListW (arg1, arg2, arg3, arg4); | |
2828 else | |
2829 return ImmGetCandidateListA (arg1, arg2, arg3, arg4); | |
2830 } | |
2831 | |
2832 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2833 | |
2834 #if defined (HAVE_MS_WINDOWS) | |
2835 | |
2836 DWORD | |
2837 qxeImmGetGuideLine (HIMC arg1, DWORD arg2, Extbyte * arg3, DWORD arg4) | |
2838 { | |
2839 if (XEUNICODE_P) | |
2840 return ImmGetGuideLineW (arg1, arg2, (LPWSTR) arg3, arg4); | |
2841 else | |
2842 return ImmGetGuideLineA (arg1, arg2, (LPSTR) arg3, arg4); | |
2843 } | |
2844 | |
2845 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2846 | |
2847 #if defined (HAVE_MS_WINDOWS) | |
2848 | |
2849 /* Skipping ImmGetCompositionFont because split-sized LOGFONT */ | |
2850 | |
2851 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2852 | |
2853 #if defined (HAVE_MS_WINDOWS) | |
2854 | |
2855 /* Skipping ImmSetCompositionFont because split-sized LOGFONT */ | |
2856 | |
2857 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2858 | |
2859 #if defined (HAVE_MS_WINDOWS) | |
2860 | |
2861 /* NOTE: // split-simple REGISTERWORD */ | |
2862 BOOL | |
2863 qxeImmConfigureIME (HKL arg1, HWND arg2, DWORD arg3, PVOID arg4) | |
2864 { | |
2865 if (XEUNICODE_P) | |
2866 return ImmConfigureIMEW (arg1, arg2, arg3, arg4); | |
2867 else | |
2868 return ImmConfigureIMEA (arg1, arg2, arg3, arg4); | |
2869 } | |
2870 | |
2871 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2872 | |
2873 #if defined (HAVE_MS_WINDOWS) | |
2874 | |
2875 /* NOTE: // strings of various sorts */ | |
2876 LRESULT | |
2877 qxeImmEscape (HKL arg1, HIMC arg2, UINT arg3, PVOID arg4) | |
2878 { | |
2879 if (XEUNICODE_P) | |
2880 return ImmEscapeW (arg1, arg2, arg3, arg4); | |
2881 else | |
2882 return ImmEscapeA (arg1, arg2, arg3, arg4); | |
2883 } | |
2884 | |
2885 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2886 | |
2887 #if defined (HAVE_MS_WINDOWS) | |
2888 | |
2889 DWORD | |
2890 qxeImmGetConversionList (HKL arg1, HIMC arg2, const Extbyte * arg3, PCANDIDATELIST arg4, DWORD arg5, UINT arg6) | |
2891 { | |
2892 if (XEUNICODE_P) | |
2893 return ImmGetConversionListW (arg1, arg2, (LPCWSTR) arg3, arg4, arg5, arg6); | |
2894 else | |
2895 return ImmGetConversionListA (arg1, arg2, (LPCSTR) arg3, arg4, arg5, arg6); | |
2896 } | |
2897 | |
2898 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2899 | |
2900 #if defined (HAVE_MS_WINDOWS) | |
2901 | |
2902 BOOL | |
2903 qxeImmIsUIMessage (HWND arg1, UINT arg2, WPARAM arg3, LPARAM arg4) | |
2904 { | |
2905 if (XEUNICODE_P) | |
2906 return ImmIsUIMessageW (arg1, arg2, arg3, arg4); | |
2907 else | |
2908 return ImmIsUIMessageA (arg1, arg2, arg3, arg4); | |
2909 } | |
2910 | |
2911 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2912 | |
2913 #if defined (HAVE_MS_WINDOWS) | |
2914 | |
2915 BOOL | |
2916 qxeImmRegisterWord (HKL arg1, const Extbyte * arg2, DWORD arg3, const Extbyte * arg4) | |
2917 { | |
2918 if (XEUNICODE_P) | |
2919 return ImmRegisterWordW (arg1, (LPCWSTR) arg2, arg3, (LPCWSTR) arg4); | |
2920 else | |
2921 return ImmRegisterWordA (arg1, (LPCSTR) arg2, arg3, (LPCSTR) arg4); | |
2922 } | |
2923 | |
2924 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2925 | |
2926 #if defined (HAVE_MS_WINDOWS) | |
2927 | |
2928 BOOL | |
2929 qxeImmUnregisterWord (HKL arg1, const Extbyte * arg2, DWORD arg3, const Extbyte * arg4) | |
2930 { | |
2931 if (XEUNICODE_P) | |
2932 return ImmUnregisterWordW (arg1, (LPCWSTR) arg2, arg3, (LPCWSTR) arg4); | |
2933 else | |
2934 return ImmUnregisterWordA (arg1, (LPCSTR) arg2, arg3, (LPCSTR) arg4); | |
2935 } | |
2936 | |
2937 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2938 | |
2939 #if defined (HAVE_MS_WINDOWS) | |
2940 | |
2941 /* Error if ImmGetRegisterWordStyle used: split-sized STYLEBUF */ | |
2942 | |
2943 #endif /* defined (HAVE_MS_WINDOWS) */ | |
2944 | |
2945 #if defined (HAVE_MS_WINDOWS) | |
2946 | 4032 |
2947 UINT | 4033 UINT |
2948 qxeImmEnumRegisterWord (HKL arg1, REGISTERWORDENUMPROCW arg2, const Extbyte * arg3, DWORD arg4, const Extbyte * arg5, PVOID arg6) | 4034 qxeGetProfileInt (const Extbyte * lpAppName, const Extbyte * lpKeyName, INT nDefault) |
2949 { | 4035 { |
2950 if (XEUNICODE_P) | 4036 if (XEUNICODE_P) |
2951 return ImmEnumRegisterWordW (arg1, arg2, (LPCWSTR) arg3, arg4, (LPCWSTR) arg5, arg6); | 4037 return GetProfileIntW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, nDefault); |
2952 else | 4038 else |
2953 return ImmEnumRegisterWordA (arg1, (REGISTERWORDENUMPROCA) arg2, (LPCSTR) arg3, arg4, (LPCSTR) arg5, arg6); | 4039 return GetProfileIntA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, nDefault); |
2954 } | 4040 } |
2955 | 4041 |
2956 #endif /* defined (HAVE_MS_WINDOWS) */ | 4042 DWORD |
2957 | 4043 qxeGetProfileString (const Extbyte * lpAppName, const Extbyte * lpKeyName, const Extbyte * lpDefault, Extbyte * lpReturnedString, DWORD nSize) |
2958 #if defined (HAVE_MS_WINDOWS) | 4044 { |
2959 | 4045 if (XEUNICODE_P) |
2960 /* Error if ImmGetImeMenuItems used: split-sized IMEMENUITEMINFO */ | 4046 return GetProfileStringW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, (LPCWSTR) lpDefault, (LPWSTR) lpReturnedString, nSize); |
2961 | 4047 else |
2962 #endif /* defined (HAVE_MS_WINDOWS) */ | 4048 return GetProfileStringA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, (LPCSTR) lpDefault, (LPSTR) lpReturnedString, nSize); |
2963 | 4049 } |
2964 | 4050 |
2965 /*----------------------------------------------------------------------*/ | 4051 WINBOOL |
2966 /* Processing file WINBASE.H */ | 4052 qxeWriteProfileString (const Extbyte * lpAppName, const Extbyte * lpKeyName, const Extbyte * lpString) |
2967 /*----------------------------------------------------------------------*/ | 4053 { |
2968 | 4054 if (XEUNICODE_P) |
2969 BOOL | 4055 return WriteProfileStringW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, (LPCWSTR) lpString); |
2970 qxeAccessCheckAndAuditAlarm (const Extbyte * arg1, LPVOID arg2, Extbyte * arg3, Extbyte * arg4, PSECURITY_DESCRIPTOR arg5, DWORD arg6, PGENERIC_MAPPING arg7, BOOL arg8, PDWORD arg9, PBOOL arg10, PBOOL arg11) | 4056 else |
2971 { | 4057 return WriteProfileStringA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, (LPCSTR) lpString); |
2972 if (XEUNICODE_P) | 4058 } |
2973 return AccessCheckAndAuditAlarmW ((LPCWSTR) arg1, arg2, (LPWSTR) arg3, (LPWSTR) arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11); | 4059 |
2974 else | 4060 DWORD |
2975 return AccessCheckAndAuditAlarmA ((LPCSTR) arg1, arg2, (LPSTR) arg3, (LPSTR) arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11); | 4061 qxeGetProfileSection (const Extbyte * lpAppName, Extbyte * lpReturnedString, DWORD nSize) |
2976 } | 4062 { |
2977 | 4063 if (XEUNICODE_P) |
2978 ATOM | 4064 return GetProfileSectionW ((LPCWSTR) lpAppName, (LPWSTR) lpReturnedString, nSize); |
2979 qxeAddAtom (const Extbyte * arg1) | 4065 else |
2980 { | 4066 return GetProfileSectionA ((LPCSTR) lpAppName, (LPSTR) lpReturnedString, nSize); |
2981 if (XEUNICODE_P) | 4067 } |
2982 return AddAtomW ((LPCWSTR) arg1); | 4068 |
2983 else | 4069 WINBOOL |
2984 return AddAtomA ((LPCSTR) arg1); | 4070 qxeWriteProfileSection (const Extbyte * lpAppName, const Extbyte * lpString) |
2985 } | 4071 { |
2986 | 4072 if (XEUNICODE_P) |
2987 BOOL | 4073 return WriteProfileSectionW ((LPCWSTR) lpAppName, (LPCWSTR) lpString); |
2988 qxeBackupEventLog (HANDLE arg1, const Extbyte * arg2) | 4074 else |
2989 { | 4075 return WriteProfileSectionA ((LPCSTR) lpAppName, (LPCSTR) lpString); |
2990 if (XEUNICODE_P) | 4076 } |
2991 return BackupEventLogW (arg1, (LPCWSTR) arg2); | 4077 |
2992 else | 4078 UINT |
2993 return BackupEventLogA (arg1, (LPCSTR) arg2); | 4079 qxeGetPrivateProfileInt (const Extbyte * lpAppName, const Extbyte * lpKeyName, INT nDefault, const Extbyte * lpFileName) |
4080 { | |
4081 if (XEUNICODE_P) | |
4082 return GetPrivateProfileIntW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, nDefault, (LPCWSTR) lpFileName); | |
4083 else | |
4084 return GetPrivateProfileIntA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, nDefault, (LPCSTR) lpFileName); | |
4085 } | |
4086 | |
4087 DWORD | |
4088 qxeGetPrivateProfileString (const Extbyte * lpAppName, const Extbyte * lpKeyName, const Extbyte * lpDefault, Extbyte * lpReturnedString, DWORD nSize, const Extbyte * lpFileName) | |
4089 { | |
4090 if (XEUNICODE_P) | |
4091 return GetPrivateProfileStringW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, (LPCWSTR) lpDefault, (LPWSTR) lpReturnedString, nSize, (LPCWSTR) lpFileName); | |
4092 else | |
4093 return GetPrivateProfileStringA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, (LPCSTR) lpDefault, (LPSTR) lpReturnedString, nSize, (LPCSTR) lpFileName); | |
4094 } | |
4095 | |
4096 WINBOOL | |
4097 qxeWritePrivateProfileString (const Extbyte * lpAppName, const Extbyte * lpKeyName, const Extbyte * lpString, const Extbyte * lpFileName) | |
4098 { | |
4099 if (XEUNICODE_P) | |
4100 return WritePrivateProfileStringW ((LPCWSTR) lpAppName, (LPCWSTR) lpKeyName, (LPCWSTR) lpString, (LPCWSTR) lpFileName); | |
4101 else | |
4102 return WritePrivateProfileStringA ((LPCSTR) lpAppName, (LPCSTR) lpKeyName, (LPCSTR) lpString, (LPCSTR) lpFileName); | |
4103 } | |
4104 | |
4105 DWORD | |
4106 qxeGetPrivateProfileSection (const Extbyte * lpAppName, Extbyte * lpReturnedString, DWORD nSize, const Extbyte * lpFileName) | |
4107 { | |
4108 if (XEUNICODE_P) | |
4109 return GetPrivateProfileSectionW ((LPCWSTR) lpAppName, (LPWSTR) lpReturnedString, nSize, (LPCWSTR) lpFileName); | |
4110 else | |
4111 return GetPrivateProfileSectionA ((LPCSTR) lpAppName, (LPSTR) lpReturnedString, nSize, (LPCSTR) lpFileName); | |
4112 } | |
4113 | |
4114 WINBOOL | |
4115 qxeWritePrivateProfileSection (const Extbyte * lpAppName, const Extbyte * lpString, const Extbyte * lpFileName) | |
4116 { | |
4117 if (XEUNICODE_P) | |
4118 return WritePrivateProfileSectionW ((LPCWSTR) lpAppName, (LPCWSTR) lpString, (LPCWSTR) lpFileName); | |
4119 else | |
4120 return WritePrivateProfileSectionA ((LPCSTR) lpAppName, (LPCSTR) lpString, (LPCSTR) lpFileName); | |
4121 } | |
4122 | |
4123 DWORD | |
4124 qxeGetPrivateProfileSectionNames (Extbyte * lpszReturnBuffer, DWORD nSize, const Extbyte * lpFileName) | |
4125 { | |
4126 if (XEUNICODE_P) | |
4127 return GetPrivateProfileSectionNamesW ((LPWSTR) lpszReturnBuffer, nSize, (LPCWSTR) lpFileName); | |
4128 else | |
4129 return GetPrivateProfileSectionNamesA ((LPSTR) lpszReturnBuffer, nSize, (LPCSTR) lpFileName); | |
4130 } | |
4131 | |
4132 WINBOOL | |
4133 qxeGetPrivateProfileStruct (const Extbyte * lpszSection, const Extbyte * lpszKey, LPVOID lpStruct, UINT uSizeStruct, const Extbyte * szFile) | |
4134 { | |
4135 if (XEUNICODE_P) | |
4136 return GetPrivateProfileStructW ((LPCWSTR) lpszSection, (LPCWSTR) lpszKey, lpStruct, uSizeStruct, (LPCWSTR) szFile); | |
4137 else | |
4138 return GetPrivateProfileStructA ((LPCSTR) lpszSection, (LPCSTR) lpszKey, lpStruct, uSizeStruct, (LPCSTR) szFile); | |
4139 } | |
4140 | |
4141 WINBOOL | |
4142 qxeWritePrivateProfileStruct (const Extbyte * lpszSection, const Extbyte * lpszKey, LPVOID lpStruct, UINT uSizeStruct, const Extbyte * szFile) | |
4143 { | |
4144 if (XEUNICODE_P) | |
4145 return WritePrivateProfileStructW ((LPCWSTR) lpszSection, (LPCWSTR) lpszKey, lpStruct, uSizeStruct, (LPCWSTR) szFile); | |
4146 else | |
4147 return WritePrivateProfileStructA ((LPCSTR) lpszSection, (LPCSTR) lpszKey, lpStruct, uSizeStruct, (LPCSTR) szFile); | |
4148 } | |
4149 | |
4150 /* Error if GetSystemWow64Directory used: Function needs review to determine how to handle it */ | |
4151 | |
4152 /* Error if SetDllDirectory used: Function needs review to determine how to handle it */ | |
4153 | |
4154 /* Error if GetDllDirectory used: Function needs review to determine how to handle it */ | |
4155 | |
4156 WINBOOL | |
4157 qxeCreateDirectoryEx (const Extbyte * lpTemplateDirectory, const Extbyte * lpNewDirectory, LPSECURITY_ATTRIBUTES lpSecurityAttributes) | |
4158 { | |
4159 if (XEUNICODE_P) | |
4160 return CreateDirectoryExW ((LPCWSTR) lpTemplateDirectory, (LPCWSTR) lpNewDirectory, lpSecurityAttributes); | |
4161 else | |
4162 return CreateDirectoryExA ((LPCSTR) lpTemplateDirectory, (LPCSTR) lpNewDirectory, lpSecurityAttributes); | |
4163 } | |
4164 | |
4165 /* Error if CreateDirectoryTransacted used: HST: new? -- needs review */ | |
4166 | |
4167 /* Error if RemoveDirectoryTransacted used: HST: new? -- needs review */ | |
4168 | |
4169 /* Error if GetFullPathNameTransacted used: HST: new? -- needs review */ | |
4170 | |
4171 /* Error if CreateFileTransacted used: HST: new? -- needs review */ | |
4172 | |
4173 /* Error if SetFileAttributesTransacted used: HST: new? -- needs review */ | |
4174 | |
4175 /* Error if GetFileAttributesTransacted used: HST: new? -- needs review */ | |
4176 | |
4177 DWORD | |
4178 qxeGetCompressedFileSize (const Extbyte * lpFileName, LPDWORD lpFileSizeHigh) | |
4179 { | |
4180 if (XEUNICODE_P) | |
4181 return GetCompressedFileSizeW ((LPCWSTR) lpFileName, lpFileSizeHigh); | |
4182 else | |
4183 return GetCompressedFileSizeA ((LPCSTR) lpFileName, lpFileSizeHigh); | |
4184 } | |
4185 | |
4186 /* Error if GetCompressedFileSizeTransacted used: HST: new? -- needs review */ | |
4187 | |
4188 /* Error if DeleteFileTransacted used: HST: new? -- needs review */ | |
4189 | |
4190 /* Error if CheckNameLegalDOS8Dot3 used: Function needs review to determine how to handle it */ | |
4191 | |
4192 WINBOOL | |
4193 qxeCopyFile (const Extbyte * lpExistingFileName, const Extbyte * lpNewFileName, WINBOOL bFailIfExists) | |
4194 { | |
4195 if (XEUNICODE_P) | |
4196 return CopyFileW ((LPCWSTR) lpExistingFileName, (LPCWSTR) lpNewFileName, bFailIfExists); | |
4197 else | |
4198 return CopyFileA ((LPCSTR) lpExistingFileName, (LPCSTR) lpNewFileName, bFailIfExists); | |
4199 } | |
4200 | |
4201 /* NOTE: NT 4.0+ only */ | |
4202 WINBOOL | |
4203 qxeCopyFileEx (const Extbyte * lpExistingFileName, const Extbyte * lpNewFileName, LPPROGRESS_ROUTINE lpProgressRoutine, LPVOID lpData, LPBOOL pbCancel, DWORD dwCopyFlags) | |
4204 { | |
4205 if (XEUNICODE_P) | |
4206 return CopyFileExW ((LPCWSTR) lpExistingFileName, (LPCWSTR) lpNewFileName, lpProgressRoutine, lpData, pbCancel, dwCopyFlags); | |
4207 else | |
4208 return CopyFileExA ((LPCSTR) lpExistingFileName, (LPCSTR) lpNewFileName, lpProgressRoutine, lpData, pbCancel, dwCopyFlags); | |
4209 } | |
4210 | |
4211 /* Error if FindFirstFileTransacted used: HST: new? -- needs review */ | |
4212 | |
4213 /* Error if CopyFileTransacted used: HST: new? -- needs review */ | |
4214 | |
4215 WINBOOL | |
4216 qxeMoveFile (const Extbyte * lpExistingFileName, const Extbyte * lpNewFileName) | |
4217 { | |
4218 if (XEUNICODE_P) | |
4219 return MoveFileW ((LPCWSTR) lpExistingFileName, (LPCWSTR) lpNewFileName); | |
4220 else | |
4221 return MoveFileA ((LPCSTR) lpExistingFileName, (LPCSTR) lpNewFileName); | |
4222 } | |
4223 | |
4224 WINBOOL | |
4225 qxeMoveFileEx (const Extbyte * lpExistingFileName, const Extbyte * lpNewFileName, DWORD dwFlags) | |
4226 { | |
4227 if (XEUNICODE_P) | |
4228 return MoveFileExW ((LPCWSTR) lpExistingFileName, (LPCWSTR) lpNewFileName, dwFlags); | |
4229 else | |
4230 return MoveFileExA ((LPCSTR) lpExistingFileName, (LPCSTR) lpNewFileName, dwFlags); | |
4231 } | |
4232 | |
4233 /* Error if MoveFileWithProgress used: NT 5.0+ only */ | |
4234 | |
4235 /* Error if MoveFileTransacted used: HST: new? -- needs review */ | |
4236 | |
4237 /* Error if ReplaceFile used: Function needs review to determine how to handle it */ | |
4238 | |
4239 /* Error if CreateHardLink used: NT 5.0+ only */ | |
4240 | |
4241 /* Error if CreateHardLinkTransacted used: HST: new? -- needs review */ | |
4242 | |
4243 /* Error if FindFirstStream used: HST: new? -- needs review */ | |
4244 | |
4245 /* Error if FindNextStream used: HST: new? -- needs review */ | |
4246 | |
4247 /* Error if FindFirstStreamTransacted used: HST: new? -- needs review */ | |
4248 | |
4249 /* Error if FindFirstFileName used: HST: new? -- needs review */ | |
4250 | |
4251 /* Error if FindNextFileName used: HST: new? -- needs review */ | |
4252 | |
4253 /* Error if FindFirstFileNameTransacted used: HST: new? -- needs review */ | |
4254 | |
4255 WINBOOL | |
4256 qxeGetNamedPipeHandleState (HANDLE hNamedPipe, LPDWORD lpState, LPDWORD lpCurInstances, LPDWORD lpMaxCollectionCount, LPDWORD lpCollectDataTimeout, Extbyte * lpUserName, DWORD nMaxUserNameSize) | |
4257 { | |
4258 if (XEUNICODE_P) | |
4259 return GetNamedPipeHandleStateW (hNamedPipe, lpState, lpCurInstances, lpMaxCollectionCount, lpCollectDataTimeout, (LPWSTR) lpUserName, nMaxUserNameSize); | |
4260 else | |
4261 return GetNamedPipeHandleStateA (hNamedPipe, lpState, lpCurInstances, lpMaxCollectionCount, lpCollectDataTimeout, (LPSTR) lpUserName, nMaxUserNameSize); | |
4262 } | |
4263 | |
4264 WINBOOL | |
4265 qxeCallNamedPipe (const Extbyte * lpNamedPipeName, LPVOID lpInBuffer, DWORD nInBufferSize, LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesRead, DWORD nTimeOut) | |
4266 { | |
4267 if (XEUNICODE_P) | |
4268 return CallNamedPipeW ((LPCWSTR) lpNamedPipeName, lpInBuffer, nInBufferSize, lpOutBuffer, nOutBufferSize, lpBytesRead, nTimeOut); | |
4269 else | |
4270 return CallNamedPipeA ((LPCSTR) lpNamedPipeName, lpInBuffer, nInBufferSize, lpOutBuffer, nOutBufferSize, lpBytesRead, nTimeOut); | |
4271 } | |
4272 | |
4273 WINBOOL | |
4274 qxeSetVolumeLabel (const Extbyte * lpRootPathName, const Extbyte * lpVolumeName) | |
4275 { | |
4276 if (XEUNICODE_P) | |
4277 return SetVolumeLabelW ((LPCWSTR) lpRootPathName, (LPCWSTR) lpVolumeName); | |
4278 else | |
4279 return SetVolumeLabelA ((LPCSTR) lpRootPathName, (LPCSTR) lpVolumeName); | |
4280 } | |
4281 | |
4282 WINBOOL | |
4283 qxeClearEventLog (HANDLE hEventLog, const Extbyte * lpBackupFileName) | |
4284 { | |
4285 if (XEUNICODE_P) | |
4286 return ClearEventLogW (hEventLog, (LPCWSTR) lpBackupFileName); | |
4287 else | |
4288 return ClearEventLogA (hEventLog, (LPCSTR) lpBackupFileName); | |
4289 } | |
4290 | |
4291 WINBOOL | |
4292 qxeBackupEventLog (HANDLE hEventLog, const Extbyte * lpBackupFileName) | |
4293 { | |
4294 if (XEUNICODE_P) | |
4295 return BackupEventLogW (hEventLog, (LPCWSTR) lpBackupFileName); | |
4296 else | |
4297 return BackupEventLogA (hEventLog, (LPCSTR) lpBackupFileName); | |
2994 } | 4298 } |
2995 | 4299 |
2996 HANDLE | 4300 HANDLE |
2997 qxeBeginUpdateResource (const Extbyte * arg1, BOOL arg2) | 4301 qxeOpenEventLog (const Extbyte * lpUNCServerName, const Extbyte * lpSourceName) |
2998 { | 4302 { |
2999 if (XEUNICODE_P) | 4303 if (XEUNICODE_P) |
3000 return BeginUpdateResourceW ((LPCWSTR) arg1, arg2); | 4304 return OpenEventLogW ((LPCWSTR) lpUNCServerName, (LPCWSTR) lpSourceName); |
3001 else | 4305 else |
3002 return BeginUpdateResourceA ((LPCSTR) arg1, arg2); | 4306 return OpenEventLogA ((LPCSTR) lpUNCServerName, (LPCSTR) lpSourceName); |
3003 } | 4307 } |
3004 | 4308 |
3005 BOOL | 4309 HANDLE |
3006 qxeBuildCommDCB (const Extbyte * arg1, LPDCB arg2) | 4310 qxeRegisterEventSource (const Extbyte * lpUNCServerName, const Extbyte * lpSourceName) |
3007 { | 4311 { |
3008 if (XEUNICODE_P) | 4312 if (XEUNICODE_P) |
3009 return BuildCommDCBW ((LPCWSTR) arg1, arg2); | 4313 return RegisterEventSourceW ((LPCWSTR) lpUNCServerName, (LPCWSTR) lpSourceName); |
3010 else | 4314 else |
3011 return BuildCommDCBA ((LPCSTR) arg1, arg2); | 4315 return RegisterEventSourceA ((LPCSTR) lpUNCServerName, (LPCSTR) lpSourceName); |
3012 } | 4316 } |
3013 | 4317 |
3014 BOOL | 4318 HANDLE |
3015 qxeBuildCommDCBAndTimeouts (const Extbyte * arg1, LPDCB arg2, LPCOMMTIMEOUTS arg3) | 4319 qxeOpenBackupEventLog (const Extbyte * lpUNCServerName, const Extbyte * lpFileName) |
3016 { | 4320 { |
3017 if (XEUNICODE_P) | 4321 if (XEUNICODE_P) |
3018 return BuildCommDCBAndTimeoutsW ((LPCWSTR) arg1, arg2, arg3); | 4322 return OpenBackupEventLogW ((LPCWSTR) lpUNCServerName, (LPCWSTR) lpFileName); |
3019 else | 4323 else |
3020 return BuildCommDCBAndTimeoutsA ((LPCSTR) arg1, arg2, arg3); | 4324 return OpenBackupEventLogA ((LPCSTR) lpUNCServerName, (LPCSTR) lpFileName); |
3021 } | 4325 } |
3022 | 4326 |
3023 BOOL | 4327 WINBOOL |
3024 qxeCallNamedPipe (const Extbyte * arg1, PVOID arg2, DWORD arg3, PVOID arg4, DWORD arg5, PDWORD arg6, DWORD arg7) | 4328 qxeReadEventLog (HANDLE hEventLog, DWORD dwReadFlags, DWORD dwRecordOffset, LPVOID lpBuffer, DWORD nNumberOfBytesToRead, DWORD * pnBytesRead, DWORD * pnMinNumberOfBytesNeeded) |
3025 { | 4329 { |
3026 if (XEUNICODE_P) | 4330 if (XEUNICODE_P) |
3027 return CallNamedPipeW ((LPCWSTR) arg1, arg2, arg3, arg4, arg5, arg6, arg7); | 4331 return ReadEventLogW (hEventLog, dwReadFlags, dwRecordOffset, lpBuffer, nNumberOfBytesToRead, pnBytesRead, pnMinNumberOfBytesNeeded); |
3028 else | 4332 else |
3029 return CallNamedPipeA ((LPCSTR) arg1, arg2, arg3, arg4, arg5, arg6, arg7); | 4333 return ReadEventLogA (hEventLog, dwReadFlags, dwRecordOffset, lpBuffer, nNumberOfBytesToRead, pnBytesRead, pnMinNumberOfBytesNeeded); |
3030 } | 4334 } |
3031 | 4335 |
3032 /* Error if CheckNameLegalDOS8Dot3 used: Function needs review to determine how to handle it */ | 4336 WINBOOL |
3033 | 4337 qxeReportEvent (HANDLE hEventLog, WORD wType, WORD wCategory, DWORD dwEventID, PSID lpUserSid, WORD wNumStrings, DWORD dwDataSize, const Extbyte * * lpStrings, LPVOID lpRawData) |
3034 BOOL | 4338 { |
3035 qxeClearEventLog (HANDLE arg1, const Extbyte * arg2) | 4339 if (XEUNICODE_P) |
3036 { | 4340 return ReportEventW (hEventLog, wType, wCategory, dwEventID, lpUserSid, wNumStrings, dwDataSize, (LPCWSTR *) lpStrings, lpRawData); |
3037 if (XEUNICODE_P) | 4341 else |
3038 return ClearEventLogW (arg1, (LPCWSTR) arg2); | 4342 return ReportEventA (hEventLog, wType, wCategory, dwEventID, lpUserSid, wNumStrings, dwDataSize, (LPCSTR *) lpStrings, lpRawData); |
3039 else | 4343 } |
3040 return ClearEventLogA (arg1, (LPCSTR) arg2); | 4344 |
3041 } | 4345 /* Error if ReadDirectoryChanges used: Unicode-only */ |
3042 | 4346 |
3043 BOOL | 4347 WINBOOL |
3044 qxeCommConfigDialog (const Extbyte * arg1, HWND arg2, LPCOMMCONFIG arg3) | 4348 qxeIsBadStringPtr (const Extbyte * lpsz, UINT_PTR ucchMax) |
3045 { | 4349 { |
3046 if (XEUNICODE_P) | 4350 if (XEUNICODE_P) |
3047 return CommConfigDialogW ((LPCWSTR) arg1, arg2, arg3); | 4351 return IsBadStringPtrW ((LPCWSTR) lpsz, ucchMax); |
3048 else | 4352 else |
3049 return CommConfigDialogA ((LPCSTR) arg1, arg2, arg3); | 4353 return IsBadStringPtrA ((LPCSTR) lpsz, ucchMax); |
3050 } | 4354 } |
3051 | 4355 |
3052 BOOL | 4356 WINBOOL |
3053 qxeCopyFile (const Extbyte * arg1, const Extbyte * arg2, BOOL arg3) | 4357 qxeLookupAccountSid (const Extbyte * lpSystemName, PSID Sid, Extbyte * Name, LPDWORD cchName, Extbyte * ReferencedDomainName, LPDWORD cchReferencedDomainName, PSID_NAME_USE peUse) |
3054 { | 4358 { |
3055 if (XEUNICODE_P) | 4359 if (XEUNICODE_P) |
3056 return CopyFileW ((LPCWSTR) arg1, (LPCWSTR) arg2, arg3); | 4360 return LookupAccountSidW ((LPCWSTR) lpSystemName, Sid, (LPWSTR) Name, cchName, (LPWSTR) ReferencedDomainName, cchReferencedDomainName, peUse); |
3057 else | 4361 else |
3058 return CopyFileA ((LPCSTR) arg1, (LPCSTR) arg2, arg3); | 4362 return LookupAccountSidA ((LPCSTR) lpSystemName, Sid, (LPSTR) Name, cchName, (LPSTR) ReferencedDomainName, cchReferencedDomainName, peUse); |
3059 } | 4363 } |
3060 | 4364 |
3061 /* NOTE: NT 4.0+ only */ | 4365 WINBOOL |
3062 BOOL | 4366 qxeLookupAccountName (const Extbyte * lpSystemName, const Extbyte * lpAccountName, PSID Sid, LPDWORD cbSid, Extbyte * ReferencedDomainName, LPDWORD cchReferencedDomainName, PSID_NAME_USE peUse) |
3063 qxeCopyFileEx (const Extbyte * arg1, const Extbyte * arg2, LPPROGRESS_ROUTINE arg3, LPVOID arg4, LPBOOL arg5, DWORD arg6) | 4367 { |
3064 { | 4368 if (XEUNICODE_P) |
3065 if (XEUNICODE_P) | 4369 return LookupAccountNameW ((LPCWSTR) lpSystemName, (LPCWSTR) lpAccountName, Sid, cbSid, (LPWSTR) ReferencedDomainName, cchReferencedDomainName, peUse); |
3066 return CopyFileExW ((LPCWSTR) arg1, (LPCWSTR) arg2, arg3, arg4, arg5, arg6); | 4370 else |
3067 else | 4371 return LookupAccountNameA ((LPCSTR) lpSystemName, (LPCSTR) lpAccountName, Sid, cbSid, (LPSTR) ReferencedDomainName, cchReferencedDomainName, peUse); |
3068 return CopyFileExA ((LPCSTR) arg1, (LPCSTR) arg2, arg3, arg4, arg5, arg6); | 4372 } |
3069 } | 4373 |
4374 /* Error if LookupAccountNameLocal used: HST: new? -- needs review */ | |
4375 | |
4376 /* Error if LookupAccountSidLocal used: HST: new? -- needs review */ | |
4377 | |
4378 WINBOOL | |
4379 qxeLookupPrivilegeValue (const Extbyte * lpSystemName, const Extbyte * lpName, PLUID lpLuid) | |
4380 { | |
4381 if (XEUNICODE_P) | |
4382 return LookupPrivilegeValueW ((LPCWSTR) lpSystemName, (LPCWSTR) lpName, lpLuid); | |
4383 else | |
4384 return LookupPrivilegeValueA ((LPCSTR) lpSystemName, (LPCSTR) lpName, lpLuid); | |
4385 } | |
4386 | |
4387 WINBOOL | |
4388 qxeLookupPrivilegeName (const Extbyte * lpSystemName, PLUID lpLuid, Extbyte * lpName, LPDWORD cchName) | |
4389 { | |
4390 if (XEUNICODE_P) | |
4391 return LookupPrivilegeNameW ((LPCWSTR) lpSystemName, lpLuid, (LPWSTR) lpName, cchName); | |
4392 else | |
4393 return LookupPrivilegeNameA ((LPCSTR) lpSystemName, lpLuid, (LPSTR) lpName, cchName); | |
4394 } | |
4395 | |
4396 WINBOOL | |
4397 qxeLookupPrivilegeDisplayName (const Extbyte * lpSystemName, const Extbyte * lpName, Extbyte * lpDisplayName, LPDWORD cchDisplayName, LPDWORD lpLanguageId) | |
4398 { | |
4399 if (XEUNICODE_P) | |
4400 return LookupPrivilegeDisplayNameW ((LPCWSTR) lpSystemName, (LPCWSTR) lpName, (LPWSTR) lpDisplayName, cchDisplayName, lpLanguageId); | |
4401 else | |
4402 return LookupPrivilegeDisplayNameA ((LPCSTR) lpSystemName, (LPCSTR) lpName, (LPSTR) lpDisplayName, cchDisplayName, lpLanguageId); | |
4403 } | |
4404 | |
4405 WINBOOL | |
4406 qxeBuildCommDCB (const Extbyte * lpDef, LPDCB lpDCB) | |
4407 { | |
4408 if (XEUNICODE_P) | |
4409 return BuildCommDCBW ((LPCWSTR) lpDef, lpDCB); | |
4410 else | |
4411 return BuildCommDCBA ((LPCSTR) lpDef, lpDCB); | |
4412 } | |
4413 | |
4414 WINBOOL | |
4415 qxeBuildCommDCBAndTimeouts (const Extbyte * lpDef, LPDCB lpDCB, LPCOMMTIMEOUTS lpCommTimeouts) | |
4416 { | |
4417 if (XEUNICODE_P) | |
4418 return BuildCommDCBAndTimeoutsW ((LPCWSTR) lpDef, lpDCB, lpCommTimeouts); | |
4419 else | |
4420 return BuildCommDCBAndTimeoutsA ((LPCSTR) lpDef, lpDCB, lpCommTimeouts); | |
4421 } | |
4422 | |
4423 WINBOOL | |
4424 qxeCommConfigDialog (const Extbyte * lpszName, HWND hWnd, LPCOMMCONFIG lpCC) | |
4425 { | |
4426 if (XEUNICODE_P) | |
4427 return CommConfigDialogW ((LPCWSTR) lpszName, hWnd, lpCC); | |
4428 else | |
4429 return CommConfigDialogA ((LPCSTR) lpszName, hWnd, lpCC); | |
4430 } | |
4431 | |
4432 WINBOOL | |
4433 qxeGetDefaultCommConfig (const Extbyte * lpszName, LPCOMMCONFIG lpCC, LPDWORD lpdwSize) | |
4434 { | |
4435 if (XEUNICODE_P) | |
4436 return GetDefaultCommConfigW ((LPCWSTR) lpszName, lpCC, lpdwSize); | |
4437 else | |
4438 return GetDefaultCommConfigA ((LPCSTR) lpszName, lpCC, lpdwSize); | |
4439 } | |
4440 | |
4441 WINBOOL | |
4442 qxeSetDefaultCommConfig (const Extbyte * lpszName, LPCOMMCONFIG lpCC, DWORD dwSize) | |
4443 { | |
4444 if (XEUNICODE_P) | |
4445 return SetDefaultCommConfigW ((LPCWSTR) lpszName, lpCC, dwSize); | |
4446 else | |
4447 return SetDefaultCommConfigA ((LPCSTR) lpszName, lpCC, dwSize); | |
4448 } | |
4449 | |
4450 WINBOOL | |
4451 qxeGetComputerName (Extbyte * lpBuffer, LPDWORD nSize) | |
4452 { | |
4453 if (XEUNICODE_P) | |
4454 return GetComputerNameW ((LPWSTR) lpBuffer, nSize); | |
4455 else | |
4456 return GetComputerNameA ((LPSTR) lpBuffer, nSize); | |
4457 } | |
4458 | |
4459 WINBOOL | |
4460 qxeSetComputerName (const Extbyte * lpComputerName) | |
4461 { | |
4462 if (XEUNICODE_P) | |
4463 return SetComputerNameW ((LPCWSTR) lpComputerName); | |
4464 else | |
4465 return SetComputerNameA ((LPCSTR) lpComputerName); | |
4466 } | |
4467 | |
4468 /* Error if DnsHostnameToComputerName used: Function needs review to determine how to handle it */ | |
4469 | |
4470 WINBOOL | |
4471 qxeGetUserName (Extbyte * lpBuffer, LPDWORD pcbBuffer) | |
4472 { | |
4473 if (XEUNICODE_P) | |
4474 return GetUserNameW ((LPWSTR) lpBuffer, pcbBuffer); | |
4475 else | |
4476 return GetUserNameA ((LPSTR) lpBuffer, pcbBuffer); | |
4477 } | |
4478 | |
4479 WINBOOL | |
4480 qxeLogonUser (const Extbyte * lpszUsername, const Extbyte * lpszDomain, const Extbyte * lpszPassword, DWORD dwLogonType, DWORD dwLogonProvider, PHANDLE phToken) | |
4481 { | |
4482 if (XEUNICODE_P) | |
4483 return LogonUserW ((LPCWSTR) lpszUsername, (LPCWSTR) lpszDomain, (LPCWSTR) lpszPassword, dwLogonType, dwLogonProvider, phToken); | |
4484 else | |
4485 return LogonUserA ((LPCSTR) lpszUsername, (LPCSTR) lpszDomain, (LPCSTR) lpszPassword, dwLogonType, dwLogonProvider, phToken); | |
4486 } | |
4487 | |
4488 /* Error if LogonUserEx used: HST: new? -- needs review */ | |
4489 | |
4490 /* Error if CreateProcessWithLogon used: Function needs review to determine how to handle it */ | |
4491 | |
4492 /* Error if CreateProcessWithToken used: HST: new? -- needs review */ | |
4493 | |
4494 /* Error if GetCurrentHwProfile used: split-sized LPHW_PROFILE_INFO; NT 4.0+ only */ | |
4495 | |
4496 /* Error if VerifyVersionInfo used: Function needs review to determine how to handle it */ | |
4497 | |
4498 /* Error if CreateJobObject used: NT 5.0+ only */ | |
4499 | |
4500 /* Error if OpenJobObject used: NT 5.0+ only */ | |
4501 | |
4502 /* Error if FindFirstVolumeMountPoint used: Function needs review to determine how to handle it */ | |
4503 | |
4504 /* Error if FindNextVolumeMountPoint used: Function needs review to determine how to handle it */ | |
4505 | |
4506 /* Error if SetVolumeMountPoint used: Function needs review to determine how to handle it */ | |
3070 | 4507 |
3071 /* Error if CreateActCtx used: Function needs review to determine how to handle it */ | 4508 /* Error if CreateActCtx used: Function needs review to determine how to handle it */ |
3072 | 4509 |
3073 BOOL | 4510 /* Error if FindActCtxSectionString used: Function needs review to determine how to handle it */ |
3074 qxeCreateDirectory (const Extbyte * arg1, LPSECURITY_ATTRIBUTES arg2) | 4511 |
3075 { | 4512 /* Error if QueryActCtx used: Function needs review to determine how to handle it */ |
3076 if (XEUNICODE_P) | 4513 |
3077 return CreateDirectoryW ((LPCWSTR) arg1, arg2); | 4514 /* Error if CreateSymbolicLink used: HST: new? -- needs review */ |
3078 else | 4515 |
3079 return CreateDirectoryA ((LPCSTR) arg1, arg2); | 4516 /* Error if CreateSymbolicLinkTransacted used: HST: new? -- needs review */ |
3080 } | 4517 |
3081 | 4518 /* Error if QueryActCtxSettings used: HST: new? -- needs review */ |
3082 BOOL | 4519 |
3083 qxeCreateDirectoryEx (const Extbyte * arg1, const Extbyte * arg2, LPSECURITY_ATTRIBUTES arg3) | 4520 |
3084 { | 4521 /*----------------------------------------------------------------------*/ |
3085 if (XEUNICODE_P) | 4522 /* Processing file FILEAPI.H */ |
3086 return CreateDirectoryExW ((LPCWSTR) arg1, (LPCWSTR) arg2, arg3); | 4523 /*----------------------------------------------------------------------*/ |
3087 else | |
3088 return CreateDirectoryExA ((LPCSTR) arg1, (LPCSTR) arg2, arg3); | |
3089 } | |
3090 | 4524 |
3091 HANDLE | 4525 HANDLE |
3092 qxeCreateEvent (LPSECURITY_ATTRIBUTES arg1, BOOL arg2, BOOL arg3, const Extbyte * arg4) | 4526 qxeCreateFile (const Extbyte * lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile) |
3093 { | 4527 { |
3094 if (XEUNICODE_P) | 4528 if (XEUNICODE_P) |
3095 return CreateEventW (arg1, arg2, arg3, (LPCWSTR) arg4); | 4529 return CreateFileW ((LPCWSTR) lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile); |
3096 else | 4530 else |
3097 return CreateEventA (arg1, arg2, arg3, (LPCSTR) arg4); | 4531 return CreateFileA ((LPCSTR) lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile); |
3098 } | 4532 } |
4533 | |
4534 WINBOOL | |
4535 qxeDefineDosDevice (DWORD dwFlags, const Extbyte * lpDeviceName, const Extbyte * lpTargetPath) | |
4536 { | |
4537 if (XEUNICODE_P) | |
4538 return DefineDosDeviceW (dwFlags, (LPCWSTR) lpDeviceName, (LPCWSTR) lpTargetPath); | |
4539 else | |
4540 return DefineDosDeviceA (dwFlags, (LPCSTR) lpDeviceName, (LPCSTR) lpTargetPath); | |
4541 } | |
4542 | |
4543 /* Error if DeleteVolumeMountPoint used: HST: new? -- needs review */ | |
3099 | 4544 |
3100 HANDLE | 4545 HANDLE |
3101 qxeCreateFile (const Extbyte * arg1, DWORD arg2, DWORD arg3, LPSECURITY_ATTRIBUTES arg4, DWORD arg5, DWORD arg6, HANDLE arg7) | 4546 qxeFindFirstChangeNotification (const Extbyte * lpPathName, WINBOOL bWatchSubtree, DWORD dwNotifyFilter) |
3102 { | 4547 { |
3103 if (XEUNICODE_P) | 4548 if (XEUNICODE_P) |
3104 return CreateFileW ((LPCWSTR) arg1, arg2, arg3, arg4, arg5, arg6, arg7); | 4549 return FindFirstChangeNotificationW ((LPCWSTR) lpPathName, bWatchSubtree, dwNotifyFilter); |
3105 else | 4550 else |
3106 return CreateFileA ((LPCSTR) arg1, arg2, arg3, arg4, arg5, arg6, arg7); | 4551 return FindFirstChangeNotificationA ((LPCSTR) lpPathName, bWatchSubtree, dwNotifyFilter); |
3107 } | 4552 } |
3108 | 4553 |
3109 HANDLE | 4554 /* Error if FindFirstFile used: HST: new? -- needs review */ |
3110 qxeCreateFileMapping (HANDLE arg1, LPSECURITY_ATTRIBUTES arg2, DWORD arg3, DWORD arg4, DWORD arg5, const Extbyte * arg6) | 4555 |
3111 { | 4556 /* Error if FindFirstVolume used: HST: new? -- needs review */ |
3112 if (XEUNICODE_P) | 4557 |
3113 return CreateFileMappingW (arg1, arg2, arg3, arg4, arg5, (LPCWSTR) arg6); | 4558 /* Error if FindNextVolume used: HST: new? -- needs review */ |
3114 else | 4559 |
3115 return CreateFileMappingA (arg1, arg2, arg3, arg4, arg5, (LPCSTR) arg6); | 4560 WINBOOL |
3116 } | 4561 qxeGetDiskFreeSpace (const Extbyte * lpRootPathName, LPDWORD lpSectorsPerCluster, LPDWORD lpBytesPerSector, LPDWORD lpNumberOfFreeClusters, LPDWORD lpTotalNumberOfClusters) |
3117 | 4562 { |
3118 /* Error if CreateHardLink used: NT 5.0+ only */ | 4563 if (XEUNICODE_P) |
3119 | 4564 return GetDiskFreeSpaceW ((LPCWSTR) lpRootPathName, lpSectorsPerCluster, lpBytesPerSector, lpNumberOfFreeClusters, lpTotalNumberOfClusters); |
3120 /* Error if CreateJobObject used: NT 5.0+ only */ | 4565 else |
3121 | 4566 return GetDiskFreeSpaceA ((LPCSTR) lpRootPathName, lpSectorsPerCluster, lpBytesPerSector, lpNumberOfFreeClusters, lpTotalNumberOfClusters); |
3122 HANDLE | |
3123 qxeCreateMailslot (const Extbyte * arg1, DWORD arg2, DWORD arg3, LPSECURITY_ATTRIBUTES arg4) | |
3124 { | |
3125 if (XEUNICODE_P) | |
3126 return CreateMailslotW ((LPCWSTR) arg1, arg2, arg3, arg4); | |
3127 else | |
3128 return CreateMailslotA ((LPCSTR) arg1, arg2, arg3, arg4); | |
3129 } | |
3130 | |
3131 HANDLE | |
3132 qxeCreateMutex (LPSECURITY_ATTRIBUTES arg1, BOOL arg2, const Extbyte * arg3) | |
3133 { | |
3134 if (XEUNICODE_P) | |
3135 return CreateMutexW (arg1, arg2, (LPCWSTR) arg3); | |
3136 else | |
3137 return CreateMutexA (arg1, arg2, (LPCSTR) arg3); | |
3138 } | |
3139 | |
3140 HANDLE | |
3141 qxeCreateNamedPipe (const Extbyte * arg1, DWORD arg2, DWORD arg3, DWORD arg4, DWORD arg5, DWORD arg6, DWORD arg7, LPSECURITY_ATTRIBUTES arg8) | |
3142 { | |
3143 if (XEUNICODE_P) | |
3144 return CreateNamedPipeW ((LPCWSTR) arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); | |
3145 else | |
3146 return CreateNamedPipeA ((LPCSTR) arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); | |
3147 } | |
3148 | |
3149 BOOL | |
3150 qxeCreateProcess (const Extbyte * arg1, Extbyte * arg2, LPSECURITY_ATTRIBUTES arg3, LPSECURITY_ATTRIBUTES arg4, BOOL arg5, DWORD arg6, PVOID arg7, const Extbyte * arg8, LPSTARTUPINFOW arg9, LPPROCESS_INFORMATION arg10) | |
3151 { | |
3152 if (XEUNICODE_P) | |
3153 return CreateProcessW ((LPCWSTR) arg1, (LPWSTR) arg2, arg3, arg4, arg5, arg6, arg7, (LPCWSTR) arg8, arg9, arg10); | |
3154 else | |
3155 return CreateProcessA ((LPCSTR) arg1, (LPSTR) arg2, arg3, arg4, arg5, arg6, arg7, (LPCSTR) arg8, (LPSTARTUPINFOA) arg9, arg10); | |
3156 } | |
3157 | |
3158 BOOL | |
3159 qxeCreateProcessAsUser (HANDLE arg1, const Extbyte * arg2, Extbyte * arg3, LPSECURITY_ATTRIBUTES arg4, LPSECURITY_ATTRIBUTES arg5, BOOL arg6, DWORD arg7, PVOID arg8, const Extbyte * arg9, LPSTARTUPINFOW arg10, LPPROCESS_INFORMATION arg11) | |
3160 { | |
3161 if (XEUNICODE_P) | |
3162 return CreateProcessAsUserW (arg1, (LPCWSTR) arg2, (LPWSTR) arg3, arg4, arg5, arg6, arg7, arg8, (LPCWSTR) arg9, arg10, arg11); | |
3163 else | |
3164 return CreateProcessAsUserA (arg1, (LPCSTR) arg2, (LPSTR) arg3, arg4, arg5, arg6, arg7, arg8, (LPCSTR) arg9, (LPSTARTUPINFOA) arg10, arg11); | |
3165 } | |
3166 | |
3167 /* Error if CreateProcessWithLogon used: Function needs review to determine how to handle it */ | |
3168 | |
3169 HANDLE | |
3170 qxeCreateSemaphore (LPSECURITY_ATTRIBUTES arg1, LONG arg2, LONG arg3, const Extbyte * arg4) | |
3171 { | |
3172 if (XEUNICODE_P) | |
3173 return CreateSemaphoreW (arg1, arg2, arg3, (LPCWSTR) arg4); | |
3174 else | |
3175 return CreateSemaphoreA (arg1, arg2, arg3, (LPCSTR) arg4); | |
3176 } | |
3177 | |
3178 HANDLE | |
3179 qxeCreateWaitableTimer (LPSECURITY_ATTRIBUTES arg1, BOOL arg2, const Extbyte * arg3) | |
3180 { | |
3181 if (XEUNICODE_P) | |
3182 return CreateWaitableTimerW (arg1, arg2, (LPCWSTR) arg3); | |
3183 else | |
3184 return CreateWaitableTimerA (arg1, arg2, (LPCSTR) arg3); | |
3185 } | |
3186 | |
3187 BOOL | |
3188 qxeDefineDosDevice (DWORD arg1, const Extbyte * arg2, const Extbyte * arg3) | |
3189 { | |
3190 if (XEUNICODE_P) | |
3191 return DefineDosDeviceW (arg1, (LPCWSTR) arg2, (LPCWSTR) arg3); | |
3192 else | |
3193 return DefineDosDeviceA (arg1, (LPCSTR) arg2, (LPCSTR) arg3); | |
3194 } | |
3195 | |
3196 BOOL | |
3197 qxeDeleteFile (const Extbyte * arg1) | |
3198 { | |
3199 if (XEUNICODE_P) | |
3200 return DeleteFileW ((LPCWSTR) arg1); | |
3201 else | |
3202 return DeleteFileA ((LPCSTR) arg1); | |
3203 } | |
3204 | |
3205 /* Error if DeleteVolumeMountPoint used: Function needs review to determine how to handle it */ | |
3206 | |
3207 /* Error if DnsHostnameToComputerName used: Function needs review to determine how to handle it */ | |
3208 | |
3209 #if !defined (CYGWIN_HEADERS) | |
3210 | |
3211 /* Error if EncryptFile used: Win2K+ only */ | |
3212 | |
3213 #endif /* !defined (CYGWIN_HEADERS) */ | |
3214 | |
3215 BOOL | |
3216 qxeEndUpdateResource (HANDLE arg1, BOOL arg2) | |
3217 { | |
3218 if (XEUNICODE_P) | |
3219 return EndUpdateResourceW (arg1, arg2); | |
3220 else | |
3221 return EndUpdateResourceA (arg1, arg2); | |
3222 } | |
3223 | |
3224 /* Skipping EnumResourceLanguages because different prototypes in VC6 and VC7 */ | |
3225 | |
3226 /* Skipping EnumResourceNames because different prototypes in VC6 and VC7 */ | |
3227 | |
3228 /* Skipping EnumResourceTypes because different prototypes in VC6 and VC7 */ | |
3229 | |
3230 DWORD | |
3231 qxeExpandEnvironmentStrings (const Extbyte * arg1, Extbyte * arg2, DWORD arg3) | |
3232 { | |
3233 if (XEUNICODE_P) | |
3234 return ExpandEnvironmentStringsW ((LPCWSTR) arg1, (LPWSTR) arg2, arg3); | |
3235 else | |
3236 return ExpandEnvironmentStringsA ((LPCSTR) arg1, (LPSTR) arg2, arg3); | |
3237 } | |
3238 | |
3239 void | |
3240 qxeFatalAppExit (UINT arg1, const Extbyte * arg2) | |
3241 { | |
3242 if (XEUNICODE_P) | |
3243 FatalAppExitW (arg1, (LPCWSTR) arg2); | |
3244 else | |
3245 FatalAppExitA (arg1, (LPCSTR) arg2); | |
3246 } | |
3247 | |
3248 /* Error if FileEncryptionStatus used: Function needs review to determine how to handle it */ | |
3249 | |
3250 /* Error if FindActCtxSectionString used: Function needs review to determine how to handle it */ | |
3251 | |
3252 ATOM | |
3253 qxeFindAtom (const Extbyte * arg1) | |
3254 { | |
3255 if (XEUNICODE_P) | |
3256 return FindAtomW ((LPCWSTR) arg1); | |
3257 else | |
3258 return FindAtomA ((LPCSTR) arg1); | |
3259 } | |
3260 | |
3261 HANDLE | |
3262 qxeFindFirstChangeNotification (const Extbyte * arg1, BOOL arg2, DWORD arg3) | |
3263 { | |
3264 if (XEUNICODE_P) | |
3265 return FindFirstChangeNotificationW ((LPCWSTR) arg1, arg2, arg3); | |
3266 else | |
3267 return FindFirstChangeNotificationA ((LPCSTR) arg1, arg2, arg3); | |
3268 } | |
3269 | |
3270 /* Skipping FindFirstFile because split-sized LPWIN32_FIND_DATA */ | |
3271 | |
3272 /* Error if FindFirstFileEx used: split-sized LPWIN32_FIND_DATA; not used, NT 4.0+ only */ | |
3273 | |
3274 /* Error if FindFirstVolume used: Function needs review to determine how to handle it */ | |
3275 | |
3276 /* Error if FindFirstVolumeMountPoint used: Function needs review to determine how to handle it */ | |
3277 | |
3278 /* Skipping FindNextFile because split-sized LPWIN32_FIND_DATA */ | |
3279 | |
3280 /* Error if FindNextVolume used: Function needs review to determine how to handle it */ | |
3281 | |
3282 /* Error if FindNextVolumeMountPoint used: Function needs review to determine how to handle it */ | |
3283 | |
3284 HRSRC | |
3285 qxeFindResource (HINSTANCE arg1, const Extbyte * arg2, const Extbyte * arg3) | |
3286 { | |
3287 if (XEUNICODE_P) | |
3288 return FindResourceW (arg1, (LPCWSTR) arg2, (LPCWSTR) arg3); | |
3289 else | |
3290 return FindResourceA (arg1, (LPCSTR) arg2, (LPCSTR) arg3); | |
3291 } | |
3292 | |
3293 HRSRC | |
3294 qxeFindResourceEx (HINSTANCE arg1, const Extbyte * arg2, const Extbyte * arg3, WORD arg4) | |
3295 { | |
3296 if (XEUNICODE_P) | |
3297 return FindResourceExW (arg1, (LPCWSTR) arg2, (LPCWSTR) arg3, arg4); | |
3298 else | |
3299 return FindResourceExA (arg1, (LPCSTR) arg2, (LPCSTR) arg3, arg4); | |
3300 } | |
3301 | |
3302 /* Error if GetFirmwareEnvironmentVariable used: Function needs review to determine how to handle it */ | |
3303 | |
3304 DWORD | |
3305 qxeFormatMessage (DWORD arg1, PCVOID arg2, DWORD arg3, DWORD arg4, Extbyte * arg5, DWORD arg6, va_list* arg7) | |
3306 { | |
3307 if (XEUNICODE_P) | |
3308 return FormatMessageW (arg1, arg2, arg3, arg4, (LPWSTR) arg5, arg6, arg7); | |
3309 else | |
3310 return FormatMessageA (arg1, arg2, arg3, arg4, (LPSTR) arg5, arg6, arg7); | |
3311 } | |
3312 | |
3313 BOOL | |
3314 qxeFreeEnvironmentStrings (Extbyte * arg1) | |
3315 { | |
3316 if (XEUNICODE_P) | |
3317 return FreeEnvironmentStringsW ((LPWSTR) arg1); | |
3318 else | |
3319 return FreeEnvironmentStringsA ((LPSTR) arg1); | |
3320 } | 4567 } |
3321 | 4568 |
3322 UINT | 4569 UINT |
3323 qxeGetAtomName (ATOM arg1, Extbyte * arg2, int arg3) | 4570 qxeGetDriveType (const Extbyte * lpRootPathName) |
3324 { | 4571 { |
3325 if (XEUNICODE_P) | 4572 if (XEUNICODE_P) |
3326 return GetAtomNameW (arg1, (LPWSTR) arg2, arg3); | 4573 return GetDriveTypeW ((LPCWSTR) lpRootPathName); |
3327 else | 4574 else |
3328 return GetAtomNameA (arg1, (LPSTR) arg2, arg3); | 4575 return GetDriveTypeA ((LPCSTR) lpRootPathName); |
3329 } | 4576 } |
3330 | 4577 |
3331 BOOL | 4578 DWORD |
3332 qxeGetBinaryType (const Extbyte * arg1, PDWORD arg2) | 4579 qxeGetFileAttributes (const Extbyte * lpFileName) |
3333 { | 4580 { |
3334 if (XEUNICODE_P) | 4581 if (XEUNICODE_P) |
3335 return GetBinaryTypeW ((LPCWSTR) arg1, arg2); | 4582 return GetFileAttributesW ((LPCWSTR) lpFileName); |
3336 else | 4583 else |
3337 return GetBinaryTypeA ((LPCSTR) arg1, arg2); | 4584 return GetFileAttributesA ((LPCSTR) lpFileName); |
3338 } | 4585 } |
3339 | 4586 |
3340 Extbyte * | 4587 DWORD |
3341 qxeGetCommandLine (void) | 4588 qxeGetFullPathName (const Extbyte * lpFileName, DWORD nBufferLength, Extbyte * lpBuffer, Extbyte * * lpFilePart) |
3342 { | 4589 { |
3343 if (XEUNICODE_P) | 4590 if (XEUNICODE_P) |
3344 return (Extbyte *) GetCommandLineW (); | 4591 return GetFullPathNameW ((LPCWSTR) lpFileName, nBufferLength, (LPWSTR) lpBuffer, (LPWSTR *) lpFilePart); |
3345 else | 4592 else |
3346 return (Extbyte *) GetCommandLineA (); | 4593 return GetFullPathNameA ((LPCSTR) lpFileName, nBufferLength, (LPSTR) lpBuffer, (LPSTR *) lpFilePart); |
3347 } | 4594 } |
3348 | 4595 |
3349 DWORD | 4596 DWORD |
3350 qxeGetCompressedFileSize (const Extbyte * arg1, PDWORD arg2) | 4597 qxeGetLogicalDriveStrings (DWORD nBufferLength, Extbyte * lpBuffer) |
3351 { | 4598 { |
3352 if (XEUNICODE_P) | 4599 if (XEUNICODE_P) |
3353 return GetCompressedFileSizeW ((LPCWSTR) arg1, arg2); | 4600 return GetLogicalDriveStringsW (nBufferLength, (LPWSTR) lpBuffer); |
3354 else | 4601 else |
3355 return GetCompressedFileSizeA ((LPCSTR) arg1, arg2); | 4602 return GetLogicalDriveStringsA (nBufferLength, (LPSTR) lpBuffer); |
3356 } | 4603 } |
3357 | 4604 |
3358 BOOL | 4605 /* Error if GetLongPathName used: HST: new? -- needs review */ |
3359 qxeGetComputerName (Extbyte * arg1, PDWORD arg2) | 4606 |
3360 { | 4607 DWORD |
3361 if (XEUNICODE_P) | 4608 qxeGetShortPathName (const Extbyte * lpszLongPath, Extbyte * lpszShortPath, DWORD cchBuffer) |
3362 return GetComputerNameW ((LPWSTR) arg1, arg2); | 4609 { |
3363 else | 4610 if (XEUNICODE_P) |
3364 return GetComputerNameA ((LPSTR) arg1, arg2); | 4611 return GetShortPathNameW ((LPCWSTR) lpszLongPath, (LPWSTR) lpszShortPath, cchBuffer); |
3365 } | 4612 else |
3366 | 4613 return GetShortPathNameA ((LPCSTR) lpszLongPath, (LPSTR) lpszShortPath, cchBuffer); |
3367 /* Error if GetComputerNameEx used: Function needs review to determine how to handle it */ | 4614 } |
3368 | |
3369 DWORD | |
3370 qxeGetCurrentDirectory (DWORD arg1, Extbyte * arg2) | |
3371 { | |
3372 if (XEUNICODE_P) | |
3373 return GetCurrentDirectoryW (arg1, (LPWSTR) arg2); | |
3374 else | |
3375 return GetCurrentDirectoryA (arg1, (LPSTR) arg2); | |
3376 } | |
3377 | |
3378 /* Error if GetCurrentHwProfile used: split-sized LPHW_PROFILE_INFO; NT 4.0+ only */ | |
3379 | |
3380 BOOL | |
3381 qxeGetDefaultCommConfig (const Extbyte * arg1, LPCOMMCONFIG arg2, PDWORD arg3) | |
3382 { | |
3383 if (XEUNICODE_P) | |
3384 return GetDefaultCommConfigW ((LPCWSTR) arg1, arg2, arg3); | |
3385 else | |
3386 return GetDefaultCommConfigA ((LPCSTR) arg1, arg2, arg3); | |
3387 } | |
3388 | |
3389 BOOL | |
3390 qxeGetDiskFreeSpace (const Extbyte * arg1, PDWORD arg2, PDWORD arg3, PDWORD arg4, PDWORD arg5) | |
3391 { | |
3392 if (XEUNICODE_P) | |
3393 return GetDiskFreeSpaceW ((LPCWSTR) arg1, arg2, arg3, arg4, arg5); | |
3394 else | |
3395 return GetDiskFreeSpaceA ((LPCSTR) arg1, arg2, arg3, arg4, arg5); | |
3396 } | |
3397 | |
3398 BOOL | |
3399 qxeGetDiskFreeSpaceEx (const Extbyte * arg1, PULARGE_INTEGER arg2, PULARGE_INTEGER arg3, PULARGE_INTEGER arg4) | |
3400 { | |
3401 if (XEUNICODE_P) | |
3402 return GetDiskFreeSpaceExW ((LPCWSTR) arg1, arg2, arg3, arg4); | |
3403 else | |
3404 return GetDiskFreeSpaceExA ((LPCSTR) arg1, arg2, arg3, arg4); | |
3405 } | |
3406 | |
3407 /* Error if GetDllDirectory used: Function needs review to determine how to handle it */ | |
3408 | 4615 |
3409 UINT | 4616 UINT |
3410 qxeGetDriveType (const Extbyte * arg1) | 4617 qxeGetTempFileName (const Extbyte * lpPathName, const Extbyte * lpPrefixString, UINT uUnique, Extbyte * lpTempFileName) |
3411 { | 4618 { |
3412 if (XEUNICODE_P) | 4619 if (XEUNICODE_P) |
3413 return GetDriveTypeW ((LPCWSTR) arg1); | 4620 return GetTempFileNameW ((LPCWSTR) lpPathName, (LPCWSTR) lpPrefixString, uUnique, (LPWSTR) lpTempFileName); |
3414 else | 4621 else |
3415 return GetDriveTypeA ((LPCSTR) arg1); | 4622 return GetTempFileNameA ((LPCSTR) lpPathName, (LPCSTR) lpPrefixString, uUnique, (LPSTR) lpTempFileName); |
3416 } | 4623 } |
3417 | 4624 |
3418 DWORD | 4625 WINBOOL |
3419 qxeGetEnvironmentVariable (const Extbyte * arg1, Extbyte * arg2, DWORD arg3) | 4626 qxeGetVolumeInformation (const Extbyte * lpRootPathName, Extbyte * lpVolumeNameBuffer, DWORD nVolumeNameSize, LPDWORD lpVolumeSerialNumber, LPDWORD lpMaximumComponentLength, LPDWORD lpFileSystemFlags, Extbyte * lpFileSystemNameBuffer, DWORD nFileSystemNameSize) |
3420 { | 4627 { |
3421 if (XEUNICODE_P) | 4628 if (XEUNICODE_P) |
3422 return GetEnvironmentVariableW ((LPCWSTR) arg1, (LPWSTR) arg2, arg3); | 4629 return GetVolumeInformationW ((LPCWSTR) lpRootPathName, (LPWSTR) lpVolumeNameBuffer, nVolumeNameSize, lpVolumeSerialNumber, lpMaximumComponentLength, lpFileSystemFlags, (LPWSTR) lpFileSystemNameBuffer, nFileSystemNameSize); |
3423 else | 4630 else |
3424 return GetEnvironmentVariableA ((LPCSTR) arg1, (LPSTR) arg2, arg3); | 4631 return GetVolumeInformationA ((LPCSTR) lpRootPathName, (LPSTR) lpVolumeNameBuffer, nVolumeNameSize, lpVolumeSerialNumber, lpMaximumComponentLength, lpFileSystemFlags, (LPSTR) lpFileSystemNameBuffer, nFileSystemNameSize); |
3425 } | 4632 } |
3426 | 4633 |
3427 DWORD | 4634 /* Error if GetVolumePathName used: HST: new? -- needs review */ |
3428 qxeGetFileAttributes (const Extbyte * arg1) | 4635 |
3429 { | 4636 DWORD |
3430 if (XEUNICODE_P) | 4637 qxeQueryDosDevice (const Extbyte * lpDeviceName, Extbyte * lpTargetPath, DWORD ucchMax) |
3431 return GetFileAttributesW ((LPCWSTR) arg1); | 4638 { |
3432 else | 4639 if (XEUNICODE_P) |
3433 return GetFileAttributesA ((LPCSTR) arg1); | 4640 return QueryDosDeviceW ((LPCWSTR) lpDeviceName, (LPWSTR) lpTargetPath, ucchMax); |
3434 } | 4641 else |
3435 | 4642 return QueryDosDeviceA ((LPCSTR) lpDeviceName, (LPSTR) lpTargetPath, ucchMax); |
3436 BOOL | 4643 } |
3437 qxeGetFileAttributesEx (const Extbyte * arg1, GET_FILEEX_INFO_LEVELS arg2, PVOID arg3) | 4644 |
3438 { | 4645 DWORD |
3439 if (XEUNICODE_P) | 4646 qxeGetTempPath (DWORD nBufferLength, Extbyte * lpBuffer) |
3440 return GetFileAttributesExW ((LPCWSTR) arg1, arg2, arg3); | 4647 { |
3441 else | 4648 if (XEUNICODE_P) |
3442 return GetFileAttributesExA ((LPCSTR) arg1, arg2, arg3); | 4649 return GetTempPathW (nBufferLength, (LPWSTR) lpBuffer); |
3443 } | 4650 else |
3444 | 4651 return GetTempPathA (nBufferLength, (LPSTR) lpBuffer); |
3445 BOOL | 4652 } |
3446 qxeGetFileSecurity (const Extbyte * arg1, SECURITY_INFORMATION arg2, PSECURITY_DESCRIPTOR arg3, DWORD arg4, PDWORD arg5) | 4653 |
3447 { | 4654 /* Error if GetVolumeNameForVolumeMountPoint used: HST: new? -- needs review */ |
3448 if (XEUNICODE_P) | 4655 |
3449 return GetFileSecurityW ((LPCWSTR) arg1, arg2, arg3, arg4, arg5); | 4656 /* Error if GetVolumePathNamesForVolumeName used: HST: new? -- needs review */ |
3450 else | 4657 |
3451 return GetFileSecurityA ((LPCSTR) arg1, arg2, arg3, arg4, arg5); | 4658 /* Error if GetFinalPathNameByHandle used: HST: new? -- needs review */ |
3452 } | 4659 |
3453 | 4660 /* Error if GetVolumeInformationByHandle used: HST: new? -- needs review */ |
3454 DWORD | 4661 |
3455 qxeGetFullPathName (const Extbyte * arg1, DWORD arg2, Extbyte * arg3, Extbyte ** arg4) | 4662 WINBOOL |
3456 { | 4663 qxeCreateDirectory (const Extbyte * lpPathName, LPSECURITY_ATTRIBUTES lpSecurityAttributes) |
3457 if (XEUNICODE_P) | 4664 { |
3458 return GetFullPathNameW ((LPCWSTR) arg1, arg2, (LPWSTR) arg3, (LPWSTR*) arg4); | 4665 if (XEUNICODE_P) |
3459 else | 4666 return CreateDirectoryW ((LPCWSTR) lpPathName, lpSecurityAttributes); |
3460 return GetFullPathNameA ((LPCSTR) arg1, arg2, (LPSTR) arg3, (LPSTR*) arg4); | 4667 else |
3461 } | 4668 return CreateDirectoryA ((LPCSTR) lpPathName, lpSecurityAttributes); |
3462 | 4669 } |
3463 DWORD | 4670 |
3464 qxeGetLogicalDriveStrings (DWORD arg1, Extbyte * arg2) | 4671 WINBOOL |
3465 { | 4672 qxeDeleteFile (const Extbyte * lpFileName) |
3466 if (XEUNICODE_P) | 4673 { |
3467 return GetLogicalDriveStringsW (arg1, (LPWSTR) arg2); | 4674 if (XEUNICODE_P) |
3468 else | 4675 return DeleteFileW ((LPCWSTR) lpFileName); |
3469 return GetLogicalDriveStringsA (arg1, (LPSTR) arg2); | 4676 else |
3470 } | 4677 return DeleteFileA ((LPCSTR) lpFileName); |
3471 | 4678 } |
3472 /* Error if GetLongPathName used: Win98/2K+ only */ | 4679 |
3473 | 4680 /* Error if FindFirstFileEx used: HST: new? -- needs review */ |
3474 DWORD | 4681 |
3475 qxeGetModuleFileName (HINSTANCE arg1, Extbyte * arg2, DWORD arg3) | 4682 /* Error if FindNextFile used: HST: new? -- needs review */ |
3476 { | 4683 |
3477 if (XEUNICODE_P) | 4684 WINBOOL |
3478 return GetModuleFileNameW (arg1, (LPWSTR) arg2, arg3); | 4685 qxeGetDiskFreeSpaceEx (const Extbyte * lpDirectoryName, PULARGE_INTEGER lpFreeBytesAvailableToCaller, PULARGE_INTEGER lpTotalNumberOfBytes, PULARGE_INTEGER lpTotalNumberOfFreeBytes) |
3479 else | 4686 { |
3480 return GetModuleFileNameA (arg1, (LPSTR) arg2, arg3); | 4687 if (XEUNICODE_P) |
3481 } | 4688 return GetDiskFreeSpaceExW ((LPCWSTR) lpDirectoryName, lpFreeBytesAvailableToCaller, lpTotalNumberOfBytes, lpTotalNumberOfFreeBytes); |
3482 | 4689 else |
3483 HMODULE | 4690 return GetDiskFreeSpaceExA ((LPCSTR) lpDirectoryName, lpFreeBytesAvailableToCaller, lpTotalNumberOfBytes, lpTotalNumberOfFreeBytes); |
3484 qxeGetModuleHandle (const Extbyte * arg1) | 4691 } |
3485 { | 4692 |
3486 if (XEUNICODE_P) | 4693 WINBOOL |
3487 return GetModuleHandleW ((LPCWSTR) arg1); | 4694 qxeGetFileAttributesEx (const Extbyte * lpFileName, GET_FILEEX_INFO_LEVELS fInfoLevelId, LPVOID lpFileInformation) |
3488 else | 4695 { |
3489 return GetModuleHandleA ((LPCSTR) arg1); | 4696 if (XEUNICODE_P) |
3490 } | 4697 return GetFileAttributesExW ((LPCWSTR) lpFileName, fInfoLevelId, lpFileInformation); |
3491 | 4698 else |
3492 /* Error if GetModuleHandleEx used: Function needs review to determine how to handle it */ | 4699 return GetFileAttributesExA ((LPCSTR) lpFileName, fInfoLevelId, lpFileInformation); |
3493 | 4700 } |
3494 BOOL | 4701 |
3495 qxeGetNamedPipeHandleState (HANDLE arg1, PDWORD arg2, PDWORD arg3, PDWORD arg4, PDWORD arg5, Extbyte * arg6, DWORD arg7) | 4702 WINBOOL |
3496 { | 4703 qxeRemoveDirectory (const Extbyte * lpPathName) |
3497 if (XEUNICODE_P) | 4704 { |
3498 return GetNamedPipeHandleStateW (arg1, arg2, arg3, arg4, arg5, (LPWSTR) arg6, arg7); | 4705 if (XEUNICODE_P) |
3499 else | 4706 return RemoveDirectoryW ((LPCWSTR) lpPathName); |
3500 return GetNamedPipeHandleStateA (arg1, arg2, arg3, arg4, arg5, (LPSTR) arg6, arg7); | 4707 else |
3501 } | 4708 return RemoveDirectoryA ((LPCSTR) lpPathName); |
3502 | 4709 } |
3503 UINT | 4710 |
3504 qxeGetPrivateProfileInt (const Extbyte * arg1, const Extbyte * arg2, INT arg3, const Extbyte * arg4) | 4711 WINBOOL |
3505 { | 4712 qxeSetFileAttributes (const Extbyte * lpFileName, DWORD dwFileAttributes) |
3506 if (XEUNICODE_P) | 4713 { |
3507 return GetPrivateProfileIntW ((LPCWSTR) arg1, (LPCWSTR) arg2, arg3, (LPCWSTR) arg4); | 4714 if (XEUNICODE_P) |
3508 else | 4715 return SetFileAttributesW ((LPCWSTR) lpFileName, dwFileAttributes); |
3509 return GetPrivateProfileIntA ((LPCSTR) arg1, (LPCSTR) arg2, arg3, (LPCSTR) arg4); | 4716 else |
3510 } | 4717 return SetFileAttributesA ((LPCSTR) lpFileName, dwFileAttributes); |
3511 | |
3512 DWORD | |
3513 qxeGetPrivateProfileSection (const Extbyte * arg1, Extbyte * arg2, DWORD arg3, const Extbyte * arg4) | |
3514 { | |
3515 if (XEUNICODE_P) | |
3516 return GetPrivateProfileSectionW ((LPCWSTR) arg1, (LPWSTR) arg2, arg3, (LPCWSTR) arg4); | |
3517 else | |
3518 return GetPrivateProfileSectionA ((LPCSTR) arg1, (LPSTR) arg2, arg3, (LPCSTR) arg4); | |
3519 } | |
3520 | |
3521 DWORD | |
3522 qxeGetPrivateProfileSectionNames (Extbyte * arg1, DWORD arg2, const Extbyte * arg3) | |
3523 { | |
3524 if (XEUNICODE_P) | |
3525 return GetPrivateProfileSectionNamesW ((LPWSTR) arg1, arg2, (LPCWSTR) arg3); | |
3526 else | |
3527 return GetPrivateProfileSectionNamesA ((LPSTR) arg1, arg2, (LPCSTR) arg3); | |
3528 } | |
3529 | |
3530 DWORD | |
3531 qxeGetPrivateProfileString (const Extbyte * arg1, const Extbyte * arg2, const Extbyte * arg3, Extbyte * arg4, DWORD arg5, const Extbyte * arg6) | |
3532 { | |
3533 if (XEUNICODE_P) | |
3534 return GetPrivateProfileStringW ((LPCWSTR) arg1, (LPCWSTR) arg2, (LPCWSTR) arg3, (LPWSTR) arg4, arg5, (LPCWSTR) arg6); | |
3535 else | |
3536 return GetPrivateProfileStringA ((LPCSTR) arg1, (LPCSTR) arg2, (LPCSTR) arg3, (LPSTR) arg4, arg5, (LPCSTR) arg6); | |
3537 } | |
3538 | |
3539 BOOL | |
3540 qxeGetPrivateProfileStruct (const Extbyte * arg1, const Extbyte * arg2, LPVOID arg3, UINT arg4, const Extbyte * arg5) | |
3541 { | |
3542 if (XEUNICODE_P) | |
3543 return GetPrivateProfileStructW ((LPCWSTR) arg1, (LPCWSTR) arg2, arg3, arg4, (LPCWSTR) arg5); | |
3544 else | |
3545 return GetPrivateProfileStructA ((LPCSTR) arg1, (LPCSTR) arg2, arg3, arg4, (LPCSTR) arg5); | |
3546 } | |
3547 | |
3548 UINT | |
3549 qxeGetProfileInt (const Extbyte * arg1, const Extbyte * arg2, INT arg3) | |
3550 { | |
3551 if (XEUNICODE_P) | |
3552 return GetProfileIntW ((LPCWSTR) arg1, (LPCWSTR) arg2, arg3); | |
3553 else | |
3554 return GetProfileIntA ((LPCSTR) arg1, (LPCSTR) arg2, arg3); | |
3555 } | |
3556 | |
3557 DWORD | |
3558 qxeGetProfileSection (const Extbyte * arg1, Extbyte * arg2, DWORD arg3) | |
3559 { | |
3560 if (XEUNICODE_P) | |
3561 return GetProfileSectionW ((LPCWSTR) arg1, (LPWSTR) arg2, arg3); | |
3562 else | |
3563 return GetProfileSectionA ((LPCSTR) arg1, (LPSTR) arg2, arg3); | |
3564 } | |
3565 | |
3566 DWORD | |
3567 qxeGetProfileString (const Extbyte * arg1, const Extbyte * arg2, const Extbyte * arg3, Extbyte * arg4, DWORD arg5) | |
3568 { | |
3569 if (XEUNICODE_P) | |
3570 return GetProfileStringW ((LPCWSTR) arg1, (LPCWSTR) arg2, (LPCWSTR) arg3, (LPWSTR) arg4, arg5); | |
3571 else | |
3572 return GetProfileStringA ((LPCSTR) arg1, (LPCSTR) arg2, (LPCSTR) arg3, (LPSTR) arg4, arg5); | |
3573 } | |
3574 | |
3575 DWORD | |
3576 qxeGetShortPathName (const Extbyte * arg1, Extbyte * arg2, DWORD arg3) | |
3577 { | |
3578 if (XEUNICODE_P) | |
3579 return GetShortPathNameW ((LPCWSTR) arg1, (LPWSTR) arg2, arg3); | |
3580 else | |
3581 return GetShortPathNameA ((LPCSTR) arg1, (LPSTR) arg2, arg3); | |
3582 } | |
3583 | |
3584 VOID | |
3585 qxeGetStartupInfo (LPSTARTUPINFOW arg1) | |
3586 { | |
3587 if (XEUNICODE_P) | |
3588 GetStartupInfoW (arg1); | |
3589 else | |
3590 GetStartupInfoA ((LPSTARTUPINFOA) arg1); | |
3591 } | |
3592 | |
3593 UINT | |
3594 qxeGetSystemDirectory (Extbyte * arg1, UINT arg2) | |
3595 { | |
3596 if (XEUNICODE_P) | |
3597 return GetSystemDirectoryW ((LPWSTR) arg1, arg2); | |
3598 else | |
3599 return GetSystemDirectoryA ((LPSTR) arg1, arg2); | |
3600 } | |
3601 | |
3602 /* Error if GetSystemWindowsDirectory used: Function needs review to determine how to handle it */ | |
3603 | |
3604 /* Error if GetSystemWow64Directory used: Function needs review to determine how to handle it */ | |
3605 | |
3606 UINT | |
3607 qxeGetTempFileName (const Extbyte * arg1, const Extbyte * arg2, UINT arg3, Extbyte * arg4) | |
3608 { | |
3609 if (XEUNICODE_P) | |
3610 return GetTempFileNameW ((LPCWSTR) arg1, (LPCWSTR) arg2, arg3, (LPWSTR) arg4); | |
3611 else | |
3612 return GetTempFileNameA ((LPCSTR) arg1, (LPCSTR) arg2, arg3, (LPSTR) arg4); | |
3613 } | |
3614 | |
3615 DWORD | |
3616 qxeGetTempPath (DWORD arg1, Extbyte * arg2) | |
3617 { | |
3618 if (XEUNICODE_P) | |
3619 return GetTempPathW (arg1, (LPWSTR) arg2); | |
3620 else | |
3621 return GetTempPathA (arg1, (LPSTR) arg2); | |
3622 } | |
3623 | |
3624 BOOL | |
3625 qxeGetUserName (Extbyte * arg1, PDWORD arg2) | |
3626 { | |
3627 if (XEUNICODE_P) | |
3628 return GetUserNameW ((LPWSTR) arg1, arg2); | |
3629 else | |
3630 return GetUserNameA ((LPSTR) arg1, arg2); | |
3631 } | |
3632 | |
3633 /* Error if GetVersionEx used: split-sized LPOSVERSIONINFO */ | |
3634 | |
3635 BOOL | |
3636 qxeGetVolumeInformation (const Extbyte * arg1, Extbyte * arg2, DWORD arg3, PDWORD arg4, PDWORD arg5, PDWORD arg6, Extbyte * arg7, DWORD arg8) | |
3637 { | |
3638 if (XEUNICODE_P) | |
3639 return GetVolumeInformationW ((LPCWSTR) arg1, (LPWSTR) arg2, arg3, arg4, arg5, arg6, (LPWSTR) arg7, arg8); | |
3640 else | |
3641 return GetVolumeInformationA ((LPCSTR) arg1, (LPSTR) arg2, arg3, arg4, arg5, arg6, (LPSTR) arg7, arg8); | |
3642 } | |
3643 | |
3644 /* Error if GetVolumeNameForVolumeMountPoint used: Function needs review to determine how to handle it */ | |
3645 | |
3646 /* Error if GetVolumePathName used: Function needs review to determine how to handle it */ | |
3647 | |
3648 /* Error if GetVolumePathNamesForVolumeName used: Function needs review to determine how to handle it */ | |
3649 | |
3650 UINT | |
3651 qxeGetWindowsDirectory (Extbyte * arg1, UINT arg2) | |
3652 { | |
3653 if (XEUNICODE_P) | |
3654 return GetWindowsDirectoryW ((LPWSTR) arg1, arg2); | |
3655 else | |
3656 return GetWindowsDirectoryA ((LPSTR) arg1, arg2); | |
3657 } | |
3658 | |
3659 ATOM | |
3660 qxeGlobalAddAtom (const Extbyte * arg1) | |
3661 { | |
3662 if (XEUNICODE_P) | |
3663 return GlobalAddAtomW ((LPCWSTR) arg1); | |
3664 else | |
3665 return GlobalAddAtomA ((LPCSTR) arg1); | |
3666 } | |
3667 | |
3668 ATOM | |
3669 qxeGlobalFindAtom (const Extbyte * arg1) | |
3670 { | |
3671 if (XEUNICODE_P) | |
3672 return GlobalFindAtomW ((LPCWSTR) arg1); | |
3673 else | |
3674 return GlobalFindAtomA ((LPCSTR) arg1); | |
3675 } | |
3676 | |
3677 UINT | |
3678 qxeGlobalGetAtomName (ATOM arg1, Extbyte * arg2, int arg3) | |
3679 { | |
3680 if (XEUNICODE_P) | |
3681 return GlobalGetAtomNameW (arg1, (LPWSTR) arg2, arg3); | |
3682 else | |
3683 return GlobalGetAtomNameA (arg1, (LPSTR) arg2, arg3); | |
3684 } | |
3685 | |
3686 BOOL | |
3687 qxeIsBadStringPtr (const Extbyte * arg1, UINT arg2) | |
3688 { | |
3689 if (XEUNICODE_P) | |
3690 return IsBadStringPtrW ((LPCWSTR) arg1, arg2); | |
3691 else | |
3692 return IsBadStringPtrA ((LPCSTR) arg1, arg2); | |
3693 } | |
3694 | |
3695 HINSTANCE | |
3696 qxeLoadLibraryEx (const Extbyte * arg1, HANDLE arg2, DWORD arg3) | |
3697 { | |
3698 if (XEUNICODE_P) | |
3699 return LoadLibraryExW ((LPCWSTR) arg1, arg2, arg3); | |
3700 else | |
3701 return LoadLibraryExA ((LPCSTR) arg1, arg2, arg3); | |
3702 } | |
3703 | |
3704 HINSTANCE | |
3705 qxeLoadLibrary (const Extbyte * arg1) | |
3706 { | |
3707 if (XEUNICODE_P) | |
3708 return LoadLibraryW ((LPCWSTR) arg1); | |
3709 else | |
3710 return LoadLibraryA ((LPCSTR) arg1); | |
3711 } | |
3712 | |
3713 BOOL | |
3714 qxeLogonUser (Extbyte * arg1, Extbyte * arg2, Extbyte * arg3, DWORD arg4, DWORD arg5, PHANDLE arg6) | |
3715 { | |
3716 if (XEUNICODE_P) | |
3717 return LogonUserW ((LPWSTR) arg1, (LPWSTR) arg2, (LPWSTR) arg3, arg4, arg5, arg6); | |
3718 else | |
3719 return LogonUserA ((LPSTR) arg1, (LPSTR) arg2, (LPSTR) arg3, arg4, arg5, arg6); | |
3720 } | |
3721 | |
3722 BOOL | |
3723 qxeLookupAccountName (const Extbyte * arg1, const Extbyte * arg2, PSID arg3, PDWORD arg4, Extbyte * arg5, PDWORD arg6, PSID_NAME_USE arg7) | |
3724 { | |
3725 if (XEUNICODE_P) | |
3726 return LookupAccountNameW ((LPCWSTR) arg1, (LPCWSTR) arg2, arg3, arg4, (LPWSTR) arg5, arg6, arg7); | |
3727 else | |
3728 return LookupAccountNameA ((LPCSTR) arg1, (LPCSTR) arg2, arg3, arg4, (LPSTR) arg5, arg6, arg7); | |
3729 } | |
3730 | |
3731 BOOL | |
3732 qxeLookupAccountSid (const Extbyte * arg1, PSID arg2, Extbyte * arg3, PDWORD arg4, Extbyte * arg5, PDWORD arg6, PSID_NAME_USE arg7) | |
3733 { | |
3734 if (XEUNICODE_P) | |
3735 return LookupAccountSidW ((LPCWSTR) arg1, arg2, (LPWSTR) arg3, arg4, (LPWSTR) arg5, arg6, arg7); | |
3736 else | |
3737 return LookupAccountSidA ((LPCSTR) arg1, arg2, (LPSTR) arg3, arg4, (LPSTR) arg5, arg6, arg7); | |
3738 } | |
3739 | |
3740 BOOL | |
3741 qxeLookupPrivilegeDisplayName (const Extbyte * arg1, const Extbyte * arg2, Extbyte * arg3, PDWORD arg4, PDWORD arg5) | |
3742 { | |
3743 if (XEUNICODE_P) | |
3744 return LookupPrivilegeDisplayNameW ((LPCWSTR) arg1, (LPCWSTR) arg2, (LPWSTR) arg3, arg4, arg5); | |
3745 else | |
3746 return LookupPrivilegeDisplayNameA ((LPCSTR) arg1, (LPCSTR) arg2, (LPSTR) arg3, arg4, arg5); | |
3747 } | |
3748 | |
3749 BOOL | |
3750 qxeLookupPrivilegeName (const Extbyte * arg1, PLUID arg2, Extbyte * arg3, PDWORD arg4) | |
3751 { | |
3752 if (XEUNICODE_P) | |
3753 return LookupPrivilegeNameW ((LPCWSTR) arg1, arg2, (LPWSTR) arg3, arg4); | |
3754 else | |
3755 return LookupPrivilegeNameA ((LPCSTR) arg1, arg2, (LPSTR) arg3, arg4); | |
3756 } | |
3757 | |
3758 BOOL | |
3759 qxeLookupPrivilegeValue (const Extbyte * arg1, const Extbyte * arg2, PLUID arg3) | |
3760 { | |
3761 if (XEUNICODE_P) | |
3762 return LookupPrivilegeValueW ((LPCWSTR) arg1, (LPCWSTR) arg2, arg3); | |
3763 else | |
3764 return LookupPrivilegeValueA ((LPCSTR) arg1, (LPCSTR) arg2, arg3); | |
3765 } | |
3766 | |
3767 Extbyte * | |
3768 qxelstrcat (Extbyte * arg1, const Extbyte * arg2) | |
3769 { | |
3770 if (XEUNICODE_P) | |
3771 return (Extbyte *) lstrcatW ((LPWSTR) arg1, (LPCWSTR) arg2); | |
3772 else | |
3773 return (Extbyte *) lstrcatA ((LPSTR) arg1, (LPCSTR) arg2); | |
3774 } | |
3775 | |
3776 int | |
3777 qxelstrcmpi (const Extbyte * arg1, const Extbyte * arg2) | |
3778 { | |
3779 if (XEUNICODE_P) | |
3780 return lstrcmpiW ((LPCWSTR) arg1, (LPCWSTR) arg2); | |
3781 else | |
3782 return lstrcmpiA ((LPCSTR) arg1, (LPCSTR) arg2); | |
3783 } | |
3784 | |
3785 int | |
3786 qxelstrcmp (const Extbyte * arg1, const Extbyte * arg2) | |
3787 { | |
3788 if (XEUNICODE_P) | |
3789 return lstrcmpW ((LPCWSTR) arg1, (LPCWSTR) arg2); | |
3790 else | |
3791 return lstrcmpA ((LPCSTR) arg1, (LPCSTR) arg2); | |
3792 } | |
3793 | |
3794 Extbyte * | |
3795 qxelstrcpyn (Extbyte * arg1, const Extbyte * arg2, int arg3) | |
3796 { | |
3797 if (XEUNICODE_P) | |
3798 return (Extbyte *) lstrcpynW ((LPWSTR) arg1, (LPCWSTR) arg2, arg3); | |
3799 else | |
3800 return (Extbyte *) lstrcpynA ((LPSTR) arg1, (LPCSTR) arg2, arg3); | |
3801 } | |
3802 | |
3803 Extbyte * | |
3804 qxelstrcpy (Extbyte * arg1, const Extbyte * arg2) | |
3805 { | |
3806 if (XEUNICODE_P) | |
3807 return (Extbyte *) lstrcpyW ((LPWSTR) arg1, (LPCWSTR) arg2); | |
3808 else | |
3809 return (Extbyte *) lstrcpyA ((LPSTR) arg1, (LPCSTR) arg2); | |
3810 } | |
3811 | |
3812 int | |
3813 qxelstrlen (const Extbyte * arg1) | |
3814 { | |
3815 if (XEUNICODE_P) | |
3816 return lstrlenW ((LPCWSTR) arg1); | |
3817 else | |
3818 return lstrlenA ((LPCSTR) arg1); | |
3819 } | |
3820 | |
3821 BOOL | |
3822 qxeMoveFileEx (const Extbyte * arg1, const Extbyte * arg2, DWORD arg3) | |
3823 { | |
3824 if (XEUNICODE_P) | |
3825 return MoveFileExW ((LPCWSTR) arg1, (LPCWSTR) arg2, arg3); | |
3826 else | |
3827 return MoveFileExA ((LPCSTR) arg1, (LPCSTR) arg2, arg3); | |
3828 } | |
3829 | |
3830 BOOL | |
3831 qxeMoveFile (const Extbyte * arg1, const Extbyte * arg2) | |
3832 { | |
3833 if (XEUNICODE_P) | |
3834 return MoveFileW ((LPCWSTR) arg1, (LPCWSTR) arg2); | |
3835 else | |
3836 return MoveFileA ((LPCSTR) arg1, (LPCSTR) arg2); | |
3837 } | |
3838 | |
3839 BOOL | |
3840 qxeObjectCloseAuditAlarm (const Extbyte * arg1, PVOID arg2, BOOL arg3) | |
3841 { | |
3842 if (XEUNICODE_P) | |
3843 return ObjectCloseAuditAlarmW ((LPCWSTR) arg1, arg2, arg3); | |
3844 else | |
3845 return ObjectCloseAuditAlarmA ((LPCSTR) arg1, arg2, arg3); | |
3846 } | |
3847 | |
3848 BOOL | |
3849 qxeObjectDeleteAuditAlarm (const Extbyte * arg1, PVOID arg2, BOOL arg3) | |
3850 { | |
3851 if (XEUNICODE_P) | |
3852 return ObjectDeleteAuditAlarmW ((LPCWSTR) arg1, arg2, arg3); | |
3853 else | |
3854 return ObjectDeleteAuditAlarmA ((LPCSTR) arg1, arg2, arg3); | |
3855 } | |
3856 | |
3857 BOOL | |
3858 qxeObjectOpenAuditAlarm (const Extbyte * arg1, PVOID arg2, Extbyte * arg3, Extbyte * arg4, PSECURITY_DESCRIPTOR arg5, HANDLE arg6, DWORD arg7, DWORD arg8, PPRIVILEGE_SET arg9, BOOL arg10, BOOL arg11, PBOOL arg12) | |
3859 { | |
3860 if (XEUNICODE_P) | |
3861 return ObjectOpenAuditAlarmW ((LPCWSTR) arg1, arg2, (LPWSTR) arg3, (LPWSTR) arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12); | |
3862 else | |
3863 return ObjectOpenAuditAlarmA ((LPCSTR) arg1, arg2, (LPSTR) arg3, (LPSTR) arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12); | |
3864 } | |
3865 | |
3866 BOOL | |
3867 qxeObjectPrivilegeAuditAlarm (const Extbyte * arg1, PVOID arg2, HANDLE arg3, DWORD arg4, PPRIVILEGE_SET arg5, BOOL arg6) | |
3868 { | |
3869 if (XEUNICODE_P) | |
3870 return ObjectPrivilegeAuditAlarmW ((LPCWSTR) arg1, arg2, arg3, arg4, arg5, arg6); | |
3871 else | |
3872 return ObjectPrivilegeAuditAlarmA ((LPCSTR) arg1, arg2, arg3, arg4, arg5, arg6); | |
3873 } | |
3874 | |
3875 HANDLE | |
3876 qxeOpenBackupEventLog (const Extbyte * arg1, const Extbyte * arg2) | |
3877 { | |
3878 if (XEUNICODE_P) | |
3879 return OpenBackupEventLogW ((LPCWSTR) arg1, (LPCWSTR) arg2); | |
3880 else | |
3881 return OpenBackupEventLogA ((LPCSTR) arg1, (LPCSTR) arg2); | |
3882 } | |
3883 | |
3884 HANDLE | |
3885 qxeOpenEventLog (const Extbyte * arg1, const Extbyte * arg2) | |
3886 { | |
3887 if (XEUNICODE_P) | |
3888 return OpenEventLogW ((LPCWSTR) arg1, (LPCWSTR) arg2); | |
3889 else | |
3890 return OpenEventLogA ((LPCSTR) arg1, (LPCSTR) arg2); | |
3891 } | |
3892 | |
3893 HANDLE | |
3894 qxeOpenEvent (DWORD arg1, BOOL arg2, const Extbyte * arg3) | |
3895 { | |
3896 if (XEUNICODE_P) | |
3897 return OpenEventW (arg1, arg2, (LPCWSTR) arg3); | |
3898 else | |
3899 return OpenEventA (arg1, arg2, (LPCSTR) arg3); | |
3900 } | |
3901 | |
3902 HANDLE | |
3903 qxeOpenFileMapping (DWORD arg1, BOOL arg2, const Extbyte * arg3) | |
3904 { | |
3905 if (XEUNICODE_P) | |
3906 return OpenFileMappingW (arg1, arg2, (LPCWSTR) arg3); | |
3907 else | |
3908 return OpenFileMappingA (arg1, arg2, (LPCSTR) arg3); | |
3909 } | |
3910 | |
3911 HANDLE | |
3912 qxeOpenMutex (DWORD arg1, BOOL arg2, const Extbyte * arg3) | |
3913 { | |
3914 if (XEUNICODE_P) | |
3915 return OpenMutexW (arg1, arg2, (LPCWSTR) arg3); | |
3916 else | |
3917 return OpenMutexA (arg1, arg2, (LPCSTR) arg3); | |
3918 } | |
3919 | |
3920 HANDLE | |
3921 qxeOpenSemaphore (DWORD arg1, BOOL arg2, const Extbyte * arg3) | |
3922 { | |
3923 if (XEUNICODE_P) | |
3924 return OpenSemaphoreW (arg1, arg2, (LPCWSTR) arg3); | |
3925 else | |
3926 return OpenSemaphoreA (arg1, arg2, (LPCSTR) arg3); | |
3927 } | |
3928 | |
3929 HANDLE | |
3930 qxeOpenWaitableTimer (DWORD arg1, BOOL arg2, const Extbyte * arg3) | |
3931 { | |
3932 if (XEUNICODE_P) | |
3933 return OpenWaitableTimerW (arg1, arg2, (LPCWSTR) arg3); | |
3934 else | |
3935 return OpenWaitableTimerA (arg1, arg2, (LPCSTR) arg3); | |
3936 } | |
3937 | |
3938 void | |
3939 qxeOutputDebugString (const Extbyte * arg1) | |
3940 { | |
3941 if (XEUNICODE_P) | |
3942 OutputDebugStringW ((LPCWSTR) arg1); | |
3943 else | |
3944 OutputDebugStringA ((LPCSTR) arg1); | |
3945 } | |
3946 | |
3947 BOOL | |
3948 qxePrivilegedServiceAuditAlarm (const Extbyte * arg1, const Extbyte * arg2, HANDLE arg3, PPRIVILEGE_SET arg4, BOOL arg5) | |
3949 { | |
3950 if (XEUNICODE_P) | |
3951 return PrivilegedServiceAuditAlarmW ((LPCWSTR) arg1, (LPCWSTR) arg2, arg3, arg4, arg5); | |
3952 else | |
3953 return PrivilegedServiceAuditAlarmA ((LPCSTR) arg1, (LPCSTR) arg2, arg3, arg4, arg5); | |
3954 } | |
3955 | |
3956 /* Error if QueryActCtx used: Function needs review to determine how to handle it */ | |
3957 | |
3958 DWORD | |
3959 qxeQueryDosDevice (const Extbyte * arg1, Extbyte * arg2, DWORD arg3) | |
3960 { | |
3961 if (XEUNICODE_P) | |
3962 return QueryDosDeviceW ((LPCWSTR) arg1, (LPWSTR) arg2, arg3); | |
3963 else | |
3964 return QueryDosDeviceA ((LPCSTR) arg1, (LPSTR) arg2, arg3); | |
3965 } | |
3966 | |
3967 /* Error if ReadDirectoryChanges used: Unicode-only */ | |
3968 | |
3969 BOOL | |
3970 qxeReadEventLog (HANDLE arg1, DWORD arg2, DWORD arg3, PVOID arg4, DWORD arg5, DWORD * arg6, DWORD * arg7) | |
3971 { | |
3972 if (XEUNICODE_P) | |
3973 return ReadEventLogW (arg1, arg2, arg3, arg4, arg5, arg6, arg7); | |
3974 else | |
3975 return ReadEventLogA (arg1, arg2, arg3, arg4, arg5, arg6, arg7); | |
3976 } | |
3977 | |
3978 HANDLE | |
3979 qxeRegisterEventSource (const Extbyte * arg1, const Extbyte * arg2) | |
3980 { | |
3981 if (XEUNICODE_P) | |
3982 return RegisterEventSourceW ((LPCWSTR) arg1, (LPCWSTR) arg2); | |
3983 else | |
3984 return RegisterEventSourceA ((LPCSTR) arg1, (LPCSTR) arg2); | |
3985 } | |
3986 | |
3987 BOOL | |
3988 qxeRemoveDirectory (const Extbyte * arg1) | |
3989 { | |
3990 if (XEUNICODE_P) | |
3991 return RemoveDirectoryW ((LPCWSTR) arg1); | |
3992 else | |
3993 return RemoveDirectoryA ((LPCSTR) arg1); | |
3994 } | |
3995 | |
3996 /* Error if ReplaceFile used: Function needs review to determine how to handle it */ | |
3997 | |
3998 BOOL | |
3999 qxeReportEvent (HANDLE arg1, WORD arg2, WORD arg3, DWORD arg4, PSID arg5, WORD arg6, DWORD arg7, const Extbyte ** arg8, PVOID arg9) | |
4000 { | |
4001 if (XEUNICODE_P) | |
4002 return ReportEventW (arg1, arg2, arg3, arg4, arg5, arg6, arg7, (LPCWSTR*) arg8, arg9); | |
4003 else | |
4004 return ReportEventA (arg1, arg2, arg3, arg4, arg5, arg6, arg7, (LPCSTR*) arg8, arg9); | |
4005 } | |
4006 | |
4007 DWORD | |
4008 qxeSearchPath (const Extbyte * arg1, const Extbyte * arg2, const Extbyte * arg3, DWORD arg4, Extbyte * arg5, Extbyte ** arg6) | |
4009 { | |
4010 if (XEUNICODE_P) | |
4011 return SearchPathW ((LPCWSTR) arg1, (LPCWSTR) arg2, (LPCWSTR) arg3, arg4, (LPWSTR) arg5, (LPWSTR*) arg6); | |
4012 else | |
4013 return SearchPathA ((LPCSTR) arg1, (LPCSTR) arg2, (LPCSTR) arg3, arg4, (LPSTR) arg5, (LPSTR*) arg6); | |
4014 } | |
4015 | |
4016 BOOL | |
4017 qxeSetComputerName (const Extbyte * arg1) | |
4018 { | |
4019 if (XEUNICODE_P) | |
4020 return SetComputerNameW ((LPCWSTR) arg1); | |
4021 else | |
4022 return SetComputerNameA ((LPCSTR) arg1); | |
4023 } | |
4024 | |
4025 /* Error if SetComputerNameEx used: Function needs review to determine how to handle it */ | |
4026 | |
4027 BOOL | |
4028 qxeSetCurrentDirectory (const Extbyte * arg1) | |
4029 { | |
4030 if (XEUNICODE_P) | |
4031 return SetCurrentDirectoryW ((LPCWSTR) arg1); | |
4032 else | |
4033 return SetCurrentDirectoryA ((LPCSTR) arg1); | |
4034 } | |
4035 | |
4036 BOOL | |
4037 qxeSetDefaultCommConfig (const Extbyte * arg1, LPCOMMCONFIG arg2, DWORD arg3) | |
4038 { | |
4039 if (XEUNICODE_P) | |
4040 return SetDefaultCommConfigW ((LPCWSTR) arg1, arg2, arg3); | |
4041 else | |
4042 return SetDefaultCommConfigA ((LPCSTR) arg1, arg2, arg3); | |
4043 } | |
4044 | |
4045 /* Error if SetDllDirectory used: Function needs review to determine how to handle it */ | |
4046 | |
4047 BOOL | |
4048 qxeSetEnvironmentVariable (const Extbyte * arg1, const Extbyte * arg2) | |
4049 { | |
4050 if (XEUNICODE_P) | |
4051 return SetEnvironmentVariableW ((LPCWSTR) arg1, (LPCWSTR) arg2); | |
4052 else | |
4053 return SetEnvironmentVariableA ((LPCSTR) arg1, (LPCSTR) arg2); | |
4054 } | |
4055 | |
4056 BOOL | |
4057 qxeSetFileAttributes (const Extbyte * arg1, DWORD arg2) | |
4058 { | |
4059 if (XEUNICODE_P) | |
4060 return SetFileAttributesW ((LPCWSTR) arg1, arg2); | |
4061 else | |
4062 return SetFileAttributesA ((LPCSTR) arg1, arg2); | |
4063 } | |
4064 | |
4065 BOOL | |
4066 qxeSetFileSecurity (const Extbyte * arg1, SECURITY_INFORMATION arg2, PSECURITY_DESCRIPTOR arg3) | |
4067 { | |
4068 if (XEUNICODE_P) | |
4069 return SetFileSecurityW ((LPCWSTR) arg1, arg2, arg3); | |
4070 else | |
4071 return SetFileSecurityA ((LPCSTR) arg1, arg2, arg3); | |
4072 } | |
4073 | |
4074 /* Error if SetFileShortName used: Function needs review to determine how to handle it */ | |
4075 | |
4076 /* Error if SetFirmwareEnvironmentVariable used: Function needs review to determine how to handle it */ | |
4077 | |
4078 BOOL | |
4079 qxeSetVolumeLabel (const Extbyte * arg1, const Extbyte * arg2) | |
4080 { | |
4081 if (XEUNICODE_P) | |
4082 return SetVolumeLabelW ((LPCWSTR) arg1, (LPCWSTR) arg2); | |
4083 else | |
4084 return SetVolumeLabelA ((LPCSTR) arg1, (LPCSTR) arg2); | |
4085 } | |
4086 | |
4087 /* Error if SetVolumeMountPoint used: Function needs review to determine how to handle it */ | |
4088 | |
4089 BOOL | |
4090 qxeUpdateResource (HANDLE arg1, const Extbyte * arg2, const Extbyte * arg3, WORD arg4, PVOID arg5, DWORD arg6) | |
4091 { | |
4092 if (XEUNICODE_P) | |
4093 return UpdateResourceW (arg1, (LPCWSTR) arg2, (LPCWSTR) arg3, arg4, arg5, arg6); | |
4094 else | |
4095 return UpdateResourceA (arg1, (LPCSTR) arg2, (LPCSTR) arg3, arg4, arg5, arg6); | |
4096 } | |
4097 | |
4098 /* Error if VerifyVersionInfo used: Function needs review to determine how to handle it */ | |
4099 | |
4100 BOOL | |
4101 qxeWaitNamedPipe (const Extbyte * arg1, DWORD arg2) | |
4102 { | |
4103 if (XEUNICODE_P) | |
4104 return WaitNamedPipeW ((LPCWSTR) arg1, arg2); | |
4105 else | |
4106 return WaitNamedPipeA ((LPCSTR) arg1, arg2); | |
4107 } | |
4108 | |
4109 BOOL | |
4110 qxeWritePrivateProfileSection (const Extbyte * arg1, const Extbyte * arg2, const Extbyte * arg3) | |
4111 { | |
4112 if (XEUNICODE_P) | |
4113 return WritePrivateProfileSectionW ((LPCWSTR) arg1, (LPCWSTR) arg2, (LPCWSTR) arg3); | |
4114 else | |
4115 return WritePrivateProfileSectionA ((LPCSTR) arg1, (LPCSTR) arg2, (LPCSTR) arg3); | |
4116 } | |
4117 | |
4118 BOOL | |
4119 qxeWritePrivateProfileString (const Extbyte * arg1, const Extbyte * arg2, const Extbyte * arg3, const Extbyte * arg4) | |
4120 { | |
4121 if (XEUNICODE_P) | |
4122 return WritePrivateProfileStringW ((LPCWSTR) arg1, (LPCWSTR) arg2, (LPCWSTR) arg3, (LPCWSTR) arg4); | |
4123 else | |
4124 return WritePrivateProfileStringA ((LPCSTR) arg1, (LPCSTR) arg2, (LPCSTR) arg3, (LPCSTR) arg4); | |
4125 } | |
4126 | |
4127 BOOL | |
4128 qxeWritePrivateProfileStruct (const Extbyte * arg1, const Extbyte * arg2, LPVOID arg3, UINT arg4, const Extbyte * arg5) | |
4129 { | |
4130 if (XEUNICODE_P) | |
4131 return WritePrivateProfileStructW ((LPCWSTR) arg1, (LPCWSTR) arg2, arg3, arg4, (LPCWSTR) arg5); | |
4132 else | |
4133 return WritePrivateProfileStructA ((LPCSTR) arg1, (LPCSTR) arg2, arg3, arg4, (LPCSTR) arg5); | |
4134 } | |
4135 | |
4136 BOOL | |
4137 qxeWriteProfileSection (const Extbyte * arg1, const Extbyte * arg2) | |
4138 { | |
4139 if (XEUNICODE_P) | |
4140 return WriteProfileSectionW ((LPCWSTR) arg1, (LPCWSTR) arg2); | |
4141 else | |
4142 return WriteProfileSectionA ((LPCSTR) arg1, (LPCSTR) arg2); | |
4143 } | |
4144 | |
4145 BOOL | |
4146 qxeWriteProfileString (const Extbyte * arg1, const Extbyte * arg2, const Extbyte * arg3) | |
4147 { | |
4148 if (XEUNICODE_P) | |
4149 return WriteProfileStringW ((LPCWSTR) arg1, (LPCWSTR) arg2, (LPCWSTR) arg3); | |
4150 else | |
4151 return WriteProfileStringA ((LPCSTR) arg1, (LPCSTR) arg2, (LPCSTR) arg3); | |
4152 } | 4718 } |
4153 | 4719 |
4154 | 4720 |
4155 /*----------------------------------------------------------------------*/ | 4721 /*----------------------------------------------------------------------*/ |
4156 /* Processing file ACLAPI.h */ | 4722 /* Processing file ACLAPI.h */ |
4157 /*----------------------------------------------------------------------*/ | 4723 /*----------------------------------------------------------------------*/ |
4158 | 4724 |
4725 /* Error if SetEntriesInAcl used: Function needs review to determine how to handle it */ | |
4726 | |
4727 /* Error if GetExplicitEntriesFromAcl used: Function needs review to determine how to handle it */ | |
4728 | |
4729 /* Error if GetEffectiveRightsFromAcl used: Function needs review to determine how to handle it */ | |
4730 | |
4731 /* Error if GetAuditedPermissionsFromAcl used: Function needs review to determine how to handle it */ | |
4732 | |
4733 DWORD | |
4734 qxeGetNamedSecurityInfo (const Extbyte * pObjectName, SE_OBJECT_TYPE ObjectType, SECURITY_INFORMATION SecurityInfo, PSID * ppsidOwner, PSID * ppsidGroup, PACL * ppDacl, PACL * ppSacl, PSECURITY_DESCRIPTOR * ppSecurityDescriptor) | |
4735 { | |
4736 if (XEUNICODE_P) | |
4737 return GetNamedSecurityInfoW ((LPCWSTR) pObjectName, ObjectType, SecurityInfo, ppsidOwner, ppsidGroup, ppDacl, ppSacl, ppSecurityDescriptor); | |
4738 else | |
4739 return GetNamedSecurityInfoA ((LPCSTR) pObjectName, ObjectType, SecurityInfo, ppsidOwner, ppsidGroup, ppDacl, ppSacl, ppSecurityDescriptor); | |
4740 } | |
4741 | |
4742 /* Error if SetNamedSecurityInfo used: Function needs review to determine how to handle it */ | |
4743 | |
4744 /* Error if GetInheritanceSource used: HST: new? -- needs review */ | |
4745 | |
4746 /* Error if TreeResetNamedSecurityInfo used: HST: new? -- needs review */ | |
4747 | |
4748 /* Error if BuildSecurityDescriptor used: Function needs review to determine how to handle it */ | |
4749 | |
4750 /* Error if LookupSecurityDescriptorParts used: Function needs review to determine how to handle it */ | |
4751 | |
4159 /* Error if BuildExplicitAccessWithName used: Function needs review to determine how to handle it */ | 4752 /* Error if BuildExplicitAccessWithName used: Function needs review to determine how to handle it */ |
4160 | 4753 |
4161 /* Error if BuildSecurityDescriptor used: Function needs review to determine how to handle it */ | 4754 /* Error if BuildImpersonateExplicitAccessWithName used: Function needs review to determine how to handle it */ |
4162 | 4755 |
4163 /* Error if BuildTrusteeWithName used: Function needs review to determine how to handle it */ | 4756 /* Error if BuildTrusteeWithName used: Function needs review to determine how to handle it */ |
4164 | 4757 |
4758 /* Error if BuildImpersonateTrustee used: Function needs review to determine how to handle it */ | |
4759 | |
4760 /* Error if BuildTrusteeWithSid used: Function needs review to determine how to handle it */ | |
4761 | |
4762 /* Error if BuildTrusteeWithObjectsAndSid used: Function needs review to determine how to handle it */ | |
4763 | |
4165 /* Error if BuildTrusteeWithObjectsAndName used: Function needs review to determine how to handle it */ | 4764 /* Error if BuildTrusteeWithObjectsAndName used: Function needs review to determine how to handle it */ |
4166 | 4765 |
4167 /* Error if BuildTrusteeWithObjectsAndSid used: Function needs review to determine how to handle it */ | 4766 /* Error if GetTrusteeName used: Function needs review to determine how to handle it */ |
4168 | 4767 |
4169 /* Error if BuildTrusteeWithSid used: Function needs review to determine how to handle it */ | 4768 /* Error if GetTrusteeType used: Function needs review to determine how to handle it */ |
4170 | |
4171 /* Error if GetAuditedPermissionsFromAcl used: Function needs review to determine how to handle it */ | |
4172 | |
4173 /* Error if GetEffectiveRightsFromAcl used: Function needs review to determine how to handle it */ | |
4174 | |
4175 /* Error if GetExplicitEntriesFromAcl used: Function needs review to determine how to handle it */ | |
4176 | |
4177 DWORD | |
4178 qxeGetNamedSecurityInfo (Extbyte * arg1, SE_OBJECT_TYPE arg2, SECURITY_INFORMATION arg3, PSID* arg4, PSID* arg5, PACL* arg6, PACL* arg7, PSECURITY_DESCRIPTOR* arg8) | |
4179 { | |
4180 if (XEUNICODE_P) | |
4181 return GetNamedSecurityInfoW ((LPWSTR) arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); | |
4182 else | |
4183 return GetNamedSecurityInfoA ((LPSTR) arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); | |
4184 } | |
4185 | 4769 |
4186 /* Error if GetTrusteeForm used: Function needs review to determine how to handle it */ | 4770 /* Error if GetTrusteeForm used: Function needs review to determine how to handle it */ |
4187 | 4771 |
4188 /* Error if GetTrusteeName used: Function needs review to determine how to handle it */ | 4772 /* Error if GetMultipleTrusteeOperation used: Function needs review to determine how to handle it */ |
4189 | |
4190 /* Error if GetTrusteeType used: Function needs review to determine how to handle it */ | |
4191 | |
4192 /* Error if LookupSecurityDescriptorParts used: Function needs review to determine how to handle it */ | |
4193 | |
4194 /* Error if SetEntriesInAcl used: Function needs review to determine how to handle it */ | |
4195 | |
4196 /* Error if SetNamedSecurityInfo used: Function needs review to determine how to handle it */ | |
4197 | |
4198 /* Error if BuildImpersonateExplicitAccessWithName used: Function needs review to determine how to handle it */ | |
4199 | |
4200 /* Error if BuildImpersonateTrustee used: Function needs review to determine how to handle it */ | |
4201 | 4773 |
4202 /* Error if GetMultipleTrustee used: Function needs review to determine how to handle it */ | 4774 /* Error if GetMultipleTrustee used: Function needs review to determine how to handle it */ |
4203 | 4775 |
4204 /* Error if GetMultipleTrusteeOperation used: Function needs review to determine how to handle it */ | 4776 /* Error if TreeSetNamedSecurityInfo used: HST: new? -- needs review */ |
4205 | 4777 |
4206 | |
4207 /*----------------------------------------------------------------------*/ | |
4208 /* Processing file MMSYSTEM.H */ | |
4209 /*----------------------------------------------------------------------*/ | |
4210 | |
4211 BOOL | |
4212 qxesndPlaySound (const Extbyte * arg1, UINT arg2) | |
4213 { | |
4214 if (XEUNICODE_P) | |
4215 return sndPlaySoundW ((LPCWSTR) arg1, arg2); | |
4216 else | |
4217 return sndPlaySoundA ((LPCSTR) arg1, arg2); | |
4218 } | |
4219 | |
4220 BOOL | |
4221 qxePlaySound (const Extbyte * arg1, HMODULE arg2, DWORD arg3) | |
4222 { | |
4223 if (XEUNICODE_P) | |
4224 return PlaySoundW ((LPCWSTR) arg1, arg2, arg3); | |
4225 else | |
4226 return PlaySoundA ((LPCSTR) arg1, arg2, arg3); | |
4227 } | |
4228 | |
4229 /* Error if waveOutGetDevCaps used: split-sized LPWAVEOUTCAPS */ | |
4230 | |
4231 MMRESULT | |
4232 qxewaveOutGetErrorText (MMRESULT arg1, Extbyte * arg2, UINT arg3) | |
4233 { | |
4234 if (XEUNICODE_P) | |
4235 return waveOutGetErrorTextW (arg1, (LPWSTR) arg2, arg3); | |
4236 else | |
4237 return waveOutGetErrorTextA (arg1, (LPSTR) arg2, arg3); | |
4238 } | |
4239 | |
4240 /* Error if waveInGetDevCaps used: split-sized LPWAVEINCAPS */ | |
4241 | |
4242 MMRESULT | |
4243 qxewaveInGetErrorText (MMRESULT arg1, Extbyte * arg2, UINT arg3) | |
4244 { | |
4245 if (XEUNICODE_P) | |
4246 return waveInGetErrorTextW (arg1, (LPWSTR) arg2, arg3); | |
4247 else | |
4248 return waveInGetErrorTextA (arg1, (LPSTR) arg2, arg3); | |
4249 } | |
4250 | |
4251 /* Error if midiOutGetDevCaps used: split-sized LPMIDIOUTCAPS */ | |
4252 | |
4253 MMRESULT | |
4254 qxemidiOutGetErrorText (MMRESULT arg1, Extbyte * arg2, UINT arg3) | |
4255 { | |
4256 if (XEUNICODE_P) | |
4257 return midiOutGetErrorTextW (arg1, (LPWSTR) arg2, arg3); | |
4258 else | |
4259 return midiOutGetErrorTextA (arg1, (LPSTR) arg2, arg3); | |
4260 } | |
4261 | |
4262 /* Error if midiInGetDevCaps used: split-sized LPMIDIOUTCAPS */ | |
4263 | |
4264 MMRESULT | |
4265 qxemidiInGetErrorText (MMRESULT arg1, Extbyte * arg2, UINT arg3) | |
4266 { | |
4267 if (XEUNICODE_P) | |
4268 return midiInGetErrorTextW (arg1, (LPWSTR) arg2, arg3); | |
4269 else | |
4270 return midiInGetErrorTextA (arg1, (LPSTR) arg2, arg3); | |
4271 } | |
4272 | |
4273 /* Error if auxGetDevCaps used: split-sized LPAUXCAPS */ | |
4274 | |
4275 /* Error if mixerGetDevCaps used: split-sized LPMIXERCAPS */ | |
4276 | |
4277 /* Error if mixerGetLineInfo used: split-sized LPMIXERLINE */ | |
4278 | |
4279 /* Error if mixerGetLineControls used: split-sized LPMIXERCONTROL */ | |
4280 | |
4281 /* Error if mixerGetControlDetails used: split-sized LPMIXERCONTROL in LPMIXERLINECONTROLS in LPMIXERCONTROLDETAILS */ | |
4282 | |
4283 /* Error if joyGetDevCaps used: split-sized LPJOYCAPS */ | |
4284 | |
4285 FOURCC | |
4286 qxemmioStringToFOURCC (const Extbyte * arg1, UINT arg2) | |
4287 { | |
4288 if (XEUNICODE_P) | |
4289 return mmioStringToFOURCCW ((LPCWSTR) arg1, arg2); | |
4290 else | |
4291 return mmioStringToFOURCCA ((LPCSTR) arg1, arg2); | |
4292 } | |
4293 | |
4294 LPMMIOPROC | |
4295 qxemmioInstallIOProc (FOURCC arg1, LPMMIOPROC arg2, DWORD arg3) | |
4296 { | |
4297 if (XEUNICODE_P) | |
4298 return mmioInstallIOProcW (arg1, arg2, arg3); | |
4299 else | |
4300 return mmioInstallIOProcA (arg1, arg2, arg3); | |
4301 } | |
4302 | |
4303 HMMIO | |
4304 qxemmioOpen (Extbyte * arg1, LPMMIOINFO arg2, DWORD arg3) | |
4305 { | |
4306 if (XEUNICODE_P) | |
4307 return mmioOpenW ((LPWSTR) arg1, arg2, arg3); | |
4308 else | |
4309 return mmioOpenA ((LPSTR) arg1, arg2, arg3); | |
4310 } | |
4311 | |
4312 MMRESULT | |
4313 qxemmioRename (const Extbyte * arg1, const Extbyte * arg2, LPCMMIOINFO arg3, DWORD arg4) | |
4314 { | |
4315 if (XEUNICODE_P) | |
4316 return mmioRenameW ((LPCWSTR) arg1, (LPCWSTR) arg2, arg3, arg4); | |
4317 else | |
4318 return mmioRenameA ((LPCSTR) arg1, (LPCSTR) arg2, arg3, arg4); | |
4319 } | |
4320 | |
4321 MCIERROR | |
4322 qxemciSendCommand (MCIDEVICEID arg1, UINT arg2, DWORD arg3, DWORD arg4) | |
4323 { | |
4324 if (XEUNICODE_P) | |
4325 return mciSendCommandW (arg1, arg2, arg3, arg4); | |
4326 else | |
4327 return mciSendCommandA (arg1, arg2, arg3, arg4); | |
4328 } | |
4329 | |
4330 MCIERROR | |
4331 qxemciSendString (const Extbyte * arg1, Extbyte * arg2, UINT arg3, HWND arg4) | |
4332 { | |
4333 if (XEUNICODE_P) | |
4334 return mciSendStringW ((LPCWSTR) arg1, (LPWSTR) arg2, arg3, arg4); | |
4335 else | |
4336 return mciSendStringA ((LPCSTR) arg1, (LPSTR) arg2, arg3, arg4); | |
4337 } | |
4338 | |
4339 MCIDEVICEID | |
4340 qxemciGetDeviceID (const Extbyte * arg1) | |
4341 { | |
4342 if (XEUNICODE_P) | |
4343 return mciGetDeviceIDW ((LPCWSTR) arg1); | |
4344 else | |
4345 return mciGetDeviceIDA ((LPCSTR) arg1); | |
4346 } | |
4347 | |
4348 #if !defined (MINGW) | |
4349 | |
4350 /* Error if mciGetDeviceIDFromElementID used: missing from Win98se version of ADVAPI32.dll */ | |
4351 | |
4352 #endif /* !defined (MINGW) */ | |
4353 | |
4354 BOOL | |
4355 qxemciGetErrorString (MCIERROR arg1, Extbyte * arg2, UINT arg3) | |
4356 { | |
4357 if (XEUNICODE_P) | |
4358 return mciGetErrorStringW (arg1, (LPWSTR) arg2, arg3); | |
4359 else | |
4360 return mciGetErrorStringA (arg1, (LPSTR) arg2, arg3); | |
4361 } | |
4362 |