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