1 | /* $Id: user32.cpp,v 1.39 1999-10-08 21:29:50 cbratschi Exp $ */
|
---|
2 |
|
---|
3 | /*
|
---|
4 | * Win32 misc user32 API functions for OS/2
|
---|
5 | *
|
---|
6 | * Copyright 1998 Sander van Leeuwen
|
---|
7 | * Copyright 1998 Patrick Haller
|
---|
8 | * Copyright 1998 Peter Fitzsimmons
|
---|
9 | * Copyright 1999 Christoph Bratschi
|
---|
10 | * Copyright 1999 Daniela Engert (dani@ngrt.de)
|
---|
11 | *
|
---|
12 | *
|
---|
13 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
14 | *
|
---|
15 | */
|
---|
16 | /*****************************************************************************
|
---|
17 | * Name : USER32.CPP
|
---|
18 | * Purpose : This module maps all Win32 functions contained in USER32.DLL
|
---|
19 | * to their OS/2-specific counterparts as far as possible.
|
---|
20 | *****************************************************************************/
|
---|
21 |
|
---|
22 | //Attention: many functions belong to other subsystems, move them to their
|
---|
23 | // right place!
|
---|
24 |
|
---|
25 | #include <os2win.h>
|
---|
26 | #include "misc.h"
|
---|
27 |
|
---|
28 | #include "user32.h"
|
---|
29 | #include <winicon.h>
|
---|
30 | #include "syscolor.h"
|
---|
31 |
|
---|
32 | #include <wchar.h>
|
---|
33 | #include <stdlib.h>
|
---|
34 | #include <string.h>
|
---|
35 | #include <oslibwin.h>
|
---|
36 | #include <win32wnd.h>
|
---|
37 | #include <winuser.h>
|
---|
38 |
|
---|
39 | //undocumented stuff
|
---|
40 | // WIN32API CalcChildScroll
|
---|
41 | // WIN32API CascadeChildWindows
|
---|
42 | // WIN32API ClientThreadConnect
|
---|
43 | // WIN32API DragObject
|
---|
44 | // WIN32API DrawFrame
|
---|
45 | // WIN32API EditWndProc
|
---|
46 | // WIN32API EndTask
|
---|
47 | // WIN32API GetInputDesktop
|
---|
48 | // WIN32API GetNextQueueWindow
|
---|
49 | // WIN32API GetShellWindow
|
---|
50 | // WIN32API InitSharedTable
|
---|
51 | // WIN32API InitTask
|
---|
52 | // WIN32API IsHungThread
|
---|
53 | // WIN32API LockWindowStation
|
---|
54 | // WIN32API ModifyAccess
|
---|
55 | // WIN32API PlaySoundEvent
|
---|
56 | // WIN32API RegisterLogonProcess
|
---|
57 | // WIN32API RegisterNetworkCapabilities
|
---|
58 | // WIN32API RegisterSystemThread
|
---|
59 | // WIN32API SetDeskWallpaper
|
---|
60 | // WIN32API SetDesktopBitmap
|
---|
61 | // WIN32API SetInternalWindowPos
|
---|
62 | // WIN32API SetLogonNotifyWindow
|
---|
63 | // WIN32API SetShellWindow
|
---|
64 | // WIN32API SetSysColorsTemp
|
---|
65 | // WIN32API SetWindowFullScreenState
|
---|
66 | // WIN32API SwitchToThisWindow
|
---|
67 | // WIN32API SysErrorBox
|
---|
68 | // WIN32API TileChildWindows
|
---|
69 | // WIN32API UnlockWindowStation
|
---|
70 | // WIN32API UserClientDllInitialize
|
---|
71 | // WIN32API UserSignalProc
|
---|
72 | // WIN32API WinOldAppHackoMatic
|
---|
73 | // WIN32API WNDPROC_CALLBACK
|
---|
74 | // WIN32API YieldTask
|
---|
75 |
|
---|
76 | /* Coordinate Transformation */
|
---|
77 |
|
---|
78 | inline void OS2ToWin32ScreenPos(POINT *dest,POINT *source)
|
---|
79 | {
|
---|
80 | dest->x = source->x;
|
---|
81 | dest->y = OSLibWinQuerySysValue(OSLIB_HWND_DESKTOP,SVOS_CYSCREEN)-1-source->y;
|
---|
82 | }
|
---|
83 |
|
---|
84 | inline void Win32ToOS2ScreenPos(POINT *dest,POINT *source)
|
---|
85 | {
|
---|
86 | OS2ToWin32ScreenPos(dest,source); //transform back
|
---|
87 | }
|
---|
88 |
|
---|
89 | /* Rectangle Functions - parts from wine/windows/rect.c */
|
---|
90 |
|
---|
91 | BOOL WIN32API CopyRect( PRECT lprcDst, const RECT * lprcSrc)
|
---|
92 | {
|
---|
93 | // ddprintf(("USER32: CopyRect\n"));
|
---|
94 | if (!lprcDst || !lprcSrc) {
|
---|
95 | SetLastError(ERROR_INVALID_PARAMETER);
|
---|
96 | return FALSE;
|
---|
97 | }
|
---|
98 |
|
---|
99 | memcpy(lprcDst,lprcSrc,sizeof(RECT));
|
---|
100 |
|
---|
101 | return TRUE;
|
---|
102 | }
|
---|
103 | //******************************************************************************
|
---|
104 | //******************************************************************************
|
---|
105 | BOOL WIN32API EqualRect( const RECT *lprc1, const RECT *lprc2)
|
---|
106 | {
|
---|
107 | #ifdef DEBUG
|
---|
108 | WriteLog("USER32: EqualRect\n");
|
---|
109 | #endif
|
---|
110 | if (!lprc1 || !lprc2)
|
---|
111 | {
|
---|
112 | SetLastError(ERROR_INVALID_PARAMETER);
|
---|
113 | return FALSE;
|
---|
114 | }
|
---|
115 |
|
---|
116 | return (lprc1->left == lprc2->left &&
|
---|
117 | lprc1->right == lprc2->right &&
|
---|
118 | lprc1->top == lprc2->top &&
|
---|
119 | lprc1->bottom == lprc2->bottom);
|
---|
120 | }
|
---|
121 | //******************************************************************************
|
---|
122 | //******************************************************************************
|
---|
123 | BOOL WIN32API InflateRect( PRECT lprc, int dx, int dy)
|
---|
124 | {
|
---|
125 | #ifdef DEBUG
|
---|
126 | WriteLog("USER32: InflateRect\n");
|
---|
127 | #endif
|
---|
128 | if (!lprc)
|
---|
129 | {
|
---|
130 | SetLastError(ERROR_INVALID_PARAMETER);
|
---|
131 | return FALSE;
|
---|
132 | }
|
---|
133 |
|
---|
134 | lprc->left -= dx;
|
---|
135 | lprc->right += dx;
|
---|
136 | lprc->top -= dy;
|
---|
137 | lprc->bottom += dy;
|
---|
138 |
|
---|
139 | return TRUE;
|
---|
140 | }
|
---|
141 | //******************************************************************************
|
---|
142 | //******************************************************************************
|
---|
143 | BOOL WIN32API IntersectRect( PRECT lprcDst, const RECT * lprcSrc1, const RECT * lprcSrc2)
|
---|
144 | {
|
---|
145 | #ifdef DEBUG
|
---|
146 | //// WriteLog("USER32: IntersectRect\n");
|
---|
147 | #endif
|
---|
148 | if (!lprcDst || !lprcSrc1 || !lprcSrc2)
|
---|
149 | {
|
---|
150 | SetLastError(ERROR_INVALID_PARAMETER);
|
---|
151 | return FALSE;
|
---|
152 | }
|
---|
153 |
|
---|
154 | if (IsRectEmpty(lprcSrc1) || IsRectEmpty(lprcSrc2) ||
|
---|
155 | (lprcSrc1->left >= lprcSrc2->right) || (lprcSrc2->left >= lprcSrc1->right) ||
|
---|
156 | (lprcSrc1->top >= lprcSrc2->bottom) || (lprcSrc2->top >= lprcSrc1->bottom))
|
---|
157 | {
|
---|
158 | SetLastError(ERROR_INVALID_PARAMETER);
|
---|
159 | SetRectEmpty(lprcDst);
|
---|
160 | return FALSE;
|
---|
161 | }
|
---|
162 | lprcDst->left = MAX(lprcSrc1->left,lprcSrc2->left);
|
---|
163 | lprcDst->right = MIN(lprcSrc1->right,lprcSrc2->right);
|
---|
164 | lprcDst->top = MAX(lprcSrc1->top,lprcSrc2->top);
|
---|
165 | lprcDst->bottom = MIN(lprcSrc1->bottom,lprcSrc2->bottom);
|
---|
166 |
|
---|
167 | return TRUE;
|
---|
168 | }
|
---|
169 | //******************************************************************************
|
---|
170 | //******************************************************************************
|
---|
171 | BOOL WIN32API IsRectEmpty( const RECT * lprc)
|
---|
172 | {
|
---|
173 | if (!lprc)
|
---|
174 | {
|
---|
175 | SetLastError(ERROR_INVALID_PARAMETER);
|
---|
176 | return FALSE;
|
---|
177 | }
|
---|
178 |
|
---|
179 | return (lprc->left == lprc->right || lprc->top == lprc->bottom);
|
---|
180 | }
|
---|
181 | //******************************************************************************
|
---|
182 | //******************************************************************************
|
---|
183 | BOOL WIN32API OffsetRect( PRECT lprc, int x, int y)
|
---|
184 | {
|
---|
185 | #ifdef DEBUG
|
---|
186 | //// WriteLog("USER32: OffsetRect\n");
|
---|
187 | #endif
|
---|
188 | if (!lprc)
|
---|
189 | {
|
---|
190 | SetLastError(ERROR_INVALID_PARAMETER);
|
---|
191 | return FALSE;
|
---|
192 | }
|
---|
193 |
|
---|
194 | lprc->left += x;
|
---|
195 | lprc->right += x;
|
---|
196 | lprc->top += y;
|
---|
197 | lprc->bottom += y;
|
---|
198 |
|
---|
199 | return TRUE;
|
---|
200 | }
|
---|
201 | //******************************************************************************
|
---|
202 | //******************************************************************************
|
---|
203 | BOOL WIN32API PtInRect( const RECT *lprc, POINT pt)
|
---|
204 | {
|
---|
205 | #ifdef DEBUG1
|
---|
206 | WriteLog("USER32: PtInRect\n");
|
---|
207 | #endif
|
---|
208 | if (!lprc)
|
---|
209 | {
|
---|
210 | SetLastError(ERROR_INVALID_PARAMETER);
|
---|
211 | return FALSE;
|
---|
212 | }
|
---|
213 |
|
---|
214 | return (pt.x >= lprc->left &&
|
---|
215 | pt.x < lprc->right &&
|
---|
216 | pt.y >= lprc->top &&
|
---|
217 | pt.y < lprc->bottom);
|
---|
218 | }
|
---|
219 | //******************************************************************************
|
---|
220 | //******************************************************************************
|
---|
221 | BOOL WIN32API SetRect( PRECT lprc, int nLeft, int nTop, int nRight, int nBottom)
|
---|
222 | {
|
---|
223 | if (!lprc)
|
---|
224 | {
|
---|
225 | SetLastError(ERROR_INVALID_PARAMETER);
|
---|
226 | return FALSE;
|
---|
227 | }
|
---|
228 |
|
---|
229 | lprc->left = nLeft;
|
---|
230 | lprc->top = nTop;
|
---|
231 | lprc->right = nRight;
|
---|
232 | lprc->bottom = nBottom;
|
---|
233 |
|
---|
234 | return TRUE;
|
---|
235 | }
|
---|
236 | //******************************************************************************
|
---|
237 | //******************************************************************************
|
---|
238 | BOOL WIN32API SetRectEmpty( PRECT lprc)
|
---|
239 | {
|
---|
240 | if (!lprc)
|
---|
241 | {
|
---|
242 | SetLastError(ERROR_INVALID_PARAMETER);
|
---|
243 | return FALSE;
|
---|
244 | }
|
---|
245 |
|
---|
246 | lprc->left = lprc->right = lprc->top = lprc->bottom = 0;
|
---|
247 |
|
---|
248 | return TRUE;
|
---|
249 | }
|
---|
250 | //******************************************************************************
|
---|
251 | //******************************************************************************
|
---|
252 | BOOL WIN32API SubtractRect( PRECT lprcDest, const RECT * lprcSrc1, const RECT * lprcSrc2)
|
---|
253 | {
|
---|
254 | #ifdef DEBUG
|
---|
255 | WriteLog("USER32: SubtractRect");
|
---|
256 | #endif
|
---|
257 | RECT tmp;
|
---|
258 |
|
---|
259 | if (!lprcDest || !lprcSrc1 || !lprcSrc2)
|
---|
260 | {
|
---|
261 | SetLastError(ERROR_INVALID_PARAMETER);
|
---|
262 | return FALSE;
|
---|
263 | }
|
---|
264 |
|
---|
265 | if (IsRectEmpty(lprcSrc1))
|
---|
266 | {
|
---|
267 | SetLastError(ERROR_INVALID_PARAMETER);
|
---|
268 | SetRectEmpty(lprcDest);
|
---|
269 | return FALSE;
|
---|
270 | }
|
---|
271 | *lprcDest = *lprcSrc1;
|
---|
272 | if (IntersectRect(&tmp,lprcSrc1,lprcSrc2))
|
---|
273 | {
|
---|
274 | if (EqualRect(&tmp,lprcDest))
|
---|
275 | {
|
---|
276 | SetRectEmpty(lprcDest);
|
---|
277 | return FALSE;
|
---|
278 | }
|
---|
279 | if ((tmp.top == lprcDest->top) && (tmp.bottom == lprcDest->bottom))
|
---|
280 | {
|
---|
281 | if (tmp.left == lprcDest->left) lprcDest->left = tmp.right;
|
---|
282 | else if (tmp.right == lprcDest->right) lprcDest->right = tmp.left;
|
---|
283 | }
|
---|
284 | else if ((tmp.left == lprcDest->left) && (tmp.right == lprcDest->right))
|
---|
285 | {
|
---|
286 | if (tmp.top == lprcDest->top) lprcDest->top = tmp.bottom;
|
---|
287 | else if (tmp.bottom == lprcDest->bottom) lprcDest->bottom = tmp.top;
|
---|
288 | }
|
---|
289 | }
|
---|
290 |
|
---|
291 | return TRUE;
|
---|
292 | }
|
---|
293 | //******************************************************************************
|
---|
294 | //******************************************************************************
|
---|
295 | BOOL WIN32API UnionRect( PRECT lprcDst, const RECT *lprcSrc1, const RECT *lprcSrc2)
|
---|
296 | {
|
---|
297 | #ifdef DEBUG
|
---|
298 | WriteLog("USER32: UnionRect\n");
|
---|
299 | #endif
|
---|
300 | if (!lprcDst || !lprcSrc1 || !lprcSrc2)
|
---|
301 | {
|
---|
302 | SetLastError(ERROR_INVALID_PARAMETER);
|
---|
303 | return FALSE;
|
---|
304 | }
|
---|
305 |
|
---|
306 | if (IsRectEmpty(lprcSrc1))
|
---|
307 | {
|
---|
308 | if (IsRectEmpty(lprcSrc2))
|
---|
309 | {
|
---|
310 | SetLastError(ERROR_INVALID_PARAMETER);
|
---|
311 | SetRectEmpty(lprcDst);
|
---|
312 | return FALSE;
|
---|
313 | }
|
---|
314 | else *lprcDst = *lprcSrc2;
|
---|
315 | }
|
---|
316 | else
|
---|
317 | {
|
---|
318 | if (IsRectEmpty(lprcSrc2)) *lprcDst = *lprcSrc1;
|
---|
319 | else
|
---|
320 | {
|
---|
321 | lprcDst->left = MIN(lprcSrc1->left,lprcSrc2->left);
|
---|
322 | lprcDst->right = MAX(lprcSrc1->right,lprcSrc2->right);
|
---|
323 | lprcDst->top = MIN(lprcSrc1->top,lprcSrc2->top);
|
---|
324 | lprcDst->bottom = MAX(lprcSrc1->bottom,lprcSrc2->bottom);
|
---|
325 | }
|
---|
326 | }
|
---|
327 |
|
---|
328 | return TRUE;
|
---|
329 | }
|
---|
330 |
|
---|
331 | /* String Manipulation Functions */
|
---|
332 |
|
---|
333 | int __cdecl wsprintfA(char *lpOut, LPCSTR lpFmt, ...)
|
---|
334 | {
|
---|
335 | int rc;
|
---|
336 | va_list argptr;
|
---|
337 |
|
---|
338 | #ifdef DEBUG
|
---|
339 | WriteLog("USER32: wsprintfA\n");
|
---|
340 | WriteLog("USER32: %s\n", lpFmt);
|
---|
341 | #endif
|
---|
342 | va_start(argptr, lpFmt);
|
---|
343 | rc = O32_wvsprintf(lpOut, (char *)lpFmt, argptr);
|
---|
344 | va_end(argptr);
|
---|
345 | #ifdef DEBUG
|
---|
346 | WriteLog("USER32: %s\n", lpOut);
|
---|
347 | #endif
|
---|
348 | return(rc);
|
---|
349 | }
|
---|
350 | //******************************************************************************
|
---|
351 | //******************************************************************************
|
---|
352 | int __cdecl wsprintfW(LPWSTR lpOut, LPCWSTR lpFmt, ...)
|
---|
353 | {
|
---|
354 | int rc;
|
---|
355 | char *lpFmtA;
|
---|
356 | char szOut[512];
|
---|
357 | va_list argptr;
|
---|
358 |
|
---|
359 | dprintf(("USER32: wsprintfW(%08xh,%08xh).\n",
|
---|
360 | lpOut,
|
---|
361 | lpFmt));
|
---|
362 |
|
---|
363 | lpFmtA = UnicodeToAsciiString((LPWSTR)lpFmt);
|
---|
364 |
|
---|
365 | /* @@@PH 98/07/13 transform "%s" to "%ls" does the unicode magic */
|
---|
366 | {
|
---|
367 | PCHAR pszTemp;
|
---|
368 | PCHAR pszTemp1;
|
---|
369 | ULONG ulStrings;
|
---|
370 | ULONG ulIndex; /* temporary string counter */
|
---|
371 |
|
---|
372 | for (ulStrings = 0, /* determine number of placeholders */
|
---|
373 | pszTemp = lpFmtA;
|
---|
374 |
|
---|
375 | (pszTemp != NULL) &&
|
---|
376 | (*pszTemp != 0);
|
---|
377 |
|
---|
378 | ulStrings++)
|
---|
379 | {
|
---|
380 | pszTemp = strstr(pszTemp,
|
---|
381 | "%s");
|
---|
382 | if (pszTemp != NULL) /* skip 2 characters */
|
---|
383 | {
|
---|
384 | pszTemp++;
|
---|
385 | pszTemp++;
|
---|
386 | }
|
---|
387 | else
|
---|
388 | break; /* leave loop immediately */
|
---|
389 | }
|
---|
390 |
|
---|
391 | if (ulStrings != 0) /* transformation required ? */
|
---|
392 | {
|
---|
393 | /* now reallocate lpFmt */
|
---|
394 | ulStrings += strlen(lpFmtA); /* calculate total string length */
|
---|
395 | pszTemp = lpFmtA; /* save string pointer */
|
---|
396 | pszTemp1 = lpFmtA; /* save string pointer */
|
---|
397 |
|
---|
398 | /* @@@PH allocation has to be compatible to FreeAsciiString !!! */
|
---|
399 | lpFmtA = (char *)malloc(ulStrings + 1);
|
---|
400 | if (lpFmtA == NULL) /* check proper allocation */
|
---|
401 | return (0); /* raise error condition */
|
---|
402 |
|
---|
403 | for (ulIndex = 0;
|
---|
404 | ulIndex <= ulStrings;
|
---|
405 | ulIndex++,
|
---|
406 | pszTemp++)
|
---|
407 | {
|
---|
408 | if ((pszTemp[0] == '%') &&
|
---|
409 | (pszTemp[1] == 's') )
|
---|
410 | {
|
---|
411 | /* replace %s by %ls */
|
---|
412 | lpFmtA[ulIndex++] = '%';
|
---|
413 | lpFmtA[ulIndex ] = 'l';
|
---|
414 | lpFmtA[ulIndex+1] = 's';
|
---|
415 | }
|
---|
416 | else
|
---|
417 | lpFmtA[ulIndex] = *pszTemp; /* just copy over the character */
|
---|
418 | }
|
---|
419 |
|
---|
420 | lpFmtA[ulStrings] = 0; /* string termination */
|
---|
421 |
|
---|
422 | FreeAsciiString(pszTemp1); /* the original string is obsolete */
|
---|
423 | }
|
---|
424 | }
|
---|
425 |
|
---|
426 | dprintf(("USER32: wsprintfW (%s).\n",
|
---|
427 | lpFmt));
|
---|
428 |
|
---|
429 | va_start(argptr,
|
---|
430 | lpFmt);
|
---|
431 |
|
---|
432 | rc = O32_wvsprintf(szOut,
|
---|
433 | lpFmtA,
|
---|
434 | argptr);
|
---|
435 |
|
---|
436 | AsciiToUnicode(szOut,
|
---|
437 | lpOut);
|
---|
438 |
|
---|
439 | FreeAsciiString(lpFmtA);
|
---|
440 | return(rc);
|
---|
441 | }
|
---|
442 | //******************************************************************************
|
---|
443 | //******************************************************************************
|
---|
444 | int WIN32API wvsprintfA( LPSTR lpOutput, LPCSTR lpFormat, va_list arglist)
|
---|
445 | {
|
---|
446 | #ifdef DEBUG
|
---|
447 | WriteLog("USER32: wvsprintfA\n");
|
---|
448 | #endif
|
---|
449 | return O32_wvsprintf(lpOutput,lpFormat,(LPCVOID*)arglist);
|
---|
450 | }
|
---|
451 | //******************************************************************************
|
---|
452 | //******************************************************************************
|
---|
453 | int WIN32API wvsprintfW(LPWSTR lpOutput, LPCWSTR lpFormat, va_list arglist)
|
---|
454 | {
|
---|
455 | int rc;
|
---|
456 | char szOut[256];
|
---|
457 | char *lpFmtA;
|
---|
458 |
|
---|
459 | lpFmtA = UnicodeToAsciiString((LPWSTR)lpFormat);
|
---|
460 | #ifdef DEBUG
|
---|
461 | WriteLog("USER32: wvsprintfW, DOES NOT HANDLE UNICODE STRINGS!\n");
|
---|
462 | WriteLog("USER32: %s\n", lpFormat);
|
---|
463 | #endif
|
---|
464 | rc = O32_wvsprintf(szOut, lpFmtA, (LPCVOID)arglist);
|
---|
465 |
|
---|
466 | AsciiToUnicode(szOut, lpOutput);
|
---|
467 | #ifdef DEBUG
|
---|
468 | WriteLog("USER32: %s\n", lpOutput);
|
---|
469 | #endif
|
---|
470 | FreeAsciiString(lpFmtA);
|
---|
471 | return(rc);
|
---|
472 | }
|
---|
473 |
|
---|
474 | #if 0
|
---|
475 | /* Caret Functions */
|
---|
476 |
|
---|
477 | BOOL WIN32API CreateCaret( HWND hWnd, HBITMAP hBitmap, int nWidth, int nHeight)
|
---|
478 | {
|
---|
479 | #ifdef DEBUG
|
---|
480 | WriteLog("USER32: CreateCaret\n");
|
---|
481 | #endif
|
---|
482 | hWnd = Win32Window::Win32ToOS2Handle(hWnd);
|
---|
483 | return O32_CreateCaret(hWnd,hBitmap,nWidth,nHeight);
|
---|
484 | }
|
---|
485 | //******************************************************************************
|
---|
486 | //******************************************************************************
|
---|
487 | BOOL WIN32API DestroyCaret(void)
|
---|
488 | {
|
---|
489 | #ifdef DEBUG
|
---|
490 | WriteLog("USER32: DestroyCaret\n");
|
---|
491 | #endif
|
---|
492 | return O32_DestroyCaret();
|
---|
493 | }
|
---|
494 | //******************************************************************************
|
---|
495 | //******************************************************************************
|
---|
496 | UINT WIN32API GetCaretBlinkTime(void)
|
---|
497 | {
|
---|
498 | #ifdef DEBUG
|
---|
499 | WriteLog("USER32: GetCaretBlinkTime\n");
|
---|
500 | #endif
|
---|
501 | return O32_GetCaretBlinkTime();
|
---|
502 | }
|
---|
503 | //******************************************************************************
|
---|
504 | //******************************************************************************
|
---|
505 | BOOL WIN32API GetCaretPos( LPPOINT lpPoint)
|
---|
506 | {
|
---|
507 | #ifdef DEBUG
|
---|
508 | WriteLog("USER32: GetCaretPos\n");
|
---|
509 | #endif
|
---|
510 | return O32_GetCaretPos(lpPoint);
|
---|
511 | }
|
---|
512 | //******************************************************************************
|
---|
513 | //******************************************************************************
|
---|
514 | BOOL WIN32API HideCaret( HWND hWnd)
|
---|
515 | {
|
---|
516 | #ifdef DEBUG
|
---|
517 | WriteLog("USER32: HideCaret\n");
|
---|
518 | #endif
|
---|
519 | hWnd = Win32Window::Win32ToOS2Handle(hWnd);
|
---|
520 | return O32_HideCaret(hWnd);
|
---|
521 | }
|
---|
522 | //******************************************************************************
|
---|
523 | //******************************************************************************
|
---|
524 | BOOL WIN32API SetCaretBlinkTime( UINT wMSeconds)
|
---|
525 | {
|
---|
526 | #ifdef DEBUG
|
---|
527 | WriteLog("USER32: SetCaretBlinkTime\n");
|
---|
528 | #endif
|
---|
529 | return O32_SetCaretBlinkTime(wMSeconds);
|
---|
530 | }
|
---|
531 | //******************************************************************************
|
---|
532 | //******************************************************************************
|
---|
533 | BOOL WIN32API SetCaretPos( int nX, int nY)
|
---|
534 | {
|
---|
535 | dprintf(("USER32: SetCaretPos\n"));
|
---|
536 | return O32_SetCaretPos(nX,nY);
|
---|
537 | }
|
---|
538 | //******************************************************************************
|
---|
539 | //******************************************************************************
|
---|
540 | BOOL WIN32API ShowCaret( HWND hwnd)
|
---|
541 | {
|
---|
542 | dprintf(("USER32: ShowCaret\n"));
|
---|
543 | hwnd = Win32Window::Win32ToOS2Handle(hwnd);
|
---|
544 | return O32_ShowCaret(hwnd);
|
---|
545 | }
|
---|
546 | #endif
|
---|
547 |
|
---|
548 | /* Cursor Functions */
|
---|
549 |
|
---|
550 | BOOL WIN32API ClipCursor(const RECT * lpRect)
|
---|
551 | {
|
---|
552 | #ifdef DEBUG
|
---|
553 | WriteLog("USER32: ClipCursor\n");
|
---|
554 | #endif
|
---|
555 | return O32_ClipCursor(lpRect);
|
---|
556 | }
|
---|
557 | //******************************************************************************
|
---|
558 | //******************************************************************************
|
---|
559 | HCURSOR WIN32API CreateCursor( HINSTANCE hInst, int xHotSpot, int yHotSpot, int nWidth, int nHeight, const VOID *pvANDPlane, const VOID *pvXORPlane)
|
---|
560 | {
|
---|
561 | #ifdef DEBUG
|
---|
562 | WriteLog("USER32: CreateCursor\n");
|
---|
563 | #endif
|
---|
564 | return O32_CreateCursor(hInst,xHotSpot,yHotSpot,nWidth,nHeight,pvANDPlane,pvXORPlane);
|
---|
565 | }
|
---|
566 | //******************************************************************************
|
---|
567 | //******************************************************************************
|
---|
568 | BOOL WIN32API DestroyCursor( HCURSOR hCursor)
|
---|
569 | {
|
---|
570 | #ifdef DEBUG
|
---|
571 | WriteLog("USER32: DestroyCursor\n");
|
---|
572 | #endif
|
---|
573 | return O32_DestroyCursor(hCursor);
|
---|
574 | }
|
---|
575 | //******************************************************************************
|
---|
576 | //******************************************************************************
|
---|
577 | BOOL WIN32API GetClipCursor( LPRECT lpRect)
|
---|
578 | {
|
---|
579 | #ifdef DEBUG
|
---|
580 | WriteLog("USER32: GetClipCursor\n");
|
---|
581 | #endif
|
---|
582 | return O32_GetClipCursor(lpRect);
|
---|
583 | }
|
---|
584 | //******************************************************************************
|
---|
585 | //******************************************************************************
|
---|
586 | HCURSOR WIN32API GetCursor(void)
|
---|
587 | {
|
---|
588 | #ifdef DEBUG
|
---|
589 | //// WriteLog("USER32: GetCursor\n");
|
---|
590 | #endif
|
---|
591 | return O32_GetCursor();
|
---|
592 | }
|
---|
593 | //******************************************************************************
|
---|
594 | //******************************************************************************
|
---|
595 | BOOL WIN32API GetCursorPos( PPOINT lpPoint)
|
---|
596 | {
|
---|
597 | BOOL rc;
|
---|
598 | POINT point;
|
---|
599 | #ifdef DEBUG
|
---|
600 | //// WriteLog("USER32: GetCursorPos\n");
|
---|
601 | #endif
|
---|
602 | if (!lpPoint) return FALSE;
|
---|
603 | if (OSLibWinQueryPointerPos(OSLIB_HWND_DESKTOP,&point)) //POINT == POINTL
|
---|
604 | {
|
---|
605 | OS2ToWin32ScreenPos(lpPoint,&point);
|
---|
606 | return TRUE;
|
---|
607 | } else return FALSE;
|
---|
608 | }
|
---|
609 | /*****************************************************************************
|
---|
610 | * Name : HCURSOR WIN32API LoadCursorFromFileA
|
---|
611 | * Purpose : The LoadCursorFromFile function creates a cursor based on data
|
---|
612 | * contained in a file. The file is specified by its name or by a
|
---|
613 | * system cursor identifier. The function returns a handle to the
|
---|
614 | * newly created cursor. Files containing cursor data may be in
|
---|
615 | * either cursor (.CUR) or animated cursor (.ANI) format.
|
---|
616 | * Parameters: LPCTSTR lpFileName pointer to cursor file, or system cursor id
|
---|
617 | * Variables :
|
---|
618 | * Result : If the function is successful, the return value is a handle to
|
---|
619 | * the new cursor.
|
---|
620 | * If the function fails, the return value is NULL. To get extended
|
---|
621 | * error information, call GetLastError. GetLastError may return
|
---|
622 | * the following
|
---|
623 | * Remark :
|
---|
624 | * Status : UNTESTED STUB
|
---|
625 | *
|
---|
626 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
627 | *****************************************************************************/
|
---|
628 | HCURSOR WIN32API LoadCursorFromFileA(LPCTSTR lpFileName)
|
---|
629 | {
|
---|
630 | if (!HIWORD(lpFileName))
|
---|
631 | {
|
---|
632 | return LoadCursorA(NULL,lpFileName);
|
---|
633 | } else
|
---|
634 | {
|
---|
635 | dprintf(("USER32:LoadCursorFromFileA (%s) not implemented.\n",
|
---|
636 | lpFileName));
|
---|
637 |
|
---|
638 | return (NULL);
|
---|
639 | }
|
---|
640 | }
|
---|
641 | /*****************************************************************************
|
---|
642 | * Name : HCURSOR WIN32API LoadCursorFromFileW
|
---|
643 | * Purpose : The LoadCursorFromFile function creates a cursor based on data
|
---|
644 | * contained in a file. The file is specified by its name or by a
|
---|
645 | * system cursor identifier. The function returns a handle to the
|
---|
646 | * newly created cursor. Files containing cursor data may be in
|
---|
647 | * either cursor (.CUR) or animated cursor (.ANI) format.
|
---|
648 | * Parameters: LPCTSTR lpFileName pointer to cursor file, or system cursor id
|
---|
649 | * Variables :
|
---|
650 | * Result : If the function is successful, the return value is a handle to
|
---|
651 | * the new cursor.
|
---|
652 | * If the function fails, the return value is NULL. To get extended
|
---|
653 | * error information, call GetLastError. GetLastError may return
|
---|
654 | * the following
|
---|
655 | * Remark :
|
---|
656 | * Status : UNTESTED STUB
|
---|
657 | *
|
---|
658 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
659 | *****************************************************************************/
|
---|
660 | HCURSOR WIN32API LoadCursorFromFileW(LPCWSTR lpFileName)
|
---|
661 | {
|
---|
662 | if (!HIWORD(lpFileName))
|
---|
663 | {
|
---|
664 | return LoadCursorW(NULL,lpFileName);
|
---|
665 | } else
|
---|
666 | {
|
---|
667 | dprintf(("USER32:LoadCursorFromFileW (%s) not implemented.\n",
|
---|
668 | lpFileName));
|
---|
669 |
|
---|
670 | return (NULL);
|
---|
671 | }
|
---|
672 | }
|
---|
673 | //******************************************************************************
|
---|
674 | //******************************************************************************
|
---|
675 | HCURSOR WIN32API SetCursor( HCURSOR hcur)
|
---|
676 | {
|
---|
677 | HCURSOR rc;
|
---|
678 |
|
---|
679 | rc = O32_SetCursor(hcur);
|
---|
680 | dprintf(("USER32: SetCursor %x (prev %x (%x))\n", hcur, rc, O32_GetCursor()));
|
---|
681 | return rc;
|
---|
682 | }
|
---|
683 | //******************************************************************************
|
---|
684 | //******************************************************************************
|
---|
685 | BOOL WIN32API SetCursorPos( int X, int Y)
|
---|
686 | {
|
---|
687 | #ifdef DEBUG
|
---|
688 | WriteLog("USER32: SetCursorPos\n");
|
---|
689 | #endif
|
---|
690 | return O32_SetCursorPos(X,Y);
|
---|
691 | }
|
---|
692 | /*****************************************************************************
|
---|
693 | * Name : BOOL WIN32API SetSystemCursor
|
---|
694 | * Purpose : The SetSystemCursor function replaces the contents of the system
|
---|
695 | * cursor specified by dwCursorId with the contents of the cursor
|
---|
696 | * specified by hCursor, and then destroys hCursor. This function
|
---|
697 | * lets an application customize the system cursors.
|
---|
698 | * Parameters: HCURSOR hCursor set specified system cursor to this cursor's
|
---|
699 | * contents, then destroy this
|
---|
700 | * DWORD dwCursorID system cursor specified by its identifier
|
---|
701 | * Variables :
|
---|
702 | * Result : If the function succeeds, the return value is TRUE.
|
---|
703 | * If the function fails, the return value is FALSE. To get extended
|
---|
704 | * error information, call GetLastError.
|
---|
705 | * Remark :
|
---|
706 | * Status : UNTESTED STUB
|
---|
707 | *
|
---|
708 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
709 | *****************************************************************************/
|
---|
710 | BOOL WIN32API SetSystemCursor(HCURSOR hCursor,
|
---|
711 | DWORD dwCursorId)
|
---|
712 | {
|
---|
713 | dprintf(("USER32:SetSystemCursor (%08xh,%08x) not supported.\n",
|
---|
714 | hCursor,
|
---|
715 | dwCursorId));
|
---|
716 |
|
---|
717 | return DestroyCursor(hCursor);
|
---|
718 | }
|
---|
719 | //******************************************************************************
|
---|
720 | //******************************************************************************
|
---|
721 | int WIN32API ShowCursor( BOOL bShow)
|
---|
722 | {
|
---|
723 | #ifdef DEBUG
|
---|
724 | WriteLog("USER32: ShowCursor\n");
|
---|
725 | #endif
|
---|
726 | return O32_ShowCursor(bShow);
|
---|
727 | }
|
---|
728 |
|
---|
729 | /* Mouse Input Functions */
|
---|
730 |
|
---|
731 | /*****************************************************************************
|
---|
732 | * Name : BOOL WIN32API DragDetect
|
---|
733 | * Purpose : The DragDetect function captures the mouse and tracks its movement
|
---|
734 | * Parameters: HWND hwnd
|
---|
735 | * POINT pt
|
---|
736 | * Variables :
|
---|
737 | * Result : If the user moved the mouse outside of the drag rectangle while
|
---|
738 | * holding the left button down, the return value is TRUE.
|
---|
739 | * If the user did not move the mouse outside of the drag rectangle
|
---|
740 | * while holding the left button down, the return value is FALSE.
|
---|
741 | * Remark :
|
---|
742 | * Status : UNTESTED STUB
|
---|
743 | *
|
---|
744 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
745 | *****************************************************************************/
|
---|
746 | BOOL WIN32API DragDetect(HWND hwnd,
|
---|
747 | POINT pt)
|
---|
748 | {
|
---|
749 | dprintf(("USER32:DragDetect(%08xh,...) not implemented.\n",
|
---|
750 | hwnd));
|
---|
751 |
|
---|
752 | return (FALSE);
|
---|
753 | }
|
---|
754 | //******************************************************************************
|
---|
755 | //******************************************************************************
|
---|
756 | HWND WIN32API GetCapture(void)
|
---|
757 | {
|
---|
758 | #ifdef DEBUG
|
---|
759 | WriteLog("USER32: GetCapture\n");
|
---|
760 | #endif
|
---|
761 | return Win32Window::OS2ToWin32Handle(O32_GetCapture());
|
---|
762 | }
|
---|
763 | //******************************************************************************
|
---|
764 | //******************************************************************************
|
---|
765 | UINT WIN32API GetDoubleClickTime(void)
|
---|
766 | {
|
---|
767 | #ifdef DEBUG
|
---|
768 | WriteLog("USER32: GetDoubleClickTime\n");
|
---|
769 | #endif
|
---|
770 | return O32_GetDoubleClickTime();
|
---|
771 | }
|
---|
772 | /*****************************************************************************
|
---|
773 | * Name : VOID WIN32API mouse_event
|
---|
774 | * Purpose : The mouse_event function synthesizes mouse motion and button clicks.
|
---|
775 | * Parameters: DWORD dwFlags flags specifying various motion/click variants
|
---|
776 | * DWORD dx horizontal mouse position or position change
|
---|
777 | * DWORD dy vertical mouse position or position change
|
---|
778 | * DWORD cButtons unused, reserved for future use, set to zero
|
---|
779 | * DWORD dwExtraInfo 32 bits of application-defined information
|
---|
780 | * Variables :
|
---|
781 | * Result :
|
---|
782 | * Remark :
|
---|
783 | * Status : UNTESTED STUB
|
---|
784 | *
|
---|
785 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
786 | *****************************************************************************/
|
---|
787 | VOID WIN32API mouse_event(DWORD dwFlags,
|
---|
788 | DWORD dx,
|
---|
789 | DWORD dy,
|
---|
790 | DWORD cButtons,
|
---|
791 | DWORD dwExtraInfo)
|
---|
792 | {
|
---|
793 | dprintf(("USER32:mouse_event (%08xh,%u,%u,%u,%08x) not implemented.\n",
|
---|
794 | dwFlags,
|
---|
795 | dx,
|
---|
796 | dy,
|
---|
797 | cButtons,
|
---|
798 | dwExtraInfo));
|
---|
799 | }
|
---|
800 | //******************************************************************************
|
---|
801 | //******************************************************************************
|
---|
802 | BOOL WIN32API ReleaseCapture(void)
|
---|
803 | {
|
---|
804 | #ifdef DEBUG
|
---|
805 | WriteLog("USER32: ReleaseCapture\n");
|
---|
806 | #endif
|
---|
807 | return O32_ReleaseCapture();
|
---|
808 | }
|
---|
809 | //******************************************************************************
|
---|
810 | //******************************************************************************
|
---|
811 | HWND WIN32API SetCapture( HWND hwnd)
|
---|
812 | {
|
---|
813 | #ifdef DEBUG
|
---|
814 | WriteLog("USER32: SetCapture\n");
|
---|
815 | #endif
|
---|
816 | hwnd = Win32Window::Win32ToOS2Handle(hwnd);
|
---|
817 | return Win32Window::OS2ToWin32Handle(O32_SetCapture(hwnd));
|
---|
818 | }
|
---|
819 | //******************************************************************************
|
---|
820 | //******************************************************************************
|
---|
821 | BOOL WIN32API SetDoubleClickTime( UINT uInterval)
|
---|
822 | {
|
---|
823 | #ifdef DEBUG
|
---|
824 | WriteLog("USER32: SetDoubleClickTime\n");
|
---|
825 | #endif
|
---|
826 | return O32_SetDoubleClickTime(uInterval);
|
---|
827 | }
|
---|
828 | //******************************************************************************
|
---|
829 | //******************************************************************************
|
---|
830 | BOOL WIN32API SwapMouseButton( BOOL fSwap)
|
---|
831 | {
|
---|
832 | #ifdef DEBUG
|
---|
833 | WriteLog("USER32: SwapMouseButton\n");
|
---|
834 | #endif
|
---|
835 | return O32_SwapMouseButton(fSwap);
|
---|
836 | }
|
---|
837 |
|
---|
838 | /* Error Functions */
|
---|
839 |
|
---|
840 | BOOL WIN32API ExitWindowsEx( UINT uFlags, DWORD dwReserved)
|
---|
841 | {
|
---|
842 | #ifdef DEBUG
|
---|
843 | WriteLog("USER32: ExitWindowsEx\n");
|
---|
844 | #endif
|
---|
845 | return O32_ExitWindowsEx(uFlags,dwReserved);
|
---|
846 | }
|
---|
847 | //******************************************************************************
|
---|
848 | //******************************************************************************
|
---|
849 | BOOL WIN32API MessageBeep( UINT uType)
|
---|
850 | {
|
---|
851 | INT flStyle;
|
---|
852 |
|
---|
853 | #ifdef DEBUG
|
---|
854 | WriteLog("USER32: MessageBeep\n");
|
---|
855 | #endif
|
---|
856 |
|
---|
857 | switch (uType)
|
---|
858 | {
|
---|
859 | case 0xFFFFFFFF:
|
---|
860 | OSLibDosBeep(500,50);
|
---|
861 | return TRUE;
|
---|
862 | case MB_ICONASTERISK:
|
---|
863 | flStyle = WAOS_NOTE;
|
---|
864 | break;
|
---|
865 | case MB_ICONEXCLAMATION:
|
---|
866 | flStyle = WAOS_WARNING;
|
---|
867 | break;
|
---|
868 | case MB_ICONHAND:
|
---|
869 | case MB_ICONQUESTION:
|
---|
870 | case MB_OK:
|
---|
871 | flStyle = WAOS_NOTE;
|
---|
872 | break;
|
---|
873 | default:
|
---|
874 | flStyle = WAOS_ERROR; //CB: should be right
|
---|
875 | break;
|
---|
876 | }
|
---|
877 | return OSLibWinAlarm(OSLIB_HWND_DESKTOP,flStyle);
|
---|
878 | }
|
---|
879 | //******************************************************************************
|
---|
880 | //2nd parameter not used according to SDK (yet?)
|
---|
881 | //******************************************************************************
|
---|
882 | VOID WIN32API SetLastErrorEx(DWORD dwErrCode, DWORD dwType)
|
---|
883 | {
|
---|
884 | #ifdef DEBUG
|
---|
885 | WriteLog("USER32: SetLastErrorEx\n");
|
---|
886 | #endif
|
---|
887 | SetLastError(dwErrCode);
|
---|
888 | }
|
---|
889 |
|
---|
890 | /* Accessibility Functions */
|
---|
891 |
|
---|
892 | int WIN32API GetSystemMetrics(int nIndex)
|
---|
893 | {
|
---|
894 | int rc = 0;
|
---|
895 |
|
---|
896 | switch(nIndex) {
|
---|
897 | case SM_CXICONSPACING: //TODO: size of grid cell for large icons
|
---|
898 | rc = OSLibWinQuerySysValue(OSLIB_HWND_DESKTOP,SVOS_CXICON);
|
---|
899 | //CB: return standard windows icon size?
|
---|
900 | //rc = 32;
|
---|
901 | break;
|
---|
902 | case SM_CYICONSPACING:
|
---|
903 | rc = OSLibWinQuerySysValue(OSLIB_HWND_DESKTOP,SVOS_CYICON);
|
---|
904 | //read SM_CXICONSPACING comment
|
---|
905 | //rc = 32;
|
---|
906 | break;
|
---|
907 | case SM_PENWINDOWS:
|
---|
908 | rc = FALSE;
|
---|
909 | break;
|
---|
910 | case SM_DBCSENABLED:
|
---|
911 | rc = FALSE;
|
---|
912 | break;
|
---|
913 | case SM_CXEDGE: //size of 3D window edge (not supported)
|
---|
914 | rc = 1;
|
---|
915 | break;
|
---|
916 | case SM_CYEDGE:
|
---|
917 | rc = 1;
|
---|
918 | break;
|
---|
919 | case SM_CXMINSPACING: //can be SM_CXMINIMIZED or larger
|
---|
920 | //CB: replace with const
|
---|
921 | rc = O32_GetSystemMetrics(SM_CXMINIMIZED);
|
---|
922 | break;
|
---|
923 | case SM_CYMINSPACING:
|
---|
924 | //CB: replace with const
|
---|
925 | rc = GetSystemMetrics(SM_CYMINIMIZED);
|
---|
926 | break;
|
---|
927 | case SM_CXICON:
|
---|
928 | case SM_CYICON:
|
---|
929 | rc = 32; //CB: Win32: only 32x32, OS/2 32x32/40x40
|
---|
930 | // we must implement 32x32 for all screen resolutions
|
---|
931 | break;
|
---|
932 | case SM_CXSMICON: //recommended size of small icons (TODO: adjust to screen res.)
|
---|
933 | rc = 16;
|
---|
934 | break;
|
---|
935 | case SM_CYSMICON:
|
---|
936 | rc = 16;
|
---|
937 | break;
|
---|
938 | case SM_CYSMCAPTION: //size in pixels of a small caption (TODO: ????)
|
---|
939 | rc = 8;
|
---|
940 | break;
|
---|
941 | case SM_CXSMSIZE: //size of small caption buttons (pixels) (TODO: implement properly)
|
---|
942 | rc = 16;
|
---|
943 | break;
|
---|
944 | case SM_CYSMSIZE:
|
---|
945 | rc = 16;
|
---|
946 | break;
|
---|
947 | case SM_CXMENUSIZE: //TODO: size of menu bar buttons (such as MDI window close)
|
---|
948 | rc = 16;
|
---|
949 | break;
|
---|
950 | case SM_CYMENUSIZE:
|
---|
951 | rc = 16;
|
---|
952 | break;
|
---|
953 | case SM_ARRANGE:
|
---|
954 | rc = ARW_BOTTOMLEFT | ARW_LEFT;
|
---|
955 | break;
|
---|
956 | case SM_CXMINIMIZED:
|
---|
957 | break;
|
---|
958 | case SM_CYMINIMIZED:
|
---|
959 | break;
|
---|
960 | case SM_CXMAXTRACK: //max window size
|
---|
961 | case SM_CXMAXIMIZED: //max toplevel window size
|
---|
962 | rc = OSLibWinQuerySysValue(OSLIB_HWND_DESKTOP,SVOS_CXSCREEN);
|
---|
963 | break;
|
---|
964 | case SM_CYMAXTRACK:
|
---|
965 | case SM_CYMAXIMIZED:
|
---|
966 | rc = OSLibWinQuerySysValue(OSLIB_HWND_DESKTOP,SVOS_CYSCREEN);
|
---|
967 | break;
|
---|
968 | case SM_NETWORK:
|
---|
969 | rc = 0x01; //TODO: default = yes
|
---|
970 | break;
|
---|
971 | case SM_CLEANBOOT:
|
---|
972 | rc = 0; //normal boot
|
---|
973 | break;
|
---|
974 | case SM_CXDRAG: //nr of pixels before drag becomes a real one
|
---|
975 | rc = 2;
|
---|
976 | break;
|
---|
977 | case SM_CYDRAG:
|
---|
978 | rc = 2;
|
---|
979 | break;
|
---|
980 | case SM_SHOWSOUNDS: //show instead of play sound
|
---|
981 | rc = FALSE;
|
---|
982 | break;
|
---|
983 | case SM_CXMENUCHECK:
|
---|
984 | rc = 4; //TODO
|
---|
985 | break;
|
---|
986 | case SM_CYMENUCHECK:
|
---|
987 | rc = OSLibWinQuerySysValue(OSLIB_HWND_DESKTOP,SVOS_CYMENU);
|
---|
988 | break;
|
---|
989 | case SM_SLOWMACHINE:
|
---|
990 | rc = FALSE; //even a slow machine is fast with OS/2 :)
|
---|
991 | break;
|
---|
992 | case SM_MIDEASTENABLED:
|
---|
993 | rc = FALSE;
|
---|
994 | break;
|
---|
995 | case SM_CMETRICS:
|
---|
996 | //CB: replace with const
|
---|
997 | rc = O32_GetSystemMetrics(44); //Open32 changed this one
|
---|
998 | break;
|
---|
999 | default:
|
---|
1000 | //better than nothing
|
---|
1001 | rc = O32_GetSystemMetrics(nIndex);
|
---|
1002 | break;
|
---|
1003 | }
|
---|
1004 | #ifdef DEBUG
|
---|
1005 | WriteLog("USER32: GetSystemMetrics %d returned %d\n", nIndex, rc);
|
---|
1006 | #endif
|
---|
1007 | return(rc);
|
---|
1008 | }
|
---|
1009 | //******************************************************************************
|
---|
1010 | /* Not support by Open32 (not included are the new win9x parameters):
|
---|
1011 | case SPI_GETFASTTASKSWITCH:
|
---|
1012 | case SPI_GETGRIDGRANULARITY:
|
---|
1013 | case SPI_GETICONTITLELOGFONT:
|
---|
1014 | case SPI_GETICONTITLEWRAP:
|
---|
1015 | case SPI_GETMENUDROPALIGNMENT:
|
---|
1016 | case SPI_ICONHORIZONTALSPACING:
|
---|
1017 | case SPI_ICONVERTICALSPACING:
|
---|
1018 | case SPI_LANGDRIVER:
|
---|
1019 | case SPI_SETFASTTASKSWITCH:
|
---|
1020 | case SPI_SETGRIDGRANULARITY:
|
---|
1021 | case SPI_SETICONTITLELOGFONT:
|
---|
1022 | case SPI_SETICONTITLEWRAP:
|
---|
1023 | case SPI_SETMENUDROPALIGNMENT:
|
---|
1024 | case SPI_GETSCREENSAVEACTIVE:
|
---|
1025 | case SPI_GETSCREENSAVETIMEOUT:
|
---|
1026 | case SPI_SETDESKPATTERN:
|
---|
1027 | case SPI_SETDESKWALLPAPER:
|
---|
1028 | case SPI_SETSCREENSAVEACTIVE:
|
---|
1029 | case SPI_SETSCREENSAVETIMEOUT:
|
---|
1030 | */
|
---|
1031 | //******************************************************************************
|
---|
1032 | BOOL WIN32API SystemParametersInfoA(UINT uiAction, UINT uiParam, PVOID pvParam, UINT fWinIni)
|
---|
1033 | {
|
---|
1034 | BOOL rc = TRUE;
|
---|
1035 | NONCLIENTMETRICSA *cmetric = (NONCLIENTMETRICSA *)pvParam;
|
---|
1036 |
|
---|
1037 | switch(uiAction) {
|
---|
1038 | case SPI_SCREENSAVERRUNNING:
|
---|
1039 | *(BOOL *)pvParam = FALSE;
|
---|
1040 | break;
|
---|
1041 | case SPI_GETDRAGFULLWINDOWS:
|
---|
1042 | *(BOOL *)pvParam = FALSE;
|
---|
1043 | break;
|
---|
1044 | case SPI_GETNONCLIENTMETRICS:
|
---|
1045 | memset(cmetric, 0, sizeof(NONCLIENTMETRICSA));
|
---|
1046 | cmetric->cbSize = sizeof(NONCLIENTMETRICSA);
|
---|
1047 |
|
---|
1048 | //CB: fonts not handled by Open32, set to WarpSans
|
---|
1049 | lstrcpyA(cmetric->lfCaptionFont.lfFaceName,"WarpSans");
|
---|
1050 | cmetric->lfCaptionFont.lfHeight = 9;
|
---|
1051 |
|
---|
1052 | lstrcpyA(cmetric->lfMenuFont.lfFaceName,"WarpSans");
|
---|
1053 | cmetric->lfMenuFont.lfHeight = 9;
|
---|
1054 |
|
---|
1055 | lstrcpyA(cmetric->lfStatusFont.lfFaceName,"WarpSans");
|
---|
1056 | cmetric->lfStatusFont.lfHeight = 9;
|
---|
1057 |
|
---|
1058 | lstrcpyA(cmetric->lfMessageFont.lfFaceName,"WarpSans");
|
---|
1059 | cmetric->lfMessageFont.lfHeight = 9;
|
---|
1060 |
|
---|
1061 | cmetric->iBorderWidth = GetSystemMetrics(SM_CXBORDER);
|
---|
1062 | cmetric->iScrollWidth = GetSystemMetrics(SM_CXHSCROLL);
|
---|
1063 | cmetric->iScrollHeight = GetSystemMetrics(SM_CYHSCROLL);
|
---|
1064 | cmetric->iCaptionWidth = 32; //TODO
|
---|
1065 | cmetric->iCaptionHeight = 16; //TODO
|
---|
1066 | cmetric->iSmCaptionWidth = GetSystemMetrics(SM_CXSMSIZE);
|
---|
1067 | cmetric->iSmCaptionHeight = GetSystemMetrics(SM_CYSMSIZE);
|
---|
1068 | cmetric->iMenuWidth = 32; //TODO
|
---|
1069 | cmetric->iMenuHeight = GetSystemMetrics(SM_CYMENU);
|
---|
1070 | break;
|
---|
1071 | case SPI_GETICONTITLELOGFONT:
|
---|
1072 | {
|
---|
1073 | LPLOGFONTA lpLogFont = (LPLOGFONTA)pvParam;
|
---|
1074 |
|
---|
1075 | /* from now on we always have an alias for MS Sans Serif */
|
---|
1076 | strcpy(lpLogFont->lfFaceName, "MS Sans Serif");
|
---|
1077 | lpLogFont->lfHeight = -GetProfileIntA("Desktop","IconTitleSize", 8);
|
---|
1078 | lpLogFont->lfWidth = 0;
|
---|
1079 | lpLogFont->lfEscapement = lpLogFont->lfOrientation = 0;
|
---|
1080 | lpLogFont->lfWeight = FW_NORMAL;
|
---|
1081 | lpLogFont->lfItalic = FALSE;
|
---|
1082 | lpLogFont->lfStrikeOut = FALSE;
|
---|
1083 | lpLogFont->lfUnderline = FALSE;
|
---|
1084 | lpLogFont->lfCharSet = ANSI_CHARSET;
|
---|
1085 | lpLogFont->lfOutPrecision = OUT_DEFAULT_PRECIS;
|
---|
1086 | lpLogFont->lfClipPrecision = CLIP_DEFAULT_PRECIS;
|
---|
1087 | lpLogFont->lfPitchAndFamily = DEFAULT_PITCH | FF_SWISS;
|
---|
1088 | break;
|
---|
1089 | }
|
---|
1090 | case SPI_GETBORDER:
|
---|
1091 | *(INT *)pvParam = GetSystemMetrics( SM_CXFRAME );
|
---|
1092 | break;
|
---|
1093 |
|
---|
1094 | case SPI_GETWORKAREA:
|
---|
1095 | SetRect( (RECT *)pvParam, 0, 0,
|
---|
1096 | GetSystemMetrics( SM_CXSCREEN ),
|
---|
1097 | GetSystemMetrics( SM_CYSCREEN )
|
---|
1098 | );
|
---|
1099 | break;
|
---|
1100 |
|
---|
1101 | case 104: //TODO: Undocumented
|
---|
1102 | rc = 16;
|
---|
1103 | break;
|
---|
1104 | default:
|
---|
1105 | rc = O32_SystemParametersInfo(uiAction, uiParam, pvParam, fWinIni);
|
---|
1106 | break;
|
---|
1107 | }
|
---|
1108 | #ifdef DEBUG
|
---|
1109 | WriteLog("USER32: SystemParametersInfoA %d, returned %d\n", uiAction, rc);
|
---|
1110 | #endif
|
---|
1111 | return(rc);
|
---|
1112 | }
|
---|
1113 | //******************************************************************************
|
---|
1114 | //TODO: Check for more options that have different structs for Unicode!!!!
|
---|
1115 | //******************************************************************************
|
---|
1116 | BOOL WIN32API SystemParametersInfoW(UINT uiAction, UINT uiParam, PVOID pvParam, UINT fWinIni)
|
---|
1117 | {
|
---|
1118 | BOOL rc;
|
---|
1119 | NONCLIENTMETRICSW *clientMetricsW = (NONCLIENTMETRICSW *)pvParam;
|
---|
1120 | NONCLIENTMETRICSA clientMetricsA = {0};
|
---|
1121 | PVOID pvParamA;
|
---|
1122 | UINT uiParamA;
|
---|
1123 |
|
---|
1124 | switch(uiAction) {
|
---|
1125 | case SPI_SETNONCLIENTMETRICS:
|
---|
1126 | clientMetricsA.cbSize = sizeof(NONCLIENTMETRICSA);
|
---|
1127 | clientMetricsA.iBorderWidth = clientMetricsW->iBorderWidth;
|
---|
1128 | clientMetricsA.iScrollWidth = clientMetricsW->iScrollWidth;
|
---|
1129 | clientMetricsA.iScrollHeight = clientMetricsW->iScrollHeight;
|
---|
1130 | clientMetricsA.iCaptionWidth = clientMetricsW->iCaptionWidth;
|
---|
1131 | clientMetricsA.iCaptionHeight = clientMetricsW->iCaptionHeight;
|
---|
1132 | ConvertFontWA(&clientMetricsW->lfCaptionFont, &clientMetricsA.lfCaptionFont);
|
---|
1133 | clientMetricsA.iSmCaptionWidth = clientMetricsW->iSmCaptionWidth;
|
---|
1134 | clientMetricsA.iSmCaptionHeight = clientMetricsW->iSmCaptionHeight;
|
---|
1135 | ConvertFontWA(&clientMetricsW->lfSmCaptionFont, &clientMetricsA.lfSmCaptionFont);
|
---|
1136 | clientMetricsA.iMenuWidth = clientMetricsW->iMenuWidth;
|
---|
1137 | clientMetricsA.iMenuHeight = clientMetricsW->iMenuHeight;
|
---|
1138 | ConvertFontWA(&clientMetricsW->lfMenuFont, &clientMetricsA.lfMenuFont);
|
---|
1139 | ConvertFontWA(&clientMetricsW->lfStatusFont, &clientMetricsA.lfStatusFont);
|
---|
1140 | ConvertFontWA(&clientMetricsW->lfMessageFont, &clientMetricsA.lfMessageFont);
|
---|
1141 | //no break
|
---|
1142 | case SPI_GETNONCLIENTMETRICS:
|
---|
1143 | uiParamA = sizeof(NONCLIENTMETRICSA);
|
---|
1144 | pvParamA = &clientMetricsA;
|
---|
1145 | break;
|
---|
1146 | case SPI_GETICONTITLELOGFONT:
|
---|
1147 | {
|
---|
1148 | LPLOGFONTW lpLogFont = (LPLOGFONTW)pvParam;
|
---|
1149 |
|
---|
1150 | /* from now on we always have an alias for MS Sans Serif */
|
---|
1151 | lstrcpyW(lpLogFont->lfFaceName, (LPCWSTR)L"MS Sans Serif");
|
---|
1152 | lpLogFont->lfHeight = -GetProfileIntA("Desktop","IconTitleSize", 8);
|
---|
1153 | lpLogFont->lfWidth = 0;
|
---|
1154 | lpLogFont->lfEscapement = lpLogFont->lfOrientation = 0;
|
---|
1155 | lpLogFont->lfWeight = FW_NORMAL;
|
---|
1156 | lpLogFont->lfItalic = FALSE;
|
---|
1157 | lpLogFont->lfStrikeOut = FALSE;
|
---|
1158 | lpLogFont->lfUnderline = FALSE;
|
---|
1159 | lpLogFont->lfCharSet = ANSI_CHARSET;
|
---|
1160 | lpLogFont->lfOutPrecision = OUT_DEFAULT_PRECIS;
|
---|
1161 | lpLogFont->lfClipPrecision = CLIP_DEFAULT_PRECIS;
|
---|
1162 | lpLogFont->lfPitchAndFamily = DEFAULT_PITCH | FF_SWISS;
|
---|
1163 | return TRUE;
|
---|
1164 | }
|
---|
1165 | default:
|
---|
1166 | pvParamA = pvParam;
|
---|
1167 | uiParamA = uiParam;
|
---|
1168 | break;
|
---|
1169 | }
|
---|
1170 | rc = SystemParametersInfoA(uiAction, uiParamA, pvParamA, fWinIni);
|
---|
1171 |
|
---|
1172 | switch(uiAction) {
|
---|
1173 | case SPI_GETNONCLIENTMETRICS:
|
---|
1174 | clientMetricsW->cbSize = sizeof(*clientMetricsW);
|
---|
1175 | clientMetricsW->iBorderWidth = clientMetricsA.iBorderWidth;
|
---|
1176 | clientMetricsW->iScrollWidth = clientMetricsA.iScrollWidth;
|
---|
1177 | clientMetricsW->iScrollHeight = clientMetricsA.iScrollHeight;
|
---|
1178 | clientMetricsW->iCaptionWidth = clientMetricsA.iCaptionWidth;
|
---|
1179 | clientMetricsW->iCaptionHeight = clientMetricsA.iCaptionHeight;
|
---|
1180 | ConvertFontAW(&clientMetricsA.lfCaptionFont, &clientMetricsW->lfCaptionFont);
|
---|
1181 |
|
---|
1182 | clientMetricsW->iSmCaptionWidth = clientMetricsA.iSmCaptionWidth;
|
---|
1183 | clientMetricsW->iSmCaptionHeight = clientMetricsA.iSmCaptionHeight;
|
---|
1184 | ConvertFontAW(&clientMetricsA.lfSmCaptionFont, &clientMetricsW->lfSmCaptionFont);
|
---|
1185 |
|
---|
1186 | clientMetricsW->iMenuWidth = clientMetricsA.iMenuWidth;
|
---|
1187 | clientMetricsW->iMenuHeight = clientMetricsA.iMenuHeight;
|
---|
1188 | ConvertFontAW(&clientMetricsA.lfMenuFont, &clientMetricsW->lfMenuFont);
|
---|
1189 | ConvertFontAW(&clientMetricsA.lfStatusFont, &clientMetricsW->lfStatusFont);
|
---|
1190 | ConvertFontAW(&clientMetricsA.lfMessageFont, &clientMetricsW->lfMessageFont);
|
---|
1191 | break;
|
---|
1192 | }
|
---|
1193 | #ifdef DEBUG
|
---|
1194 | WriteLog("USER32: SystemParametersInfoW %d, returned %d\n", uiAction, rc);
|
---|
1195 | #endif
|
---|
1196 | return(rc);
|
---|
1197 | }
|
---|
1198 |
|
---|
1199 | /* Timer Functions */
|
---|
1200 |
|
---|
1201 | #if 0
|
---|
1202 | BOOL WIN32API KillTimer(HWND hWnd, UINT uIDEvent)
|
---|
1203 | {
|
---|
1204 | #ifdef DEBUG
|
---|
1205 | WriteLog("USER32: KillTimer\n");
|
---|
1206 | #endif
|
---|
1207 | hWnd = Win32Window::Win32ToOS2Handle(hWnd);
|
---|
1208 | //WinStopTimer
|
---|
1209 | //CB: replace
|
---|
1210 | return O32_KillTimer(hWnd,uIDEvent);
|
---|
1211 | }
|
---|
1212 | //******************************************************************************
|
---|
1213 | //******************************************************************************
|
---|
1214 | UINT WIN32API SetTimer( HWND hwnd, UINT idTimer, UINT uTimeout, TIMERPROC tmprc)
|
---|
1215 | {
|
---|
1216 | #ifdef DEBUG
|
---|
1217 | WriteLog("USER32: SetTimer INCORRECT CALLING CONVENTION FOR HANDLER!!!!!\n");
|
---|
1218 | #endif
|
---|
1219 | hwnd = Win32Window::Win32ToOS2Handle(hwnd);
|
---|
1220 | //SvL: Write callback handler class for this one
|
---|
1221 | //CB: replace
|
---|
1222 | return O32_SetTimer(hwnd,idTimer,uTimeout,(TIMERPROC_O32)tmprc);
|
---|
1223 | }
|
---|
1224 | #endif
|
---|
1225 |
|
---|
1226 | /* Process and Thread Functions */
|
---|
1227 |
|
---|
1228 | //******************************************************************************
|
---|
1229 | //DWORD idAttach; /* thread to attach */
|
---|
1230 | //DWORD idAttachTo; /* thread to attach to */
|
---|
1231 | //BOOL fAttach; /* attach or detach */
|
---|
1232 | //******************************************************************************
|
---|
1233 | BOOL WIN32API AttachThreadInput(DWORD idAttach, DWORD idAttachTo, BOOL fAttach)
|
---|
1234 | {
|
---|
1235 | #ifdef DEBUG
|
---|
1236 | WriteLog("USER32: AttachThreadInput, not implemented\n");
|
---|
1237 | #endif
|
---|
1238 | return(TRUE);
|
---|
1239 | }
|
---|
1240 | //******************************************************************************
|
---|
1241 | //TODO:How can we emulate this one in OS/2???
|
---|
1242 | //******************************************************************************
|
---|
1243 | DWORD WIN32API WaitForInputIdle(HANDLE hProcess, DWORD dwTimeOut)
|
---|
1244 | {
|
---|
1245 | #ifdef DEBUG
|
---|
1246 | WriteLog("USER32: WaitForInputIdle (Not Implemented) %d\n", dwTimeOut);
|
---|
1247 | #endif
|
---|
1248 |
|
---|
1249 | if(dwTimeOut == INFINITE) return(0);
|
---|
1250 |
|
---|
1251 | // DosSleep(dwTimeOut/16);
|
---|
1252 | return(0);
|
---|
1253 | }
|
---|
1254 |
|
---|
1255 | /* Help Functions */
|
---|
1256 |
|
---|
1257 | DWORD WIN32API GetWindowContextHelpId(HWND hwnd)
|
---|
1258 | {
|
---|
1259 | #ifdef DEBUG
|
---|
1260 | WriteLog("USER32: GetWindowContextHelpId, not implemented\n");
|
---|
1261 | #endif
|
---|
1262 | hwnd = Win32Window::Win32ToOS2Handle(hwnd);
|
---|
1263 |
|
---|
1264 | return(0);
|
---|
1265 | }
|
---|
1266 | //******************************************************************************
|
---|
1267 | //******************************************************************************
|
---|
1268 | BOOL WIN32API SetWindowContextHelpId(HWND hwnd, DWORD dwContextHelpId)
|
---|
1269 | {
|
---|
1270 | #ifdef DEBUG
|
---|
1271 | WriteLog("USER32: SetWindowContextHelpId, not implemented\n");
|
---|
1272 | #endif
|
---|
1273 | hwnd = Win32Window::Win32ToOS2Handle(hwnd);
|
---|
1274 |
|
---|
1275 | return(TRUE);
|
---|
1276 | }
|
---|
1277 | //******************************************************************************
|
---|
1278 | //******************************************************************************
|
---|
1279 | BOOL WIN32API WinHelpA( HWND hwnd, LPCSTR lpszHelp, UINT uCommand, DWORD dwData)
|
---|
1280 | {
|
---|
1281 | #ifdef DEBUG
|
---|
1282 | WriteLog("USER32: WinHelp not implemented %s\n", lpszHelp);
|
---|
1283 | #endif
|
---|
1284 | // hwnd = Win32Window::Win32ToOS2Handle(hwnd);
|
---|
1285 | // return O32_WinHelp(arg1, arg2, arg3, arg4);
|
---|
1286 |
|
---|
1287 | return(TRUE);
|
---|
1288 | }
|
---|
1289 | //******************************************************************************
|
---|
1290 | //******************************************************************************
|
---|
1291 | BOOL WIN32API WinHelpW( HWND arg1, LPCWSTR arg2, UINT arg3, DWORD arg4)
|
---|
1292 | {
|
---|
1293 | char *astring = UnicodeToAsciiString((LPWSTR)arg2);
|
---|
1294 | BOOL rc;
|
---|
1295 |
|
---|
1296 | #ifdef DEBUG
|
---|
1297 | WriteLog("USER32: WinHelpW\n");
|
---|
1298 | #endif
|
---|
1299 | rc = WinHelpA(arg1, astring, arg3, arg4);
|
---|
1300 | FreeAsciiString(astring);
|
---|
1301 | return rc;
|
---|
1302 | }
|
---|
1303 |
|
---|
1304 | /* Keyboard and Input Functions */
|
---|
1305 |
|
---|
1306 | BOOL WIN32API ActivateKeyboardLayout(HKL hkl, UINT fuFlags)
|
---|
1307 | {
|
---|
1308 | #ifdef DEBUG
|
---|
1309 | WriteLog("USER32: ActivateKeyboardLayout, not implemented\n");
|
---|
1310 | #endif
|
---|
1311 | return(TRUE);
|
---|
1312 | }
|
---|
1313 | //******************************************************************************
|
---|
1314 | //SvL: 24-6-'97 - Added
|
---|
1315 | //TODO: Not implemented
|
---|
1316 | //******************************************************************************
|
---|
1317 | WORD WIN32API GetAsyncKeyState(INT nVirtKey)
|
---|
1318 | {
|
---|
1319 | #ifdef DEBUG
|
---|
1320 | //// WriteLog("USER32: GetAsyncKeyState Not implemented\n");
|
---|
1321 | #endif
|
---|
1322 | return 0;
|
---|
1323 | }
|
---|
1324 | /*****************************************************************************
|
---|
1325 | * Name : UINT WIN32API GetKBCodePage
|
---|
1326 | * Purpose : The GetKBCodePage function is provided for compatibility with
|
---|
1327 | * earlier versions of Windows. In the Win32 application programming
|
---|
1328 | * interface (API) it just calls the GetOEMCP function.
|
---|
1329 | * Parameters:
|
---|
1330 | * Variables :
|
---|
1331 | * Result : If the function succeeds, the return value is an OEM code-page
|
---|
1332 | * identifier, or it is the default identifier if the registry
|
---|
1333 | * value is not readable. For a list of OEM code-page identifiers,
|
---|
1334 | * see GetOEMCP.
|
---|
1335 | * Remark :
|
---|
1336 | * Status : UNTESTED
|
---|
1337 | *
|
---|
1338 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
1339 | *****************************************************************************/
|
---|
1340 |
|
---|
1341 | UINT WIN32API GetKBCodePage(VOID)
|
---|
1342 | {
|
---|
1343 | return (GetOEMCP());
|
---|
1344 | }
|
---|
1345 | /*****************************************************************************
|
---|
1346 | * Name : BOOL WIN32API GetKeyboardLayoutNameA
|
---|
1347 | * Purpose : The GetKeyboardLayoutName function retrieves the name of the
|
---|
1348 | * active keyboard layout.
|
---|
1349 | * Parameters: LPTSTR pwszKLID address of buffer for layout name
|
---|
1350 | * Variables :
|
---|
1351 | * Result : If the function succeeds, the return value is TRUE.
|
---|
1352 | * If the function fails, the return value is FALSE. To get extended
|
---|
1353 | * error information, call GetLastError.
|
---|
1354 | * Remark :
|
---|
1355 | * Status : UNTESTED STUB
|
---|
1356 | *
|
---|
1357 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
1358 | *****************************************************************************/
|
---|
1359 | // @@@PH Win32 BOOL's are casted to INTs
|
---|
1360 | INT WIN32API GetKeyboardLayoutNameA(LPTSTR pwszKLID)
|
---|
1361 | {
|
---|
1362 | dprintf(("USER32:GetKeyboardLayoutNameA (%08x) not implemented.",
|
---|
1363 | pwszKLID));
|
---|
1364 |
|
---|
1365 | return(FALSE);
|
---|
1366 | }
|
---|
1367 | //******************************************************************************
|
---|
1368 | //******************************************************************************
|
---|
1369 | int WIN32API GetKeyboardLayoutList(int nBuff, HKL *lpList)
|
---|
1370 | {
|
---|
1371 | #ifdef DEBUG
|
---|
1372 | WriteLog("USER32: GetKeyboardLayoutList, not implemented\n");
|
---|
1373 | #endif
|
---|
1374 | return(0);
|
---|
1375 | }
|
---|
1376 | //******************************************************************************
|
---|
1377 | //******************************************************************************
|
---|
1378 | HKL WIN32API GetKeyboardLayout(DWORD dwLayout)
|
---|
1379 | {
|
---|
1380 | #ifdef DEBUG
|
---|
1381 | WriteLog("USER32: GetKeyboardLayout, not implemented\n");
|
---|
1382 | #endif
|
---|
1383 | return(0);
|
---|
1384 | }
|
---|
1385 | /*****************************************************************************
|
---|
1386 | * Name : BOOL WIN32API GetKeyboardLayoutNameW
|
---|
1387 | * Purpose : The GetKeyboardLayoutName function retrieves the name of the
|
---|
1388 | * active keyboard layout.
|
---|
1389 | * Parameters: LPTSTR pwszKLID address of buffer for layout name
|
---|
1390 | * Variables :
|
---|
1391 | * Result : If the function succeeds, the return value is TRUE.
|
---|
1392 | * If the function fails, the return value is FALSE. To get extended
|
---|
1393 | * error information, call GetLastError.
|
---|
1394 | * Remark :
|
---|
1395 | * Status : UNTESTED STUB
|
---|
1396 | *
|
---|
1397 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
1398 | *****************************************************************************/
|
---|
1399 | // @@@PH Win32 BOOL's are casted to INTs
|
---|
1400 | INT WIN32API GetKeyboardLayoutNameW(LPWSTR pwszKLID)
|
---|
1401 | {
|
---|
1402 | dprintf(("USER32:GetKeyboardLayoutNameW (%08x) not implemented.",
|
---|
1403 | pwszKLID));
|
---|
1404 |
|
---|
1405 | return(FALSE);
|
---|
1406 | }
|
---|
1407 | //******************************************************************************
|
---|
1408 | //******************************************************************************
|
---|
1409 | BOOL WIN32API GetKeyboardState(PBYTE lpKeyState)
|
---|
1410 | {
|
---|
1411 | #ifdef DEBUG
|
---|
1412 | WriteLog("USER32: GetKeyboardState, not properly implemented\n");
|
---|
1413 | #endif
|
---|
1414 | memset(lpKeyState, 0, 256);
|
---|
1415 | return(TRUE);
|
---|
1416 | }
|
---|
1417 | //******************************************************************************
|
---|
1418 | //******************************************************************************
|
---|
1419 | int WIN32API GetKeyNameTextA( LPARAM lParam, LPSTR lpString, int nSize)
|
---|
1420 | {
|
---|
1421 | #ifdef DEBUG
|
---|
1422 | WriteLog("USER32: GetKeyNameTextA\n");
|
---|
1423 | #endif
|
---|
1424 | return O32_GetKeyNameText(lParam,lpString,nSize);
|
---|
1425 | }
|
---|
1426 | //******************************************************************************
|
---|
1427 | //******************************************************************************
|
---|
1428 | int WIN32API GetKeyNameTextW( LPARAM lParam, LPWSTR lpString, int nSize)
|
---|
1429 | {
|
---|
1430 | #ifdef DEBUG
|
---|
1431 | WriteLog("USER32: GetKeyNameTextW DOES NOT WORK\n");
|
---|
1432 | #endif
|
---|
1433 | // NOTE: This will not work as is (needs UNICODE support)
|
---|
1434 | return 0;
|
---|
1435 | // return O32_GetKeyNameText(arg1, arg2, arg3);
|
---|
1436 | }
|
---|
1437 | //******************************************************************************
|
---|
1438 | //SvL: 24-6-'97 - Added
|
---|
1439 | //******************************************************************************
|
---|
1440 | SHORT WIN32API GetKeyState( int nVirtKey)
|
---|
1441 | {
|
---|
1442 | #ifdef DEBUG
|
---|
1443 | WriteLog("USER32: GetKeyState %d\n", nVirtKey);
|
---|
1444 | #endif
|
---|
1445 | return O32_GetKeyState(nVirtKey);
|
---|
1446 | }
|
---|
1447 | /*****************************************************************************
|
---|
1448 | * Name : VOID WIN32API keybd_event
|
---|
1449 | * Purpose : The keybd_event function synthesizes a keystroke. The system
|
---|
1450 | * can use such a synthesized keystroke to generate a WM_KEYUP or
|
---|
1451 | * WM_KEYDOWN message. The keyboard driver's interrupt handler calls
|
---|
1452 | * the keybd_event function.
|
---|
1453 | * Parameters: BYTE bVk virtual-key code
|
---|
1454 |
|
---|
1455 | * BYTE bScan hardware scan code
|
---|
1456 | * DWORD dwFlags flags specifying various function options
|
---|
1457 | * DWORD dwExtraInfo additional data associated with keystroke
|
---|
1458 | * Variables :
|
---|
1459 | * Result :
|
---|
1460 | * Remark :
|
---|
1461 | * Status : UNTESTED STUB
|
---|
1462 | *
|
---|
1463 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
1464 | *****************************************************************************/
|
---|
1465 | VOID WIN32API keybd_event (BYTE bVk,
|
---|
1466 | BYTE bScan,
|
---|
1467 | DWORD dwFlags,
|
---|
1468 | DWORD dwExtraInfo)
|
---|
1469 | {
|
---|
1470 | dprintf(("USER32:keybd_event (%u,%u,%08xh,%08x) not implemented.\n",
|
---|
1471 | bVk,
|
---|
1472 | bScan,
|
---|
1473 | dwFlags,
|
---|
1474 | dwExtraInfo));
|
---|
1475 | }
|
---|
1476 | /*****************************************************************************
|
---|
1477 | * Name : HLK WIN32API LoadKeyboardLayoutA
|
---|
1478 | * Purpose : The LoadKeyboardLayout function loads a new keyboard layout into
|
---|
1479 | * the system. Several keyboard layouts can be loaded at a time, but
|
---|
1480 | * only one per process is active at a time. Loading multiple keyboard
|
---|
1481 | * layouts makes it possible to rapidly switch between layouts.
|
---|
1482 | * Parameters:
|
---|
1483 | * Variables :
|
---|
1484 | * Result : If the function succeeds, the return value is the handle of the
|
---|
1485 | * keyboard layout.
|
---|
1486 | * If the function fails, the return value is NULL. To get extended
|
---|
1487 | * error information, call GetLastError.
|
---|
1488 | * Remark :
|
---|
1489 | * Status : UNTESTED STUB
|
---|
1490 | *
|
---|
1491 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
1492 | *****************************************************************************/
|
---|
1493 | HKL WIN32API LoadKeyboardLayoutA(LPCTSTR pwszKLID,
|
---|
1494 | UINT Flags)
|
---|
1495 | {
|
---|
1496 | dprintf(("USER32:LeadKeyboardLayoutA (%s,%u) not implemented.\n",
|
---|
1497 | pwszKLID,
|
---|
1498 | Flags));
|
---|
1499 |
|
---|
1500 | return (NULL);
|
---|
1501 | }
|
---|
1502 | /*****************************************************************************
|
---|
1503 | * Name : HLK WIN32API LoadKeyboardLayoutW
|
---|
1504 | * Purpose : The LoadKeyboardLayout function loads a new keyboard layout into
|
---|
1505 | * the system. Several keyboard layouts can be loaded at a time, but
|
---|
1506 | * only one per process is active at a time. Loading multiple keyboard
|
---|
1507 | * layouts makes it possible to rapidly switch between layouts.
|
---|
1508 | * Parameters:
|
---|
1509 | * Variables :
|
---|
1510 | * Result : If the function succeeds, the return value is the handle of the
|
---|
1511 | * keyboard layout.
|
---|
1512 | * If the function fails, the return value is NULL. To get extended
|
---|
1513 | * error information, call GetLastError.
|
---|
1514 | * Remark :
|
---|
1515 | * Status : UNTESTED STUB
|
---|
1516 | *
|
---|
1517 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
1518 | *****************************************************************************/
|
---|
1519 | HKL WIN32API LoadKeyboardLayoutW(LPCWSTR pwszKLID,
|
---|
1520 | UINT Flags)
|
---|
1521 | {
|
---|
1522 | dprintf(("USER32:LeadKeyboardLayoutW (%s,%u) not implemented.\n",
|
---|
1523 | pwszKLID,
|
---|
1524 | Flags));
|
---|
1525 |
|
---|
1526 | return (NULL);
|
---|
1527 | }
|
---|
1528 | //******************************************************************************
|
---|
1529 | //******************************************************************************
|
---|
1530 | UINT WIN32API MapVirtualKeyA( UINT uCode, UINT uMapType)
|
---|
1531 | {
|
---|
1532 | #ifdef DEBUG
|
---|
1533 | WriteLog("USER32: MapVirtualKeyA\n");
|
---|
1534 | #endif
|
---|
1535 | return O32_MapVirtualKey(uCode,uMapType);
|
---|
1536 | }
|
---|
1537 | //******************************************************************************
|
---|
1538 | //******************************************************************************
|
---|
1539 | UINT WIN32API MapVirtualKeyW( UINT uCode, UINT uMapType)
|
---|
1540 | {
|
---|
1541 | #ifdef DEBUG
|
---|
1542 | WriteLog("USER32: MapVirtualKeyW\n");
|
---|
1543 | #endif
|
---|
1544 | // NOTE: This will not work as is (needs UNICODE support)
|
---|
1545 | return O32_MapVirtualKey(uCode,uMapType);
|
---|
1546 | }
|
---|
1547 | /*****************************************************************************
|
---|
1548 | * Name : UINT WIN32API MapVirtualKeyExA
|
---|
1549 | * Purpose : The MapVirtualKeyEx function translates (maps) a virtual-key
|
---|
1550 | * code into a scan code or character value, or translates a scan
|
---|
1551 | * code into a virtual-key code. The function translates the codes
|
---|
1552 | * using the input language and physical keyboard layout identified
|
---|
1553 | * by the given keyboard layout handle.
|
---|
1554 | * Parameters:
|
---|
1555 | * Variables :
|
---|
1556 | * Result : The return value is either a scan code, a virtual-key code, or
|
---|
1557 | * a character value, depending on the value of uCode and uMapType.
|
---|
1558 | * If there is no translation, the return value is zero.
|
---|
1559 | * Remark :
|
---|
1560 | * Status : UNTESTED STUB
|
---|
1561 | *
|
---|
1562 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
1563 | *****************************************************************************/
|
---|
1564 | UINT WIN32API MapVirtualKeyExA(UINT uCode,
|
---|
1565 | UINT uMapType,
|
---|
1566 | HKL dwhkl)
|
---|
1567 | {
|
---|
1568 | dprintf(("USER32:MapVirtualKeyExA (%u,%u,%08x) not implemented.\n",
|
---|
1569 | uCode,
|
---|
1570 | uMapType,
|
---|
1571 | dwhkl));
|
---|
1572 |
|
---|
1573 | return (0);
|
---|
1574 | }
|
---|
1575 | /*****************************************************************************
|
---|
1576 | * Name : UINT WIN32API MapVirtualKeyExW
|
---|
1577 | * Purpose : The MapVirtualKeyEx function translates (maps) a virtual-key
|
---|
1578 | * code into a scan code or character value, or translates a scan
|
---|
1579 | * code into a virtual-key code. The function translates the codes
|
---|
1580 | * using the input language and physical keyboard layout identified
|
---|
1581 | * by the given keyboard layout handle.
|
---|
1582 | * Parameters:
|
---|
1583 | * Variables :
|
---|
1584 | * Result : The return value is either a scan code, a virtual-key code, or
|
---|
1585 | * a character value, depending on the value of uCode and uMapType.
|
---|
1586 | * If there is no translation, the return value is zero.
|
---|
1587 | * Remark :
|
---|
1588 | * Status : UNTESTED STUB
|
---|
1589 |
|
---|
1590 | *
|
---|
1591 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
1592 | *****************************************************************************/
|
---|
1593 | UINT WIN32API MapVirtualKeyExW(UINT uCode,
|
---|
1594 | UINT uMapType,
|
---|
1595 | HKL dwhkl)
|
---|
1596 | {
|
---|
1597 | dprintf(("USER32:MapVirtualKeyExW (%u,%u,%08x) not implemented.\n",
|
---|
1598 | uCode,
|
---|
1599 | uMapType,
|
---|
1600 | dwhkl));
|
---|
1601 |
|
---|
1602 | return (0);
|
---|
1603 | }
|
---|
1604 | /*****************************************************************************
|
---|
1605 | * Name : DWORD WIN32API OemKeyScan
|
---|
1606 | * Purpose : The OemKeyScan function maps OEM ASCII codes 0 through 0x0FF
|
---|
1607 | * into the OEM scan codes and shift states. The function provides
|
---|
1608 | * information that allows a program to send OEM text to another
|
---|
1609 | * program by simulating keyboard input.
|
---|
1610 | * Parameters:
|
---|
1611 | * Variables :
|
---|
1612 | * Result :
|
---|
1613 | * Remark :
|
---|
1614 | * Status : UNTESTED STUB
|
---|
1615 | *
|
---|
1616 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
1617 | *****************************************************************************/
|
---|
1618 | DWORD WIN32API OemKeyScan(WORD wOemChar)
|
---|
1619 | {
|
---|
1620 | dprintf(("USER32:OemKeyScan (%u) not implemented.\n",
|
---|
1621 | wOemChar));
|
---|
1622 |
|
---|
1623 | return (wOemChar);
|
---|
1624 | }
|
---|
1625 | //******************************************************************************
|
---|
1626 | //******************************************************************************
|
---|
1627 | BOOL WIN32API RegisterHotKey(HWND hwnd, int idHotKey, UINT fuModifiers, UINT uVirtKey)
|
---|
1628 | {
|
---|
1629 | #ifdef DEBUG
|
---|
1630 | WriteLog("USER32: RegisterHotKey, not implemented\n");
|
---|
1631 | #endif
|
---|
1632 | hwnd = Win32Window::Win32ToOS2Handle(hwnd);
|
---|
1633 | return(TRUE);
|
---|
1634 | }
|
---|
1635 | //******************************************************************************
|
---|
1636 | //******************************************************************************
|
---|
1637 | BOOL WIN32API SetKeyboardState(PBYTE lpKeyState)
|
---|
1638 | {
|
---|
1639 | #ifdef DEBUG
|
---|
1640 | WriteLog("USER32: SetKeyboardState, not implemented\n");
|
---|
1641 | #endif
|
---|
1642 | return(TRUE);
|
---|
1643 | }
|
---|
1644 | /*****************************************************************************
|
---|
1645 | * Name : int WIN32API ToAscii
|
---|
1646 | * Purpose : The ToAscii function translates the specified virtual-key code
|
---|
1647 | * and keyboard state to the corresponding Windows character or characters.
|
---|
1648 | * Parameters: UINT uVirtKey virtual-key code
|
---|
1649 | * UINT uScanCode scan code
|
---|
1650 | * PBYTE lpbKeyState address of key-state array
|
---|
1651 | * LPWORD lpwTransKey buffer for translated key
|
---|
1652 | * UINT fuState active-menu flag
|
---|
1653 | * Variables :
|
---|
1654 | * Result : 0 The specified virtual key has no translation for the current
|
---|
1655 | * state of the keyboard.
|
---|
1656 | * 1 One Windows character was copied to the buffer.
|
---|
1657 | * 2 Two characters were copied to the buffer. This usually happens
|
---|
1658 | * when a dead-key character (accent or diacritic) stored in the
|
---|
1659 | * keyboard layout cannot be composed with the specified virtual
|
---|
1660 | * key to form a single character.
|
---|
1661 | * Remark :
|
---|
1662 | * Status : UNTESTED STUB
|
---|
1663 | *
|
---|
1664 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
1665 | *****************************************************************************/
|
---|
1666 | int WIN32API ToAscii(UINT uVirtKey,
|
---|
1667 | UINT uScanCode,
|
---|
1668 | PBYTE lpbKeyState,
|
---|
1669 | LPWORD lpwTransKey,
|
---|
1670 | UINT fuState)
|
---|
1671 | {
|
---|
1672 | dprintf(("USER32:ToAscii (%u,%u,%08xh,%08xh,%u) not implemented.\n",
|
---|
1673 | uVirtKey,
|
---|
1674 | uScanCode,
|
---|
1675 | lpbKeyState,
|
---|
1676 | lpwTransKey,
|
---|
1677 | fuState));
|
---|
1678 |
|
---|
1679 | return (0);
|
---|
1680 | }
|
---|
1681 | /*****************************************************************************
|
---|
1682 | * Name : int WIN32API ToAsciiEx
|
---|
1683 | * Purpose : The ToAscii function translates the specified virtual-key code
|
---|
1684 | * and keyboard state to the corresponding Windows character or characters.
|
---|
1685 | * Parameters: UINT uVirtKey virtual-key code
|
---|
1686 | * UINT uScanCode scan code
|
---|
1687 | * PBYTE lpbKeyState address of key-state array
|
---|
1688 | * LPWORD lpwTransKey buffer for translated key
|
---|
1689 | * UINT fuState active-menu flag
|
---|
1690 | * HLK hlk keyboard layout handle
|
---|
1691 | * Variables :
|
---|
1692 | * Result : 0 The specified virtual key has no translation for the current
|
---|
1693 | * state of the keyboard.
|
---|
1694 | * 1 One Windows character was copied to the buffer.
|
---|
1695 | * 2 Two characters were copied to the buffer. This usually happens
|
---|
1696 | * when a dead-key character (accent or diacritic) stored in the
|
---|
1697 | * keyboard layout cannot be composed with the specified virtual
|
---|
1698 | * key to form a single character.
|
---|
1699 | * Remark :
|
---|
1700 | * Status : UNTESTED STUB
|
---|
1701 | *
|
---|
1702 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
1703 | *****************************************************************************/
|
---|
1704 | int WIN32API ToAsciiEx(UINT uVirtKey,
|
---|
1705 | UINT uScanCode,
|
---|
1706 | PBYTE lpbKeyState,
|
---|
1707 | LPWORD lpwTransKey,
|
---|
1708 | UINT fuState,
|
---|
1709 | HKL hkl)
|
---|
1710 | {
|
---|
1711 | dprintf(("USER32:ToAsciiEx (%u,%u,%08xh,%08xh,%u,%08x) not implemented.\n",
|
---|
1712 | uVirtKey,
|
---|
1713 | uScanCode,
|
---|
1714 | lpbKeyState,
|
---|
1715 | lpwTransKey,
|
---|
1716 | fuState,
|
---|
1717 | hkl));
|
---|
1718 |
|
---|
1719 | return (0);
|
---|
1720 | }
|
---|
1721 | /*****************************************************************************
|
---|
1722 | * Name : int WIN32API ToUnicode
|
---|
1723 | * Purpose : The ToUnicode function translates the specified virtual-key code
|
---|
1724 | * and keyboard state to the corresponding Unicode character or characters.
|
---|
1725 | * Parameters: UINT wVirtKey virtual-key code
|
---|
1726 | * UINT wScanCode scan code
|
---|
1727 | * PBYTE lpKeyState address of key-state array
|
---|
1728 | * LPWSTR pwszBuff buffer for translated key
|
---|
1729 | * int cchBuff size of translated key buffer
|
---|
1730 | * UINT wFlags set of function-conditioning flags
|
---|
1731 | * Variables :
|
---|
1732 | * Result : - 1 The specified virtual key is a dead-key character (accent or
|
---|
1733 | * diacritic). This value is returned regardless of the keyboard
|
---|
1734 | * layout, even if several characters have been typed and are
|
---|
1735 | * stored in the keyboard state. If possible, even with Unicode
|
---|
1736 | * keyboard layouts, the function has written a spacing version of
|
---|
1737 | * the dead-key character to the buffer specified by pwszBuffer.
|
---|
1738 | * For example, the function writes the character SPACING ACUTE
|
---|
1739 | * (0x00B4), rather than the character NON_SPACING ACUTE (0x0301).
|
---|
1740 | * 0 The specified virtual key has no translation for the current
|
---|
1741 | * state of the keyboard. Nothing was written to the buffer
|
---|
1742 | * specified by pwszBuffer.
|
---|
1743 | * 1 One character was written to the buffer specified by pwszBuffer.
|
---|
1744 | * 2 or more Two or more characters were written to the buffer specified by
|
---|
1745 | * pwszBuff. The most common cause for this is that a dead-key
|
---|
1746 | * character (accent or diacritic) stored in the keyboard layout
|
---|
1747 | * could not be combined with the specified virtual key to form a
|
---|
1748 | * single character.
|
---|
1749 | * Remark :
|
---|
1750 | * Status : UNTESTED STUB
|
---|
1751 | *
|
---|
1752 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
1753 | *****************************************************************************/
|
---|
1754 | int WIN32API ToUnicode(UINT uVirtKey,
|
---|
1755 | UINT uScanCode,
|
---|
1756 | PBYTE lpKeyState,
|
---|
1757 | LPWSTR pwszBuff,
|
---|
1758 | int cchBuff,
|
---|
1759 | UINT wFlags)
|
---|
1760 | {
|
---|
1761 | dprintf(("USER32:ToUnicode (%u,%u,%08xh,%08xh,%u,%08x) not implemented.\n",
|
---|
1762 | uVirtKey,
|
---|
1763 | uScanCode,
|
---|
1764 | lpKeyState,
|
---|
1765 | pwszBuff,
|
---|
1766 | cchBuff,
|
---|
1767 | wFlags));
|
---|
1768 |
|
---|
1769 | return (0);
|
---|
1770 | }
|
---|
1771 | /*****************************************************************************
|
---|
1772 | * Name : BOOL WIN32API UnloadKeyboardLayout
|
---|
1773 | * Purpose : The UnloadKeyboardLayout function removes a keyboard layout.
|
---|
1774 | * Parameters: HKL hkl handle of keyboard layout
|
---|
1775 | * Variables :
|
---|
1776 | * Result : If the function succeeds, the return value is the handle of the
|
---|
1777 | * keyboard layout; otherwise, it is NULL. To get extended error
|
---|
1778 | * information, use the GetLastError function.
|
---|
1779 | * Remark :
|
---|
1780 | * Status : UNTESTED STUB
|
---|
1781 | *
|
---|
1782 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
1783 | *****************************************************************************/
|
---|
1784 | BOOL WIN32API UnloadKeyboardLayout (HKL hkl)
|
---|
1785 | {
|
---|
1786 | dprintf(("USER32:UnloadKeyboardLayout (%08x) not implemented.\n",
|
---|
1787 | hkl));
|
---|
1788 |
|
---|
1789 | return (0);
|
---|
1790 | }
|
---|
1791 | //******************************************************************************
|
---|
1792 | //******************************************************************************
|
---|
1793 | BOOL WIN32API UnregisterHotKey(HWND hwnd, int idHotKey)
|
---|
1794 | {
|
---|
1795 | #ifdef DEBUG
|
---|
1796 | WriteLog("USER32: UnregisterHotKey, not implemented\n");
|
---|
1797 | #endif
|
---|
1798 | hwnd = Win32Window::Win32ToOS2Handle(hwnd);
|
---|
1799 |
|
---|
1800 | return(TRUE);
|
---|
1801 | }
|
---|
1802 | //******************************************************************************
|
---|
1803 | //SvL: 24-6-'97 - Added
|
---|
1804 | //******************************************************************************
|
---|
1805 | WORD WIN32API VkKeyScanA( char ch)
|
---|
1806 | {
|
---|
1807 | #ifdef DEBUG
|
---|
1808 | WriteLog("USER32: VkKeyScanA\n");
|
---|
1809 | #endif
|
---|
1810 | return O32_VkKeyScan(ch);
|
---|
1811 | }
|
---|
1812 | //******************************************************************************
|
---|
1813 | //******************************************************************************
|
---|
1814 | WORD WIN32API VkKeyScanW( WCHAR wch)
|
---|
1815 | {
|
---|
1816 | #ifdef DEBUG
|
---|
1817 | WriteLog("USER32: VkKeyScanW\n");
|
---|
1818 | #endif
|
---|
1819 | // NOTE: This will not work as is (needs UNICODE support)
|
---|
1820 | return O32_VkKeyScan((char)wch);
|
---|
1821 | }
|
---|
1822 | /*****************************************************************************
|
---|
1823 | * Name : SHORT WIN32API VkKeyScanExW
|
---|
1824 | * Purpose : The VkKeyScanEx function translates a character to the
|
---|
1825 | * corresponding virtual-key code and shift state. The function
|
---|
1826 | * translates the character using the input language and physical
|
---|
1827 | * keyboard layout identified by the given keyboard layout handle.
|
---|
1828 | * Parameters: UINT uChar character to translate
|
---|
1829 | * HKL hkl keyboard layout handle
|
---|
1830 | * Variables :
|
---|
1831 | * Result : see docs
|
---|
1832 | * Remark :
|
---|
1833 | * Status : UNTESTED STUB
|
---|
1834 | *
|
---|
1835 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
1836 | *****************************************************************************/
|
---|
1837 | WORD WIN32API VkKeyScanExW(WCHAR uChar,
|
---|
1838 | HKL hkl)
|
---|
1839 | {
|
---|
1840 | dprintf(("USER32:VkKeyScanExW (%u,%08x) not implemented.\n",
|
---|
1841 | uChar,
|
---|
1842 | hkl));
|
---|
1843 |
|
---|
1844 | return (uChar);
|
---|
1845 | }
|
---|
1846 | /*****************************************************************************
|
---|
1847 | * Name : SHORT WIN32API VkKeyScanExA
|
---|
1848 | * Purpose : The VkKeyScanEx function translates a character to the
|
---|
1849 | * corresponding virtual-key code and shift state. The function
|
---|
1850 | * translates the character using the input language and physical
|
---|
1851 | * keyboard layout identified by the given keyboard layout handle.
|
---|
1852 | * Parameters: UINT uChar character to translate
|
---|
1853 | * HKL hkl keyboard layout handle
|
---|
1854 | * Variables :
|
---|
1855 | * Result : see docs
|
---|
1856 | * Remark :
|
---|
1857 | * Status : UNTESTED STUB
|
---|
1858 | *
|
---|
1859 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
1860 | *****************************************************************************/
|
---|
1861 | WORD WIN32API VkKeyScanExA(CHAR uChar,
|
---|
1862 | HKL hkl)
|
---|
1863 | {
|
---|
1864 | dprintf(("USER32:VkKeyScanExA (%u,%08x) not implemented.\n",
|
---|
1865 | uChar,
|
---|
1866 | hkl));
|
---|
1867 |
|
---|
1868 | return (uChar);
|
---|
1869 | }
|
---|
1870 |
|
---|
1871 | /* Synchronization Functions */
|
---|
1872 |
|
---|
1873 | DWORD WIN32API MsgWaitForMultipleObjects( DWORD nCount, LPHANDLE pHandles, BOOL fWaitAll, DWORD dwMilliseconds, DWORD dwWakeMask)
|
---|
1874 | {
|
---|
1875 | #ifdef DEBUG
|
---|
1876 | WriteLog("USER32: MsgWaitForMultipleObjects\n");
|
---|
1877 | #endif
|
---|
1878 | return O32_MsgWaitForMultipleObjects(nCount,pHandles,fWaitAll,dwMilliseconds,dwWakeMask);
|
---|
1879 | }
|
---|
1880 |
|
---|
1881 | /* Button Functions */
|
---|
1882 |
|
---|
1883 | BOOL WIN32API CheckRadioButton( HWND hDlg, UINT nIDFirstButton, UINT nIDLastButton, UINT nIDCheckButton)
|
---|
1884 | {
|
---|
1885 | #ifdef DEBUG
|
---|
1886 | WriteLog("USER32: CheckRadioButton\n");
|
---|
1887 | #endif
|
---|
1888 | //CB: check radio buttons in interval
|
---|
1889 | if (nIDFirstButton > nIDLastButton)
|
---|
1890 | {
|
---|
1891 | SetLastError(ERROR_INVALID_PARAMETER);
|
---|
1892 | return (FALSE);
|
---|
1893 | }
|
---|
1894 |
|
---|
1895 | for (UINT x = nIDFirstButton;x <= nIDLastButton;x++)
|
---|
1896 | {
|
---|
1897 | SendDlgItemMessageA(hDlg,x,BM_SETCHECK,(x == nIDCheckButton) ? BST_CHECKED : BST_UNCHECKED,0);
|
---|
1898 | }
|
---|
1899 |
|
---|
1900 | return (TRUE);
|
---|
1901 | }
|
---|
1902 |
|
---|
1903 | /* Window Functions */
|
---|
1904 |
|
---|
1905 | /*****************************************************************************
|
---|
1906 | * Name : BOOL WIN32API AnyPopup
|
---|
1907 | * Purpose : The AnyPopup function indicates whether an owned, visible,
|
---|
1908 | * top-level pop-up, or overlapped window exists on the screen. The
|
---|
1909 | * function searches the entire Windows screen, not just the calling
|
---|
1910 | * application's client area.
|
---|
1911 | * Parameters: VOID
|
---|
1912 | * Variables :
|
---|
1913 | * Result : If a pop-up window exists, the return value is TRUE even if the
|
---|
1914 | * pop-up window is completely covered by other windows. Otherwise,
|
---|
1915 | * it is FALSE.
|
---|
1916 | * Remark : AnyPopup is a Windows version 1.x function and is retained for
|
---|
1917 | * compatibility purposes. It is generally not useful.
|
---|
1918 | * Status : UNTESTED STUB
|
---|
1919 | *
|
---|
1920 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
1921 | *****************************************************************************/
|
---|
1922 | BOOL WIN32API AnyPopup(VOID)
|
---|
1923 | {
|
---|
1924 | dprintf(("USER32:AnyPopup() not implemented.\n"));
|
---|
1925 |
|
---|
1926 | return (FALSE);
|
---|
1927 | }
|
---|
1928 | //******************************************************************************
|
---|
1929 | //******************************************************************************
|
---|
1930 | BOOL WIN32API EndDeferWindowPos( HDWP hWinPosInfo)
|
---|
1931 | {
|
---|
1932 | #ifdef DEBUG
|
---|
1933 | WriteLog("USER32: EndDeferWindowPos\n");
|
---|
1934 | #endif
|
---|
1935 | return O32_EndDeferWindowPos(hWinPosInfo);
|
---|
1936 | }
|
---|
1937 | //******************************************************************************
|
---|
1938 | //******************************************************************************
|
---|
1939 | HWND WIN32API FindWindowW( LPCWSTR lpClassName, LPCWSTR lpWindowName)
|
---|
1940 | {
|
---|
1941 | char *astring1 = UnicodeToAsciiString((LPWSTR)lpClassName);
|
---|
1942 | char *astring2 = UnicodeToAsciiString((LPWSTR)lpWindowName);
|
---|
1943 | HWND rc;
|
---|
1944 |
|
---|
1945 | #ifdef DEBUG
|
---|
1946 | WriteLog("USER32: FindWindowW\n");
|
---|
1947 | #endif
|
---|
1948 | rc = O32_FindWindow(astring1, astring2);
|
---|
1949 | FreeAsciiString(astring1);
|
---|
1950 | FreeAsciiString(astring2);
|
---|
1951 | return rc;
|
---|
1952 | }
|
---|
1953 | //******************************************************************************
|
---|
1954 | //******************************************************************************
|
---|
1955 | HWND WIN32API GetForegroundWindow(void)
|
---|
1956 | {
|
---|
1957 | #ifdef DEBUG
|
---|
1958 | WriteLog("USER32: GetForegroundWindow\n");
|
---|
1959 | #endif
|
---|
1960 | return Win32Window::OS2ToWin32Handle(O32_GetForegroundWindow());
|
---|
1961 | }
|
---|
1962 | //******************************************************************************
|
---|
1963 | //******************************************************************************
|
---|
1964 | HWND WIN32API GetLastActivePopup( HWND hWnd)
|
---|
1965 | {
|
---|
1966 | #ifdef DEBUG
|
---|
1967 | WriteLog("USER32: GetLastActivePopup\n");
|
---|
1968 | #endif
|
---|
1969 | hWnd = Win32Window::Win32ToOS2Handle(hWnd);
|
---|
1970 |
|
---|
1971 | return Win32Window::OS2ToWin32Handle(O32_GetLastActivePopup(hWnd));
|
---|
1972 | }
|
---|
1973 | //******************************************************************************
|
---|
1974 | //******************************************************************************
|
---|
1975 | DWORD WIN32API GetWindowThreadProcessId(HWND hWnd, PDWORD lpdwProcessId)
|
---|
1976 | {
|
---|
1977 | #ifdef DEBUG
|
---|
1978 | WriteLog("USER32: GetWindowThreadProcessId\n");
|
---|
1979 | #endif
|
---|
1980 | hWnd = Win32Window::Win32ToOS2Handle(hWnd);
|
---|
1981 |
|
---|
1982 | return O32_GetWindowThreadProcessId(hWnd,lpdwProcessId);
|
---|
1983 | }
|
---|
1984 |
|
---|
1985 | /* Painting and Drawing Functions */
|
---|
1986 |
|
---|
1987 | INT WIN32API ExcludeUpdateRgn( HDC hDC, HWND hWnd)
|
---|
1988 | {
|
---|
1989 | #ifdef DEBUG
|
---|
1990 | WriteLog("USER32: ExcludeUpdateRgn\n");
|
---|
1991 | #endif
|
---|
1992 | hWnd = Win32Window::Win32ToOS2Handle(hWnd);
|
---|
1993 |
|
---|
1994 | return O32_ExcludeUpdateRgn(hDC,hWnd);
|
---|
1995 | }
|
---|
1996 | //******************************************************************************
|
---|
1997 | //******************************************************************************
|
---|
1998 | #if 0
|
---|
1999 | int WIN32API GetUpdateRgn( HWND hWnd, HRGN hRgn, BOOL bErase)
|
---|
2000 | {
|
---|
2001 | #ifdef DEBUG
|
---|
2002 | WriteLog("USER32: GetUpdateRgn\n");
|
---|
2003 | #endif
|
---|
2004 | hWnd = Win32Window::Win32ToOS2Handle(hWnd);
|
---|
2005 |
|
---|
2006 | return O32_GetUpdateRgn(hWnd,hRgn,bErase);
|
---|
2007 | }
|
---|
2008 | #endif
|
---|
2009 | /*****************************************************************************
|
---|
2010 | * Name : int WIN32API GetWindowRgn
|
---|
2011 | * Purpose : The GetWindowRgn function obtains a copy of the window region of a window.
|
---|
2012 | * Parameters: HWND hWnd handle to window whose window region is to be obtained
|
---|
2013 | * HRGN hRgn handle to region that receives a copy of the window region
|
---|
2014 | * Variables :
|
---|
2015 | * Result : NULLREGION, SIMPLEREGION, COMPLEXREGION, ERROR
|
---|
2016 | * Remark :
|
---|
2017 | * Status : UNTESTED STUB
|
---|
2018 | *
|
---|
2019 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
2020 | *****************************************************************************/
|
---|
2021 |
|
---|
2022 | int WIN32API GetWindowRgn (HWND hWnd,
|
---|
2023 | HRGN hRgn)
|
---|
2024 | {
|
---|
2025 | dprintf(("USER32:GetWindowRgn (%08xh,%08x) not implemented.\n",
|
---|
2026 | hWnd,
|
---|
2027 | hRgn));
|
---|
2028 | //Attention: Win32 hwnd handle!
|
---|
2029 |
|
---|
2030 | return (NULLREGION);
|
---|
2031 | }
|
---|
2032 | //******************************************************************************
|
---|
2033 | //TODO: Not complete
|
---|
2034 | //******************************************************************************
|
---|
2035 | BOOL WIN32API GrayStringA(HDC hdc, HBRUSH hBrush, GRAYSTRINGPROC lpOutputFunc,
|
---|
2036 | LPARAM lpData, int nCount, int X, int Y, int nWidth,
|
---|
2037 | int nHeight)
|
---|
2038 | {
|
---|
2039 | BOOL rc;
|
---|
2040 | COLORREF curclr;
|
---|
2041 |
|
---|
2042 | #ifdef DEBUG
|
---|
2043 | WriteLog("USER32: GrayStringA, not completely implemented\n");
|
---|
2044 | #endif
|
---|
2045 | if(lpOutputFunc == NULL && lpData == NULL) {
|
---|
2046 | #ifdef DEBUG
|
---|
2047 | WriteLog("USER32: lpOutputFunc == NULL && lpData == NULL\n");
|
---|
2048 | #endif
|
---|
2049 | return(FALSE);
|
---|
2050 | }
|
---|
2051 | if(lpOutputFunc) {
|
---|
2052 | return(lpOutputFunc(hdc, lpData, nCount));
|
---|
2053 | }
|
---|
2054 | curclr = SetTextColor(hdc, GetSysColor(COLOR_GRAYTEXT));
|
---|
2055 | rc = TextOutA(hdc, X, Y, (char *)lpData, nCount);
|
---|
2056 | SetTextColor(hdc, curclr);
|
---|
2057 |
|
---|
2058 | return(rc);
|
---|
2059 | }
|
---|
2060 | //******************************************************************************
|
---|
2061 | //******************************************************************************
|
---|
2062 | BOOL WIN32API GrayStringW(HDC hdc, HBRUSH hBrush, GRAYSTRINGPROC lpOutputFunc,
|
---|
2063 | LPARAM lpData, int nCount, int X, int Y, int nWidth,
|
---|
2064 | int nHeight)
|
---|
2065 | {
|
---|
2066 | BOOL rc;
|
---|
2067 | char *astring;
|
---|
2068 | COLORREF curclr;
|
---|
2069 |
|
---|
2070 | #ifdef DEBUG
|
---|
2071 | WriteLog("USER32: GrayStringW, not completely implemented\n");
|
---|
2072 | #endif
|
---|
2073 |
|
---|
2074 | if(lpOutputFunc == NULL && lpData == NULL) {
|
---|
2075 | #ifdef DEBUG
|
---|
2076 | WriteLog("USER32: lpOutputFunc == NULL && lpData == NULL\n");
|
---|
2077 | #endif
|
---|
2078 | return(FALSE);
|
---|
2079 | }
|
---|
2080 | if(nCount == 0)
|
---|
2081 | nCount = UniStrlen((UniChar*)lpData);
|
---|
2082 |
|
---|
2083 | if(lpOutputFunc) {
|
---|
2084 | return(lpOutputFunc(hdc, lpData, nCount));
|
---|
2085 | }
|
---|
2086 | astring = UnicodeToAsciiString((LPWSTR)lpData);
|
---|
2087 |
|
---|
2088 | curclr = SetTextColor(hdc, GetSysColor(COLOR_GRAYTEXT));
|
---|
2089 | rc = TextOutA(hdc, X, Y, astring, nCount);
|
---|
2090 | SetTextColor(hdc, curclr);
|
---|
2091 |
|
---|
2092 | FreeAsciiString(astring);
|
---|
2093 | return(rc);
|
---|
2094 | }
|
---|
2095 | //******************************************************************************
|
---|
2096 | //******************************************************************************
|
---|
2097 | #if 0
|
---|
2098 | BOOL WIN32API InvalidateRgn( HWND hWnd, HRGN hRgn, BOOL bErase)
|
---|
2099 | {
|
---|
2100 | #ifdef DEBUG
|
---|
2101 | WriteLog("USER32: InvalidateRgn\n");
|
---|
2102 | #endif
|
---|
2103 | hWnd = Win32Window::Win32ToOS2Handle(hWnd);
|
---|
2104 |
|
---|
2105 | return O32_InvalidateRgn(hWnd,hRgn,bErase);
|
---|
2106 | }
|
---|
2107 | #endif
|
---|
2108 | /*****************************************************************************
|
---|
2109 | * Name : BOOL WIN32API PaintDesktop
|
---|
2110 | * Purpose : The PaintDesktop function fills the clipping region in the
|
---|
2111 | * specified device context with the desktop pattern or wallpaper.
|
---|
2112 | * The function is provided primarily for shell desktops.
|
---|
2113 | * Parameters:
|
---|
2114 | * Variables :
|
---|
2115 | * Result : If the function succeeds, the return value is TRUE.
|
---|
2116 | * If the function fails, the return value is FALSE.
|
---|
2117 | * Remark :
|
---|
2118 | * Status : UNTESTED STUB
|
---|
2119 | *
|
---|
2120 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
2121 | *****************************************************************************/
|
---|
2122 | BOOL WIN32API PaintDesktop(HDC hdc)
|
---|
2123 | {
|
---|
2124 | dprintf(("USER32:PaintDesktop (%08x) not implemented.\n",
|
---|
2125 | hdc));
|
---|
2126 |
|
---|
2127 | return (FALSE);
|
---|
2128 | }
|
---|
2129 | /*****************************************************************************
|
---|
2130 | * Name : int WIN32API SetWindowRgn
|
---|
2131 | * Purpose : The SetWindowRgn function sets the window region of a window. The
|
---|
2132 | * window region determines the area within the window where the
|
---|
2133 | * operating system permits drawing. The operating system does not
|
---|
2134 | * display any portion of a window that lies outside of the window region
|
---|
2135 | * Parameters: HWND hWnd handle to window whose window region is to be set
|
---|
2136 | * HRGN hRgn handle to region
|
---|
2137 | * BOOL bRedraw window redraw flag
|
---|
2138 | * Variables :
|
---|
2139 | * Result : If the function succeeds, the return value is non-zero.
|
---|
2140 | * If the function fails, the return value is zero.
|
---|
2141 | * Remark :
|
---|
2142 | * Status : UNTESTED STUB
|
---|
2143 | *
|
---|
2144 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
2145 | *****************************************************************************/
|
---|
2146 |
|
---|
2147 | int WIN32API SetWindowRgn(HWND hWnd,
|
---|
2148 | HRGN hRgn,
|
---|
2149 | BOOL bRedraw)
|
---|
2150 | {
|
---|
2151 | dprintf(("USER32:SetWindowRgn (%08xh,%08xh,%u) not implemented.\n",
|
---|
2152 | hWnd,
|
---|
2153 | hRgn,
|
---|
2154 | bRedraw));
|
---|
2155 | //Attention: Win32 hwnd handle!
|
---|
2156 |
|
---|
2157 | return (0);
|
---|
2158 | }
|
---|
2159 | //******************************************************************************
|
---|
2160 | //******************************************************************************
|
---|
2161 | BOOL WIN32API ValidateRect( HWND hwnd, const RECT * lprc)
|
---|
2162 | {
|
---|
2163 | #ifdef DEBUG
|
---|
2164 | WriteLog("USER32: ValidateRect\n");
|
---|
2165 | #endif
|
---|
2166 | hwnd = Win32Window::Win32ToOS2Handle(hwnd);
|
---|
2167 |
|
---|
2168 | return O32_ValidateRect(hwnd,lprc);
|
---|
2169 | }
|
---|
2170 | //******************************************************************************
|
---|
2171 | //******************************************************************************
|
---|
2172 | BOOL WIN32API ValidateRgn( HWND hwnd, HRGN hrgn)
|
---|
2173 | {
|
---|
2174 | #ifdef DEBUG
|
---|
2175 | WriteLog("USER32: ValidateRgn\n");
|
---|
2176 | #endif
|
---|
2177 | hwnd = Win32Window::Win32ToOS2Handle(hwnd);
|
---|
2178 |
|
---|
2179 | return O32_ValidateRgn(hwnd,hrgn);
|
---|
2180 | }
|
---|
2181 |
|
---|
2182 | /* Filled Shape Functions */
|
---|
2183 |
|
---|
2184 |
|
---|
2185 | int WIN32API FillRect(HDC hDC, const RECT * lprc, HBRUSH hbr)
|
---|
2186 | {
|
---|
2187 | #ifdef DEBUG
|
---|
2188 | WriteLog("USER32: FillRect (%d,%d)(%d,%d) brush %X\n", lprc->left, lprc->top, lprc->right, lprc->bottom, hbr);
|
---|
2189 | #endif
|
---|
2190 | return O32_FillRect(hDC,lprc,hbr);
|
---|
2191 | }
|
---|
2192 | //******************************************************************************
|
---|
2193 | //******************************************************************************
|
---|
2194 | int WIN32API FrameRect( HDC hDC, const RECT * lprc, HBRUSH hbr)
|
---|
2195 | {
|
---|
2196 | #ifdef DEBUG
|
---|
2197 | WriteLog("USER32: FrameRect\n");
|
---|
2198 | #endif
|
---|
2199 | return O32_FrameRect(hDC,lprc,hbr);
|
---|
2200 | }
|
---|
2201 | //******************************************************************************
|
---|
2202 | //******************************************************************************
|
---|
2203 | BOOL WIN32API InvertRect( HDC hDC, const RECT * lprc)
|
---|
2204 | {
|
---|
2205 | #ifdef DEBUG
|
---|
2206 | WriteLog("USER32: InvertRect\n");
|
---|
2207 | #endif
|
---|
2208 | return O32_InvertRect(hDC,lprc);
|
---|
2209 | }
|
---|
2210 |
|
---|
2211 | /* System Information Functions */
|
---|
2212 |
|
---|
2213 | int WIN32API GetKeyboardType( int nTypeFlag)
|
---|
2214 | {
|
---|
2215 | #ifdef DEBUG
|
---|
2216 | WriteLog("USER32: GetKeyboardType\n");
|
---|
2217 | #endif
|
---|
2218 | return O32_GetKeyboardType(nTypeFlag);
|
---|
2219 | }
|
---|
2220 | /*****************************************************************************
|
---|
2221 | * Name : HDESK WIN32API GetThreadDesktop
|
---|
2222 | * Purpose : The GetThreadDesktop function returns a handle to the desktop
|
---|
2223 | * associated with a specified thread.
|
---|
2224 | * Parameters: DWORD dwThreadId thread identifier
|
---|
2225 | * Variables :
|
---|
2226 | * Result : If the function succeeds, the return value is the handle of the
|
---|
2227 | * desktop associated with the specified thread.
|
---|
2228 | * Remark :
|
---|
2229 | * Status : UNTESTED STUB
|
---|
2230 | *
|
---|
2231 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
2232 | *****************************************************************************/
|
---|
2233 | HDESK WIN32API GetThreadDesktop(DWORD dwThreadId)
|
---|
2234 | {
|
---|
2235 | dprintf(("USER32:GetThreadDesktop (%u) not implemented.\n",
|
---|
2236 | dwThreadId));
|
---|
2237 |
|
---|
2238 | return (NULL);
|
---|
2239 | }
|
---|
2240 |
|
---|
2241 | /* Message and Message Queue Functions */
|
---|
2242 |
|
---|
2243 | /*****************************************************************************
|
---|
2244 | * Name : BOOL WIN32API GetInputState
|
---|
2245 | * Purpose : The GetInputState function determines whether there are
|
---|
2246 | * mouse-button or keyboard messages in the calling thread's message queue.
|
---|
2247 | * Parameters:
|
---|
2248 | * Variables :
|
---|
2249 | * Result : If the queue contains one or more new mouse-button or keyboard
|
---|
2250 | * messages, the return value is TRUE.
|
---|
2251 | * If the function fails, the return value is FALSE.
|
---|
2252 | * Remark :
|
---|
2253 | * Status : UNTESTED STUB
|
---|
2254 | *
|
---|
2255 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
2256 | *****************************************************************************/
|
---|
2257 | BOOL WIN32API GetInputState(VOID)
|
---|
2258 | {
|
---|
2259 | dprintf(("USER32:GetInputState () not implemented.\n"));
|
---|
2260 |
|
---|
2261 | return (FALSE);
|
---|
2262 | }
|
---|
2263 | //******************************************************************************
|
---|
2264 | //******************************************************************************
|
---|
2265 | DWORD WIN32API GetQueueStatus( UINT flags)
|
---|
2266 | {
|
---|
2267 | #ifdef DEBUG
|
---|
2268 | WriteLog("USER32: GetQueueStatus\n");
|
---|
2269 | #endif
|
---|
2270 | return O32_GetQueueStatus(flags);
|
---|
2271 | }
|
---|
2272 |
|
---|
2273 | /* Font and Text Functions */
|
---|
2274 |
|
---|
2275 | DWORD WIN32API GetTabbedTextExtentA( HDC hDC, LPCSTR lpString, int nCount, int nTabPositions, LPINT lpnTabStopPositions)
|
---|
2276 | {
|
---|
2277 | #ifdef DEBUG
|
---|
2278 | WriteLog("USER32: GetTabbedTextExtentA\n");
|
---|
2279 | #endif
|
---|
2280 | return O32_GetTabbedTextExtent(hDC,lpString,nCount,nTabPositions,lpnTabStopPositions);
|
---|
2281 | }
|
---|
2282 | //******************************************************************************
|
---|
2283 | //******************************************************************************
|
---|
2284 | DWORD WIN32API GetTabbedTextExtentW( HDC hDC, LPCWSTR lpString, int nCount, int nTabPositions, LPINT lpnTabStopPositions)
|
---|
2285 | {
|
---|
2286 | char *astring = UnicodeToAsciiString((LPWSTR)lpString);
|
---|
2287 | DWORD rc;
|
---|
2288 |
|
---|
2289 | #ifdef DEBUG
|
---|
2290 | WriteLog("USER32: GetTabbedTextExtentW\n");
|
---|
2291 | #endif
|
---|
2292 | rc = O32_GetTabbedTextExtent(hDC,astring,nCount,nTabPositions,lpnTabStopPositions);
|
---|
2293 | FreeAsciiString(astring);
|
---|
2294 | return rc;
|
---|
2295 | }
|
---|
2296 | //******************************************************************************
|
---|
2297 | //******************************************************************************
|
---|
2298 | LONG WIN32API TabbedTextOutA( HDC hdc, int x, int y, LPCSTR lpString, int nCount, int nTabPositions, LPINT lpnTabStopPositions, int nTabOrigin)
|
---|
2299 | {
|
---|
2300 | #ifdef DEBUG
|
---|
2301 | WriteLog("USER32: TabbedTextOutA\n");
|
---|
2302 | #endif
|
---|
2303 | return O32_TabbedTextOut(hdc,x,y,lpString,nCount,nTabPositions,lpnTabStopPositions,nTabOrigin);
|
---|
2304 | }
|
---|
2305 | //******************************************************************************
|
---|
2306 | //******************************************************************************
|
---|
2307 | LONG WIN32API TabbedTextOutW( HDC hdc, int x, int y, LPCWSTR lpString, int nCount, int nTabPositions, LPINT lpnTabStopPositions, int nTabOrigin)
|
---|
2308 | {
|
---|
2309 | char *astring = UnicodeToAsciiString((LPWSTR)lpString);
|
---|
2310 | LONG rc;
|
---|
2311 |
|
---|
2312 | #ifdef DEBUG
|
---|
2313 | WriteLog("USER32: TabbedTextOutW\n");
|
---|
2314 | #endif
|
---|
2315 | rc = O32_TabbedTextOut(hdc,x,y,astring,nCount,nTabPositions,lpnTabStopPositions,nTabOrigin);
|
---|
2316 | FreeAsciiString(astring);
|
---|
2317 | return rc;
|
---|
2318 | }
|
---|
2319 |
|
---|
2320 | /* Dialog Box Functions */
|
---|
2321 |
|
---|
2322 | BOOL WIN32API MapDialogRect( HWND hDlg, PRECT lpRect)
|
---|
2323 | {
|
---|
2324 | #ifdef DEBUG
|
---|
2325 | WriteLog("USER32: MapDialogRect\n");
|
---|
2326 | #endif
|
---|
2327 | hDlg = Win32Window::Win32ToOS2Handle(hDlg);
|
---|
2328 |
|
---|
2329 | return O32_MapDialogRect(hDlg,lpRect);
|
---|
2330 | }
|
---|
2331 |
|
---|
2332 | /* Coordinate Space and Transformation Functions */
|
---|
2333 |
|
---|
2334 | int WIN32API MapWindowPoints( HWND hWndFrom, HWND hWndTo, LPPOINT lpPoints, UINT cPoints)
|
---|
2335 | {
|
---|
2336 | #ifdef DEBUG
|
---|
2337 | WriteLog("USER32: MapWindowPoints\n");
|
---|
2338 | #endif
|
---|
2339 | hWndFrom = Win32Window::Win32ToOS2Handle(hWndFrom);
|
---|
2340 | hWndTo = Win32Window::Win32ToOS2Handle(hWndTo);
|
---|
2341 |
|
---|
2342 | return O32_MapWindowPoints(hWndFrom,hWndTo,lpPoints,cPoints);
|
---|
2343 | }
|
---|
2344 | //******************************************************************************
|
---|
2345 | //******************************************************************************
|
---|
2346 | BOOL WIN32API ScreenToClient (HWND hwnd, LPPOINT pt)
|
---|
2347 | {
|
---|
2348 | #ifdef DEBUG
|
---|
2349 | WriteLog("USER32: ScreenToClient\n");
|
---|
2350 | #endif
|
---|
2351 | Win32BaseWindow *wnd;
|
---|
2352 | PRECT rcl;
|
---|
2353 |
|
---|
2354 | if (!hwnd) return (TRUE);
|
---|
2355 | wnd = Win32BaseWindow::GetWindowFromHandle (hwnd);
|
---|
2356 | if (!wnd) return (TRUE);
|
---|
2357 |
|
---|
2358 | rcl = wnd->getClientRect();
|
---|
2359 | pt->y = ScreenHeight - pt->y;
|
---|
2360 | OSLibWinMapWindowPoints (OSLIB_HWND_DESKTOP, wnd->getOS2WindowHandle(), (OSLIBPOINT *)pt, 1);
|
---|
2361 | pt->y = (rcl->bottom - rcl->top) - pt->y;
|
---|
2362 | return (TRUE);
|
---|
2363 | }
|
---|
2364 |
|
---|
2365 | /* Scroll Bar Functions */
|
---|
2366 |
|
---|
2367 | #if 0
|
---|
2368 | BOOL WIN32API ScrollDC( HDC arg1, int arg2, int arg3, const RECT * arg4, const RECT * arg5, HRGN arg6, PRECT arg7)
|
---|
2369 | {
|
---|
2370 | #ifdef DEBUG
|
---|
2371 | WriteLog("USER32: ScrollDC\n");
|
---|
2372 | #endif
|
---|
2373 | return O32_ScrollDC(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
|
---|
2374 | }
|
---|
2375 | #endif
|
---|
2376 |
|
---|
2377 | /* Resource Functions */
|
---|
2378 |
|
---|
2379 | HANDLE WIN32API CopyImage(HANDLE hImage, UINT uType, int cxDesired, int cyDesired, UINT fuFlags)
|
---|
2380 | {
|
---|
2381 | #ifdef DEBUG
|
---|
2382 | WriteLog("USER32: CopyImage, not implemented\n");
|
---|
2383 | #endif
|
---|
2384 | switch(uType) {
|
---|
2385 | case IMAGE_BITMAP:
|
---|
2386 | case IMAGE_CURSOR:
|
---|
2387 | case IMAGE_ICON:
|
---|
2388 | default:
|
---|
2389 | #ifdef DEBUG
|
---|
2390 | WriteLog("USER32: CopyImage, unknown type\n");
|
---|
2391 | #endif
|
---|
2392 | return(NULL);
|
---|
2393 | }
|
---|
2394 | return(NULL);
|
---|
2395 | }
|
---|
2396 |
|
---|
2397 | /* Icon Functions */
|
---|
2398 |
|
---|
2399 | int WIN32API LookupIconIdFromDirectory(PBYTE presbits, BOOL fIcon)
|
---|
2400 | {
|
---|
2401 | #ifdef DEBUG
|
---|
2402 | WriteLog("USER32: LookupIconIdFromDirectory, not implemented\n");
|
---|
2403 | #endif
|
---|
2404 | return(0);
|
---|
2405 | }
|
---|
2406 | //******************************************************************************
|
---|
2407 | //******************************************************************************
|
---|
2408 | int WIN32API LookupIconIdFromDirectoryEx(PBYTE presbits, BOOL fIcon,
|
---|
2409 | int cxDesired, int cyDesired,
|
---|
2410 | UINT Flags)
|
---|
2411 | {
|
---|
2412 | #ifdef DEBUG
|
---|
2413 | WriteLog("USER32: LookupIconIdFromDirectoryEx, not implemented\n");
|
---|
2414 | #endif
|
---|
2415 | return(0);
|
---|
2416 | }
|
---|
2417 |
|
---|
2418 | /* Device Context Functions */
|
---|
2419 |
|
---|
2420 | BOOL WIN32API GetMonitorInfoA(HMONITOR,LPMONITORINFO)
|
---|
2421 | {
|
---|
2422 | #ifdef DEBUG
|
---|
2423 | WriteLog("USER32: GetMonitorInfoA not supported!!\n");
|
---|
2424 | #endif
|
---|
2425 | return(FALSE);
|
---|
2426 | }
|
---|
2427 | //******************************************************************************
|
---|
2428 | //******************************************************************************
|
---|
2429 | BOOL WIN32API GetMonitorInfoW(HMONITOR,LPMONITORINFO)
|
---|
2430 | {
|
---|
2431 | #ifdef DEBUG
|
---|
2432 | WriteLog("USER32: GetMonitorInfoW not supported!!\n");
|
---|
2433 | #endif
|
---|
2434 | return(FALSE);
|
---|
2435 | }
|
---|
2436 | //******************************************************************************
|
---|
2437 | //******************************************************************************
|
---|
2438 | HMONITOR WIN32API MonitorFromWindow(HWND hwnd, DWORD dwFlags)
|
---|
2439 | {
|
---|
2440 | #ifdef DEBUG
|
---|
2441 | WriteLog("USER32: MonitorFromWindow not correctly supported??\n");
|
---|
2442 | #endif
|
---|
2443 | //Attention: Win32 hwnd!
|
---|
2444 |
|
---|
2445 | return(0);
|
---|
2446 | }
|
---|
2447 | //******************************************************************************
|
---|
2448 | //******************************************************************************
|
---|
2449 | HMONITOR WIN32API MonitorFromRect(LPRECT rect, DWORD dwFlags)
|
---|
2450 | {
|
---|
2451 | #ifdef DEBUG
|
---|
2452 | WriteLog("USER32: MonitorFromRect not correctly supported??\n");
|
---|
2453 | #endif
|
---|
2454 | return(0);
|
---|
2455 | }
|
---|
2456 | //******************************************************************************
|
---|
2457 | //******************************************************************************
|
---|
2458 | HMONITOR WIN32API MonitorFromPoint(POINT point, DWORD dwflags)
|
---|
2459 | {
|
---|
2460 | #ifdef DEBUG
|
---|
2461 | WriteLog("USER32: MonitorFromPoint not correctly supported??\n");
|
---|
2462 | #endif
|
---|
2463 | return(0);
|
---|
2464 | }
|
---|
2465 | //******************************************************************************
|
---|
2466 | //******************************************************************************
|
---|
2467 | BOOL WIN32API EnumDisplayMonitors(HDC,LPRECT,MONITORENUMPROC,LPARAM)
|
---|
2468 | {
|
---|
2469 | #ifdef DEBUG
|
---|
2470 | WriteLog("USER32: EnumDisplayMonitors not supported??\n");
|
---|
2471 | #endif
|
---|
2472 | return(FALSE);
|
---|
2473 | }
|
---|
2474 | //******************************************************************************
|
---|
2475 | //******************************************************************************
|
---|
2476 | BOOL WIN32API EnumDisplaySettingsA(LPCSTR lpszDeviceName, DWORD iModeNum,
|
---|
2477 | LPDEVMODEA lpDevMode)
|
---|
2478 | {
|
---|
2479 | #ifdef DEBUG
|
---|
2480 | WriteLog("USER32: EnumDisplaySettingsA FAKED\n");
|
---|
2481 | #endif
|
---|
2482 | switch(iModeNum) {
|
---|
2483 | case 0:
|
---|
2484 | lpDevMode->dmBitsPerPel = 16;
|
---|
2485 | lpDevMode->dmPelsWidth = 768;
|
---|
2486 | lpDevMode->dmPelsHeight = 1024;
|
---|
2487 | lpDevMode->dmDisplayFlags = 0;
|
---|
2488 | lpDevMode->dmDisplayFrequency = 70;
|
---|
2489 | break;
|
---|
2490 | case 1:
|
---|
2491 | lpDevMode->dmBitsPerPel = 16;
|
---|
2492 | lpDevMode->dmPelsWidth = 640;
|
---|
2493 | lpDevMode->dmPelsHeight = 480;
|
---|
2494 | lpDevMode->dmDisplayFlags = 0;
|
---|
2495 | lpDevMode->dmDisplayFrequency = 70;
|
---|
2496 | break;
|
---|
2497 | default:
|
---|
2498 | return(FALSE);
|
---|
2499 | }
|
---|
2500 | return(TRUE);
|
---|
2501 | }
|
---|
2502 | /*****************************************************************************
|
---|
2503 | * Name : BOOL WIN32API EnumDisplaySettingsW
|
---|
2504 | * Purpose : The EnumDisplaySettings function obtains information about one
|
---|
2505 | * of a display device's graphics modes. You can obtain information
|
---|
2506 | * for all of a display device's graphics modes by making a series
|
---|
2507 | * of calls to this function.
|
---|
2508 | * Parameters: LPCTSTR lpszDeviceName specifies the display device
|
---|
2509 | * DWORD iModeNum specifies the graphics mode
|
---|
2510 | * LPDEVMODE lpDevMode points to structure to receive settings
|
---|
2511 | * Variables :
|
---|
2512 | * Result : If the function succeeds, the return value is TRUE.
|
---|
2513 | * If the function fails, the return value is FALSE.
|
---|
2514 | * Remark :
|
---|
2515 | * Status : UNTESTED STUB
|
---|
2516 | *
|
---|
2517 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
2518 | *****************************************************************************/
|
---|
2519 | BOOL WIN32API EnumDisplaySettingsW(LPCSTR lpszDeviceName,
|
---|
2520 | DWORD iModeNum,
|
---|
2521 | LPDEVMODEW lpDevMode)
|
---|
2522 | {
|
---|
2523 | dprintf(("USER32:EnumDisplaySettingsW (%s,%08xh,%08x) not implemented.\n",
|
---|
2524 | lpszDeviceName,
|
---|
2525 | iModeNum,
|
---|
2526 | lpDevMode));
|
---|
2527 |
|
---|
2528 | return (EnumDisplaySettingsA(lpszDeviceName,
|
---|
2529 | iModeNum,
|
---|
2530 | (LPDEVMODEA)lpDevMode));
|
---|
2531 | }
|
---|
2532 | //******************************************************************************
|
---|
2533 | //******************************************************************************
|
---|
2534 | LONG WIN32API ChangeDisplaySettingsA(LPDEVMODEA lpDevMode, DWORD dwFlags)
|
---|
2535 | {
|
---|
2536 | #ifdef DEBUG
|
---|
2537 | if(lpDevMode) {
|
---|
2538 | WriteLog("USER32: ChangeDisplaySettingsA FAKED %X\n", dwFlags);
|
---|
2539 | WriteLog("USER32: ChangeDisplaySettingsA lpDevMode->dmBitsPerPel %d\n", lpDevMode->dmBitsPerPel);
|
---|
2540 | WriteLog("USER32: ChangeDisplaySettingsA lpDevMode->dmPelsWidth %d\n", lpDevMode->dmPelsWidth);
|
---|
2541 | WriteLog("USER32: ChangeDisplaySettingsA lpDevMode->dmPelsHeight %d\n", lpDevMode->dmPelsHeight);
|
---|
2542 | }
|
---|
2543 | #endif
|
---|
2544 | return(DISP_CHANGE_SUCCESSFUL);
|
---|
2545 | }
|
---|
2546 | /*****************************************************************************
|
---|
2547 | * Name : LONG WIN32API ChangeDisplaySettingsW
|
---|
2548 | * Purpose : The ChangeDisplaySettings function changes the display settings
|
---|
2549 | * to the specified graphics mode.
|
---|
2550 | * Parameters: LPDEVMODEW lpDevModeW
|
---|
2551 | * DWORD dwFlags
|
---|
2552 | * Variables :
|
---|
2553 | * Result : DISP_CHANGE_SUCCESSFUL The settings change was successful.
|
---|
2554 | * DISP_CHANGE_RESTART The computer must be restarted in order for the graphics mode to work.
|
---|
2555 | * DISP_CHANGE_BADFLAGS An invalid set of flags was passed in.
|
---|
2556 | * DISP_CHANGE_FAILED The display driver failed the specified graphics mode.
|
---|
2557 | * DISP_CHANGE_BADMODE The graphics mode is not supported.
|
---|
2558 | * DISP_CHANGE_NOTUPDATED Unable to write settings to the registry.
|
---|
2559 | * Remark :
|
---|
2560 | * Status : UNTESTED STUB
|
---|
2561 | *
|
---|
2562 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
2563 | *****************************************************************************/
|
---|
2564 | LONG WIN32API ChangeDisplaySettingsW(LPDEVMODEW lpDevMode,
|
---|
2565 | DWORD dwFlags)
|
---|
2566 | {
|
---|
2567 | dprintf(("USER32:ChangeDisplaySettingsW(%08xh,%08x) not implemented.\n",
|
---|
2568 | lpDevMode,
|
---|
2569 | dwFlags));
|
---|
2570 |
|
---|
2571 | return (ChangeDisplaySettingsA((LPDEVMODEA)lpDevMode,
|
---|
2572 | dwFlags));
|
---|
2573 | }
|
---|
2574 |
|
---|
2575 | /* Window Station and Desktop Functions */
|
---|
2576 |
|
---|
2577 | /*****************************************************************************
|
---|
2578 | * Name : BOOL WIN32API CloseDesktop
|
---|
2579 | * Purpose : The CloseDesktop function closes an open handle of a desktop
|
---|
2580 | * object. A desktop is a secure object contained within a window
|
---|
2581 | * station object. A desktop has a logical display surface and
|
---|
2582 | * contains windows, menus and hooks.
|
---|
2583 | * Parameters: HDESK hDesktop
|
---|
2584 | * Variables :
|
---|
2585 | * Result : If the function succeeds, the return value is TRUE.
|
---|
2586 | * If the functions fails, the return value is FALSE. To get
|
---|
2587 | * extended error information, call GetLastError.
|
---|
2588 | * Remark :
|
---|
2589 | * Status : UNTESTED STUB
|
---|
2590 | *
|
---|
2591 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
2592 | *****************************************************************************/
|
---|
2593 | BOOL WIN32API CloseDesktop(HDESK hDesktop)
|
---|
2594 | {
|
---|
2595 | dprintf(("USER32:CloseDesktop(%08x) not implemented.\n",
|
---|
2596 | hDesktop));
|
---|
2597 |
|
---|
2598 | return (FALSE);
|
---|
2599 | }
|
---|
2600 | /*****************************************************************************
|
---|
2601 | * Name : BOOL WIN32API CloseWindowStation
|
---|
2602 | * Purpose : The CloseWindowStation function closes an open window station handle.
|
---|
2603 | * Parameters: HWINSTA hWinSta
|
---|
2604 | * Variables :
|
---|
2605 | * Result :
|
---|
2606 | * Remark : If the function succeeds, the return value is TRUE.
|
---|
2607 | * If the functions fails, the return value is FALSE. To get
|
---|
2608 | * extended error information, call GetLastError.
|
---|
2609 | * Status : UNTESTED STUB
|
---|
2610 | *
|
---|
2611 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
2612 | *****************************************************************************/
|
---|
2613 | BOOL WIN32API CloseWindowStation(HWINSTA hWinSta)
|
---|
2614 | {
|
---|
2615 | dprintf(("USER32:CloseWindowStation(%08x) not implemented.\n",
|
---|
2616 | hWinSta));
|
---|
2617 |
|
---|
2618 | return (FALSE);
|
---|
2619 | }
|
---|
2620 | /*****************************************************************************
|
---|
2621 | * Name : HDESK WIN32API CreateDesktopA
|
---|
2622 | * Purpose : The CreateDesktop function creates a new desktop on the window
|
---|
2623 | * station associated with the calling process.
|
---|
2624 | * Parameters: LPCTSTR lpszDesktop name of the new desktop
|
---|
2625 | * LPCTSTR lpszDevice name of display device to assign to the desktop
|
---|
2626 | * LPDEVMODE pDevMode reserved; must be NULL
|
---|
2627 | * DWORD dwFlags flags to control interaction with other applications
|
---|
2628 | * DWORD dwDesiredAccess specifies access of returned handle
|
---|
2629 | * LPSECURITY_ATTRIBUTES lpsa specifies security attributes of the desktop
|
---|
2630 | * Variables :
|
---|
2631 | * Result : If the function succeeds, the return value is a handle of the
|
---|
2632 | * newly created desktop.
|
---|
2633 | * If the function fails, the return value is NULL. To get extended
|
---|
2634 | * error information, call GetLastError.
|
---|
2635 | * Remark :
|
---|
2636 | * Status : UNTESTED STUB
|
---|
2637 | *
|
---|
2638 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
2639 | *****************************************************************************/
|
---|
2640 | HDESK WIN32API CreateDesktopA(LPCTSTR lpszDesktop,
|
---|
2641 | LPCTSTR lpszDevice,
|
---|
2642 | LPDEVMODEA pDevMode,
|
---|
2643 | DWORD dwFlags,
|
---|
2644 | DWORD dwDesiredAccess,
|
---|
2645 | LPSECURITY_ATTRIBUTES lpsa)
|
---|
2646 | {
|
---|
2647 | dprintf(("USER32:CreateDesktopA(%s,%s,%08xh,%08xh,%08xh,%08x) not implemented.\n",
|
---|
2648 | lpszDesktop,
|
---|
2649 | lpszDevice,
|
---|
2650 | pDevMode,
|
---|
2651 | dwFlags,
|
---|
2652 | dwDesiredAccess,
|
---|
2653 | lpsa));
|
---|
2654 |
|
---|
2655 | return (NULL);
|
---|
2656 | }
|
---|
2657 | /*****************************************************************************
|
---|
2658 | * Name : HDESK WIN32API CreateDesktopW
|
---|
2659 | * Purpose : The CreateDesktop function creates a new desktop on the window
|
---|
2660 | * station associated with the calling process.
|
---|
2661 | * Parameters: LPCTSTR lpszDesktop name of the new desktop
|
---|
2662 | * LPCTSTR lpszDevice name of display device to assign to the desktop
|
---|
2663 | * LPDEVMODE pDevMode reserved; must be NULL
|
---|
2664 | * DWORD dwFlags flags to control interaction with other applications
|
---|
2665 | * DWORD dwDesiredAccess specifies access of returned handle
|
---|
2666 | * LPSECURITY_ATTRIBUTES lpsa specifies security attributes of the desktop
|
---|
2667 | * Variables :
|
---|
2668 | * Result : If the function succeeds, the return value is a handle of the
|
---|
2669 | * newly created desktop.
|
---|
2670 | * If the function fails, the return value is NULL. To get extended
|
---|
2671 | * error information, call GetLastError.
|
---|
2672 | * Remark :
|
---|
2673 | * Status : UNTESTED STUB
|
---|
2674 | *
|
---|
2675 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
2676 | *****************************************************************************/
|
---|
2677 | HDESK WIN32API CreateDesktopW(LPCTSTR lpszDesktop,
|
---|
2678 | LPCTSTR lpszDevice,
|
---|
2679 | LPDEVMODEW pDevMode,
|
---|
2680 | DWORD dwFlags,
|
---|
2681 | DWORD dwDesiredAccess,
|
---|
2682 | LPSECURITY_ATTRIBUTES lpsa)
|
---|
2683 | {
|
---|
2684 | dprintf(("USER32:CreateDesktopW(%s,%s,%08xh,%08xh,%08xh,%08x) not implemented.\n",
|
---|
2685 | lpszDesktop,
|
---|
2686 | lpszDevice,
|
---|
2687 | pDevMode,
|
---|
2688 | dwFlags,
|
---|
2689 | dwDesiredAccess,
|
---|
2690 | lpsa));
|
---|
2691 |
|
---|
2692 | return (NULL);
|
---|
2693 | }
|
---|
2694 | /*****************************************************************************
|
---|
2695 | * Name : HWINSTA WIN32API CreateWindowStationA
|
---|
2696 | * Purpose : The CreateWindowStation function creates a window station object.
|
---|
2697 | * It returns a handle that can be used to access the window station.
|
---|
2698 | * A window station is a secure object that contains a set of global
|
---|
2699 | * atoms, a clipboard, and a set of desktop objects.
|
---|
2700 | * Parameters: LPTSTR lpwinsta name of the new window station
|
---|
2701 | * DWORD dwReserved reserved; must be NULL
|
---|
2702 | * DWORD dwDesiredAccess specifies access of returned handle
|
---|
2703 | * LPSECURITY_ATTRIBUTES lpsa specifies security attributes of the window station
|
---|
2704 | * Variables :
|
---|
2705 | * Result : If the function succeeds, the return value is the handle to the
|
---|
2706 | * newly created window station.
|
---|
2707 | * If the function fails, the return value is NULL. To get extended
|
---|
2708 | * error information, call GetLastError.
|
---|
2709 | * Remark :
|
---|
2710 | * Status : UNTESTED STUB
|
---|
2711 | *
|
---|
2712 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
2713 | *****************************************************************************/
|
---|
2714 | HWINSTA WIN32API CreateWindowStationA(LPTSTR lpWinSta,
|
---|
2715 | DWORD dwReserved,
|
---|
2716 | DWORD dwDesiredAccess,
|
---|
2717 | LPSECURITY_ATTRIBUTES lpsa)
|
---|
2718 | {
|
---|
2719 | dprintf(("USER32:CreateWindowStationA(%s,%08xh,%08xh,%08x) not implemented.\n",
|
---|
2720 | lpWinSta,
|
---|
2721 | dwReserved,
|
---|
2722 | dwDesiredAccess,
|
---|
2723 | lpsa));
|
---|
2724 |
|
---|
2725 | return (NULL);
|
---|
2726 | }
|
---|
2727 | /*****************************************************************************
|
---|
2728 | * Name : HWINSTA WIN32API CreateWindowStationW
|
---|
2729 | * Purpose : The CreateWindowStation function creates a window station object.
|
---|
2730 | * It returns a handle that can be used to access the window station.
|
---|
2731 | * A window station is a secure object that contains a set of global
|
---|
2732 | * atoms, a clipboard, and a set of desktop objects.
|
---|
2733 | * Parameters: LPTSTR lpwinsta name of the new window station
|
---|
2734 | * DWORD dwReserved reserved; must be NULL
|
---|
2735 | * DWORD dwDesiredAccess specifies access of returned handle
|
---|
2736 | * LPSECURITY_ATTRIBUTES lpsa specifies security attributes of the window station
|
---|
2737 | * Variables :
|
---|
2738 | * Result : If the function succeeds, the return value is the handle to the
|
---|
2739 | * newly created window station.
|
---|
2740 | * If the function fails, the return value is NULL. To get extended
|
---|
2741 | * error information, call GetLastError.
|
---|
2742 | * Remark :
|
---|
2743 | * Status : UNTESTED STUB
|
---|
2744 | *
|
---|
2745 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
2746 | *****************************************************************************/
|
---|
2747 | HWINSTA WIN32API CreateWindowStationW(LPWSTR lpWinSta,
|
---|
2748 | DWORD dwReserved,
|
---|
2749 | DWORD dwDesiredAccess,
|
---|
2750 | LPSECURITY_ATTRIBUTES lpsa)
|
---|
2751 | {
|
---|
2752 | dprintf(("USER32:CreateWindowStationW(%s,%08xh,%08xh,%08x) not implemented.\n",
|
---|
2753 | lpWinSta,
|
---|
2754 | dwReserved,
|
---|
2755 | dwDesiredAccess,
|
---|
2756 | lpsa));
|
---|
2757 |
|
---|
2758 | return (NULL);
|
---|
2759 | }
|
---|
2760 | /*****************************************************************************
|
---|
2761 | * Name : BOOL WIN32API EnumDesktopWindows
|
---|
2762 | * Purpose : The EnumDesktopWindows function enumerates all windows in a
|
---|
2763 | * desktop by passing the handle of each window, in turn, to an
|
---|
2764 | * application-defined callback function.
|
---|
2765 | * Parameters: HDESK hDesktop handle of desktop to enumerate
|
---|
2766 | * WNDENUMPROC lpfn points to application's callback function
|
---|
2767 | * LPARAM lParam 32-bit value to pass to the callback function
|
---|
2768 | * Variables :
|
---|
2769 | * Result : If the function succeeds, the return value is TRUE.
|
---|
2770 | * If the function fails, the return value is FALSE. To get
|
---|
2771 | * extended error information, call GetLastError.
|
---|
2772 | * Remark :
|
---|
2773 | * Status : UNTESTED STUB
|
---|
2774 | *
|
---|
2775 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
2776 | *****************************************************************************/
|
---|
2777 | BOOL WIN32API EnumDesktopWindows(HDESK hDesktop,
|
---|
2778 | WNDENUMPROC lpfn,
|
---|
2779 | LPARAM lParam)
|
---|
2780 | {
|
---|
2781 | dprintf(("USER32:EnumDesktopWindows (%08xh,%08xh,%08x) not implemented.\n",
|
---|
2782 | hDesktop,
|
---|
2783 | lpfn,
|
---|
2784 | lParam));
|
---|
2785 |
|
---|
2786 | return (FALSE);
|
---|
2787 | }
|
---|
2788 | /*****************************************************************************
|
---|
2789 | * Name : BOOL WIN32API EnumDesktopsA
|
---|
2790 | * Purpose : The EnumDesktops function enumerates all desktops in the window
|
---|
2791 | * station assigned to the calling process. The function does so by
|
---|
2792 | * passing the name of each desktop, in turn, to an application-
|
---|
2793 | * defined callback function.
|
---|
2794 | * Parameters: HWINSTA hwinsta handle of window station to enumerate
|
---|
2795 | * DESKTOPENUMPROC lpEnumFunc points to application's callback function
|
---|
2796 | * LPARAM lParam 32-bit value to pass to the callback function
|
---|
2797 | * Variables :
|
---|
2798 | * Result : If the function succeeds, the return value is TRUE.
|
---|
2799 | * If the function fails, the return value is FALSE. To get extended
|
---|
2800 | * error information, call GetLastError.
|
---|
2801 | * Remark :
|
---|
2802 | * Status : UNTESTED STUB
|
---|
2803 | *
|
---|
2804 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
2805 | *****************************************************************************/
|
---|
2806 | BOOL WIN32API EnumDesktopsA(HWINSTA hWinSta,
|
---|
2807 | DESKTOPENUMPROCA lpEnumFunc,
|
---|
2808 | LPARAM lParam)
|
---|
2809 | {
|
---|
2810 | dprintf(("USER32:EnumDesktopsA (%08xh,%08xh,%08x) not implemented.\n",
|
---|
2811 | hWinSta,
|
---|
2812 | lpEnumFunc,
|
---|
2813 | lParam));
|
---|
2814 |
|
---|
2815 | return (FALSE);
|
---|
2816 | }
|
---|
2817 | /*****************************************************************************
|
---|
2818 | * Name : BOOL WIN32API EnumDesktopsW
|
---|
2819 | * Purpose : The EnumDesktops function enumerates all desktops in the window
|
---|
2820 | * station assigned to the calling process. The function does so by
|
---|
2821 | * passing the name of each desktop, in turn, to an application-
|
---|
2822 | * defined callback function.
|
---|
2823 | * Parameters: HWINSTA hwinsta handle of window station to enumerate
|
---|
2824 | * DESKTOPENUMPROC lpEnumFunc points to application's callback function
|
---|
2825 | * LPARAM lParam 32-bit value to pass to the callback function
|
---|
2826 | * Variables :
|
---|
2827 | * Result : If the function succeeds, the return value is TRUE.
|
---|
2828 | * If the function fails, the return value is FALSE. To get extended
|
---|
2829 | * error information, call GetLastError.
|
---|
2830 | * Remark :
|
---|
2831 | * Status : UNTESTED STUB
|
---|
2832 | *
|
---|
2833 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
2834 | *****************************************************************************/
|
---|
2835 | BOOL WIN32API EnumDesktopsW(HWINSTA hWinSta,
|
---|
2836 | DESKTOPENUMPROCW lpEnumFunc,
|
---|
2837 | LPARAM lParam)
|
---|
2838 | {
|
---|
2839 | dprintf(("USER32:EnumDesktopsW (%08xh,%08xh,%08x) not implemented.\n",
|
---|
2840 | hWinSta,
|
---|
2841 | lpEnumFunc,
|
---|
2842 | lParam));
|
---|
2843 |
|
---|
2844 | return (FALSE);
|
---|
2845 | }
|
---|
2846 | /*****************************************************************************
|
---|
2847 | * Name : BOOL WIN32API EnumWindowStationsA
|
---|
2848 | * Purpose : The EnumWindowStations function enumerates all windowstations
|
---|
2849 | * in the system by passing the name of each window station, in
|
---|
2850 | * turn, to an application-defined callback function.
|
---|
2851 | * Parameters:
|
---|
2852 | * Variables : WINSTAENUMPROC lpEnumFunc points to application's callback function
|
---|
2853 | * LPARAM lParam 32-bit value to pass to the callback function
|
---|
2854 | * Result : If the function succeeds, the return value is TRUE.
|
---|
2855 | * If the function fails the return value is FALSE. To get extended
|
---|
2856 | * error information, call GetLastError.
|
---|
2857 | * Remark :
|
---|
2858 | * Status : UNTESTED STUB
|
---|
2859 | *
|
---|
2860 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
2861 | *****************************************************************************/
|
---|
2862 | BOOL WIN32API EnumWindowStationsA(WINSTAENUMPROCA lpEnumFunc,
|
---|
2863 | LPARAM lParam)
|
---|
2864 | {
|
---|
2865 | dprintf(("USER32:EnumWindowStationsA (%08xh,%08x) not implemented.\n",
|
---|
2866 | lpEnumFunc,
|
---|
2867 | lParam));
|
---|
2868 |
|
---|
2869 | return (FALSE);
|
---|
2870 | }
|
---|
2871 | /*****************************************************************************
|
---|
2872 | * Name : BOOL WIN32API EnumWindowStationsW
|
---|
2873 | * Purpose : The EnumWindowStations function enumerates all windowstations
|
---|
2874 | * in the system by passing the name of each window station, in
|
---|
2875 | * turn, to an application-defined callback function.
|
---|
2876 | * Parameters:
|
---|
2877 | * Variables : WINSTAENUMPROC lpEnumFunc points to application's callback function
|
---|
2878 | * LPARAM lParam 32-bit value to pass to the callback function
|
---|
2879 | * Result : If the function succeeds, the return value is TRUE.
|
---|
2880 | * If the function fails the return value is FALSE. To get extended
|
---|
2881 | * error information, call GetLastError.
|
---|
2882 | * Remark :
|
---|
2883 | * Status : UNTESTED STUB
|
---|
2884 | *
|
---|
2885 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
2886 | *****************************************************************************/
|
---|
2887 | BOOL WIN32API EnumWindowStationsW(WINSTAENUMPROCW lpEnumFunc,
|
---|
2888 | LPARAM lParam)
|
---|
2889 | {
|
---|
2890 | dprintf(("USER32:EnumWindowStationsW (%08xh,%08x) not implemented.\n",
|
---|
2891 | lpEnumFunc,
|
---|
2892 | lParam));
|
---|
2893 |
|
---|
2894 | return (FALSE);
|
---|
2895 | }
|
---|
2896 | /*****************************************************************************
|
---|
2897 | * Name : HWINSTA WIN32API GetProcessWindowStation
|
---|
2898 | * Purpose : The GetProcessWindowStation function returns a handle of the
|
---|
2899 | * window station associated with the calling process.
|
---|
2900 | * Parameters:
|
---|
2901 | * Variables :
|
---|
2902 | * Result : If the function succeeds, the return value is a handle of the
|
---|
2903 | * window station associated with the calling process.
|
---|
2904 | * If the function fails, the return value is NULL. This can occur
|
---|
2905 | * if the calling process is not an application written for Windows
|
---|
2906 | * NT. To get extended error information, call GetLastError.
|
---|
2907 | * Remark :
|
---|
2908 | * Status : UNTESTED STUB
|
---|
2909 | *
|
---|
2910 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
2911 | *****************************************************************************/
|
---|
2912 | HWINSTA WIN32API GetProcessWindowStation(VOID)
|
---|
2913 | {
|
---|
2914 | dprintf(("USER32:GetProcessWindowStation () not implemented.\n"));
|
---|
2915 |
|
---|
2916 | return (NULL);
|
---|
2917 | }
|
---|
2918 | /*****************************************************************************
|
---|
2919 | * Name : BOOL WIN32API GetUserObjectInformationA
|
---|
2920 | * Purpose : The GetUserObjectInformation function returns information about
|
---|
2921 | * a window station or desktop object.
|
---|
2922 | * Parameters: HANDLE hObj handle of object to get information for
|
---|
2923 | * int nIndex type of information to get
|
---|
2924 | * PVOID pvInfo points to buffer that receives the information
|
---|
2925 | * DWORD nLength size, in bytes, of pvInfo buffer
|
---|
2926 | * LPDWORD lpnLengthNeeded receives required size, in bytes, of pvInfo buffer
|
---|
2927 | * Variables :
|
---|
2928 | * Result : If the function succeeds, the return value is TRUE.
|
---|
2929 | * If the function fails, the return value is FALSE. To get extended
|
---|
2930 | * error information, call GetLastError.
|
---|
2931 | * Remark :
|
---|
2932 | * Status : UNTESTED STUB
|
---|
2933 | *
|
---|
2934 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
2935 | *****************************************************************************/
|
---|
2936 | BOOL WIN32API GetUserObjectInformationA(HANDLE hObj,
|
---|
2937 | int nIndex,
|
---|
2938 | PVOID pvInfo,
|
---|
2939 | DWORD nLength,
|
---|
2940 | LPDWORD lpnLengthNeeded)
|
---|
2941 | {
|
---|
2942 | dprintf(("USER32:GetUserObjectInformationA (%08xh,%08xh,%08xh,%u,%08x) not implemented.\n",
|
---|
2943 | hObj,
|
---|
2944 | nIndex,
|
---|
2945 | pvInfo,
|
---|
2946 | nLength,
|
---|
2947 | lpnLengthNeeded));
|
---|
2948 |
|
---|
2949 | return (FALSE);
|
---|
2950 | }
|
---|
2951 | /*****************************************************************************
|
---|
2952 | * Name : BOOL WIN32API GetUserObjectInformationW
|
---|
2953 | * Purpose : The GetUserObjectInformation function returns information about
|
---|
2954 | * a window station or desktop object.
|
---|
2955 | * Parameters: HANDLE hObj handle of object to get information for
|
---|
2956 | * int nIndex type of information to get
|
---|
2957 | * PVOID pvInfo points to buffer that receives the information
|
---|
2958 | * DWORD nLength size, in bytes, of pvInfo buffer
|
---|
2959 | * LPDWORD lpnLengthNeeded receives required size, in bytes, of pvInfo buffer
|
---|
2960 | * Variables :
|
---|
2961 | * Result : If the function succeeds, the return value is TRUE.
|
---|
2962 | * If the function fails, the return value is FALSE. To get extended
|
---|
2963 | * error information, call GetLastError.
|
---|
2964 | * Remark :
|
---|
2965 | * Status : UNTESTED STUB
|
---|
2966 | *
|
---|
2967 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
2968 | *****************************************************************************/
|
---|
2969 | BOOL WIN32API GetUserObjectInformationW(HANDLE hObj,
|
---|
2970 | int nIndex,
|
---|
2971 | PVOID pvInfo,
|
---|
2972 | DWORD nLength,
|
---|
2973 | LPDWORD lpnLengthNeeded)
|
---|
2974 | {
|
---|
2975 | dprintf(("USER32:GetUserObjectInformationW (%08xh,%08xh,%08xh,%u,%08x) not implemented.\n",
|
---|
2976 | hObj,
|
---|
2977 | nIndex,
|
---|
2978 | pvInfo,
|
---|
2979 | nLength,
|
---|
2980 | lpnLengthNeeded));
|
---|
2981 |
|
---|
2982 | return (FALSE);
|
---|
2983 | }
|
---|
2984 | /*****************************************************************************
|
---|
2985 | * Name : BOOL WIN32API GetUserObjectSecurity
|
---|
2986 | * Purpose : The GetUserObjectSecurity function retrieves security information
|
---|
2987 | * for the specified user object.
|
---|
2988 | * Parameters: HANDLE hObj handle of user object
|
---|
2989 | * SECURITY_INFORMATION * pSIRequested address of requested security information
|
---|
2990 | * LPSECURITY_DESCRIPTOR pSID address of security descriptor
|
---|
2991 | * DWORD nLength size of buffer for security descriptor
|
---|
2992 | * LPDWORD lpnLengthNeeded address of required size of buffer
|
---|
2993 | * Variables :
|
---|
2994 | * Result : If the function succeeds, the return value is TRUE.
|
---|
2995 | * If the function fails, the return value is FALSE. To get extended
|
---|
2996 | * error information, call GetLastError.
|
---|
2997 | * Remark :
|
---|
2998 | * Status : UNTESTED STUB
|
---|
2999 | *
|
---|
3000 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
3001 | *****************************************************************************/
|
---|
3002 | BOOL WIN32API GetUserObjectSecurity(HANDLE hObj,
|
---|
3003 | SECURITY_INFORMATION * pSIRequested,
|
---|
3004 | LPSECURITY_DESCRIPTOR pSID,
|
---|
3005 | DWORD nLength,
|
---|
3006 | LPDWORD lpnLengthNeeded)
|
---|
3007 | {
|
---|
3008 | dprintf(("USER32:GetUserObjectSecurity (%08xh,%08xh,%08xh,%u,%08x) not implemented.\n",
|
---|
3009 | hObj,
|
---|
3010 | pSIRequested,
|
---|
3011 | pSID,
|
---|
3012 | nLength,
|
---|
3013 | lpnLengthNeeded));
|
---|
3014 |
|
---|
3015 | return (FALSE);
|
---|
3016 | }
|
---|
3017 | /*****************************************************************************
|
---|
3018 | * Name : HDESK WIN32API OpenDesktopA
|
---|
3019 | * Purpose : The OpenDesktop function returns a handle to an existing desktop.
|
---|
3020 | * A desktop is a secure object contained within a window station
|
---|
3021 | * object. A desktop has a logical display surface and contains
|
---|
3022 | * windows, menus and hooks.
|
---|
3023 | * Parameters: LPCTSTR lpszDesktopName name of the desktop to open
|
---|
3024 | * DWORD dwFlags flags to control interaction with other applications
|
---|
3025 | * BOOL fInherit specifies whether returned handle is inheritable
|
---|
3026 | * DWORD dwDesiredAccess specifies access of returned handle
|
---|
3027 | * Variables :
|
---|
3028 | * Result : If the function succeeds, the return value is the handle to the
|
---|
3029 | * opened desktop.
|
---|
3030 | * If the function fails, the return value is NULL. To get extended
|
---|
3031 | * error information, call GetLastError.
|
---|
3032 | * Remark :
|
---|
3033 | * Status : UNTESTED STUB
|
---|
3034 | *
|
---|
3035 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
3036 | *****************************************************************************/
|
---|
3037 | HDESK WIN32API OpenDesktopA(LPCTSTR lpszDesktopName,
|
---|
3038 | DWORD dwFlags,
|
---|
3039 | BOOL fInherit,
|
---|
3040 | DWORD dwDesiredAccess)
|
---|
3041 | {
|
---|
3042 | dprintf(("USER32:OpenDesktopA (%s,%08xh,%08xh,%08x) not implemented.\n",
|
---|
3043 | lpszDesktopName,
|
---|
3044 | dwFlags,
|
---|
3045 | fInherit,
|
---|
3046 | dwDesiredAccess));
|
---|
3047 |
|
---|
3048 | return (NULL);
|
---|
3049 | }
|
---|
3050 | /*****************************************************************************
|
---|
3051 | * Name : HDESK WIN32API OpenDesktopW
|
---|
3052 | * Purpose : The OpenDesktop function returns a handle to an existing desktop.
|
---|
3053 | * A desktop is a secure object contained within a window station
|
---|
3054 | * object. A desktop has a logical display surface and contains
|
---|
3055 | * windows, menus and hooks.
|
---|
3056 | * Parameters: LPCTSTR lpszDesktopName name of the desktop to open
|
---|
3057 | * DWORD dwFlags flags to control interaction with other applications
|
---|
3058 | * BOOL fInherit specifies whether returned handle is inheritable
|
---|
3059 | * DWORD dwDesiredAccess specifies access of returned handle
|
---|
3060 | * Variables :
|
---|
3061 | * Result : If the function succeeds, the return value is the handle to the
|
---|
3062 | * opened desktop.
|
---|
3063 | * If the function fails, the return value is NULL. To get extended
|
---|
3064 | * error information, call GetLastError.
|
---|
3065 | * Remark :
|
---|
3066 | * Status : UNTESTED STUB
|
---|
3067 | *
|
---|
3068 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
3069 | *****************************************************************************/
|
---|
3070 | HDESK WIN32API OpenDesktopW(LPCTSTR lpszDesktopName,
|
---|
3071 | DWORD dwFlags,
|
---|
3072 | BOOL fInherit,
|
---|
3073 | DWORD dwDesiredAccess)
|
---|
3074 | {
|
---|
3075 | dprintf(("USER32:OpenDesktopW (%s,%08xh,%08xh,%08x) not implemented.\n",
|
---|
3076 | lpszDesktopName,
|
---|
3077 | dwFlags,
|
---|
3078 | fInherit,
|
---|
3079 | dwDesiredAccess));
|
---|
3080 |
|
---|
3081 | return (NULL);
|
---|
3082 | }
|
---|
3083 | /*****************************************************************************
|
---|
3084 | * Name : HDESK WIN32API OpenInputDesktop
|
---|
3085 | * Purpose : The OpenInputDesktop function returns a handle to the desktop
|
---|
3086 | * that receives user input. The input desktop is a desktop on the
|
---|
3087 | * window station associated with the logged-on user.
|
---|
3088 | * Parameters: DWORD dwFlags flags to control interaction with other applications
|
---|
3089 | * BOOL fInherit specifies whether returned handle is inheritable
|
---|
3090 | * DWORD dwDesiredAccess specifies access of returned handle
|
---|
3091 | * Variables :
|
---|
3092 | * Result : If the function succeeds, the return value is a handle of the
|
---|
3093 | * desktop that receives user input.
|
---|
3094 | * If the function fails, the return value is NULL. To get extended
|
---|
3095 | * error information, call GetLastError.
|
---|
3096 | * Remark :
|
---|
3097 | * Status : UNTESTED STUB
|
---|
3098 | *
|
---|
3099 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
3100 | *****************************************************************************/
|
---|
3101 | HDESK WIN32API OpenInputDesktop(DWORD dwFlags,
|
---|
3102 | BOOL fInherit,
|
---|
3103 | DWORD dwDesiredAccess)
|
---|
3104 | {
|
---|
3105 | dprintf(("USER32:OpenInputDesktop (%08xh,%08xh,%08x) not implemented.\n",
|
---|
3106 | dwFlags,
|
---|
3107 | fInherit,
|
---|
3108 | dwDesiredAccess));
|
---|
3109 |
|
---|
3110 | return (NULL);
|
---|
3111 | }
|
---|
3112 | /*****************************************************************************
|
---|
3113 | * Name : HWINSTA WIN32API OpenWindowStationA
|
---|
3114 | * Purpose : The OpenWindowStation function returns a handle to an existing
|
---|
3115 | * window station.
|
---|
3116 | * Parameters: LPCTSTR lpszWinStaName name of the window station to open
|
---|
3117 | * BOOL fInherit specifies whether returned handle is inheritable
|
---|
3118 | * DWORD dwDesiredAccess specifies access of returned handle
|
---|
3119 | * Variables :
|
---|
3120 | * Result : If the function succeeds, the return value is the handle to the
|
---|
3121 | * specified window station.
|
---|
3122 | * If the function fails, the return value is NULL. To get extended
|
---|
3123 | * error information, call GetLastError.
|
---|
3124 | * Remark :
|
---|
3125 | * Status : UNTESTED STUB
|
---|
3126 | *
|
---|
3127 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
3128 | *****************************************************************************/
|
---|
3129 | HWINSTA WIN32API OpenWindowStationA(LPCTSTR lpszWinStaName,
|
---|
3130 | BOOL fInherit,
|
---|
3131 | DWORD dwDesiredAccess)
|
---|
3132 | {
|
---|
3133 | dprintf(("USER32:OpenWindowStatieonA (%s,%08xh,%08x) not implemented.\n",
|
---|
3134 | lpszWinStaName,
|
---|
3135 | fInherit,
|
---|
3136 | dwDesiredAccess));
|
---|
3137 |
|
---|
3138 | return (NULL);
|
---|
3139 | }
|
---|
3140 | /*****************************************************************************
|
---|
3141 | * Name : HWINSTA WIN32API OpenWindowStationW
|
---|
3142 | * Purpose : The OpenWindowStation function returns a handle to an existing
|
---|
3143 | * window station.
|
---|
3144 | * Parameters: LPCTSTR lpszWinStaName name of the window station to open
|
---|
3145 | * BOOL fInherit specifies whether returned handle is inheritable
|
---|
3146 | * DWORD dwDesiredAccess specifies access of returned handle
|
---|
3147 | * Variables :
|
---|
3148 | * Result : If the function succeeds, the return value is the handle to the
|
---|
3149 | * specified window station.
|
---|
3150 | * If the function fails, the return value is NULL. To get extended
|
---|
3151 | * error information, call GetLastError.
|
---|
3152 |
|
---|
3153 |
|
---|
3154 | * Remark :
|
---|
3155 | * Status : UNTESTED STUB
|
---|
3156 | *
|
---|
3157 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
3158 | *****************************************************************************/
|
---|
3159 | HWINSTA WIN32API OpenWindowStationW(LPCTSTR lpszWinStaName,
|
---|
3160 | BOOL fInherit,
|
---|
3161 | DWORD dwDesiredAccess)
|
---|
3162 | {
|
---|
3163 | dprintf(("USER32:OpenWindowStatieonW (%s,%08xh,%08x) not implemented.\n",
|
---|
3164 | lpszWinStaName,
|
---|
3165 | fInherit,
|
---|
3166 | dwDesiredAccess));
|
---|
3167 |
|
---|
3168 | return (NULL);
|
---|
3169 | }
|
---|
3170 | /*****************************************************************************
|
---|
3171 | * Name : BOOL WIN32API SetProcessWindowStation
|
---|
3172 | * Purpose : The SetProcessWindowStation function assigns a window station
|
---|
3173 | * to the calling process. This enables the process to access
|
---|
3174 | * objects in the window station such as desktops, the clipboard,
|
---|
3175 | * and global atoms. All subsequent operations on the window station
|
---|
3176 | * use the access rights granted to hWinSta.
|
---|
3177 | * Parameters:
|
---|
3178 | * Variables :
|
---|
3179 | * Result : If the function succeeds, the return value is TRUE.
|
---|
3180 | * If the function fails, the return value is FALSE. To get extended
|
---|
3181 | * error information, call GetLastError.
|
---|
3182 | * Remark :
|
---|
3183 | * Status : UNTESTED STUB
|
---|
3184 | *
|
---|
3185 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
3186 | *****************************************************************************/
|
---|
3187 | BOOL WIN32API SetProcessWindowStation(HWINSTA hWinSta)
|
---|
3188 | {
|
---|
3189 | dprintf(("USER32:SetProcessWindowStation (%08x) not implemented.\n",
|
---|
3190 | hWinSta));
|
---|
3191 |
|
---|
3192 | return (FALSE);
|
---|
3193 | }
|
---|
3194 | /*****************************************************************************
|
---|
3195 | * Name : BOOL WIN32API SetThreadDesktop
|
---|
3196 | * Purpose : The SetThreadDesktop function assigns a desktop to the calling
|
---|
3197 | * thread. All subsequent operations on the desktop use the access
|
---|
3198 | * rights granted to hDesk.
|
---|
3199 | * Parameters: HDESK hDesk handle of the desktop to assign to this thread
|
---|
3200 | * Variables :
|
---|
3201 | * Result : If the function succeeds, the return value is TRUE.
|
---|
3202 | * If the function fails, the return value is FALSE. To get extended
|
---|
3203 | * error information, call GetLastError.
|
---|
3204 | * Remark :
|
---|
3205 | * Status : UNTESTED STUB
|
---|
3206 | *
|
---|
3207 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
3208 | *****************************************************************************/
|
---|
3209 | BOOL WIN32API SetThreadDesktop(HDESK hDesktop)
|
---|
3210 | {
|
---|
3211 | dprintf(("USER32:SetThreadDesktop (%08x) not implemented.\n",
|
---|
3212 | hDesktop));
|
---|
3213 |
|
---|
3214 | return (FALSE);
|
---|
3215 | }
|
---|
3216 | /*****************************************************************************
|
---|
3217 | * Name : BOOL WIN32API SetUserObjectInformationA
|
---|
3218 | * Purpose : The SetUserObjectInformation function sets information about a
|
---|
3219 | * window station or desktop object.
|
---|
3220 | * Parameters: HANDLE hObject handle of the object for which to set information
|
---|
3221 | * int nIndex type of information to set
|
---|
3222 | * PVOID lpvInfo points to a buffer that contains the information
|
---|
3223 | * DWORD cbInfo size, in bytes, of lpvInfo buffer
|
---|
3224 | * Variables :
|
---|
3225 | * Result : If the function succeeds, the return value is TRUE.
|
---|
3226 | * If the function fails the return value is FALSE. To get extended
|
---|
3227 | * error information, call GetLastError.
|
---|
3228 | * Remark :
|
---|
3229 | * Status : UNTESTED STUB
|
---|
3230 | *
|
---|
3231 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
3232 | *****************************************************************************/
|
---|
3233 | BOOL WIN32API SetUserObjectInformationA(HANDLE hObject,
|
---|
3234 | int nIndex,
|
---|
3235 | PVOID lpvInfo,
|
---|
3236 | DWORD cbInfo)
|
---|
3237 | {
|
---|
3238 | dprintf(("USER32:SetUserObjectInformationA (%08xh,%u,%08xh,%08x) not implemented.\n",
|
---|
3239 | hObject,
|
---|
3240 | nIndex,
|
---|
3241 | lpvInfo,
|
---|
3242 | cbInfo));
|
---|
3243 |
|
---|
3244 | return (FALSE);
|
---|
3245 | }
|
---|
3246 | /*****************************************************************************
|
---|
3247 | * Name : BOOL WIN32API SetUserObjectInformationW
|
---|
3248 | * Purpose : The SetUserObjectInformation function sets information about a
|
---|
3249 | * window station or desktop object.
|
---|
3250 | * Parameters: HANDLE hObject handle of the object for which to set information
|
---|
3251 | * int nIndex type of information to set
|
---|
3252 | * PVOID lpvInfo points to a buffer that contains the information
|
---|
3253 | * DWORD cbInfo size, in bytes, of lpvInfo buffer
|
---|
3254 | * Variables :
|
---|
3255 | * Result : If the function succeeds, the return value is TRUE.
|
---|
3256 | * If the function fails the return value is FALSE. To get extended
|
---|
3257 | * error information, call GetLastError.
|
---|
3258 | * Remark :
|
---|
3259 | * Status : UNTESTED STUB
|
---|
3260 | *
|
---|
3261 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
3262 | *****************************************************************************/
|
---|
3263 | BOOL WIN32API SetUserObjectInformationW(HANDLE hObject,
|
---|
3264 | int nIndex,
|
---|
3265 | PVOID lpvInfo,
|
---|
3266 | DWORD cbInfo)
|
---|
3267 | {
|
---|
3268 | dprintf(("USER32:SetUserObjectInformationW (%08xh,%u,%08xh,%08x) not implemented.\n",
|
---|
3269 | hObject,
|
---|
3270 | nIndex,
|
---|
3271 | lpvInfo,
|
---|
3272 | cbInfo));
|
---|
3273 |
|
---|
3274 | return (FALSE);
|
---|
3275 | }
|
---|
3276 | /*****************************************************************************
|
---|
3277 | * Name : BOOL WIN32API SetUserObjectSecurity
|
---|
3278 | * Purpose : The SetUserObjectSecurity function sets the security of a user
|
---|
3279 | * object. This can be, for example, a window or a DDE conversation
|
---|
3280 | * Parameters: HANDLE hObject handle of user object
|
---|
3281 | * SECURITY_INFORMATION * psi address of security information
|
---|
3282 | * LPSECURITY_DESCRIPTOR psd address of security descriptor
|
---|
3283 | * Variables :
|
---|
3284 | * Result : If the function succeeds, the return value is TRUE.
|
---|
3285 | * If the function fails, the return value is FALSE. To get extended
|
---|
3286 | * error information, call GetLastError.
|
---|
3287 | * Remark :
|
---|
3288 | * Status : UNTESTED STUB
|
---|
3289 | *
|
---|
3290 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
3291 | *****************************************************************************/
|
---|
3292 | BOOL WIN32API SetUserObjectSecurity(HANDLE hObject,
|
---|
3293 | SECURITY_INFORMATION * psi,
|
---|
3294 | LPSECURITY_DESCRIPTOR psd)
|
---|
3295 | {
|
---|
3296 | dprintf(("USER32:SetUserObjectSecuroty (%08xh,%08xh,%08x) not implemented.\n",
|
---|
3297 | hObject,
|
---|
3298 | psi,
|
---|
3299 | psd));
|
---|
3300 |
|
---|
3301 | return (FALSE);
|
---|
3302 | }
|
---|
3303 | /*****************************************************************************
|
---|
3304 | * Name : BOOL WIN32API SwitchDesktop
|
---|
3305 | * Purpose : The SwitchDesktop function makes a desktop visible and activates
|
---|
3306 | * it. This enables the desktop to receive input from the user. The
|
---|
3307 | * calling process must have DESKTOP_SWITCHDESKTOP access to the
|
---|
3308 | * desktop for the SwitchDesktop function to succeed.
|
---|
3309 | * Parameters:
|
---|
3310 | * Variables :
|
---|
3311 | * Result : If the function succeeds, the return value is TRUE.
|
---|
3312 | * If the function fails, the return value is FALSE. To get extended
|
---|
3313 | * error information, call GetLastError.
|
---|
3314 | * Remark :
|
---|
3315 | * Status : UNTESTED STUB
|
---|
3316 | *
|
---|
3317 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
3318 | *****************************************************************************/
|
---|
3319 | BOOL WIN32API SwitchDesktop(HDESK hDesktop)
|
---|
3320 | {
|
---|
3321 | dprintf(("USER32:SwitchDesktop (%08x) not implemented.\n",
|
---|
3322 | hDesktop));
|
---|
3323 |
|
---|
3324 | return (FALSE);
|
---|
3325 | }
|
---|
3326 |
|
---|
3327 | /* Debugging Functions */
|
---|
3328 |
|
---|
3329 | /*****************************************************************************
|
---|
3330 | * Name : VOID WIN32API SetDebugErrorLevel
|
---|
3331 | * Purpose : The SetDebugErrorLevel function sets the minimum error level at
|
---|
3332 | * which Windows will generate debugging events and pass them to a debugger.
|
---|
3333 | * Parameters: DWORD dwLevel debugging error level
|
---|
3334 | * Variables :
|
---|
3335 | * Result :
|
---|
3336 | * Remark :
|
---|
3337 | * Status : UNTESTED STUB
|
---|
3338 | *
|
---|
3339 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
3340 | *****************************************************************************/
|
---|
3341 | VOID WIN32API SetDebugErrorLevel(DWORD dwLevel)
|
---|
3342 | {
|
---|
3343 | dprintf(("USER32:SetDebugErrorLevel (%08x) not implemented.\n",
|
---|
3344 | dwLevel));
|
---|
3345 | }
|
---|
3346 |
|
---|
3347 | /* Hook Functions */
|
---|
3348 |
|
---|
3349 | /*****************************************************************************
|
---|
3350 | * Name : BOOL WIN32API SetWindowsHookW
|
---|
3351 | * Purpose : The SetWindowsHook function is not implemented in the Win32 API.
|
---|
3352 | * Win32-based applications should use the SetWindowsHookEx function.
|
---|
3353 | * Parameters:
|
---|
3354 | * Variables :
|
---|
3355 | * Result :
|
---|
3356 | * Remark : ARGH ! MICROSOFT !
|
---|
3357 | * Status : UNTESTED STUB
|
---|
3358 | *
|
---|
3359 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
3360 | *****************************************************************************/
|
---|
3361 | HHOOK WIN32API SetWindowsHookW(int nFilterType, HOOKPROC pfnFilterProc)
|
---|
3362 |
|
---|
3363 | {
|
---|
3364 | return (FALSE);
|
---|
3365 | }
|
---|
3366 |
|
---|
3367 | /* CB: move to ShowWindow() */
|
---|
3368 |
|
---|
3369 | /*****************************************************************************
|
---|
3370 | * Name : BOOL WIN32API ShowWindowAsync
|
---|
3371 | * Purpose : The ShowWindowAsync function sets the show state of a window
|
---|
3372 | * created by a different thread.
|
---|
3373 | * Parameters: HWND hwnd handle of window
|
---|
3374 | * int nCmdShow show state of window
|
---|
3375 | * Variables :
|
---|
3376 | * Result : If the window was previously visible, the return value is TRUE.
|
---|
3377 | * If the window was previously hidden, the return value is FALSE.
|
---|
3378 | * Remark :
|
---|
3379 | * Status : UNTESTED STUB
|
---|
3380 | *
|
---|
3381 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
3382 | *****************************************************************************/
|
---|
3383 | BOOL WIN32API ShowWindowAsync (HWND hWnd,
|
---|
3384 | int nCmdShow)
|
---|
3385 | {
|
---|
3386 | dprintf(("USER32:ShowWindowAsync (%08xh,%08x) not implemented.\n",
|
---|
3387 | hWnd,
|
---|
3388 | nCmdShow));
|
---|
3389 |
|
---|
3390 | return (FALSE);
|
---|
3391 | }
|
---|
3392 |
|
---|
3393 | /* CB: move to MDI */
|
---|
3394 |
|
---|
3395 | /*****************************************************************************
|
---|
3396 | * Name : WORD WIN32API TileWindows
|
---|
3397 | * Purpose : The TileWindows function tiles the specified windows, or the child
|
---|
3398 | * windows of the specified parent window.
|
---|
3399 | * Parameters: HWND hwndParent handle of parent window
|
---|
3400 | * WORD wFlags types of windows not to arrange
|
---|
3401 | * LPCRECT lpRect rectangle to arrange windows in
|
---|
3402 | * WORD cChildrenb number of windows to arrange
|
---|
3403 | * const HWND *ahwndChildren array of window handles
|
---|
3404 | * Variables :
|
---|
3405 | * Result : If the function succeeds, the return value is the number of
|
---|
3406 | * windows arranged.
|
---|
3407 | * If the function fails, the return value is zero.
|
---|
3408 | * Remark :
|
---|
3409 | * Status : UNTESTED STUB
|
---|
3410 | *
|
---|
3411 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
---|
3412 | *****************************************************************************/
|
---|
3413 | WORD WIN32API TileWindows(HWND hwndParent,
|
---|
3414 | UINT wFlags,
|
---|
3415 | const LPRECT lpRect,
|
---|
3416 | UINT cChildrenb,
|
---|
3417 | const HWND *ahwndChildren)
|
---|
3418 | {
|
---|
3419 | dprintf(("USER32:TileWindows (%08xh,%08xh,%08xh,%08xh,%08x) not implemented.\n",
|
---|
3420 | hwndParent,
|
---|
3421 | wFlags,
|
---|
3422 | lpRect,
|
---|
3423 | cChildrenb,
|
---|
3424 | ahwndChildren));
|
---|
3425 |
|
---|
3426 | return (0);
|
---|
3427 | }
|
---|
3428 | /*****************************************************************************
|
---|
3429 | * Name : BOOL WIN32API TileChildWindows
|
---|
3430 | * Purpose : Unknown
|
---|
3431 | * Parameters: Unknown
|
---|
3432 | * Variables :
|
---|
3433 | * Result :
|
---|
3434 | * Remark :
|
---|
3435 | * Status : UNTESTED UNKNOWN STUB
|
---|
3436 | *
|
---|
3437 | * Author : Patrick Haller [Wed, 1998/06/16 11:55]
|
---|
3438 | *****************************************************************************/
|
---|
3439 | BOOL WIN32API TileChildWindows(DWORD x1,
|
---|
3440 | DWORD x2)
|
---|
3441 | {
|
---|
3442 | dprintf(("USER32: TileChildWindows(%08xh,%08xh) not implemented.\n",
|
---|
3443 | x1,
|
---|
3444 | x2));
|
---|
3445 |
|
---|
3446 | return (FALSE); /* default */
|
---|
3447 | }
|
---|
3448 | /*****************************************************************************
|
---|
3449 | * Name : BOOL WIN32API CascadeChildWindows
|
---|
3450 | * Purpose : Unknown
|
---|
3451 | * Parameters: Unknown
|
---|
3452 | * Variables :
|
---|
3453 | * Result :
|
---|
3454 | * Remark :
|
---|
3455 | * Status : UNTESTED UNKNOWN STUB
|
---|
3456 | *
|
---|
3457 | * Author : Patrick Haller [Wed, 1998/06/16 11:55]
|
---|
3458 | *****************************************************************************/
|
---|
3459 | BOOL WIN32API CascadeChildWindows(DWORD x1,
|
---|
3460 | DWORD x2)
|
---|
3461 | {
|
---|
3462 | dprintf(("USER32: CascadeChildWindows(%08xh,%08xh) not implemented.\n",
|
---|
3463 | x1,
|
---|
3464 | x2));
|
---|
3465 |
|
---|
3466 | return (FALSE); /* default */
|
---|
3467 | }
|
---|
3468 |
|
---|
3469 | /* Drag'n'drop */
|
---|
3470 |
|
---|
3471 | /*****************************************************************************
|
---|
3472 | * Name : BOOL WIN32API DragObject
|
---|
3473 | * Purpose : Unknown
|
---|
3474 | * Parameters: Unknown
|
---|
3475 | * Variables :
|
---|
3476 | * Result :
|
---|
3477 | * Remark :
|
---|
3478 | * Status : UNTESTED UNKNOWN STUB
|
---|
3479 | *
|
---|
3480 | * Author : Patrick Haller [Wed, 1998/06/16 11:55]
|
---|
3481 | *****************************************************************************/
|
---|
3482 | DWORD WIN32API DragObject(HWND x1,HWND x2,UINT x3,DWORD x4,HCURSOR x5)
|
---|
3483 | {
|
---|
3484 | dprintf(("USER32: DragObject(%08x,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
|
---|
3485 | x1,
|
---|
3486 | x2,
|
---|
3487 | x3,
|
---|
3488 | x4,
|
---|
3489 | x5));
|
---|
3490 |
|
---|
3491 | return (FALSE); /* default */
|
---|
3492 | }
|
---|
3493 |
|
---|
3494 | /* Unknown */
|
---|
3495 |
|
---|
3496 | /*****************************************************************************
|
---|
3497 | * Name : BOOL WIN32API SetShellWindow
|
---|
3498 | * Purpose : Unknown
|
---|
3499 | * Parameters: Unknown
|
---|
3500 | * Variables :
|
---|
3501 | * Result :
|
---|
3502 | * Remark :
|
---|
3503 | * Status : UNTESTED UNKNOWN STUB
|
---|
3504 | *
|
---|
3505 | * Author : Patrick Haller [Wed, 1998/06/16 11:55]
|
---|
3506 | *****************************************************************************/
|
---|
3507 | BOOL WIN32API SetShellWindow(DWORD x1)
|
---|
3508 | {
|
---|
3509 | dprintf(("USER32: SetShellWindow(%08x) not implemented.\n",
|
---|
3510 | x1));
|
---|
3511 |
|
---|
3512 | return (FALSE); /* default */
|
---|
3513 | }
|
---|
3514 | /*****************************************************************************
|
---|
3515 | * Name : BOOL WIN32API PlaySoundEvent
|
---|
3516 | * Purpose : Unknown
|
---|
3517 | * Parameters: Unknown
|
---|
3518 | * Variables :
|
---|
3519 | * Result :
|
---|
3520 | * Remark :
|
---|
3521 | * Status : UNTESTED UNKNOWN STUB
|
---|
3522 | *
|
---|
3523 | * Author : Patrick Haller [Wed, 1998/06/16 11:55]
|
---|
3524 | *****************************************************************************/
|
---|
3525 | BOOL WIN32API PlaySoundEvent(DWORD x1)
|
---|
3526 | {
|
---|
3527 | dprintf(("USER32: PlaySoundEvent(%08x) not implemented.\n",
|
---|
3528 | x1));
|
---|
3529 |
|
---|
3530 | return (FALSE); /* default */
|
---|
3531 | }
|
---|
3532 | /*****************************************************************************
|
---|
3533 | * Name : BOOL WIN32API SetSysColorsTemp
|
---|
3534 | * Purpose : Unknown
|
---|
3535 | * Parameters: Unknown
|
---|
3536 | * Variables :
|
---|
3537 | * Result :
|
---|
3538 | * Remark :
|
---|
3539 | * Status : UNTESTED UNKNOWN STUB
|
---|
3540 | *
|
---|
3541 | * Author : Patrick Haller [Wed, 1998/06/16 11:55]
|
---|
3542 | *****************************************************************************/
|
---|
3543 | BOOL WIN32API SetSysColorsTemp(void)
|
---|
3544 | {
|
---|
3545 | dprintf(("USER32: SetSysColorsTemp() not implemented.\n"));
|
---|
3546 |
|
---|
3547 | return (FALSE); /* default */
|
---|
3548 | }
|
---|
3549 | /*****************************************************************************
|
---|
3550 | * Name : BOOL WIN32API RegisterNetworkCapabilities
|
---|
3551 | * Purpose : Unknown
|
---|
3552 | * Parameters: Unknown
|
---|
3553 | * Variables :
|
---|
3554 | * Result :
|
---|
3555 | * Remark :
|
---|
3556 | * Status : UNTESTED UNKNOWN STUB
|
---|
3557 | *
|
---|
3558 | * Author : Patrick Haller [Wed, 1998/06/16 11:55]
|
---|
3559 | *****************************************************************************/
|
---|
3560 | BOOL WIN32API RegisterNetworkCapabilities(DWORD x1,
|
---|
3561 | DWORD x2)
|
---|
3562 | {
|
---|
3563 | dprintf(("USER32: RegisterNetworkCapabilities(%08xh,%08xh) not implemented.\n",
|
---|
3564 | x1,
|
---|
3565 | x2));
|
---|
3566 |
|
---|
3567 | return (FALSE); /* default */
|
---|
3568 | }
|
---|
3569 | /*****************************************************************************
|
---|
3570 | * Name : BOOL WIN32API EndTask
|
---|
3571 | * Purpose : Unknown
|
---|
3572 | * Parameters: Unknown
|
---|
3573 | * Variables :
|
---|
3574 | * Result :
|
---|
3575 | * Remark :
|
---|
3576 | * Status : UNTESTED UNKNOWN STUB
|
---|
3577 | *
|
---|
3578 | * Author : Patrick Haller [Wed, 1998/06/16 11:55]
|
---|
3579 | *****************************************************************************/
|
---|
3580 | BOOL WIN32API EndTask(DWORD x1,
|
---|
3581 | DWORD x2,
|
---|
3582 | DWORD x3)
|
---|
3583 | {
|
---|
3584 | dprintf(("USER32: EndTask(%08xh,%08xh,%08xh) not implemented.\n",
|
---|
3585 | x1,
|
---|
3586 | x2,
|
---|
3587 | x3));
|
---|
3588 |
|
---|
3589 | return (FALSE); /* default */
|
---|
3590 | }
|
---|
3591 | /*****************************************************************************
|
---|
3592 | * Name : BOOL WIN32API GetNextQueueWindow
|
---|
3593 | * Purpose : Unknown
|
---|
3594 | * Parameters: Unknown
|
---|
3595 | * Variables :
|
---|
3596 | * Result :
|
---|
3597 | * Remark :
|
---|
3598 | * Status : UNTESTED UNKNOWN STUB
|
---|
3599 | *
|
---|
3600 | * Author : Patrick Haller [Wed, 1998/06/16 11:55]
|
---|
3601 | *****************************************************************************/
|
---|
3602 | BOOL WIN32API GetNextQueueWindow(DWORD x1,
|
---|
3603 | DWORD x2)
|
---|
3604 | {
|
---|
3605 | dprintf(("USER32: GetNextQueueWindow(%08xh,%08xh) not implemented.\n",
|
---|
3606 | x1,
|
---|
3607 | x2));
|
---|
3608 |
|
---|
3609 | return (FALSE); /* default */
|
---|
3610 | }
|
---|
3611 | /*****************************************************************************
|
---|
3612 | * Name : BOOL WIN32API YieldTask
|
---|
3613 | * Purpose : Unknown
|
---|
3614 | * Parameters: Unknown
|
---|
3615 | * Variables :
|
---|
3616 | * Result :
|
---|
3617 | * Remark :
|
---|
3618 | * Status : UNTESTED UNKNOWN STUB
|
---|
3619 | *
|
---|
3620 | * Author : Patrick Haller [Wed, 1998/06/16 11:55]
|
---|
3621 | *****************************************************************************/
|
---|
3622 | BOOL WIN32API YieldTask(void)
|
---|
3623 | {
|
---|
3624 | dprintf(("USER32: YieldTask() not implemented.\n"));
|
---|
3625 |
|
---|
3626 | return (FALSE); /* default */
|
---|
3627 | }
|
---|
3628 | /*****************************************************************************
|
---|
3629 | * Name : BOOL WIN32API WinOldAppHackoMatic
|
---|
3630 | * Purpose : Unknown
|
---|
3631 | * Parameters: Unknown
|
---|
3632 | * Variables :
|
---|
3633 | * Result :
|
---|
3634 | * Remark :
|
---|
3635 | * Status : UNTESTED UNKNOWN STUB
|
---|
3636 | *
|
---|
3637 | * Author : Patrick Haller [Wed, 1998/06/16 11:55]
|
---|
3638 | *****************************************************************************/
|
---|
3639 | BOOL WIN32API WinOldAppHackoMatic(DWORD x1)
|
---|
3640 | {
|
---|
3641 | dprintf(("USER32: WinOldAppHackoMatic(%08x) not implemented.\n",
|
---|
3642 | x1));
|
---|
3643 |
|
---|
3644 | return (FALSE); /* default */
|
---|
3645 | }
|
---|
3646 | /*****************************************************************************
|
---|
3647 | * Name : BOOL WIN32API RegisterSystemThread
|
---|
3648 | * Purpose : Unknown
|
---|
3649 | * Parameters: Unknown
|
---|
3650 | * Variables :
|
---|
3651 | * Result :
|
---|
3652 | * Remark :
|
---|
3653 | * Status : UNTESTED UNKNOWN STUB
|
---|
3654 | *
|
---|
3655 | * Author : Patrick Haller [Wed, 1998/06/16 11:55]
|
---|
3656 | *****************************************************************************/
|
---|
3657 | BOOL WIN32API RegisterSystemThread(DWORD x1,
|
---|
3658 | DWORD x2)
|
---|
3659 | {
|
---|
3660 | dprintf(("USER32: RegisterSystemThread(%08xh,%08xh) not implemented.\n",
|
---|
3661 | x1,
|
---|
3662 | x2));
|
---|
3663 |
|
---|
3664 | return (FALSE); /* default */
|
---|
3665 | }
|
---|
3666 | /*****************************************************************************
|
---|
3667 | * Name : BOOL WIN32API IsHungThread
|
---|
3668 | * Purpose : Unknown
|
---|
3669 | * Parameters: Unknown
|
---|
3670 | * Variables :
|
---|
3671 | * Result :
|
---|
3672 | * Remark :
|
---|
3673 | * Status : UNTESTED UNKNOWN STUB
|
---|
3674 | *
|
---|
3675 | * Author : Patrick Haller [Wed, 1998/06/16 11:55]
|
---|
3676 | *****************************************************************************/
|
---|
3677 | BOOL WIN32API IsHungThread(DWORD x1)
|
---|
3678 | {
|
---|
3679 | dprintf(("USER32: IsHungThread(%08xh) not implemented.\n",
|
---|
3680 | x1));
|
---|
3681 |
|
---|
3682 | return (FALSE); /* default */
|
---|
3683 | }
|
---|
3684 | /*****************************************************************************
|
---|
3685 | * Name : BOOL WIN32API UserSignalProc
|
---|
3686 | * Purpose : Unknown
|
---|
3687 | * Parameters: Unknown
|
---|
3688 | * Variables :
|
---|
3689 | * Result :
|
---|
3690 | * Remark :
|
---|
3691 | * Status : UNTESTED UNKNOWN STUB
|
---|
3692 | *
|
---|
3693 | * Author : Patrick Haller [Wed, 1998/06/16 11:55]
|
---|
3694 | *****************************************************************************/
|
---|
3695 | BOOL WIN32API UserSignalProc(DWORD x1,
|
---|
3696 | DWORD x2,
|
---|
3697 | DWORD x3,
|
---|
3698 | DWORD x4)
|
---|
3699 | {
|
---|
3700 | dprintf(("USER32: SysErrorBox(%08xh,%08xh,%08xh,%08xh) not implemented.\n",
|
---|
3701 | x1,
|
---|
3702 | x2,
|
---|
3703 | x3,
|
---|
3704 | x4));
|
---|
3705 |
|
---|
3706 | return (FALSE); /* default */
|
---|
3707 | }
|
---|
3708 | /*****************************************************************************
|
---|
3709 | * Name : BOOL WIN32API GetShellWindow
|
---|
3710 | * Purpose : Unknown
|
---|
3711 | * Parameters: Unknown
|
---|
3712 | * Variables :
|
---|
3713 | * Result :
|
---|
3714 | * Remark :
|
---|
3715 | * Status : UNTESTED UNKNOWN STUB
|
---|
3716 | *
|
---|
3717 | * Author : Patrick Haller [Wed, 1998/06/16 11:55]
|
---|
3718 | *****************************************************************************/
|
---|
3719 | HWND WIN32API GetShellWindow(void)
|
---|
3720 | {
|
---|
3721 | dprintf(("USER32: GetShellWindow() not implemented.\n"));
|
---|
3722 |
|
---|
3723 | return (0); /* default */
|
---|
3724 | }
|
---|
3725 | /***********************************************************************
|
---|
3726 | * RegisterTasklist32 [USER32.436]
|
---|
3727 | */
|
---|
3728 | DWORD WIN32API RegisterTasklist (DWORD x)
|
---|
3729 | {
|
---|
3730 | dprintf(("USER32: RegisterTasklist(%08xh) not implemented.\n",
|
---|
3731 | x));
|
---|
3732 |
|
---|
3733 | return TRUE;
|
---|
3734 | }
|
---|
3735 |
|
---|
3736 |
|
---|