source: trunk/src/user32/user32.cpp@ 3337

Last change on this file since 3337 was 3337, checked in by sandervl, 25 years ago

writelog mark + SystemParametersInfoA fix

File size: 102.4 KB
Line 
1/* $Id: user32.cpp,v 1.77 2000-04-07 10:01:16 sandervl 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 <odin.h>
26#include <odinwrap.h>
27#include <os2sel.h>
28
29#include <os2win.h>
30#include <misc.h>
31
32#include "user32.h"
33#include <winicon.h>
34#include "syscolor.h"
35#include "pmwindow.h"
36#include "oslibgdi.h"
37
38#include <wchar.h>
39#include <stdlib.h>
40#include <string.h>
41#include <oslibwin.h>
42#include <win32wnd.h>
43#include <winuser.h>
44
45#define DBG_LOCALLOG DBG_user32
46#include "dbglocal.h"
47
48//undocumented stuff
49// WIN32API CalcChildScroll
50// WIN32API CascadeChildWindows
51// WIN32API ClientThreadConnect
52// WIN32API DragObject
53// WIN32API DrawFrame
54// WIN32API EditWndProc
55// WIN32API EndTask
56// WIN32API GetInputDesktop
57// WIN32API GetNextQueueWindow
58// WIN32API GetShellWindow
59// WIN32API InitSharedTable
60// WIN32API InitTask
61// WIN32API IsHungThread
62// WIN32API LockWindowStation
63// WIN32API ModifyAccess
64// WIN32API PlaySoundEvent
65// WIN32API RegisterLogonProcess
66// WIN32API RegisterNetworkCapabilities
67// WIN32API RegisterSystemThread
68// WIN32API SetDeskWallpaper
69// WIN32API SetDesktopBitmap
70// WIN32API SetInternalWindowPos
71// WIN32API SetLogonNotifyWindow
72// WIN32API SetShellWindow
73// WIN32API SetSysColorsTemp
74// WIN32API SetWindowFullScreenState
75// WIN32API SwitchToThisWindow
76// WIN32API SysErrorBox
77// WIN32API TileChildWindows
78// WIN32API UnlockWindowStation
79// WIN32API UserClientDllInitialize
80// WIN32API UserSignalProc
81// WIN32API WinOldAppHackoMatic
82// WIN32API WNDPROC_CALLBACK
83// WIN32API YieldTask
84
85ODINDEBUGCHANNEL(USER32-USER32)
86
87
88/* Coordinate Transformation */
89
90/* Rectangle Functions - parts from wine/windows/rect.c */
91
92BOOL WIN32API CopyRect( PRECT lprcDst, const RECT * lprcSrc)
93{
94 dprintf2(("USER32: CopyRect\n"));
95 if (!lprcDst || !lprcSrc) {
96 SetLastError(ERROR_INVALID_PARAMETER);
97 return FALSE;
98 }
99
100 memcpy(lprcDst,lprcSrc,sizeof(RECT));
101
102 return TRUE;
103}
104//******************************************************************************
105//******************************************************************************
106BOOL WIN32API EqualRect( const RECT *lprc1, const RECT *lprc2)
107{
108 dprintf2(("USER32: EqualRect\n"));
109 if (!lprc1 || !lprc2)
110 {
111 SetLastError(ERROR_INVALID_PARAMETER);
112 return FALSE;
113 }
114
115 return (lprc1->left == lprc2->left &&
116 lprc1->right == lprc2->right &&
117 lprc1->top == lprc2->top &&
118 lprc1->bottom == lprc2->bottom);
119}
120//******************************************************************************
121//******************************************************************************
122BOOL WIN32API InflateRect( PRECT lprc, int dx, int dy)
123{
124 dprintf2(("USER32: InflateRect\n"));
125 if (!lprc)
126 {
127 SetLastError(ERROR_INVALID_PARAMETER);
128 return FALSE;
129 }
130
131 lprc->left -= dx;
132 lprc->right += dx;
133 lprc->top -= dy;
134 lprc->bottom += dy;
135
136 return TRUE;
137}
138//******************************************************************************
139//******************************************************************************
140BOOL WIN32API IntersectRect( PRECT lprcDst, const RECT * lprcSrc1, const RECT * lprcSrc2)
141{
142 dprintf2(("USER32: IntersectRect\n"));
143 if (!lprcSrc1 || !lprcSrc2)
144 {
145 SetLastError(ERROR_INVALID_PARAMETER);
146 return FALSE;
147 }
148
149 if (IsRectEmpty(lprcSrc1) || IsRectEmpty(lprcSrc2) ||
150 (lprcSrc1->left >= lprcSrc2->right) || (lprcSrc2->left >= lprcSrc1->right) ||
151 (lprcSrc1->top >= lprcSrc2->bottom) || (lprcSrc2->top >= lprcSrc1->bottom))
152 {
153 SetLastError(ERROR_INVALID_PARAMETER);
154 if (lprcDst) SetRectEmpty(lprcDst);
155 return FALSE;
156 }
157 if (lprcDst)
158 {
159 lprcDst->left = MAX(lprcSrc1->left,lprcSrc2->left);
160 lprcDst->right = MIN(lprcSrc1->right,lprcSrc2->right);
161 lprcDst->top = MAX(lprcSrc1->top,lprcSrc2->top);
162 lprcDst->bottom = MIN(lprcSrc1->bottom,lprcSrc2->bottom);
163 }
164
165 return TRUE;
166}
167//******************************************************************************
168//******************************************************************************
169BOOL WIN32API IsRectEmpty( const RECT * lprc)
170{
171 if (!lprc)
172 {
173 SetLastError(ERROR_INVALID_PARAMETER);
174 return FALSE;
175 }
176
177 return (lprc->left == lprc->right || lprc->top == lprc->bottom);
178}
179//******************************************************************************
180//******************************************************************************
181BOOL WIN32API OffsetRect( PRECT lprc, int x, int y)
182{
183 dprintf2(("USER32: OffsetRect\n"));
184 if (!lprc)
185 {
186 SetLastError(ERROR_INVALID_PARAMETER);
187 return FALSE;
188 }
189
190 lprc->left += x;
191 lprc->right += x;
192 lprc->top += y;
193 lprc->bottom += y;
194
195 return TRUE;
196}
197//******************************************************************************
198//******************************************************************************
199BOOL WIN32API PtInRect( const RECT *lprc, POINT pt)
200{
201 dprintf2(("USER32: PtInRect\n"));
202 if (!lprc)
203 {
204 SetLastError(ERROR_INVALID_PARAMETER);
205 return FALSE;
206 }
207
208 return (pt.x >= lprc->left &&
209 pt.x < lprc->right &&
210 pt.y >= lprc->top &&
211 pt.y < lprc->bottom);
212}
213//******************************************************************************
214//******************************************************************************
215BOOL WIN32API SetRect( PRECT lprc, int nLeft, int nTop, int nRight, int nBottom)
216{
217 if (!lprc)
218 {
219 SetLastError(ERROR_INVALID_PARAMETER);
220 return FALSE;
221 }
222
223 lprc->left = nLeft;
224 lprc->top = nTop;
225 lprc->right = nRight;
226 lprc->bottom = nBottom;
227
228 return TRUE;
229}
230//******************************************************************************
231//******************************************************************************
232BOOL WIN32API SetRectEmpty( PRECT lprc)
233{
234 if (!lprc)
235 {
236 SetLastError(ERROR_INVALID_PARAMETER);
237 return FALSE;
238 }
239
240 lprc->left = lprc->right = lprc->top = lprc->bottom = 0;
241
242 return TRUE;
243}
244//******************************************************************************
245//******************************************************************************
246BOOL WIN32API SubtractRect( PRECT lprcDest, const RECT * lprcSrc1, const RECT * lprcSrc2)
247{
248 dprintf2(("USER32: SubtractRect"));
249 RECT tmp;
250
251 if (!lprcDest || !lprcSrc1 || !lprcSrc2)
252 {
253 SetLastError(ERROR_INVALID_PARAMETER);
254 return FALSE;
255 }
256
257 if (IsRectEmpty(lprcSrc1))
258 {
259 SetLastError(ERROR_INVALID_PARAMETER);
260 SetRectEmpty(lprcDest);
261 return FALSE;
262 }
263 *lprcDest = *lprcSrc1;
264 if (IntersectRect(&tmp,lprcSrc1,lprcSrc2))
265 {
266 if (EqualRect(&tmp,lprcDest))
267 {
268 SetRectEmpty(lprcDest);
269 return FALSE;
270 }
271 if ((tmp.top == lprcDest->top) && (tmp.bottom == lprcDest->bottom))
272 {
273 if (tmp.left == lprcDest->left) lprcDest->left = tmp.right;
274 else if (tmp.right == lprcDest->right) lprcDest->right = tmp.left;
275 }
276 else if ((tmp.left == lprcDest->left) && (tmp.right == lprcDest->right))
277 {
278 if (tmp.top == lprcDest->top) lprcDest->top = tmp.bottom;
279 else if (tmp.bottom == lprcDest->bottom) lprcDest->bottom = tmp.top;
280 }
281 }
282
283 return TRUE;
284}
285//******************************************************************************
286//******************************************************************************
287BOOL WIN32API UnionRect( PRECT lprcDst, const RECT *lprcSrc1, const RECT *lprcSrc2)
288{
289 dprintf2(("USER32: UnionRect\n"));
290 if (!lprcDst || !lprcSrc1 || !lprcSrc2)
291 {
292 SetLastError(ERROR_INVALID_PARAMETER);
293 return FALSE;
294 }
295
296 if (IsRectEmpty(lprcSrc1))
297 {
298 if (IsRectEmpty(lprcSrc2))
299 {
300 SetLastError(ERROR_INVALID_PARAMETER);
301 SetRectEmpty(lprcDst);
302 return FALSE;
303 }
304 else *lprcDst = *lprcSrc2;
305 }
306 else
307 {
308 if (IsRectEmpty(lprcSrc2)) *lprcDst = *lprcSrc1;
309 else
310 {
311 lprcDst->left = MIN(lprcSrc1->left,lprcSrc2->left);
312 lprcDst->right = MAX(lprcSrc1->right,lprcSrc2->right);
313 lprcDst->top = MIN(lprcSrc1->top,lprcSrc2->top);
314 lprcDst->bottom = MAX(lprcSrc1->bottom,lprcSrc2->bottom);
315 }
316 }
317
318 return TRUE;
319}
320
321/* Cursor Functions */
322
323BOOL WIN32API ClipCursor(const RECT * lpRect)
324{
325 dprintf(("USER32: ClipCursor\n"));
326 return O32_ClipCursor(lpRect);
327}
328//******************************************************************************
329//******************************************************************************
330HCURSOR WIN32API CreateCursor( HINSTANCE hInst, int xHotSpot, int yHotSpot, int nWidth, int nHeight, const VOID *pvANDPlane, const VOID *pvXORPlane)
331{
332 dprintf(("USER32: CreateCursor\n"));
333 return O32_CreateCursor(hInst,xHotSpot,yHotSpot,nWidth,nHeight,pvANDPlane,pvXORPlane);
334}
335//******************************************************************************
336//******************************************************************************
337BOOL WIN32API DestroyCursor( HCURSOR hCursor)
338{
339 dprintf(("USER32: DestroyCursor\n"));
340 return O32_DestroyCursor(hCursor);
341}
342//******************************************************************************
343//******************************************************************************
344BOOL WIN32API GetClipCursor( LPRECT lpRect)
345{
346 dprintf(("USER32: GetClipCursor\n"));
347 return O32_GetClipCursor(lpRect);
348}
349//******************************************************************************
350//******************************************************************************
351HCURSOR WIN32API GetCursor(void)
352{
353 dprintf2(("USER32: GetCursor\n"));
354 return O32_GetCursor();
355}
356//******************************************************************************
357//******************************************************************************
358BOOL WIN32API GetCursorPos( PPOINT lpPoint)
359{
360 dprintf2(("USER32: GetCursorPos\n"));
361
362 if (!lpPoint) return FALSE;
363 if (OSLibWinQueryPointerPos(lpPoint)) //POINT == POINTL
364 {
365 mapScreenPoint((OSLIBPOINT*)lpPoint);
366 return TRUE;
367 } else return FALSE;
368}
369/*****************************************************************************
370 * Name : HCURSOR WIN32API LoadCursorFromFileA
371 * Purpose : The LoadCursorFromFile function creates a cursor based on data
372 * contained in a file. The file is specified by its name or by a
373 * system cursor identifier. The function returns a handle to the
374 * newly created cursor. Files containing cursor data may be in
375 * either cursor (.CUR) or animated cursor (.ANI) format.
376 * Parameters: LPCTSTR lpFileName pointer to cursor file, or system cursor id
377 * Variables :
378 * Result : If the function is successful, the return value is a handle to
379 * the new cursor.
380 * If the function fails, the return value is NULL. To get extended
381 * error information, call GetLastError. GetLastError may return
382 * the following
383 * Remark :
384 * Status : UNTESTED STUB
385 *
386 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
387 *****************************************************************************/
388HCURSOR WIN32API LoadCursorFromFileA(LPCTSTR lpFileName)
389{
390 if (!HIWORD(lpFileName))
391 {
392 return LoadCursorA(NULL,lpFileName);
393 }
394 else
395 {
396 dprintf(("USER32:LoadCursorFromFileA (%s) not implemented.\n",
397 lpFileName));
398
399 return (NULL);
400 }
401}
402/*****************************************************************************
403 * Name : HCURSOR WIN32API LoadCursorFromFileW
404 * Purpose : The LoadCursorFromFile function creates a cursor based on data
405 * contained in a file. The file is specified by its name or by a
406 * system cursor identifier. The function returns a handle to the
407 * newly created cursor. Files containing cursor data may be in
408 * either cursor (.CUR) or animated cursor (.ANI) format.
409 * Parameters: LPCTSTR lpFileName pointer to cursor file, or system cursor id
410 * Variables :
411 * Result : If the function is successful, the return value is a handle to
412 * the new cursor.
413 * If the function fails, the return value is NULL. To get extended
414 * error information, call GetLastError. GetLastError may return
415 * the following
416 * Remark :
417 * Status : UNTESTED STUB
418 *
419 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
420 *****************************************************************************/
421HCURSOR WIN32API LoadCursorFromFileW(LPCWSTR lpFileName)
422{
423 if (!HIWORD(lpFileName))
424 {
425 return LoadCursorW(NULL,lpFileName);
426 } else
427 {
428 dprintf(("USER32:LoadCursorFromFileW (%s) not implemented.\n",
429 lpFileName));
430
431 return (NULL);
432 }
433}
434//******************************************************************************
435//******************************************************************************
436HCURSOR WIN32API SetCursor( HCURSOR hcur)
437{
438 HCURSOR rc;
439
440 rc = O32_SetCursor(hcur);
441 dprintf(("USER32: SetCursor %x (prev %x (%x))\n", hcur, rc, O32_GetCursor()));
442 return rc;
443}
444//******************************************************************************
445//******************************************************************************
446BOOL WIN32API SetCursorPos( int X, int Y)
447{
448 dprintf(("USER32: SetCursorPos %d %d", X,Y));
449 return O32_SetCursorPos(X,Y);
450}
451/*****************************************************************************
452 * Name : BOOL WIN32API SetSystemCursor
453 * Purpose : The SetSystemCursor function replaces the contents of the system
454 * cursor specified by dwCursorId with the contents of the cursor
455 * specified by hCursor, and then destroys hCursor. This function
456 * lets an application customize the system cursors.
457 * Parameters: HCURSOR hCursor set specified system cursor to this cursor's
458 * contents, then destroy this
459 * DWORD dwCursorID system cursor specified by its identifier
460 * Variables :
461 * Result : If the function succeeds, the return value is TRUE.
462 * If the function fails, the return value is FALSE. To get extended
463 * error information, call GetLastError.
464 * Remark :
465 * Status : UNTESTED STUB
466 *
467 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
468 *****************************************************************************/
469BOOL WIN32API SetSystemCursor(HCURSOR hCursor,
470 DWORD dwCursorId)
471{
472 dprintf(("USER32:SetSystemCursor (%08xh,%08x) not supported.\n",
473 hCursor,
474 dwCursorId));
475
476 return DestroyCursor(hCursor);
477}
478//******************************************************************************
479//******************************************************************************
480int WIN32API ShowCursor( BOOL bShow)
481{
482 dprintf2(("USER32: ShowCursor %d", bShow));
483 return O32_ShowCursor(bShow);
484}
485
486/* Mouse Input Functions */
487
488/*****************************************************************************
489 * Name : BOOL WIN32API DragDetect
490 * Purpose : The DragDetect function captures the mouse and tracks its movement
491 * Parameters: HWND hwnd
492 * POINT pt
493 * Variables :
494 * Result : If the user moved the mouse outside of the drag rectangle while
495 * holding the left button down, the return value is TRUE.
496 * If the user did not move the mouse outside of the drag rectangle
497 * while holding the left button down, the return value is FALSE.
498 * Remark :
499 * Status : UNTESTED STUB
500 *
501 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
502 *****************************************************************************/
503BOOL WIN32API DragDetect(HWND hwnd,
504 POINT pt)
505{
506 dprintf(("USER32:DragDetect(%08xh,...) not implemented.\n",
507 hwnd));
508
509 return (FALSE);
510}
511//******************************************************************************
512//******************************************************************************
513UINT WIN32API GetDoubleClickTime(void)
514{
515 dprintf(("USER32: GetDoubleClickTime\n"));
516 return O32_GetDoubleClickTime();
517}
518/*****************************************************************************
519 * Name : VOID WIN32API mouse_event
520 * Purpose : The mouse_event function synthesizes mouse motion and button clicks.
521 * Parameters: DWORD dwFlags flags specifying various motion/click variants
522 * DWORD dx horizontal mouse position or position change
523 * DWORD dy vertical mouse position or position change
524 * DWORD cButtons unused, reserved for future use, set to zero
525 * DWORD dwExtraInfo 32 bits of application-defined information
526 * Variables :
527 * Result :
528 * Remark :
529 * Status : UNTESTED STUB
530 *
531 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
532 *****************************************************************************/
533VOID WIN32API mouse_event(DWORD dwFlags,
534 DWORD dx,
535 DWORD dy,
536 DWORD cButtons,
537 DWORD dwExtraInfo)
538{
539 dprintf(("USER32:mouse_event (%08xh,%u,%u,%u,%08x) not implemented.\n",
540 dwFlags,
541 dx,
542 dy,
543 cButtons,
544 dwExtraInfo));
545}
546//******************************************************************************
547//******************************************************************************
548BOOL WIN32API ReleaseCapture(void)
549{
550 dprintf(("USER32: ReleaseCapture"));
551 return O32_ReleaseCapture();
552}
553//******************************************************************************
554//******************************************************************************
555HWND WIN32API GetCapture(void)
556{
557 HWND hwnd;
558
559 hwnd = Win32Window::OS2ToWin32Handle(O32_GetCapture());
560 dprintf(("USER32: GetCapture returned %x", hwnd));
561 return hwnd;
562}
563//******************************************************************************
564//******************************************************************************
565HWND WIN32API SetCapture( HWND hwnd)
566{
567 dprintf(("USER32: SetCapture %x", hwnd));
568 hwnd = Win32Window::Win32ToOS2Handle(hwnd);
569 return Win32Window::OS2ToWin32Handle(O32_SetCapture(hwnd));
570}
571//******************************************************************************
572//******************************************************************************
573BOOL WIN32API SetDoubleClickTime( UINT uInterval)
574{
575 dprintf(("USER32: SetDoubleClickTime\n"));
576 return O32_SetDoubleClickTime(uInterval);
577}
578//******************************************************************************
579//******************************************************************************
580BOOL WIN32API SwapMouseButton( BOOL fSwap)
581{
582 dprintf(("USER32: SwapMouseButton\n"));
583 return O32_SwapMouseButton(fSwap);
584}
585
586/* Error Functions */
587
588/*****************************************************************************
589 * Name : ExitWindowsEx
590 * Purpose : Shutdown System
591 * Parameters: UINT uFlags
592 * DWORD dwReserved
593 * Variables :
594 * Result : TRUE / FALSE
595 * Remark :
596 * Status :
597 *
598 * Author : Patrick Haller [Tue, 1999/10/20 21:24]
599 *****************************************************************************/
600
601ODINFUNCTION2(BOOL, ExitWindowsEx, UINT, uFlags,
602 DWORD, dwReserved)
603{
604 int rc = MessageBoxA(HWND_DESKTOP,
605 "Are you sure you want to shutdown the system?",
606 "Shutdown ...",
607 MB_YESNOCANCEL | MB_ICONQUESTION);
608 switch (rc)
609 {
610 case IDCANCEL: return (FALSE);
611 case IDYES: break;
612 case IDNO:
613 dprintf(("no shutdown!\n"));
614 return TRUE;
615 }
616
617 return O32_ExitWindowsEx(uFlags,dwReserved);
618}
619
620
621//******************************************************************************
622//******************************************************************************
623BOOL WIN32API MessageBeep( UINT uType)
624{
625 INT flStyle;
626
627 dprintf(("USER32: MessageBeep\n"));
628
629 switch (uType)
630 {
631 case 0xFFFFFFFF:
632 OSLibDosBeep(500,50);
633 return TRUE;
634 case MB_ICONASTERISK:
635 flStyle = WAOS_NOTE;
636 break;
637 case MB_ICONEXCLAMATION:
638 flStyle = WAOS_WARNING;
639 break;
640 case MB_ICONHAND:
641 case MB_ICONQUESTION:
642 case MB_OK:
643 flStyle = WAOS_NOTE;
644 break;
645 default:
646 flStyle = WAOS_ERROR; //CB: should be right
647 break;
648 }
649 return OSLibWinAlarm(OSLIB_HWND_DESKTOP,flStyle);
650}
651//******************************************************************************
652//2nd parameter not used according to SDK (yet?)
653//******************************************************************************
654VOID WIN32API SetLastErrorEx(DWORD dwErrCode, DWORD dwType)
655{
656 dprintf(("USER32: SetLastErrorEx\n"));
657 SetLastError(dwErrCode);
658}
659
660/* Accessibility Functions */
661
662int WIN32API GetSystemMetrics(int nIndex)
663{
664 int rc = 0;
665
666 switch(nIndex) {
667 case SM_CXSCREEN:
668 rc = ScreenWidth;
669 break;
670
671 case SM_CYSCREEN:
672 rc = ScreenHeight;
673 break;
674
675 case SM_CXVSCROLL:
676 rc = OSLibWinQuerySysValue(SVOS_CXVSCROLL);
677 break;
678
679 case SM_CYHSCROLL:
680 rc = OSLibWinQuerySysValue(SVOS_CYHSCROLL);
681 break;
682
683 case SM_CYCAPTION:
684 rc = 19;
685 //rc = OSLibWinQuerySysValue(SVOS_CYTITLEBAR);
686 break;
687
688 case SM_CXBORDER:
689 case SM_CYBORDER:
690 rc = 1;
691 break;
692
693 case SM_CXDLGFRAME:
694 case SM_CYDLGFRAME:
695 rc = 3;
696 break;
697
698 case SM_CYMENU:
699 case SM_CXMENUSIZE:
700 case SM_CYMENUSIZE:
701 rc = 19;
702 break;
703
704 case SM_CXSIZE:
705 case SM_CYSIZE:
706 rc = GetSystemMetrics(SM_CYCAPTION)-2;
707 break;
708
709 case SM_CXFRAME:
710 case SM_CYFRAME:
711 rc = 4;
712 break;
713
714 case SM_CXEDGE:
715 case SM_CYEDGE:
716 rc = 2;
717 break;
718
719 case SM_CXMINSPACING:
720 rc = 160;
721 break;
722
723 case SM_CYMINSPACING:
724 rc = 24;
725 break;
726
727 case SM_CXSMICON:
728 case SM_CYSMICON:
729 rc = 16;
730 break;
731
732 case SM_CYSMCAPTION:
733 rc = 16;
734 break;
735
736 case SM_CXSMSIZE:
737 case SM_CYSMSIZE:
738 rc = 15;
739 break;
740
741//CB: todo: add missing metrics
742
743 case SM_CXICONSPACING: //TODO: size of grid cell for large icons
744 rc = OSLibWinQuerySysValue(SVOS_CXICON);
745 //CB: return standard windows icon size?
746 //rc = 32;
747 break;
748 case SM_CYICONSPACING:
749 rc = OSLibWinQuerySysValue(SVOS_CYICON);
750 //read SM_CXICONSPACING comment
751 //rc = 32;
752 break;
753 case SM_PENWINDOWS:
754 rc = FALSE;
755 break;
756 case SM_DBCSENABLED:
757 rc = FALSE;
758 break;
759 case SM_CXICON:
760 case SM_CYICON:
761 rc = 32; //CB: Win32: only 32x32, OS/2 32x32/40x40
762 // we must implement 32x32 for all screen resolutions
763 break;
764 case SM_ARRANGE:
765 rc = ARW_BOTTOMLEFT | ARW_LEFT;
766 break;
767 case SM_CXMINIMIZED:
768 break;
769 case SM_CYMINIMIZED:
770 break;
771
772 case SM_CXMINTRACK:
773 case SM_CXMIN:
774 rc = 112;
775 break;
776
777 case SM_CYMINTRACK:
778 case SM_CYMIN:
779 rc = 27;
780 break;
781
782 case SM_CXMAXTRACK: //max window size
783 case SM_CXMAXIMIZED: //max toplevel window size
784 rc = OSLibWinQuerySysValue(SVOS_CXSCREEN);
785 break;
786
787 case SM_CYMAXTRACK:
788 case SM_CYMAXIMIZED:
789 rc = OSLibWinQuerySysValue(SVOS_CYSCREEN);
790 break;
791
792 case SM_NETWORK:
793 rc = 0x01; //TODO: default = yes
794 break;
795 case SM_CLEANBOOT:
796 rc = 0; //normal boot
797 break;
798 case SM_CXDRAG: //nr of pixels before drag becomes a real one
799 rc = 2;
800 break;
801 case SM_CYDRAG:
802 rc = 2;
803 break;
804 case SM_SHOWSOUNDS: //show instead of play sound
805 rc = FALSE;
806 break;
807 case SM_CXMENUCHECK:
808 rc = 4; //TODO
809 break;
810 case SM_CYMENUCHECK:
811 rc = OSLibWinQuerySysValue(SVOS_CYMENU);
812 break;
813 case SM_SLOWMACHINE:
814 rc = FALSE; //even a slow machine is fast with OS/2 :)
815 break;
816 case SM_MIDEASTENABLED:
817 rc = FALSE;
818 break;
819 case SM_MOUSEWHEELPRESENT:
820 rc = FALSE;
821 break;
822 case SM_XVIRTUALSCREEN:
823 rc = 0;
824 break;
825 case SM_YVIRTUALSCREEN:
826 rc = 0;
827 break;
828
829 case SM_CXVIRTUALSCREEN:
830 rc = OSLibWinQuerySysValue(SVOS_CXSCREEN);
831 break;
832 case SM_CYVIRTUALSCREEN:
833 rc = OSLibWinQuerySysValue(SVOS_CYSCREEN);
834 break;
835 case SM_CMONITORS:
836 rc = 1;
837 break;
838 case SM_SAMEDISPLAYFORMAT:
839 rc = TRUE;
840 break;
841 case SM_CMETRICS:
842 rc = 81;
843 //rc = O32_GetSystemMetrics(44); //Open32 changed this one
844 break;
845 default:
846 //better than nothing
847 rc = O32_GetSystemMetrics(nIndex);
848 break;
849 }
850 dprintf2(("USER32: GetSystemMetrics %d returned %d\n", nIndex, rc));
851 return(rc);
852}
853//******************************************************************************
854/* Not support by Open32 (not included are the new win9x parameters):
855 case SPI_GETFASTTASKSWITCH:
856 case SPI_GETGRIDGRANULARITY:
857 case SPI_GETICONTITLELOGFONT:
858 case SPI_GETICONTITLEWRAP:
859 case SPI_GETMENUDROPALIGNMENT:
860 case SPI_ICONHORIZONTALSPACING:
861 case SPI_ICONVERTICALSPACING:
862 case SPI_LANGDRIVER:
863 case SPI_SETFASTTASKSWITCH:
864 case SPI_SETGRIDGRANULARITY:
865 case SPI_SETICONTITLELOGFONT:
866 case SPI_SETICONTITLEWRAP:
867 case SPI_SETMENUDROPALIGNMENT:
868 case SPI_GETSCREENSAVEACTIVE:
869 case SPI_GETSCREENSAVETIMEOUT:
870 case SPI_SETDESKPATTERN:
871 case SPI_SETDESKWALLPAPER:
872 case SPI_SETSCREENSAVEACTIVE:
873 case SPI_SETSCREENSAVETIMEOUT:
874*/
875//******************************************************************************
876BOOL WIN32API SystemParametersInfoA(UINT uiAction, UINT uiParam, PVOID pvParam, UINT fWinIni)
877{
878 BOOL rc = TRUE;
879 NONCLIENTMETRICSA *cmetric = (NONCLIENTMETRICSA *)pvParam;
880
881 switch(uiAction) {
882 case SPI_SCREENSAVERRUNNING:
883 *(BOOL *)pvParam = FALSE;
884 break;
885 case SPI_GETDRAGFULLWINDOWS:
886 *(BOOL *)pvParam = FALSE; //CB: where is the Warp 4 setting stored?
887 break;
888 case SPI_GETNONCLIENTMETRICS:
889 memset(cmetric, 0, sizeof(NONCLIENTMETRICSA));
890 cmetric->cbSize = sizeof(NONCLIENTMETRICSA);
891
892 //CB: fonts not handled by Open32, set to WarpSans
893 lstrcpyA(cmetric->lfSmCaptionFont.lfFaceName,"WarpSans");
894 cmetric->lfSmCaptionFont.lfHeight = 9;
895
896 lstrcpyA(cmetric->lfCaptionFont.lfFaceName,"WarpSans");
897 cmetric->lfCaptionFont.lfHeight = 9;
898
899 lstrcpyA(cmetric->lfMenuFont.lfFaceName,"WarpSans");
900 cmetric->lfMenuFont.lfHeight = 9;
901
902 lstrcpyA(cmetric->lfStatusFont.lfFaceName,"WarpSans");
903 cmetric->lfStatusFont.lfHeight = 9;
904
905 lstrcpyA(cmetric->lfMessageFont.lfFaceName,"WarpSans");
906 cmetric->lfMessageFont.lfHeight = 9;
907
908 cmetric->iBorderWidth = GetSystemMetrics(SM_CXBORDER);
909 cmetric->iScrollWidth = GetSystemMetrics(SM_CXHSCROLL);
910 cmetric->iScrollHeight = GetSystemMetrics(SM_CYHSCROLL);
911 cmetric->iCaptionWidth = 32; //TODO
912 cmetric->iCaptionHeight = 16; //TODO
913 cmetric->iSmCaptionWidth = GetSystemMetrics(SM_CXSMSIZE);
914 cmetric->iSmCaptionHeight = GetSystemMetrics(SM_CYSMSIZE);
915 cmetric->iMenuWidth = 32; //TODO
916 cmetric->iMenuHeight = GetSystemMetrics(SM_CYMENU);
917 break;
918 case SPI_GETICONTITLELOGFONT:
919 {
920 LPLOGFONTA lpLogFont = (LPLOGFONTA)pvParam;
921
922 /* from now on we always have an alias for MS Sans Serif */
923 strcpy(lpLogFont->lfFaceName, "MS Sans Serif");
924 lpLogFont->lfHeight = -GetProfileIntA("Desktop","IconTitleSize", /*8*/12); //CB: 8 is too small
925 lpLogFont->lfWidth = 0;
926 lpLogFont->lfEscapement = lpLogFont->lfOrientation = 0;
927 lpLogFont->lfWeight = FW_NORMAL;
928 lpLogFont->lfItalic = FALSE;
929 lpLogFont->lfStrikeOut = FALSE;
930 lpLogFont->lfUnderline = FALSE;
931 lpLogFont->lfCharSet = ANSI_CHARSET;
932 lpLogFont->lfOutPrecision = OUT_DEFAULT_PRECIS;
933 lpLogFont->lfClipPrecision = CLIP_DEFAULT_PRECIS;
934 lpLogFont->lfPitchAndFamily = DEFAULT_PITCH | FF_SWISS;
935 break;
936 }
937 case SPI_GETBORDER:
938 *(INT *)pvParam = GetSystemMetrics( SM_CXFRAME );
939 break;
940
941 case SPI_GETWORKAREA:
942 SetRect( (RECT *)pvParam, 0, 0,
943 GetSystemMetrics( SM_CXSCREEN ),
944 GetSystemMetrics( SM_CYSCREEN )
945 );
946 break;
947
948 case 104: //TODO: Undocumented
949 rc = 16;
950 break;
951 default:
952 rc = O32_SystemParametersInfo(uiAction, uiParam, pvParam, fWinIni);
953 break;
954 }
955 dprintf(("USER32: SystemParametersInfoA %d, returned %d\n", uiAction, rc));
956 return(rc);
957}
958//******************************************************************************
959//TODO: Check for more options that have different structs for Unicode!!!!
960//******************************************************************************
961BOOL WIN32API SystemParametersInfoW(UINT uiAction, UINT uiParam, PVOID pvParam, UINT fWinIni)
962{
963 BOOL rc;
964 NONCLIENTMETRICSW *clientMetricsW = (NONCLIENTMETRICSW *)pvParam;
965 NONCLIENTMETRICSA clientMetricsA = {0};
966 PVOID pvParamA;
967 UINT uiParamA;
968
969 switch(uiAction) {
970 case SPI_SETNONCLIENTMETRICS:
971 clientMetricsA.cbSize = sizeof(NONCLIENTMETRICSA);
972 clientMetricsA.iBorderWidth = clientMetricsW->iBorderWidth;
973 clientMetricsA.iScrollWidth = clientMetricsW->iScrollWidth;
974 clientMetricsA.iScrollHeight = clientMetricsW->iScrollHeight;
975 clientMetricsA.iCaptionWidth = clientMetricsW->iCaptionWidth;
976 clientMetricsA.iCaptionHeight = clientMetricsW->iCaptionHeight;
977 ConvertFontWA(&clientMetricsW->lfCaptionFont, &clientMetricsA.lfCaptionFont);
978 clientMetricsA.iSmCaptionWidth = clientMetricsW->iSmCaptionWidth;
979 clientMetricsA.iSmCaptionHeight = clientMetricsW->iSmCaptionHeight;
980 ConvertFontWA(&clientMetricsW->lfSmCaptionFont, &clientMetricsA.lfSmCaptionFont);
981 clientMetricsA.iMenuWidth = clientMetricsW->iMenuWidth;
982 clientMetricsA.iMenuHeight = clientMetricsW->iMenuHeight;
983 ConvertFontWA(&clientMetricsW->lfMenuFont, &clientMetricsA.lfMenuFont);
984 ConvertFontWA(&clientMetricsW->lfStatusFont, &clientMetricsA.lfStatusFont);
985 ConvertFontWA(&clientMetricsW->lfMessageFont, &clientMetricsA.lfMessageFont);
986 //no break
987 case SPI_GETNONCLIENTMETRICS:
988 uiParamA = sizeof(NONCLIENTMETRICSA);
989 pvParamA = &clientMetricsA;
990 break;
991 case SPI_GETICONTITLELOGFONT:
992 {
993 LPLOGFONTW lpLogFont = (LPLOGFONTW)pvParam;
994
995 /* from now on we always have an alias for MS Sans Serif */
996 lstrcpyW(lpLogFont->lfFaceName, (LPCWSTR)L"MS Sans Serif");
997 lpLogFont->lfHeight = -GetProfileIntA("Desktop","IconTitleSize", 8);
998 lpLogFont->lfWidth = 0;
999 lpLogFont->lfEscapement = lpLogFont->lfOrientation = 0;
1000 lpLogFont->lfWeight = FW_NORMAL;
1001 lpLogFont->lfItalic = FALSE;
1002 lpLogFont->lfStrikeOut = FALSE;
1003 lpLogFont->lfUnderline = FALSE;
1004 lpLogFont->lfCharSet = ANSI_CHARSET;
1005 lpLogFont->lfOutPrecision = OUT_DEFAULT_PRECIS;
1006 lpLogFont->lfClipPrecision = CLIP_DEFAULT_PRECIS;
1007 lpLogFont->lfPitchAndFamily = DEFAULT_PITCH | FF_SWISS;
1008 return TRUE;
1009 }
1010 default:
1011 pvParamA = pvParam;
1012 uiParamA = uiParam;
1013 break;
1014 }
1015 rc = SystemParametersInfoA(uiAction, uiParamA, pvParamA, fWinIni);
1016
1017 switch(uiAction) {
1018 case SPI_GETNONCLIENTMETRICS:
1019 clientMetricsW->cbSize = sizeof(*clientMetricsW);
1020 clientMetricsW->iBorderWidth = clientMetricsA.iBorderWidth;
1021 clientMetricsW->iScrollWidth = clientMetricsA.iScrollWidth;
1022 clientMetricsW->iScrollHeight = clientMetricsA.iScrollHeight;
1023 clientMetricsW->iCaptionWidth = clientMetricsA.iCaptionWidth;
1024 clientMetricsW->iCaptionHeight = clientMetricsA.iCaptionHeight;
1025 ConvertFontAW(&clientMetricsA.lfCaptionFont, &clientMetricsW->lfCaptionFont);
1026
1027 clientMetricsW->iSmCaptionWidth = clientMetricsA.iSmCaptionWidth;
1028 clientMetricsW->iSmCaptionHeight = clientMetricsA.iSmCaptionHeight;
1029 ConvertFontAW(&clientMetricsA.lfSmCaptionFont, &clientMetricsW->lfSmCaptionFont);
1030
1031 clientMetricsW->iMenuWidth = clientMetricsA.iMenuWidth;
1032 clientMetricsW->iMenuHeight = clientMetricsA.iMenuHeight;
1033 ConvertFontAW(&clientMetricsA.lfMenuFont, &clientMetricsW->lfMenuFont);
1034 ConvertFontAW(&clientMetricsA.lfStatusFont, &clientMetricsW->lfStatusFont);
1035 ConvertFontAW(&clientMetricsA.lfMessageFont, &clientMetricsW->lfMessageFont);
1036 break;
1037 }
1038 dprintf(("USER32: SystemParametersInfoW %d, returned %d\n", uiAction, rc));
1039 return(rc);
1040}
1041
1042/* Process and Thread Functions */
1043
1044//******************************************************************************
1045//DWORD idAttach; /* thread to attach */
1046//DWORD idAttachTo; /* thread to attach to */
1047//BOOL fAttach; /* attach or detach */
1048//******************************************************************************
1049BOOL WIN32API AttachThreadInput(DWORD idAttach, DWORD idAttachTo, BOOL fAttach)
1050{
1051 dprintf(("USER32: AttachThreadInput, not implemented\n"));
1052 return(TRUE);
1053}
1054//******************************************************************************
1055//******************************************************************************
1056DWORD WIN32API WaitForInputIdle(HANDLE hProcess, DWORD dwTimeOut)
1057{
1058 dprintf(("USER32: WaitForInputIdle %x %d\n", hProcess, dwTimeOut));
1059
1060 return O32_WaitForInputIdle(hProcess, dwTimeOut);
1061}
1062
1063/* Help Functions */
1064
1065BOOL WIN32API WinHelpA( HWND hwnd, LPCSTR lpszHelp, UINT uCommand, DWORD dwData)
1066{
1067 static WORD WM_WINHELP = 0;
1068 HWND hDest;
1069 LPWINHELP lpwh;
1070 HGLOBAL hwh;
1071 HINSTANCE winhelp;
1072 int size,dsize,nlen;
1073
1074 dprintf(("USER32: WinHelpA %s\n", lpszHelp));
1075
1076 if(!WM_WINHELP)
1077 {
1078 WM_WINHELP=RegisterWindowMessageA("WM_WINHELP");
1079 if(!WM_WINHELP)
1080 return FALSE;
1081 }
1082
1083 hDest = FindWindowA( "MS_WINHELP", NULL );
1084 if(!hDest)
1085 {
1086 if(uCommand == HELP_QUIT)
1087 return TRUE;
1088 else
1089 winhelp = WinExec ( "winhlp32.exe -x", SW_SHOWNORMAL );
1090 if ( winhelp <= 32 ) return FALSE;
1091 if ( ! ( hDest = FindWindowA ( "MS_WINHELP", NULL ) )) return FALSE;
1092 }
1093
1094 switch(uCommand)
1095 {
1096 case HELP_CONTEXT:
1097 case HELP_SETCONTENTS:
1098 case HELP_CONTENTS:
1099 case HELP_CONTEXTPOPUP:
1100 case HELP_FORCEFILE:
1101 case HELP_HELPONHELP:
1102 case HELP_FINDER:
1103 case HELP_QUIT:
1104 dsize=0;
1105 break;
1106
1107 case HELP_KEY:
1108 case HELP_PARTIALKEY:
1109 case HELP_COMMAND:
1110 dsize = strlen( (LPSTR)dwData )+1;
1111 break;
1112
1113 case HELP_MULTIKEY:
1114 dsize = ((LPMULTIKEYHELP)dwData)->mkSize;
1115 break;
1116
1117 case HELP_SETWINPOS:
1118 dsize = ((LPHELPWININFO)dwData)->wStructSize;
1119 break;
1120
1121 default:
1122 //WARN("Unknown help command %d\n",wCommand);
1123 return FALSE;
1124 }
1125 if(lpszHelp)
1126 nlen = strlen(lpszHelp)+1;
1127 else
1128 nlen = 0;
1129 size = sizeof(WINHELP) + nlen + dsize;
1130 hwh = GlobalAlloc(0,size);
1131 lpwh = (WINHELP*)GlobalLock(hwh);
1132 lpwh->size = size;
1133 lpwh->command = uCommand;
1134 lpwh->data = dwData;
1135 if(nlen)
1136 {
1137 strcpy(((char*)lpwh) + sizeof(WINHELP),lpszHelp);
1138 lpwh->ofsFilename = sizeof(WINHELP);
1139 } else
1140 lpwh->ofsFilename = 0;
1141 if(dsize)
1142 {
1143 memcpy(((char*)lpwh)+sizeof(WINHELP)+nlen,(LPSTR)dwData,dsize);
1144 lpwh->ofsData = sizeof(WINHELP)+nlen;
1145 } else
1146 lpwh->ofsData = 0;
1147 GlobalUnlock(hwh);
1148
1149 return SendMessageA(hDest,WM_WINHELP,hwnd,hwh);
1150}
1151//******************************************************************************
1152//******************************************************************************
1153BOOL WIN32API WinHelpW( HWND hwnd, LPCWSTR lpszHelp, UINT uCommand, DWORD dwData)
1154{
1155 char *astring = UnicodeToAsciiString((LPWSTR)lpszHelp);
1156 BOOL rc;
1157
1158 dprintf(("USER32: WinHelpW\n"));
1159
1160 rc = WinHelpA(hwnd,astring,uCommand,dwData);
1161 FreeAsciiString(astring);
1162
1163 return rc;
1164}
1165
1166/* Keyboard and Input Functions */
1167
1168BOOL WIN32API ActivateKeyboardLayout(HKL hkl, UINT fuFlags)
1169{
1170 dprintf(("USER32: ActivateKeyboardLayout, not implemented\n"));
1171 return(TRUE);
1172}
1173//******************************************************************************
1174//SvL: 24-6-'97 - Added
1175//TODO: Not implemented
1176//******************************************************************************
1177WORD WIN32API GetAsyncKeyState(INT nVirtKey)
1178{
1179 dprintf2(("USER32: GetAsyncKeyState Not implemented\n"));
1180 return 0;
1181}
1182/*****************************************************************************
1183 * Name : UINT WIN32API GetKBCodePage
1184 * Purpose : The GetKBCodePage function is provided for compatibility with
1185 * earlier versions of Windows. In the Win32 application programming
1186 * interface (API) it just calls the GetOEMCP function.
1187 * Parameters:
1188 * Variables :
1189 * Result : If the function succeeds, the return value is an OEM code-page
1190 * identifier, or it is the default identifier if the registry
1191 * value is not readable. For a list of OEM code-page identifiers,
1192 * see GetOEMCP.
1193 * Remark :
1194 * Status : UNTESTED
1195 *
1196 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
1197 *****************************************************************************/
1198
1199UINT WIN32API GetKBCodePage(VOID)
1200{
1201 return (GetOEMCP());
1202}
1203//******************************************************************************
1204//******************************************************************************
1205int WIN32API GetKeyNameTextA( LPARAM lParam, LPSTR lpString, int nSize)
1206{
1207 dprintf(("USER32: GetKeyNameTextA\n"));
1208 return O32_GetKeyNameText(lParam,lpString,nSize);
1209}
1210//******************************************************************************
1211//******************************************************************************
1212int WIN32API GetKeyNameTextW( LPARAM lParam, LPWSTR lpString, int nSize)
1213{
1214 dprintf(("USER32: GetKeyNameTextW DOES NOT WORK\n"));
1215 // NOTE: This will not work as is (needs UNICODE support)
1216 return 0;
1217// return O32_GetKeyNameText(arg1, arg2, arg3);
1218}
1219//******************************************************************************
1220//SvL: 24-6-'97 - Added
1221//******************************************************************************
1222SHORT WIN32API GetKeyState( int nVirtKey)
1223{
1224//SvL: Hehe. 32 MB logfile for Opera after a minute.
1225 dprintf2(("USER32: GetKeyState %d\n", nVirtKey));
1226 return O32_GetKeyState(nVirtKey);
1227}
1228/*****************************************************************************
1229 * Name : VOID WIN32API keybd_event
1230 * Purpose : The keybd_event function synthesizes a keystroke. The system
1231 * can use such a synthesized keystroke to generate a WM_KEYUP or
1232 * WM_KEYDOWN message. The keyboard driver's interrupt handler calls
1233 * the keybd_event function.
1234 * Parameters: BYTE bVk virtual-key code
1235
1236 * BYTE bScan hardware scan code
1237 * DWORD dwFlags flags specifying various function options
1238 * DWORD dwExtraInfo additional data associated with keystroke
1239 * Variables :
1240 * Result :
1241 * Remark :
1242 * Status : UNTESTED STUB
1243 *
1244 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
1245 *****************************************************************************/
1246VOID WIN32API keybd_event (BYTE bVk,
1247 BYTE bScan,
1248 DWORD dwFlags,
1249 DWORD dwExtraInfo)
1250{
1251 dprintf(("USER32:keybd_event (%u,%u,%08xh,%08x) not implemented.\n",
1252 bVk,
1253 bScan,
1254 dwFlags,
1255 dwExtraInfo));
1256}
1257/*****************************************************************************
1258 * Name : HLK WIN32API LoadKeyboardLayoutA
1259 * Purpose : The LoadKeyboardLayout function loads a new keyboard layout into
1260 * the system. Several keyboard layouts can be loaded at a time, but
1261 * only one per process is active at a time. Loading multiple keyboard
1262 * layouts makes it possible to rapidly switch between layouts.
1263 * Parameters:
1264 * Variables :
1265 * Result : If the function succeeds, the return value is the handle of the
1266 * keyboard layout.
1267 * If the function fails, the return value is NULL. To get extended
1268 * error information, call GetLastError.
1269 * Remark :
1270 * Status : UNTESTED STUB
1271 *
1272 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
1273 *****************************************************************************/
1274HKL WIN32API LoadKeyboardLayoutA(LPCTSTR pwszKLID,
1275 UINT Flags)
1276{
1277 dprintf(("USER32:LeadKeyboardLayoutA (%s,%u) not implemented.\n",
1278 pwszKLID,
1279 Flags));
1280
1281 return (NULL);
1282}
1283/*****************************************************************************
1284 * Name : HLK WIN32API LoadKeyboardLayoutW
1285 * Purpose : The LoadKeyboardLayout function loads a new keyboard layout into
1286 * the system. Several keyboard layouts can be loaded at a time, but
1287 * only one per process is active at a time. Loading multiple keyboard
1288 * layouts makes it possible to rapidly switch between layouts.
1289 * Parameters:
1290 * Variables :
1291 * Result : If the function succeeds, the return value is the handle of the
1292 * keyboard layout.
1293 * If the function fails, the return value is NULL. To get extended
1294 * error information, call GetLastError.
1295 * Remark :
1296 * Status : UNTESTED STUB
1297 *
1298 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
1299 *****************************************************************************/
1300HKL WIN32API LoadKeyboardLayoutW(LPCWSTR pwszKLID,
1301 UINT Flags)
1302{
1303 dprintf(("USER32:LeadKeyboardLayoutW (%s,%u) not implemented.\n",
1304 pwszKLID,
1305 Flags));
1306
1307 return (NULL);
1308}
1309//******************************************************************************
1310//******************************************************************************
1311UINT WIN32API MapVirtualKeyA( UINT uCode, UINT uMapType)
1312{
1313 dprintf(("USER32: MapVirtualKeyA\n"));
1314 return O32_MapVirtualKey(uCode,uMapType);
1315}
1316//******************************************************************************
1317//******************************************************************************
1318UINT WIN32API MapVirtualKeyW( UINT uCode, UINT uMapType)
1319{
1320 dprintf(("USER32: MapVirtualKeyW\n"));
1321 // NOTE: This will not work as is (needs UNICODE support)
1322 return O32_MapVirtualKey(uCode,uMapType);
1323}
1324/*****************************************************************************
1325 * Name : UINT WIN32API MapVirtualKeyExA
1326 * Purpose : The MapVirtualKeyEx function translates (maps) a virtual-key
1327 * code into a scan code or character value, or translates a scan
1328 * code into a virtual-key code. The function translates the codes
1329 * using the input language and physical keyboard layout identified
1330 * by the given keyboard layout handle.
1331 * Parameters:
1332 * Variables :
1333 * Result : The return value is either a scan code, a virtual-key code, or
1334 * a character value, depending on the value of uCode and uMapType.
1335 * If there is no translation, the return value is zero.
1336 * Remark :
1337 * Status : UNTESTED STUB
1338 *
1339 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
1340 *****************************************************************************/
1341UINT WIN32API MapVirtualKeyExA(UINT uCode,
1342 UINT uMapType,
1343 HKL dwhkl)
1344{
1345 dprintf(("USER32:MapVirtualKeyExA (%u,%u,%08x) not implemented.\n",
1346 uCode,
1347 uMapType,
1348 dwhkl));
1349
1350 return (0);
1351}
1352/*****************************************************************************
1353 * Name : UINT WIN32API MapVirtualKeyExW
1354 * Purpose : The MapVirtualKeyEx function translates (maps) a virtual-key
1355 * code into a scan code or character value, or translates a scan
1356 * code into a virtual-key code. The function translates the codes
1357 * using the input language and physical keyboard layout identified
1358 * by the given keyboard layout handle.
1359 * Parameters:
1360 * Variables :
1361 * Result : The return value is either a scan code, a virtual-key code, or
1362 * a character value, depending on the value of uCode and uMapType.
1363 * If there is no translation, the return value is zero.
1364 * Remark :
1365 * Status : UNTESTED STUB
1366
1367 *
1368 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
1369 *****************************************************************************/
1370UINT WIN32API MapVirtualKeyExW(UINT uCode,
1371 UINT uMapType,
1372 HKL dwhkl)
1373{
1374 dprintf(("USER32:MapVirtualKeyExW (%u,%u,%08x) not implemented.\n",
1375 uCode,
1376 uMapType,
1377 dwhkl));
1378
1379 return (0);
1380}
1381/*****************************************************************************
1382 * Name : DWORD WIN32API OemKeyScan
1383 * Purpose : The OemKeyScan function maps OEM ASCII codes 0 through 0x0FF
1384 * into the OEM scan codes and shift states. The function provides
1385 * information that allows a program to send OEM text to another
1386 * program by simulating keyboard input.
1387 * Parameters:
1388 * Variables :
1389 * Result :
1390 * Remark :
1391 * Status : UNTESTED STUB
1392 *
1393 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
1394 *****************************************************************************/
1395DWORD WIN32API OemKeyScan(WORD wOemChar)
1396{
1397 dprintf(("USER32:OemKeyScan (%u) not implemented.\n",
1398 wOemChar));
1399
1400 return (wOemChar);
1401}
1402//******************************************************************************
1403//******************************************************************************
1404BOOL WIN32API RegisterHotKey(HWND hwnd, int idHotKey, UINT fuModifiers, UINT uVirtKey)
1405{
1406 dprintf(("USER32: RegisterHotKey, not implemented\n"));
1407 hwnd = Win32Window::Win32ToOS2Handle(hwnd);
1408 return(TRUE);
1409}
1410/*****************************************************************************
1411 * Name : int WIN32API ToAscii
1412 * Purpose : The ToAscii function translates the specified virtual-key code
1413 * and keyboard state to the corresponding Windows character or characters.
1414 * Parameters: UINT uVirtKey virtual-key code
1415 * UINT uScanCode scan code
1416 * PBYTE lpbKeyState address of key-state array
1417 * LPWORD lpwTransKey buffer for translated key
1418 * UINT fuState active-menu flag
1419 * Variables :
1420 * Result : 0 The specified virtual key has no translation for the current
1421 * state of the keyboard.
1422 * 1 One Windows character was copied to the buffer.
1423 * 2 Two characters were copied to the buffer. This usually happens
1424 * when a dead-key character (accent or diacritic) stored in the
1425 * keyboard layout cannot be composed with the specified virtual
1426 * key to form a single character.
1427 * Remark :
1428 * Status : UNTESTED STUB
1429 *
1430 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
1431 *****************************************************************************/
1432int WIN32API ToAscii(UINT uVirtKey,
1433 UINT uScanCode,
1434 PBYTE lpbKeyState,
1435 LPWORD lpwTransKey,
1436 UINT fuState)
1437{
1438 dprintf(("USER32:ToAscii (%u,%u,%08xh,%08xh,%u) not implemented.\n",
1439 uVirtKey,
1440 uScanCode,
1441 lpbKeyState,
1442 lpwTransKey,
1443 fuState));
1444
1445 return (0);
1446}
1447/*****************************************************************************
1448 * Name : int WIN32API ToAsciiEx
1449 * Purpose : The ToAscii function translates the specified virtual-key code
1450 * and keyboard state to the corresponding Windows character or characters.
1451 * Parameters: UINT uVirtKey virtual-key code
1452 * UINT uScanCode scan code
1453 * PBYTE lpbKeyState address of key-state array
1454 * LPWORD lpwTransKey buffer for translated key
1455 * UINT fuState active-menu flag
1456 * HLK hlk keyboard layout handle
1457 * Variables :
1458 * Result : 0 The specified virtual key has no translation for the current
1459 * state of the keyboard.
1460 * 1 One Windows character was copied to the buffer.
1461 * 2 Two characters were copied to the buffer. This usually happens
1462 * when a dead-key character (accent or diacritic) stored in the
1463 * keyboard layout cannot be composed with the specified virtual
1464 * key to form a single character.
1465 * Remark :
1466 * Status : UNTESTED STUB
1467 *
1468 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
1469 *****************************************************************************/
1470int WIN32API ToAsciiEx(UINT uVirtKey,
1471 UINT uScanCode,
1472 PBYTE lpbKeyState,
1473 LPWORD lpwTransKey,
1474 UINT fuState,
1475 HKL hkl)
1476{
1477 dprintf(("USER32:ToAsciiEx (%u,%u,%08xh,%08xh,%u,%08x) not implemented.\n",
1478 uVirtKey,
1479 uScanCode,
1480 lpbKeyState,
1481 lpwTransKey,
1482 fuState,
1483 hkl));
1484
1485 return (0);
1486}
1487/*****************************************************************************
1488 * Name : int WIN32API ToUnicode
1489 * Purpose : The ToUnicode function translates the specified virtual-key code
1490 * and keyboard state to the corresponding Unicode character or characters.
1491 * Parameters: UINT wVirtKey virtual-key code
1492 * UINT wScanCode scan code
1493 * PBYTE lpKeyState address of key-state array
1494 * LPWSTR pwszBuff buffer for translated key
1495 * int cchBuff size of translated key buffer
1496 * UINT wFlags set of function-conditioning flags
1497 * Variables :
1498 * Result : - 1 The specified virtual key is a dead-key character (accent or
1499 * diacritic). This value is returned regardless of the keyboard
1500 * layout, even if several characters have been typed and are
1501 * stored in the keyboard state. If possible, even with Unicode
1502 * keyboard layouts, the function has written a spacing version of
1503 * the dead-key character to the buffer specified by pwszBuffer.
1504 * For example, the function writes the character SPACING ACUTE
1505 * (0x00B4), rather than the character NON_SPACING ACUTE (0x0301).
1506 * 0 The specified virtual key has no translation for the current
1507 * state of the keyboard. Nothing was written to the buffer
1508 * specified by pwszBuffer.
1509 * 1 One character was written to the buffer specified by pwszBuffer.
1510 * 2 or more Two or more characters were written to the buffer specified by
1511 * pwszBuff. The most common cause for this is that a dead-key
1512 * character (accent or diacritic) stored in the keyboard layout
1513 * could not be combined with the specified virtual key to form a
1514 * single character.
1515 * Remark :
1516 * Status : UNTESTED STUB
1517 *
1518 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
1519 *****************************************************************************/
1520int WIN32API ToUnicode(UINT uVirtKey,
1521 UINT uScanCode,
1522 PBYTE lpKeyState,
1523 LPWSTR pwszBuff,
1524 int cchBuff,
1525 UINT wFlags)
1526{
1527 dprintf(("USER32:ToUnicode (%u,%u,%08xh,%08xh,%u,%08x) not implemented.\n",
1528 uVirtKey,
1529 uScanCode,
1530 lpKeyState,
1531 pwszBuff,
1532 cchBuff,
1533 wFlags));
1534
1535 return (0);
1536}
1537/*****************************************************************************
1538 * Name : BOOL WIN32API UnloadKeyboardLayout
1539 * Purpose : The UnloadKeyboardLayout function removes a keyboard layout.
1540 * Parameters: HKL hkl handle of keyboard layout
1541 * Variables :
1542 * Result : If the function succeeds, the return value is the handle of the
1543 * keyboard layout; otherwise, it is NULL. To get extended error
1544 * information, use the GetLastError function.
1545 * Remark :
1546 * Status : UNTESTED STUB
1547 *
1548 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
1549 *****************************************************************************/
1550BOOL WIN32API UnloadKeyboardLayout (HKL hkl)
1551{
1552 dprintf(("USER32:UnloadKeyboardLayout (%08x) not implemented.\n",
1553 hkl));
1554
1555 return (0);
1556}
1557//******************************************************************************
1558//******************************************************************************
1559BOOL WIN32API UnregisterHotKey(HWND hwnd, int idHotKey)
1560{
1561 dprintf(("USER32: UnregisterHotKey, not implemented\n"));
1562 hwnd = Win32Window::Win32ToOS2Handle(hwnd);
1563
1564 return(TRUE);
1565}
1566//******************************************************************************
1567//SvL: 24-6-'97 - Added
1568//******************************************************************************
1569WORD WIN32API VkKeyScanA( char ch)
1570{
1571 dprintf(("USER32: VkKeyScanA\n"));
1572 return O32_VkKeyScan(ch);
1573}
1574//******************************************************************************
1575//******************************************************************************
1576WORD WIN32API VkKeyScanW( WCHAR wch)
1577{
1578 dprintf(("USER32: VkKeyScanW\n"));
1579 // NOTE: This will not work as is (needs UNICODE support)
1580 return O32_VkKeyScan((char)wch);
1581}
1582/*****************************************************************************
1583 * Name : SHORT WIN32API VkKeyScanExW
1584 * Purpose : The VkKeyScanEx function translates a character to the
1585 * corresponding virtual-key code and shift state. The function
1586 * translates the character using the input language and physical
1587 * keyboard layout identified by the given keyboard layout handle.
1588 * Parameters: UINT uChar character to translate
1589 * HKL hkl keyboard layout handle
1590 * Variables :
1591 * Result : see docs
1592 * Remark :
1593 * Status : UNTESTED STUB
1594 *
1595 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
1596 *****************************************************************************/
1597WORD WIN32API VkKeyScanExW(WCHAR uChar,
1598 HKL hkl)
1599{
1600 dprintf(("USER32:VkKeyScanExW (%u,%08x) not implemented.\n",
1601 uChar,
1602 hkl));
1603
1604 return (uChar);
1605}
1606/*****************************************************************************
1607 * Name : SHORT WIN32API VkKeyScanExA
1608 * Purpose : The VkKeyScanEx function translates a character to the
1609 * corresponding virtual-key code and shift state. The function
1610 * translates the character using the input language and physical
1611 * keyboard layout identified by the given keyboard layout handle.
1612 * Parameters: UINT uChar character to translate
1613 * HKL hkl keyboard layout handle
1614 * Variables :
1615 * Result : see docs
1616 * Remark :
1617 * Status : UNTESTED STUB
1618 *
1619 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
1620 *****************************************************************************/
1621WORD WIN32API VkKeyScanExA(CHAR uChar,
1622 HKL hkl)
1623{
1624 dprintf(("USER32:VkKeyScanExA (%u,%08x) not implemented.\n",
1625 uChar,
1626 hkl));
1627
1628 return (uChar);
1629}
1630
1631/* Window Functions */
1632
1633/*****************************************************************************
1634 * Name : BOOL WIN32API AnyPopup
1635 * Purpose : The AnyPopup function indicates whether an owned, visible,
1636 * top-level pop-up, or overlapped window exists on the screen. The
1637 * function searches the entire Windows screen, not just the calling
1638 * application's client area.
1639 * Parameters: VOID
1640 * Variables :
1641 * Result : If a pop-up window exists, the return value is TRUE even if the
1642 * pop-up window is completely covered by other windows. Otherwise,
1643 * it is FALSE.
1644 * Remark : AnyPopup is a Windows version 1.x function and is retained for
1645 * compatibility purposes. It is generally not useful.
1646 * Status : UNTESTED STUB
1647 *
1648 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
1649 *****************************************************************************/
1650BOOL WIN32API AnyPopup(VOID)
1651{
1652 dprintf(("USER32:AnyPopup() not implemented.\n"));
1653
1654 return (FALSE);
1655}
1656
1657/*****************************************************************************
1658 * Name : BOOL WIN32API PaintDesktop
1659 * Purpose : The PaintDesktop function fills the clipping region in the
1660 * specified device context with the desktop pattern or wallpaper.
1661 * The function is provided primarily for shell desktops.
1662 * Parameters:
1663 * Variables :
1664 * Result : If the function succeeds, the return value is TRUE.
1665 * If the function fails, the return value is FALSE.
1666 * Remark :
1667 * Status : UNTESTED STUB
1668 *
1669 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
1670 *****************************************************************************/
1671BOOL WIN32API PaintDesktop(HDC hdc)
1672{
1673 dprintf(("USER32:PaintDesktop (%08x) not implemented.\n",
1674 hdc));
1675
1676 return (FALSE);
1677}
1678
1679/* Filled Shape Functions */
1680
1681
1682int WIN32API FillRect(HDC hDC, const RECT * lprc, HBRUSH hbr)
1683{
1684 dprintf2(("USER32: FillRect (%d,%d)(%d,%d) brush %X\n", lprc->left, lprc->top, lprc->right, lprc->bottom, hbr));
1685 return O32_FillRect(hDC,lprc,hbr);
1686}
1687//******************************************************************************
1688//******************************************************************************
1689int WIN32API FrameRect( HDC hDC, const RECT * lprc, HBRUSH hbr)
1690{
1691 dprintf(("USER32: FrameRect"));
1692 return O32_FrameRect(hDC,lprc,hbr);
1693}
1694//******************************************************************************
1695//******************************************************************************
1696BOOL WIN32API InvertRect( HDC hDC, const RECT * lprc)
1697{
1698 dprintf(("USER32: InvertRect\n"));
1699 return O32_InvertRect(hDC,lprc);
1700}
1701
1702/* System Information Functions */
1703
1704int WIN32API GetKeyboardType( int nTypeFlag)
1705{
1706 dprintf(("USER32: GetKeyboardType\n"));
1707 return O32_GetKeyboardType(nTypeFlag);
1708}
1709
1710/* Window Station and Desktop Functions */
1711
1712/*****************************************************************************
1713 * Name : HDESK WIN32API GetThreadDesktop
1714 * Purpose : The GetThreadDesktop function returns a handle to the desktop
1715 * associated with a specified thread.
1716 * Parameters: DWORD dwThreadId thread identifier
1717 * Variables :
1718 * Result : If the function succeeds, the return value is the handle of the
1719 * desktop associated with the specified thread.
1720 * Remark :
1721 * Status : UNTESTED STUB
1722 *
1723 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
1724 *****************************************************************************/
1725HDESK WIN32API GetThreadDesktop(DWORD dwThreadId)
1726{
1727 dprintf(("USER32:GetThreadDesktop (%u) not implemented.\n",
1728 dwThreadId));
1729
1730 return (NULL);
1731}
1732
1733/*****************************************************************************
1734 * Name : BOOL WIN32API CloseDesktop
1735 * Purpose : The CloseDesktop function closes an open handle of a desktop
1736 * object. A desktop is a secure object contained within a window
1737 * station object. A desktop has a logical display surface and
1738 * contains windows, menus and hooks.
1739 * Parameters: HDESK hDesktop
1740 * Variables :
1741 * Result : If the function succeeds, the return value is TRUE.
1742 * If the functions fails, the return value is FALSE. To get
1743 * extended error information, call GetLastError.
1744 * Remark :
1745 * Status : UNTESTED STUB
1746 *
1747 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
1748 *****************************************************************************/
1749BOOL WIN32API CloseDesktop(HDESK hDesktop)
1750{
1751 dprintf(("USER32:CloseDesktop(%08x) not implemented.\n",
1752 hDesktop));
1753
1754 return (FALSE);
1755}
1756/*****************************************************************************
1757 * Name : BOOL WIN32API CloseWindowStation
1758 * Purpose : The CloseWindowStation function closes an open window station handle.
1759 * Parameters: HWINSTA hWinSta
1760 * Variables :
1761 * Result :
1762 * Remark : If the function succeeds, the return value is TRUE.
1763 * If the functions fails, the return value is FALSE. To get
1764 * extended error information, call GetLastError.
1765 * Status : UNTESTED STUB
1766 *
1767 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
1768 *****************************************************************************/
1769BOOL WIN32API CloseWindowStation(HWINSTA hWinSta)
1770{
1771 dprintf(("USER32:CloseWindowStation(%08x) not implemented.\n",
1772 hWinSta));
1773
1774 return (FALSE);
1775}
1776/*****************************************************************************
1777 * Name : HDESK WIN32API CreateDesktopA
1778 * Purpose : The CreateDesktop function creates a new desktop on the window
1779 * station associated with the calling process.
1780 * Parameters: LPCTSTR lpszDesktop name of the new desktop
1781 * LPCTSTR lpszDevice name of display device to assign to the desktop
1782 * LPDEVMODE pDevMode reserved; must be NULL
1783 * DWORD dwFlags flags to control interaction with other applications
1784 * DWORD dwDesiredAccess specifies access of returned handle
1785 * LPSECURITY_ATTRIBUTES lpsa specifies security attributes of the desktop
1786 * Variables :
1787 * Result : If the function succeeds, the return value is a handle of the
1788 * newly created desktop.
1789 * If the function fails, the return value is NULL. To get extended
1790 * error information, call GetLastError.
1791 * Remark :
1792 * Status : UNTESTED STUB
1793 *
1794 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
1795 *****************************************************************************/
1796HDESK WIN32API CreateDesktopA(LPCTSTR lpszDesktop,
1797 LPCTSTR lpszDevice,
1798 LPDEVMODEA pDevMode,
1799 DWORD dwFlags,
1800 DWORD dwDesiredAccess,
1801 LPSECURITY_ATTRIBUTES lpsa)
1802{
1803 dprintf(("USER32:CreateDesktopA(%s,%s,%08xh,%08xh,%08xh,%08x) not implemented.\n",
1804 lpszDesktop,
1805 lpszDevice,
1806 pDevMode,
1807 dwFlags,
1808 dwDesiredAccess,
1809 lpsa));
1810
1811 return (NULL);
1812}
1813/*****************************************************************************
1814 * Name : HDESK WIN32API CreateDesktopW
1815 * Purpose : The CreateDesktop function creates a new desktop on the window
1816 * station associated with the calling process.
1817 * Parameters: LPCTSTR lpszDesktop name of the new desktop
1818 * LPCTSTR lpszDevice name of display device to assign to the desktop
1819 * LPDEVMODE pDevMode reserved; must be NULL
1820 * DWORD dwFlags flags to control interaction with other applications
1821 * DWORD dwDesiredAccess specifies access of returned handle
1822 * LPSECURITY_ATTRIBUTES lpsa specifies security attributes of the desktop
1823 * Variables :
1824 * Result : If the function succeeds, the return value is a handle of the
1825 * newly created desktop.
1826 * If the function fails, the return value is NULL. To get extended
1827 * error information, call GetLastError.
1828 * Remark :
1829 * Status : UNTESTED STUB
1830 *
1831 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
1832 *****************************************************************************/
1833HDESK WIN32API CreateDesktopW(LPCTSTR lpszDesktop,
1834 LPCTSTR lpszDevice,
1835 LPDEVMODEW pDevMode,
1836 DWORD dwFlags,
1837 DWORD dwDesiredAccess,
1838 LPSECURITY_ATTRIBUTES lpsa)
1839{
1840 dprintf(("USER32:CreateDesktopW(%s,%s,%08xh,%08xh,%08xh,%08x) not implemented.\n",
1841 lpszDesktop,
1842 lpszDevice,
1843 pDevMode,
1844 dwFlags,
1845 dwDesiredAccess,
1846 lpsa));
1847
1848 return (NULL);
1849}
1850/*****************************************************************************
1851 * Name : HWINSTA WIN32API CreateWindowStationA
1852 * Purpose : The CreateWindowStation function creates a window station object.
1853 * It returns a handle that can be used to access the window station.
1854 * A window station is a secure object that contains a set of global
1855 * atoms, a clipboard, and a set of desktop objects.
1856 * Parameters: LPTSTR lpwinsta name of the new window station
1857 * DWORD dwReserved reserved; must be NULL
1858 * DWORD dwDesiredAccess specifies access of returned handle
1859 * LPSECURITY_ATTRIBUTES lpsa specifies security attributes of the window station
1860 * Variables :
1861 * Result : If the function succeeds, the return value is the handle to the
1862 * newly created window station.
1863 * If the function fails, the return value is NULL. To get extended
1864 * error information, call GetLastError.
1865 * Remark :
1866 * Status : UNTESTED STUB
1867 *
1868 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
1869 *****************************************************************************/
1870HWINSTA WIN32API CreateWindowStationA(LPTSTR lpWinSta,
1871 DWORD dwReserved,
1872 DWORD dwDesiredAccess,
1873 LPSECURITY_ATTRIBUTES lpsa)
1874{
1875 dprintf(("USER32:CreateWindowStationA(%s,%08xh,%08xh,%08x) not implemented.\n",
1876 lpWinSta,
1877 dwReserved,
1878 dwDesiredAccess,
1879 lpsa));
1880
1881 return (NULL);
1882}
1883/*****************************************************************************
1884 * Name : HWINSTA WIN32API CreateWindowStationW
1885 * Purpose : The CreateWindowStation function creates a window station object.
1886 * It returns a handle that can be used to access the window station.
1887 * A window station is a secure object that contains a set of global
1888 * atoms, a clipboard, and a set of desktop objects.
1889 * Parameters: LPTSTR lpwinsta name of the new window station
1890 * DWORD dwReserved reserved; must be NULL
1891 * DWORD dwDesiredAccess specifies access of returned handle
1892 * LPSECURITY_ATTRIBUTES lpsa specifies security attributes of the window station
1893 * Variables :
1894 * Result : If the function succeeds, the return value is the handle to the
1895 * newly created window station.
1896 * If the function fails, the return value is NULL. To get extended
1897 * error information, call GetLastError.
1898 * Remark :
1899 * Status : UNTESTED STUB
1900 *
1901 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
1902 *****************************************************************************/
1903HWINSTA WIN32API CreateWindowStationW(LPWSTR lpWinSta,
1904 DWORD dwReserved,
1905 DWORD dwDesiredAccess,
1906 LPSECURITY_ATTRIBUTES lpsa)
1907{
1908 dprintf(("USER32:CreateWindowStationW(%s,%08xh,%08xh,%08x) not implemented.\n",
1909 lpWinSta,
1910 dwReserved,
1911 dwDesiredAccess,
1912 lpsa));
1913
1914 return (NULL);
1915}
1916/*****************************************************************************
1917 * Name : BOOL WIN32API EnumDesktopWindows
1918 * Purpose : The EnumDesktopWindows function enumerates all windows in a
1919 * desktop by passing the handle of each window, in turn, to an
1920 * application-defined callback function.
1921 * Parameters: HDESK hDesktop handle of desktop to enumerate
1922 * WNDENUMPROC lpfn points to application's callback function
1923 * LPARAM lParam 32-bit value to pass to the callback function
1924 * Variables :
1925 * Result : If the function succeeds, the return value is TRUE.
1926 * If the function fails, the return value is FALSE. To get
1927 * extended error information, call GetLastError.
1928 * Remark :
1929 * Status : UNTESTED STUB
1930 *
1931 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
1932 *****************************************************************************/
1933BOOL WIN32API EnumDesktopWindows(HDESK hDesktop,
1934 WNDENUMPROC lpfn,
1935 LPARAM lParam)
1936{
1937 dprintf(("USER32:EnumDesktopWindows (%08xh,%08xh,%08x) not implemented.\n",
1938 hDesktop,
1939 lpfn,
1940 lParam));
1941
1942 return (FALSE);
1943}
1944/*****************************************************************************
1945 * Name : BOOL WIN32API EnumDesktopsA
1946 * Purpose : The EnumDesktops function enumerates all desktops in the window
1947 * station assigned to the calling process. The function does so by
1948 * passing the name of each desktop, in turn, to an application-
1949 * defined callback function.
1950 * Parameters: HWINSTA hwinsta handle of window station to enumerate
1951 * DESKTOPENUMPROC lpEnumFunc points to application's callback function
1952 * LPARAM lParam 32-bit value to pass to the callback function
1953 * Variables :
1954 * Result : If the function succeeds, the return value is TRUE.
1955 * If the function fails, the return value is FALSE. To get extended
1956 * error information, call GetLastError.
1957 * Remark :
1958 * Status : UNTESTED STUB
1959 *
1960 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
1961 *****************************************************************************/
1962BOOL WIN32API EnumDesktopsA(HWINSTA hWinSta,
1963 DESKTOPENUMPROCA lpEnumFunc,
1964 LPARAM lParam)
1965{
1966 dprintf(("USER32:EnumDesktopsA (%08xh,%08xh,%08x) not implemented.\n",
1967 hWinSta,
1968 lpEnumFunc,
1969 lParam));
1970
1971 return (FALSE);
1972}
1973/*****************************************************************************
1974 * Name : BOOL WIN32API EnumDesktopsW
1975 * Purpose : The EnumDesktops function enumerates all desktops in the window
1976 * station assigned to the calling process. The function does so by
1977 * passing the name of each desktop, in turn, to an application-
1978 * defined callback function.
1979 * Parameters: HWINSTA hwinsta handle of window station to enumerate
1980 * DESKTOPENUMPROC lpEnumFunc points to application's callback function
1981 * LPARAM lParam 32-bit value to pass to the callback function
1982 * Variables :
1983 * Result : If the function succeeds, the return value is TRUE.
1984 * If the function fails, the return value is FALSE. To get extended
1985 * error information, call GetLastError.
1986 * Remark :
1987 * Status : UNTESTED STUB
1988 *
1989 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
1990 *****************************************************************************/
1991BOOL WIN32API EnumDesktopsW(HWINSTA hWinSta,
1992 DESKTOPENUMPROCW lpEnumFunc,
1993 LPARAM lParam)
1994{
1995 dprintf(("USER32:EnumDesktopsW (%08xh,%08xh,%08x) not implemented.\n",
1996 hWinSta,
1997 lpEnumFunc,
1998 lParam));
1999
2000 return (FALSE);
2001}
2002/*****************************************************************************
2003 * Name : BOOL WIN32API EnumWindowStationsA
2004 * Purpose : The EnumWindowStations function enumerates all windowstations
2005 * in the system by passing the name of each window station, in
2006 * turn, to an application-defined callback function.
2007 * Parameters:
2008 * Variables : WINSTAENUMPROC lpEnumFunc points to application's callback function
2009 * LPARAM lParam 32-bit value to pass to the callback function
2010 * Result : If the function succeeds, the return value is TRUE.
2011 * If the function fails the return value is FALSE. To get extended
2012 * error information, call GetLastError.
2013 * Remark :
2014 * Status : UNTESTED STUB
2015 *
2016 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
2017 *****************************************************************************/
2018BOOL WIN32API EnumWindowStationsA(WINSTAENUMPROCA lpEnumFunc,
2019 LPARAM lParam)
2020{
2021 dprintf(("USER32:EnumWindowStationsA (%08xh,%08x) not implemented.\n",
2022 lpEnumFunc,
2023 lParam));
2024
2025 return (FALSE);
2026}
2027/*****************************************************************************
2028 * Name : BOOL WIN32API EnumWindowStationsW
2029 * Purpose : The EnumWindowStations function enumerates all windowstations
2030 * in the system by passing the name of each window station, in
2031 * turn, to an application-defined callback function.
2032 * Parameters:
2033 * Variables : WINSTAENUMPROC lpEnumFunc points to application's callback function
2034 * LPARAM lParam 32-bit value to pass to the callback function
2035 * Result : If the function succeeds, the return value is TRUE.
2036 * If the function fails the return value is FALSE. To get extended
2037 * error information, call GetLastError.
2038 * Remark :
2039 * Status : UNTESTED STUB
2040 *
2041 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
2042 *****************************************************************************/
2043BOOL WIN32API EnumWindowStationsW(WINSTAENUMPROCW lpEnumFunc,
2044 LPARAM lParam)
2045{
2046 dprintf(("USER32:EnumWindowStationsW (%08xh,%08x) not implemented.\n",
2047 lpEnumFunc,
2048 lParam));
2049
2050 return (FALSE);
2051}
2052/*****************************************************************************
2053 * Name : HWINSTA WIN32API GetProcessWindowStation
2054 * Purpose : The GetProcessWindowStation function returns a handle of the
2055 * window station associated with the calling process.
2056 * Parameters:
2057 * Variables :
2058 * Result : If the function succeeds, the return value is a handle of the
2059 * window station associated with the calling process.
2060 * If the function fails, the return value is NULL. This can occur
2061 * if the calling process is not an application written for Windows
2062 * NT. To get extended error information, call GetLastError.
2063 * Remark :
2064 * Status : UNTESTED STUB
2065 *
2066 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
2067 *****************************************************************************/
2068HWINSTA WIN32API GetProcessWindowStation(VOID)
2069{
2070 dprintf(("USER32:GetProcessWindowStation () not implemented.\n"));
2071
2072 return (NULL);
2073}
2074/*****************************************************************************
2075 * Name : BOOL WIN32API GetUserObjectInformationA
2076 * Purpose : The GetUserObjectInformation function returns information about
2077 * a window station or desktop object.
2078 * Parameters: HANDLE hObj handle of object to get information for
2079 * int nIndex type of information to get
2080 * PVOID pvInfo points to buffer that receives the information
2081 * DWORD nLength size, in bytes, of pvInfo buffer
2082 * LPDWORD lpnLengthNeeded receives required size, in bytes, of pvInfo buffer
2083 * Variables :
2084 * Result : If the function succeeds, the return value is TRUE.
2085 * If the function fails, the return value is FALSE. To get extended
2086 * error information, call GetLastError.
2087 * Remark :
2088 * Status : UNTESTED STUB
2089 *
2090 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
2091 *****************************************************************************/
2092BOOL WIN32API GetUserObjectInformationA(HANDLE hObj,
2093 int nIndex,
2094 PVOID pvInfo,
2095 DWORD nLength,
2096 LPDWORD lpnLengthNeeded)
2097{
2098 dprintf(("USER32:GetUserObjectInformationA (%08xh,%08xh,%08xh,%u,%08x) not implemented.\n",
2099 hObj,
2100 nIndex,
2101 pvInfo,
2102 nLength,
2103 lpnLengthNeeded));
2104
2105 return (FALSE);
2106}
2107/*****************************************************************************
2108 * Name : BOOL WIN32API GetUserObjectInformationW
2109 * Purpose : The GetUserObjectInformation function returns information about
2110 * a window station or desktop object.
2111 * Parameters: HANDLE hObj handle of object to get information for
2112 * int nIndex type of information to get
2113 * PVOID pvInfo points to buffer that receives the information
2114 * DWORD nLength size, in bytes, of pvInfo buffer
2115 * LPDWORD lpnLengthNeeded receives required size, in bytes, of pvInfo buffer
2116 * Variables :
2117 * Result : If the function succeeds, the return value is TRUE.
2118 * If the function fails, the return value is FALSE. To get extended
2119 * error information, call GetLastError.
2120 * Remark :
2121 * Status : UNTESTED STUB
2122 *
2123 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
2124 *****************************************************************************/
2125BOOL WIN32API GetUserObjectInformationW(HANDLE hObj,
2126 int nIndex,
2127 PVOID pvInfo,
2128 DWORD nLength,
2129 LPDWORD lpnLengthNeeded)
2130{
2131 dprintf(("USER32:GetUserObjectInformationW (%08xh,%08xh,%08xh,%u,%08x) not implemented.\n",
2132 hObj,
2133 nIndex,
2134 pvInfo,
2135 nLength,
2136 lpnLengthNeeded));
2137
2138 return (FALSE);
2139}
2140/*****************************************************************************
2141 * Name : BOOL WIN32API GetUserObjectSecurity
2142 * Purpose : The GetUserObjectSecurity function retrieves security information
2143 * for the specified user object.
2144 * Parameters: HANDLE hObj handle of user object
2145 * SECURITY_INFORMATION * pSIRequested address of requested security information
2146 * LPSECURITY_DESCRIPTOR pSID address of security descriptor
2147 * DWORD nLength size of buffer for security descriptor
2148 * LPDWORD lpnLengthNeeded address of required size of buffer
2149 * Variables :
2150 * Result : If the function succeeds, the return value is TRUE.
2151 * If the function fails, the return value is FALSE. To get extended
2152 * error information, call GetLastError.
2153 * Remark :
2154 * Status : UNTESTED STUB
2155 *
2156 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
2157 *****************************************************************************/
2158BOOL WIN32API GetUserObjectSecurity(HANDLE hObj,
2159 PSECURITY_INFORMATION pSIRequested,
2160 PSECURITY_DESCRIPTOR pSID,
2161 DWORD nLength,
2162 LPDWORD lpnLengthNeeded)
2163{
2164 dprintf(("USER32:GetUserObjectSecurity (%08xh,%08xh,%08xh,%u,%08x) not implemented.\n",
2165 hObj,
2166 pSIRequested,
2167 pSID,
2168 nLength,
2169 lpnLengthNeeded));
2170
2171 return (FALSE);
2172}
2173/*****************************************************************************
2174 * Name : HDESK WIN32API OpenDesktopA
2175 * Purpose : The OpenDesktop function returns a handle to an existing desktop.
2176 * A desktop is a secure object contained within a window station
2177 * object. A desktop has a logical display surface and contains
2178 * windows, menus and hooks.
2179 * Parameters: LPCTSTR lpszDesktopName name of the desktop to open
2180 * DWORD dwFlags flags to control interaction with other applications
2181 * BOOL fInherit specifies whether returned handle is inheritable
2182 * DWORD dwDesiredAccess specifies access of returned handle
2183 * Variables :
2184 * Result : If the function succeeds, the return value is the handle to the
2185 * opened desktop.
2186 * If the function fails, the return value is NULL. To get extended
2187 * error information, call GetLastError.
2188 * Remark :
2189 * Status : UNTESTED STUB
2190 *
2191 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
2192 *****************************************************************************/
2193HDESK WIN32API OpenDesktopA(LPCTSTR lpszDesktopName,
2194 DWORD dwFlags,
2195 BOOL fInherit,
2196 DWORD dwDesiredAccess)
2197{
2198 dprintf(("USER32:OpenDesktopA (%s,%08xh,%08xh,%08x) not implemented.\n",
2199 lpszDesktopName,
2200 dwFlags,
2201 fInherit,
2202 dwDesiredAccess));
2203
2204 return (NULL);
2205}
2206/*****************************************************************************
2207 * Name : HDESK WIN32API OpenDesktopW
2208 * Purpose : The OpenDesktop function returns a handle to an existing desktop.
2209 * A desktop is a secure object contained within a window station
2210 * object. A desktop has a logical display surface and contains
2211 * windows, menus and hooks.
2212 * Parameters: LPCTSTR lpszDesktopName name of the desktop to open
2213 * DWORD dwFlags flags to control interaction with other applications
2214 * BOOL fInherit specifies whether returned handle is inheritable
2215 * DWORD dwDesiredAccess specifies access of returned handle
2216 * Variables :
2217 * Result : If the function succeeds, the return value is the handle to the
2218 * opened desktop.
2219 * If the function fails, the return value is NULL. To get extended
2220 * error information, call GetLastError.
2221 * Remark :
2222 * Status : UNTESTED STUB
2223 *
2224 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
2225 *****************************************************************************/
2226HDESK WIN32API OpenDesktopW(LPCTSTR lpszDesktopName,
2227 DWORD dwFlags,
2228 BOOL fInherit,
2229 DWORD dwDesiredAccess)
2230{
2231 dprintf(("USER32:OpenDesktopW (%s,%08xh,%08xh,%08x) not implemented.\n",
2232 lpszDesktopName,
2233 dwFlags,
2234 fInherit,
2235 dwDesiredAccess));
2236
2237 return (NULL);
2238}
2239/*****************************************************************************
2240 * Name : HDESK WIN32API OpenInputDesktop
2241 * Purpose : The OpenInputDesktop function returns a handle to the desktop
2242 * that receives user input. The input desktop is a desktop on the
2243 * window station associated with the logged-on user.
2244 * Parameters: DWORD dwFlags flags to control interaction with other applications
2245 * BOOL fInherit specifies whether returned handle is inheritable
2246 * DWORD dwDesiredAccess specifies access of returned handle
2247 * Variables :
2248 * Result : If the function succeeds, the return value is a handle of the
2249 * desktop that receives user input.
2250 * If the function fails, the return value is NULL. To get extended
2251 * error information, call GetLastError.
2252 * Remark :
2253 * Status : UNTESTED STUB
2254 *
2255 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
2256 *****************************************************************************/
2257HDESK WIN32API OpenInputDesktop(DWORD dwFlags,
2258 BOOL fInherit,
2259 DWORD dwDesiredAccess)
2260{
2261 dprintf(("USER32:OpenInputDesktop (%08xh,%08xh,%08x) not implemented.\n",
2262 dwFlags,
2263 fInherit,
2264 dwDesiredAccess));
2265
2266 return (NULL);
2267}
2268/*****************************************************************************
2269 * Name : HWINSTA WIN32API OpenWindowStationA
2270 * Purpose : The OpenWindowStation function returns a handle to an existing
2271 * window station.
2272 * Parameters: LPCTSTR lpszWinStaName name of the window station to open
2273 * BOOL fInherit specifies whether returned handle is inheritable
2274 * DWORD dwDesiredAccess specifies access of returned handle
2275 * Variables :
2276 * Result : If the function succeeds, the return value is the handle to the
2277 * specified window station.
2278 * If the function fails, the return value is NULL. To get extended
2279 * error information, call GetLastError.
2280 * Remark :
2281 * Status : UNTESTED STUB
2282 *
2283 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
2284 *****************************************************************************/
2285HWINSTA WIN32API OpenWindowStationA(LPCTSTR lpszWinStaName,
2286 BOOL fInherit,
2287 DWORD dwDesiredAccess)
2288{
2289 dprintf(("USER32:OpenWindowStatieonA (%s,%08xh,%08x) not implemented.\n",
2290 lpszWinStaName,
2291 fInherit,
2292 dwDesiredAccess));
2293
2294 return (NULL);
2295}
2296/*****************************************************************************
2297 * Name : HWINSTA WIN32API OpenWindowStationW
2298 * Purpose : The OpenWindowStation function returns a handle to an existing
2299 * window station.
2300 * Parameters: LPCTSTR lpszWinStaName name of the window station to open
2301 * BOOL fInherit specifies whether returned handle is inheritable
2302 * DWORD dwDesiredAccess specifies access of returned handle
2303 * Variables :
2304 * Result : If the function succeeds, the return value is the handle to the
2305 * specified window station.
2306 * If the function fails, the return value is NULL. To get extended
2307 * error information, call GetLastError.
2308
2309
2310 * Remark :
2311 * Status : UNTESTED STUB
2312 *
2313 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
2314 *****************************************************************************/
2315HWINSTA WIN32API OpenWindowStationW(LPCTSTR lpszWinStaName,
2316 BOOL fInherit,
2317 DWORD dwDesiredAccess)
2318{
2319 dprintf(("USER32:OpenWindowStatieonW (%s,%08xh,%08x) not implemented.\n",
2320 lpszWinStaName,
2321 fInherit,
2322 dwDesiredAccess));
2323
2324 return (NULL);
2325}
2326/*****************************************************************************
2327 * Name : BOOL WIN32API SetProcessWindowStation
2328 * Purpose : The SetProcessWindowStation function assigns a window station
2329 * to the calling process. This enables the process to access
2330 * objects in the window station such as desktops, the clipboard,
2331 * and global atoms. All subsequent operations on the window station
2332 * use the access rights granted to hWinSta.
2333 * Parameters:
2334 * Variables :
2335 * Result : If the function succeeds, the return value is TRUE.
2336 * If the function fails, the return value is FALSE. To get extended
2337 * error information, call GetLastError.
2338 * Remark :
2339 * Status : UNTESTED STUB
2340 *
2341 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
2342 *****************************************************************************/
2343BOOL WIN32API SetProcessWindowStation(HWINSTA hWinSta)
2344{
2345 dprintf(("USER32:SetProcessWindowStation (%08x) not implemented.\n",
2346 hWinSta));
2347
2348 return (FALSE);
2349}
2350/*****************************************************************************
2351 * Name : BOOL WIN32API SetThreadDesktop
2352 * Purpose : The SetThreadDesktop function assigns a desktop to the calling
2353 * thread. All subsequent operations on the desktop use the access
2354 * rights granted to hDesk.
2355 * Parameters: HDESK hDesk handle of the desktop to assign to this thread
2356 * Variables :
2357 * Result : If the function succeeds, the return value is TRUE.
2358 * If the function fails, the return value is FALSE. To get extended
2359 * error information, call GetLastError.
2360 * Remark :
2361 * Status : UNTESTED STUB
2362 *
2363 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
2364 *****************************************************************************/
2365BOOL WIN32API SetThreadDesktop(HDESK hDesktop)
2366{
2367 dprintf(("USER32:SetThreadDesktop (%08x) not implemented.\n",
2368 hDesktop));
2369
2370 return (FALSE);
2371}
2372/*****************************************************************************
2373 * Name : BOOL WIN32API SetUserObjectInformationA
2374 * Purpose : The SetUserObjectInformation function sets information about a
2375 * window station or desktop object.
2376 * Parameters: HANDLE hObject handle of the object for which to set information
2377 * int nIndex type of information to set
2378 * PVOID lpvInfo points to a buffer that contains the information
2379 * DWORD cbInfo size, in bytes, of lpvInfo buffer
2380 * Variables :
2381 * Result : If the function succeeds, the return value is TRUE.
2382 * If the function fails the return value is FALSE. To get extended
2383 * error information, call GetLastError.
2384 * Remark :
2385 * Status : UNTESTED STUB
2386 *
2387 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
2388 *****************************************************************************/
2389BOOL WIN32API SetUserObjectInformationA(HANDLE hObject,
2390 int nIndex,
2391 PVOID lpvInfo,
2392 DWORD cbInfo)
2393{
2394 dprintf(("USER32:SetUserObjectInformationA (%08xh,%u,%08xh,%08x) not implemented.\n",
2395 hObject,
2396 nIndex,
2397 lpvInfo,
2398 cbInfo));
2399
2400 return (FALSE);
2401}
2402/*****************************************************************************
2403 * Name : BOOL WIN32API SetUserObjectInformationW
2404 * Purpose : The SetUserObjectInformation function sets information about a
2405 * window station or desktop object.
2406 * Parameters: HANDLE hObject handle of the object for which to set information
2407 * int nIndex type of information to set
2408 * PVOID lpvInfo points to a buffer that contains the information
2409 * DWORD cbInfo size, in bytes, of lpvInfo buffer
2410 * Variables :
2411 * Result : If the function succeeds, the return value is TRUE.
2412 * If the function fails the return value is FALSE. To get extended
2413 * error information, call GetLastError.
2414 * Remark :
2415 * Status : UNTESTED STUB
2416 *
2417 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
2418 *****************************************************************************/
2419BOOL WIN32API SetUserObjectInformationW(HANDLE hObject,
2420 int nIndex,
2421 PVOID lpvInfo,
2422 DWORD cbInfo)
2423{
2424 dprintf(("USER32:SetUserObjectInformationW (%08xh,%u,%08xh,%08x) not implemented.\n",
2425 hObject,
2426 nIndex,
2427 lpvInfo,
2428 cbInfo));
2429
2430 return (FALSE);
2431}
2432/*****************************************************************************
2433 * Name : BOOL WIN32API SetUserObjectSecurity
2434 * Purpose : The SetUserObjectSecurity function sets the security of a user
2435 * object. This can be, for example, a window or a DDE conversation
2436 * Parameters: HANDLE hObject handle of user object
2437 * SECURITY_INFORMATION * psi address of security information
2438 * LPSECURITY_DESCRIPTOR psd address of security descriptor
2439 * Variables :
2440 * Result : If the function succeeds, the return value is TRUE.
2441 * If the function fails, the return value is FALSE. To get extended
2442 * error information, call GetLastError.
2443 * Remark :
2444 * Status : UNTESTED STUB
2445 *
2446 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
2447 *****************************************************************************/
2448BOOL WIN32API SetUserObjectSecurity(HANDLE hObject,
2449 PSECURITY_INFORMATION psi,
2450 PSECURITY_DESCRIPTOR psd)
2451{
2452 dprintf(("USER32:SetUserObjectSecuroty (%08xh,%08xh,%08x) not implemented.\n",
2453 hObject,
2454 psi,
2455 psd));
2456
2457 return (FALSE);
2458}
2459/*****************************************************************************
2460 * Name : BOOL WIN32API SwitchDesktop
2461 * Purpose : The SwitchDesktop function makes a desktop visible and activates
2462 * it. This enables the desktop to receive input from the user. The
2463 * calling process must have DESKTOP_SWITCHDESKTOP access to the
2464 * desktop for the SwitchDesktop function to succeed.
2465 * Parameters:
2466 * Variables :
2467 * Result : If the function succeeds, the return value is TRUE.
2468 * If the function fails, the return value is FALSE. To get extended
2469 * error information, call GetLastError.
2470 * Remark :
2471 * Status : UNTESTED STUB
2472 *
2473 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
2474 *****************************************************************************/
2475BOOL WIN32API SwitchDesktop(HDESK hDesktop)
2476{
2477 dprintf(("USER32:SwitchDesktop (%08x) not implemented.\n",
2478 hDesktop));
2479
2480 return (FALSE);
2481}
2482
2483/* Debugging Functions */
2484
2485/*****************************************************************************
2486 * Name : VOID WIN32API SetDebugErrorLevel
2487 * Purpose : The SetDebugErrorLevel function sets the minimum error level at
2488 * which Windows will generate debugging events and pass them to a debugger.
2489 * Parameters: DWORD dwLevel debugging error level
2490 * Variables :
2491 * Result :
2492 * Remark :
2493 * Status : UNTESTED STUB
2494 *
2495 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
2496 *****************************************************************************/
2497VOID WIN32API SetDebugErrorLevel(DWORD dwLevel)
2498{
2499 dprintf(("USER32:SetDebugErrorLevel (%08x) not implemented.\n",
2500 dwLevel));
2501}
2502
2503/* Drag'n'drop */
2504
2505/*****************************************************************************
2506 * Name : BOOL WIN32API DragObject
2507 * Purpose : Unknown
2508 * Parameters: Unknown
2509 * Variables :
2510 * Result :
2511 * Remark :
2512 * Status : UNTESTED UNKNOWN STUB
2513 *
2514 * Author : Patrick Haller [Wed, 1998/06/16 11:55]
2515 *****************************************************************************/
2516DWORD WIN32API DragObject(HWND x1,HWND x2,UINT x3,DWORD x4,HCURSOR x5)
2517{
2518 dprintf(("USER32: DragObject(%08x,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
2519 x1,
2520 x2,
2521 x3,
2522 x4,
2523 x5));
2524
2525 return (FALSE); /* default */
2526}
2527
2528/* Unknown */
2529
2530/*****************************************************************************
2531 * Name : BOOL WIN32API SetShellWindow
2532 * Purpose : Unknown
2533 * Parameters: Unknown
2534 * Variables :
2535 * Result :
2536 * Remark :
2537 * Status : UNTESTED UNKNOWN STUB
2538 *
2539 * Author : Patrick Haller [Wed, 1998/06/16 11:55]
2540 *****************************************************************************/
2541BOOL WIN32API SetShellWindow(DWORD x1)
2542{
2543 dprintf(("USER32: SetShellWindow(%08x) not implemented.\n",
2544 x1));
2545
2546 return (FALSE); /* default */
2547}
2548/*****************************************************************************
2549 * Name : BOOL WIN32API PlaySoundEvent
2550 * Purpose : Unknown
2551 * Parameters: Unknown
2552 * Variables :
2553 * Result :
2554 * Remark :
2555 * Status : UNTESTED UNKNOWN STUB
2556 *
2557 * Author : Patrick Haller [Wed, 1998/06/16 11:55]
2558 *****************************************************************************/
2559BOOL WIN32API PlaySoundEvent(DWORD x1)
2560{
2561 dprintf(("USER32: PlaySoundEvent(%08x) not implemented.\n",
2562 x1));
2563
2564 return (FALSE); /* default */
2565}
2566/*****************************************************************************
2567 * Name : BOOL WIN32API SetSysColorsTemp
2568 * Purpose : Unknown
2569 * Parameters: Unknown
2570 * Variables :
2571 * Result :
2572 * Remark :
2573 * Status : UNTESTED UNKNOWN STUB
2574 *
2575 * Author : Patrick Haller [Wed, 1998/06/16 11:55]
2576 *****************************************************************************/
2577BOOL WIN32API SetSysColorsTemp(void)
2578{
2579 dprintf(("USER32: SetSysColorsTemp() not implemented.\n"));
2580
2581 return (FALSE); /* default */
2582}
2583/*****************************************************************************
2584 * Name : BOOL WIN32API RegisterNetworkCapabilities
2585 * Purpose : Unknown
2586 * Parameters: Unknown
2587 * Variables :
2588 * Result :
2589 * Remark :
2590 * Status : UNTESTED UNKNOWN STUB
2591 *
2592 * Author : Patrick Haller [Wed, 1998/06/16 11:55]
2593 *****************************************************************************/
2594BOOL WIN32API RegisterNetworkCapabilities(DWORD x1,
2595 DWORD x2)
2596{
2597 dprintf(("USER32: RegisterNetworkCapabilities(%08xh,%08xh) not implemented.\n",
2598 x1,
2599 x2));
2600
2601 return (FALSE); /* default */
2602}
2603/*****************************************************************************
2604 * Name : BOOL WIN32API EndTask
2605 * Purpose : Unknown
2606 * Parameters: Unknown
2607 * Variables :
2608 * Result :
2609 * Remark :
2610 * Status : UNTESTED UNKNOWN STUB
2611 *
2612 * Author : Patrick Haller [Wed, 1998/06/16 11:55]
2613 *****************************************************************************/
2614BOOL WIN32API EndTask(DWORD x1,
2615 DWORD x2,
2616 DWORD x3)
2617{
2618 dprintf(("USER32: EndTask(%08xh,%08xh,%08xh) not implemented.\n",
2619 x1,
2620 x2,
2621 x3));
2622
2623 return (FALSE); /* default */
2624}
2625/*****************************************************************************
2626 * Name : BOOL WIN32API GetNextQueueWindow
2627 * Purpose : Unknown
2628 * Parameters: Unknown
2629 * Variables :
2630 * Result :
2631 * Remark :
2632 * Status : UNTESTED UNKNOWN STUB
2633 *
2634 * Author : Patrick Haller [Wed, 1998/06/16 11:55]
2635 *****************************************************************************/
2636BOOL WIN32API GetNextQueueWindow(DWORD x1,
2637 DWORD x2)
2638{
2639 dprintf(("USER32: GetNextQueueWindow(%08xh,%08xh) not implemented.\n",
2640 x1,
2641 x2));
2642
2643 return (FALSE); /* default */
2644}
2645/*****************************************************************************
2646 * Name : BOOL WIN32API YieldTask
2647 * Purpose : Unknown
2648 * Parameters: Unknown
2649 * Variables :
2650 * Result :
2651 * Remark :
2652 * Status : UNTESTED UNKNOWN STUB
2653 *
2654 * Author : Patrick Haller [Wed, 1998/06/16 11:55]
2655 *****************************************************************************/
2656BOOL WIN32API YieldTask(void)
2657{
2658 dprintf(("USER32: YieldTask() not implemented.\n"));
2659
2660 return (FALSE); /* default */
2661}
2662/*****************************************************************************
2663 * Name : BOOL WIN32API WinOldAppHackoMatic
2664 * Purpose : Unknown
2665 * Parameters: Unknown
2666 * Variables :
2667 * Result :
2668 * Remark :
2669 * Status : UNTESTED UNKNOWN STUB
2670 *
2671 * Author : Patrick Haller [Wed, 1998/06/16 11:55]
2672 *****************************************************************************/
2673BOOL WIN32API WinOldAppHackoMatic(DWORD x1)
2674{
2675 dprintf(("USER32: WinOldAppHackoMatic(%08x) not implemented.\n",
2676 x1));
2677
2678 return (FALSE); /* default */
2679}
2680/*****************************************************************************
2681 * Name : BOOL WIN32API RegisterSystemThread
2682 * Purpose : Unknown
2683 * Parameters: Unknown
2684 * Variables :
2685 * Result :
2686 * Remark :
2687 * Status : UNTESTED UNKNOWN STUB
2688 *
2689 * Author : Patrick Haller [Wed, 1998/06/16 11:55]
2690 *****************************************************************************/
2691BOOL WIN32API RegisterSystemThread(DWORD x1,
2692 DWORD x2)
2693{
2694 dprintf(("USER32: RegisterSystemThread(%08xh,%08xh) not implemented.\n",
2695 x1,
2696 x2));
2697
2698 return (FALSE); /* default */
2699}
2700/*****************************************************************************
2701 * Name : BOOL WIN32API IsHungThread
2702 * Purpose : Unknown
2703 * Parameters: Unknown
2704 * Variables :
2705 * Result :
2706 * Remark :
2707 * Status : UNTESTED UNKNOWN STUB
2708 *
2709 * Author : Patrick Haller [Wed, 1998/06/16 11:55]
2710 *****************************************************************************/
2711BOOL WIN32API IsHungThread(DWORD x1)
2712{
2713 dprintf(("USER32: IsHungThread(%08xh) not implemented.\n",
2714 x1));
2715
2716 return (FALSE); /* default */
2717}
2718/*****************************************************************************
2719 * Name : BOOL WIN32API UserSignalProc
2720 * Purpose : Unknown
2721 * Parameters: Unknown
2722 * Variables :
2723 * Result :
2724 * Remark :
2725 * Status : UNTESTED UNKNOWN STUB
2726 *
2727 * Author : Patrick Haller [Wed, 1998/06/16 11:55]
2728 *****************************************************************************/
2729BOOL WIN32API UserSignalProc(DWORD x1,
2730 DWORD x2,
2731 DWORD x3,
2732 DWORD x4)
2733{
2734 dprintf(("USER32: SysErrorBox(%08xh,%08xh,%08xh,%08xh) not implemented.\n",
2735 x1,
2736 x2,
2737 x3,
2738 x4));
2739
2740 return (FALSE); /* default */
2741}
2742/*****************************************************************************
2743 * Name : BOOL WIN32API GetShellWindow
2744 * Purpose : Unknown
2745 * Parameters: Unknown
2746 * Variables :
2747 * Result :
2748 * Remark :
2749 * Status : UNTESTED UNKNOWN STUB
2750 *
2751 * Author : Patrick Haller [Wed, 1998/06/16 11:55]
2752 *****************************************************************************/
2753HWND WIN32API GetShellWindow(void)
2754{
2755 dprintf(("USER32: GetShellWindow() not implemented.\n"));
2756
2757 return (0); /* default */
2758}
2759/***********************************************************************
2760 * RegisterTasklist32 [USER32.436]
2761 */
2762DWORD WIN32API RegisterTasklist (DWORD x)
2763{
2764 dprintf(("USER32: RegisterTasklist(%08xh) not implemented.\n",
2765 x));
2766
2767 return TRUE;
2768}
2769/***********************************************************************
2770 * SetLogonNotifyWindow (USER32.486)
2771 */
2772DWORD WIN32API SetLogonNotifyWindow(HWINSTA hwinsta,HWND hwnd)
2773{
2774 dprintf(("USER32: SetLogonNotifyWindow - empty stub!"));
2775
2776 return 1;
2777}
2778
Note: See TracBrowser for help on using the repository browser.