| 1 | /* $Id: user32.cpp,v 1.116 2001-10-09 05:18:02 phaller 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 | * Partly based on Wine code (windows\sysparams.c: SystemParametersInfoA)
|
|---|
| 13 | *
|
|---|
| 14 | * Copyright 1994 Alexandre Julliard
|
|---|
| 15 | *
|
|---|
| 16 | *
|
|---|
| 17 | * Project Odin Software License can be found in LICENSE.TXT
|
|---|
| 18 | *
|
|---|
| 19 | */
|
|---|
| 20 | /*****************************************************************************
|
|---|
| 21 | * Name : USER32.CPP
|
|---|
| 22 | * Purpose : This module maps all Win32 functions contained in USER32.DLL
|
|---|
| 23 | * to their OS/2-specific counterparts as far as possible.
|
|---|
| 24 | *****************************************************************************/
|
|---|
| 25 |
|
|---|
| 26 | //Attention: many functions belong to other subsystems, move them to their
|
|---|
| 27 | // right place!
|
|---|
| 28 |
|
|---|
| 29 | #include <odin.h>
|
|---|
| 30 | #include <odinwrap.h>
|
|---|
| 31 | #include <os2sel.h>
|
|---|
| 32 |
|
|---|
| 33 | #include <os2win.h>
|
|---|
| 34 | #include <misc.h>
|
|---|
| 35 | #include <winuser32.h>
|
|---|
| 36 |
|
|---|
| 37 | #include "user32.h"
|
|---|
| 38 | #include <winicon.h>
|
|---|
| 39 | #include "syscolor.h"
|
|---|
| 40 | #include "pmwindow.h"
|
|---|
| 41 | #include "oslibgdi.h"
|
|---|
| 42 | #include "oslibwin.h"
|
|---|
| 43 | #include "oslibprf.h"
|
|---|
| 44 |
|
|---|
| 45 | #include <wchar.h>
|
|---|
| 46 | #include <stdlib.h>
|
|---|
| 47 | #include <string.h>
|
|---|
| 48 | //#include <oslibwin.h>
|
|---|
| 49 | #include <win32wnd.h>
|
|---|
| 50 | #include <winuser.h>
|
|---|
| 51 | #include "initterm.h"
|
|---|
| 52 |
|
|---|
| 53 | #define DBG_LOCALLOG DBG_user32
|
|---|
| 54 | #include "dbglocal.h"
|
|---|
| 55 |
|
|---|
| 56 | //undocumented stuff
|
|---|
| 57 | // WIN32API ClientThreadConnect
|
|---|
| 58 | // WIN32API DragObject
|
|---|
| 59 | // WIN32API DrawFrame
|
|---|
| 60 | // WIN32API EditWndProc
|
|---|
| 61 | // WIN32API EndTask
|
|---|
| 62 | // WIN32API GetInputDesktop
|
|---|
| 63 | // WIN32API GetNextQueueWindow
|
|---|
| 64 | // WIN32API GetShellWindow
|
|---|
| 65 | // WIN32API InitSharedTable
|
|---|
| 66 | // WIN32API InitTask
|
|---|
| 67 | // WIN32API IsHungThread
|
|---|
| 68 | // WIN32API LockWindowStation
|
|---|
| 69 | // WIN32API ModifyAccess
|
|---|
| 70 | // WIN32API PlaySoundEvent
|
|---|
| 71 | // WIN32API RegisterLogonProcess
|
|---|
| 72 | // WIN32API RegisterNetworkCapabilities
|
|---|
| 73 | // WIN32API RegisterSystemThread
|
|---|
| 74 | // WIN32API SetDeskWallpaper
|
|---|
| 75 | // WIN32API SetDesktopBitmap
|
|---|
| 76 | // WIN32API SetInternalWindowPos
|
|---|
| 77 | // WIN32API SetLogonNotifyWindow
|
|---|
| 78 | // WIN32API SetShellWindow
|
|---|
| 79 | // WIN32API SetSysColorsTemp
|
|---|
| 80 | // WIN32API SetWindowFullScreenState
|
|---|
| 81 | // WIN32API SwitchToThisWindow
|
|---|
| 82 | // WIN32API SysErrorBox
|
|---|
| 83 | // WIN32API UnlockWindowStation
|
|---|
| 84 | // WIN32API UserClientDllInitialize
|
|---|
| 85 | // WIN32API UserSignalProc
|
|---|
| 86 | // WIN32API WinOldAppHackoMatic
|
|---|
| 87 | // WIN32API WNDPROC_CALLBACK
|
|---|
| 88 | // WIN32API YieldTask
|
|---|
| 89 |
|
|---|
| 90 | ODINDEBUGCHANNEL(USER32-USER32)
|
|---|
| 91 |
|
|---|
| 92 |
|
|---|
| 93 | /* Coordinate Transformation */
|
|---|
| 94 |
|
|---|
| 95 | /* Rectangle Functions - parts from wine/windows/rect.c */
|
|---|
| 96 |
|
|---|
| 97 | BOOL WIN32API CopyRect( PRECT lprcDst, const RECT * lprcSrc)
|
|---|
| 98 | {
|
|---|
| 99 | dprintf2(("USER32: CopyRect\n"));
|
|---|
| 100 | if (!lprcDst || !lprcSrc) {
|
|---|
| 101 | SetLastError(ERROR_INVALID_PARAMETER);
|
|---|
| 102 | return FALSE;
|
|---|
| 103 | }
|
|---|
| 104 |
|
|---|
| 105 | memcpy(lprcDst,lprcSrc,sizeof(RECT));
|
|---|
| 106 |
|
|---|
| 107 | return TRUE;
|
|---|
| 108 | }
|
|---|
| 109 | //******************************************************************************
|
|---|
| 110 | //******************************************************************************
|
|---|
| 111 | BOOL WIN32API EqualRect( const RECT *lprc1, const RECT *lprc2)
|
|---|
| 112 | {
|
|---|
| 113 | dprintf2(("USER32: EqualRect\n"));
|
|---|
| 114 | if (!lprc1 || !lprc2)
|
|---|
| 115 | {
|
|---|
| 116 | SetLastError(ERROR_INVALID_PARAMETER);
|
|---|
| 117 | return FALSE;
|
|---|
| 118 | }
|
|---|
| 119 |
|
|---|
| 120 | return (lprc1->left == lprc2->left &&
|
|---|
| 121 | lprc1->right == lprc2->right &&
|
|---|
| 122 | lprc1->top == lprc2->top &&
|
|---|
| 123 | lprc1->bottom == lprc2->bottom);
|
|---|
| 124 | }
|
|---|
| 125 | //******************************************************************************
|
|---|
| 126 | //******************************************************************************
|
|---|
| 127 | BOOL WIN32API InflateRect( PRECT lprc, int dx, int dy)
|
|---|
| 128 | {
|
|---|
| 129 | dprintf2(("USER32: InflateRect (%d,%d)(%d,%d) %d,%d", lprc->left, lprc->top, lprc->right, lprc->bottom, dx, dy));
|
|---|
| 130 | if (!lprc)
|
|---|
| 131 | {
|
|---|
| 132 | SetLastError(ERROR_INVALID_PARAMETER);
|
|---|
| 133 | return FALSE;
|
|---|
| 134 | }
|
|---|
| 135 |
|
|---|
| 136 | lprc->left -= dx;
|
|---|
| 137 | lprc->right += dx;
|
|---|
| 138 | lprc->top -= dy;
|
|---|
| 139 | lprc->bottom += dy;
|
|---|
| 140 |
|
|---|
| 141 | return TRUE;
|
|---|
| 142 | }
|
|---|
| 143 | //******************************************************************************
|
|---|
| 144 | //******************************************************************************
|
|---|
| 145 | BOOL WIN32API IntersectRect( PRECT lprcDst, const RECT * lprcSrc1, const RECT * lprcSrc2)
|
|---|
| 146 | {
|
|---|
| 147 | dprintf2(("USER32: IntersectRect (%d,%d)(%d,%d) (%d,%d)(%d,%d)", lprcSrc1->left, lprcSrc1->top, lprcSrc1->right, lprcSrc1->bottom, lprcSrc2->left, lprcSrc2->top, lprcSrc2->right, lprcSrc2->bottom));
|
|---|
| 148 | if (!lprcSrc1 || !lprcSrc2)
|
|---|
| 149 | {
|
|---|
| 150 | SetLastError(ERROR_INVALID_PARAMETER);
|
|---|
| 151 | return FALSE;
|
|---|
| 152 | }
|
|---|
| 153 |
|
|---|
| 154 | if (IsRectEmpty(lprcSrc1) || IsRectEmpty(lprcSrc2) ||
|
|---|
| 155 | (lprcSrc1->left >= lprcSrc2->right) || (lprcSrc2->left >= lprcSrc1->right) ||
|
|---|
| 156 | (lprcSrc1->top >= lprcSrc2->bottom) || (lprcSrc2->top >= lprcSrc1->bottom))
|
|---|
| 157 | {
|
|---|
| 158 | //SvL: NT doesn't set the last error here
|
|---|
| 159 | //SetLastError(ERROR_INVALID_PARAMETER);
|
|---|
| 160 | if (lprcDst) SetRectEmpty(lprcDst);
|
|---|
| 161 | return FALSE;
|
|---|
| 162 | }
|
|---|
| 163 | if (lprcDst)
|
|---|
| 164 | {
|
|---|
| 165 | lprcDst->left = MAX(lprcSrc1->left,lprcSrc2->left);
|
|---|
| 166 | lprcDst->right = MIN(lprcSrc1->right,lprcSrc2->right);
|
|---|
| 167 | lprcDst->top = MAX(lprcSrc1->top,lprcSrc2->top);
|
|---|
| 168 | lprcDst->bottom = MIN(lprcSrc1->bottom,lprcSrc2->bottom);
|
|---|
| 169 | }
|
|---|
| 170 |
|
|---|
| 171 | return TRUE;
|
|---|
| 172 | }
|
|---|
| 173 | //******************************************************************************
|
|---|
| 174 | //******************************************************************************
|
|---|
| 175 | BOOL WIN32API IsRectEmpty( const RECT * lprc)
|
|---|
| 176 | {
|
|---|
| 177 | if (!lprc)
|
|---|
| 178 | {
|
|---|
| 179 | SetLastError(ERROR_INVALID_PARAMETER);
|
|---|
| 180 | return FALSE;
|
|---|
| 181 | }
|
|---|
| 182 |
|
|---|
| 183 | return (lprc->left == lprc->right || lprc->top == lprc->bottom);
|
|---|
| 184 | }
|
|---|
| 185 | //******************************************************************************
|
|---|
| 186 | //******************************************************************************
|
|---|
| 187 | BOOL WIN32API OffsetRect( PRECT lprc, int x, int y)
|
|---|
| 188 | {
|
|---|
| 189 | dprintf2(("USER32: OffsetRect (%d,%d)(%d,%d) %d %d", lprc->left, lprc->top, lprc->right, lprc->bottom, x, y));
|
|---|
| 190 | if (!lprc)
|
|---|
| 191 | {
|
|---|
| 192 | SetLastError(ERROR_INVALID_PARAMETER);
|
|---|
| 193 | return FALSE;
|
|---|
| 194 | }
|
|---|
| 195 |
|
|---|
| 196 | lprc->left += x;
|
|---|
| 197 | lprc->right += x;
|
|---|
| 198 | lprc->top += y;
|
|---|
| 199 | lprc->bottom += y;
|
|---|
| 200 |
|
|---|
| 201 | return TRUE;
|
|---|
| 202 | }
|
|---|
| 203 | //******************************************************************************
|
|---|
| 204 | //******************************************************************************
|
|---|
| 205 | BOOL WIN32API PtInRect( const RECT *lprc, POINT pt)
|
|---|
| 206 | {
|
|---|
| 207 | dprintf2(("USER32: PtInRect (%d,%d)(%d,%d) (%d,%d)", lprc->left, lprc->top, lprc->right, lprc->bottom, pt.x, pt.y));
|
|---|
| 208 | if (!lprc)
|
|---|
| 209 | {
|
|---|
| 210 | SetLastError(ERROR_INVALID_PARAMETER);
|
|---|
| 211 | return FALSE;
|
|---|
| 212 | }
|
|---|
| 213 |
|
|---|
| 214 | return (pt.x >= lprc->left &&
|
|---|
| 215 | pt.x < lprc->right &&
|
|---|
| 216 | pt.y >= lprc->top &&
|
|---|
| 217 | pt.y < lprc->bottom);
|
|---|
| 218 | }
|
|---|
| 219 | //******************************************************************************
|
|---|
| 220 | //******************************************************************************
|
|---|
| 221 | BOOL WIN32API SetRect( PRECT lprc, int nLeft, int nTop, int nRight, int nBottom)
|
|---|
| 222 | {
|
|---|
| 223 | if (!lprc)
|
|---|
| 224 | {
|
|---|
| 225 | SetLastError(ERROR_INVALID_PARAMETER);
|
|---|
| 226 | return FALSE;
|
|---|
| 227 | }
|
|---|
| 228 |
|
|---|
| 229 | lprc->left = nLeft;
|
|---|
| 230 | lprc->top = nTop;
|
|---|
| 231 | lprc->right = nRight;
|
|---|
| 232 | lprc->bottom = nBottom;
|
|---|
| 233 |
|
|---|
| 234 | return TRUE;
|
|---|
| 235 | }
|
|---|
| 236 | //******************************************************************************
|
|---|
| 237 | //******************************************************************************
|
|---|
| 238 | BOOL WIN32API SetRectEmpty( PRECT lprc)
|
|---|
| 239 | {
|
|---|
| 240 | if (!lprc)
|
|---|
| 241 | {
|
|---|
| 242 | SetLastError(ERROR_INVALID_PARAMETER);
|
|---|
| 243 | return FALSE;
|
|---|
| 244 | }
|
|---|
| 245 |
|
|---|
| 246 | lprc->left = lprc->right = lprc->top = lprc->bottom = 0;
|
|---|
| 247 |
|
|---|
| 248 | return TRUE;
|
|---|
| 249 | }
|
|---|
| 250 | //******************************************************************************
|
|---|
| 251 | //******************************************************************************
|
|---|
| 252 | BOOL WIN32API SubtractRect( PRECT lprcDest, const RECT * lprcSrc1, const RECT * lprcSrc2)
|
|---|
| 253 | {
|
|---|
| 254 | dprintf2(("USER32: SubtractRect"));
|
|---|
| 255 | RECT tmp;
|
|---|
| 256 |
|
|---|
| 257 | if (!lprcDest || !lprcSrc1 || !lprcSrc2)
|
|---|
| 258 | {
|
|---|
| 259 | SetLastError(ERROR_INVALID_PARAMETER);
|
|---|
| 260 | return FALSE;
|
|---|
| 261 | }
|
|---|
| 262 |
|
|---|
| 263 | if (IsRectEmpty(lprcSrc1))
|
|---|
| 264 | {
|
|---|
| 265 | SetLastError(ERROR_INVALID_PARAMETER);
|
|---|
| 266 | SetRectEmpty(lprcDest);
|
|---|
| 267 | return FALSE;
|
|---|
| 268 | }
|
|---|
| 269 | *lprcDest = *lprcSrc1;
|
|---|
| 270 | if (IntersectRect(&tmp,lprcSrc1,lprcSrc2))
|
|---|
| 271 | {
|
|---|
| 272 | if (EqualRect(&tmp,lprcDest))
|
|---|
| 273 | {
|
|---|
| 274 | SetRectEmpty(lprcDest);
|
|---|
| 275 | return FALSE;
|
|---|
| 276 | }
|
|---|
| 277 | if ((tmp.top == lprcDest->top) && (tmp.bottom == lprcDest->bottom))
|
|---|
| 278 | {
|
|---|
| 279 | if (tmp.left == lprcDest->left) lprcDest->left = tmp.right;
|
|---|
| 280 | else if (tmp.right == lprcDest->right) lprcDest->right = tmp.left;
|
|---|
| 281 | }
|
|---|
| 282 | else if ((tmp.left == lprcDest->left) && (tmp.right == lprcDest->right))
|
|---|
| 283 | {
|
|---|
| 284 | if (tmp.top == lprcDest->top) lprcDest->top = tmp.bottom;
|
|---|
| 285 | else if (tmp.bottom == lprcDest->bottom) lprcDest->bottom = tmp.top;
|
|---|
| 286 | }
|
|---|
| 287 | }
|
|---|
| 288 |
|
|---|
| 289 | return TRUE;
|
|---|
| 290 | }
|
|---|
| 291 | //******************************************************************************
|
|---|
| 292 | //******************************************************************************
|
|---|
| 293 | BOOL WIN32API UnionRect( PRECT lprcDst, const RECT *lprcSrc1, const RECT *lprcSrc2)
|
|---|
| 294 | {
|
|---|
| 295 | dprintf2(("USER32: UnionRect\n"));
|
|---|
| 296 | if (!lprcDst || !lprcSrc1 || !lprcSrc2)
|
|---|
| 297 | {
|
|---|
| 298 | SetLastError(ERROR_INVALID_PARAMETER);
|
|---|
| 299 | return FALSE;
|
|---|
| 300 | }
|
|---|
| 301 |
|
|---|
| 302 | if (IsRectEmpty(lprcSrc1))
|
|---|
| 303 | {
|
|---|
| 304 | if (IsRectEmpty(lprcSrc2))
|
|---|
| 305 | {
|
|---|
| 306 | SetLastError(ERROR_INVALID_PARAMETER);
|
|---|
| 307 | SetRectEmpty(lprcDst);
|
|---|
| 308 | return FALSE;
|
|---|
| 309 | }
|
|---|
| 310 | else *lprcDst = *lprcSrc2;
|
|---|
| 311 | }
|
|---|
| 312 | else
|
|---|
| 313 | {
|
|---|
| 314 | if (IsRectEmpty(lprcSrc2)) *lprcDst = *lprcSrc1;
|
|---|
| 315 | else
|
|---|
| 316 | {
|
|---|
| 317 | lprcDst->left = MIN(lprcSrc1->left,lprcSrc2->left);
|
|---|
| 318 | lprcDst->right = MAX(lprcSrc1->right,lprcSrc2->right);
|
|---|
| 319 | lprcDst->top = MIN(lprcSrc1->top,lprcSrc2->top);
|
|---|
| 320 | lprcDst->bottom = MAX(lprcSrc1->bottom,lprcSrc2->bottom);
|
|---|
| 321 | }
|
|---|
| 322 | }
|
|---|
| 323 |
|
|---|
| 324 | return TRUE;
|
|---|
| 325 | }
|
|---|
| 326 |
|
|---|
| 327 | /* Mouse Input Functions */
|
|---|
| 328 |
|
|---|
| 329 | /* Error Functions */
|
|---|
| 330 |
|
|---|
| 331 | /*****************************************************************************
|
|---|
| 332 | * Name : ExitWindowsEx
|
|---|
| 333 | * Purpose : Shutdown System
|
|---|
| 334 | * Parameters: UINT uFlags
|
|---|
| 335 | * DWORD dwReserved
|
|---|
| 336 | * Variables :
|
|---|
| 337 | * Result : TRUE / FALSE
|
|---|
| 338 | * Remark :
|
|---|
| 339 | * Status :
|
|---|
| 340 | *
|
|---|
| 341 | * Author : Patrick Haller [Tue, 1999/10/20 21:24]
|
|---|
| 342 | *****************************************************************************/
|
|---|
| 343 |
|
|---|
| 344 | ODINFUNCTION2(BOOL, ExitWindowsEx, UINT, uFlags,
|
|---|
| 345 | DWORD, dwReserved)
|
|---|
| 346 | {
|
|---|
| 347 | int rc = MessageBoxA(HWND_DESKTOP,
|
|---|
| 348 | "Are you sure you want to shutdown the OS/2 system?",
|
|---|
| 349 | "Shutdown ...",
|
|---|
| 350 | MB_YESNOCANCEL | MB_ICONQUESTION);
|
|---|
| 351 | switch (rc)
|
|---|
| 352 | {
|
|---|
| 353 | case IDCANCEL: return (FALSE);
|
|---|
| 354 | case IDYES: break;
|
|---|
| 355 | case IDNO:
|
|---|
| 356 | dprintf(("no shutdown!\n"));
|
|---|
| 357 | return TRUE;
|
|---|
| 358 | }
|
|---|
| 359 |
|
|---|
| 360 | return O32_ExitWindowsEx(uFlags,dwReserved);
|
|---|
| 361 | }
|
|---|
| 362 |
|
|---|
| 363 |
|
|---|
| 364 | //******************************************************************************
|
|---|
| 365 | //******************************************************************************
|
|---|
| 366 | BOOL WIN32API MessageBeep( UINT uType)
|
|---|
| 367 | {
|
|---|
| 368 | INT flStyle;
|
|---|
| 369 |
|
|---|
| 370 | dprintf(("USER32: MessageBeep\n"));
|
|---|
| 371 |
|
|---|
| 372 | switch (uType)
|
|---|
| 373 | {
|
|---|
| 374 | case 0xFFFFFFFF:
|
|---|
| 375 | Beep(500,50);
|
|---|
| 376 | return TRUE;
|
|---|
| 377 | case MB_ICONASTERISK:
|
|---|
| 378 | flStyle = WAOS_NOTE;
|
|---|
| 379 | break;
|
|---|
| 380 | case MB_ICONEXCLAMATION:
|
|---|
| 381 | flStyle = WAOS_WARNING;
|
|---|
| 382 | break;
|
|---|
| 383 | case MB_ICONHAND:
|
|---|
| 384 | case MB_ICONQUESTION:
|
|---|
| 385 | case MB_OK:
|
|---|
| 386 | flStyle = WAOS_NOTE;
|
|---|
| 387 | break;
|
|---|
| 388 | default:
|
|---|
| 389 | flStyle = WAOS_ERROR; //CB: should be right
|
|---|
| 390 | break;
|
|---|
| 391 | }
|
|---|
| 392 | return OSLibWinAlarm(OSLIB_HWND_DESKTOP,flStyle);
|
|---|
| 393 | }
|
|---|
| 394 | //******************************************************************************
|
|---|
| 395 | //2nd parameter not used according to SDK (yet?)
|
|---|
| 396 | //******************************************************************************
|
|---|
| 397 | VOID WIN32API SetLastErrorEx(DWORD dwErrCode, DWORD dwType)
|
|---|
| 398 | {
|
|---|
| 399 | dprintf(("USER32: SetLastErrorEx %x %x", dwErrCode, dwType));
|
|---|
| 400 | SetLastError(dwErrCode);
|
|---|
| 401 | }
|
|---|
| 402 |
|
|---|
| 403 | /* Accessibility Functions */
|
|---|
| 404 |
|
|---|
| 405 | int WIN32API GetSystemMetrics(int nIndex)
|
|---|
| 406 | {
|
|---|
| 407 | int rc = 0;
|
|---|
| 408 |
|
|---|
| 409 | switch(nIndex) {
|
|---|
| 410 | case SM_CXSCREEN:
|
|---|
| 411 | rc = ScreenWidth;
|
|---|
| 412 | break;
|
|---|
| 413 |
|
|---|
| 414 | case SM_CYSCREEN:
|
|---|
| 415 | rc = ScreenHeight;
|
|---|
| 416 | break;
|
|---|
| 417 |
|
|---|
| 418 | case SM_CXVSCROLL:
|
|---|
| 419 | rc = OSLibWinQuerySysValue(SVOS_CXVSCROLL);
|
|---|
| 420 | break;
|
|---|
| 421 |
|
|---|
| 422 | case SM_CYHSCROLL:
|
|---|
| 423 | rc = OSLibWinQuerySysValue(SVOS_CYHSCROLL);
|
|---|
| 424 | break;
|
|---|
| 425 |
|
|---|
| 426 | case SM_CYCAPTION:
|
|---|
| 427 | if(fOS2Look) {
|
|---|
| 428 | rc = OSLibWinQuerySysValue(SVOS_CYTITLEBAR);
|
|---|
| 429 | }
|
|---|
| 430 | else rc = 19;
|
|---|
| 431 | break;
|
|---|
| 432 |
|
|---|
| 433 | case SM_CXBORDER:
|
|---|
| 434 | case SM_CYBORDER:
|
|---|
| 435 | rc = 1;
|
|---|
| 436 | break;
|
|---|
| 437 |
|
|---|
| 438 | case SM_CXDLGFRAME:
|
|---|
| 439 | case SM_CYDLGFRAME:
|
|---|
| 440 | rc = 3;
|
|---|
| 441 | break;
|
|---|
| 442 |
|
|---|
| 443 | case SM_CYMENU:
|
|---|
| 444 | case SM_CXMENUSIZE:
|
|---|
| 445 | case SM_CYMENUSIZE:
|
|---|
| 446 | if(fOS2Look) {
|
|---|
| 447 | rc = OSLibWinQuerySysValue(SVOS_CYMENU);
|
|---|
| 448 | }
|
|---|
| 449 | else rc = 19;
|
|---|
| 450 | break;
|
|---|
| 451 |
|
|---|
| 452 | case SM_CXSIZE:
|
|---|
| 453 | case SM_CYSIZE:
|
|---|
| 454 | rc = GetSystemMetrics(SM_CYCAPTION)-2;
|
|---|
| 455 | break;
|
|---|
| 456 |
|
|---|
| 457 | case SM_CXFRAME:
|
|---|
| 458 | case SM_CYFRAME:
|
|---|
| 459 | rc = 4;
|
|---|
| 460 | break;
|
|---|
| 461 |
|
|---|
| 462 | case SM_CXEDGE:
|
|---|
| 463 | case SM_CYEDGE:
|
|---|
| 464 | rc = 2;
|
|---|
| 465 | break;
|
|---|
| 466 |
|
|---|
| 467 | case SM_CXMINSPACING:
|
|---|
| 468 | rc = 160;
|
|---|
| 469 | break;
|
|---|
| 470 |
|
|---|
| 471 | case SM_CYMINSPACING:
|
|---|
| 472 | rc = 24;
|
|---|
| 473 | break;
|
|---|
| 474 |
|
|---|
| 475 | case SM_CXSMICON:
|
|---|
| 476 | case SM_CYSMICON:
|
|---|
| 477 | rc = 16;
|
|---|
| 478 | break;
|
|---|
| 479 |
|
|---|
| 480 | case SM_CYSMCAPTION:
|
|---|
| 481 | rc = 16;
|
|---|
| 482 | break;
|
|---|
| 483 |
|
|---|
| 484 | case SM_CXSMSIZE:
|
|---|
| 485 | case SM_CYSMSIZE:
|
|---|
| 486 | rc = 15;
|
|---|
| 487 | break;
|
|---|
| 488 |
|
|---|
| 489 | //CB: todo: add missing metrics
|
|---|
| 490 |
|
|---|
| 491 | case SM_CXICONSPACING: //TODO: size of grid cell for large icons
|
|---|
| 492 | rc = OSLibWinQuerySysValue(SVOS_CXICON);
|
|---|
| 493 | //CB: return standard windows icon size?
|
|---|
| 494 | //rc = 32;
|
|---|
| 495 | break;
|
|---|
| 496 | case SM_CYICONSPACING:
|
|---|
| 497 | rc = OSLibWinQuerySysValue(SVOS_CYICON);
|
|---|
| 498 | //read SM_CXICONSPACING comment
|
|---|
| 499 | //rc = 32;
|
|---|
| 500 | break;
|
|---|
| 501 | case SM_PENWINDOWS:
|
|---|
| 502 | rc = FALSE;
|
|---|
| 503 | break;
|
|---|
| 504 | case SM_DBCSENABLED:
|
|---|
| 505 | rc = FALSE;
|
|---|
| 506 | break;
|
|---|
| 507 | case SM_CXICON:
|
|---|
| 508 | case SM_CYICON:
|
|---|
| 509 | rc = 32; //CB: Win32: only 32x32, OS/2 32x32/40x40
|
|---|
| 510 | // we must implement 32x32 for all screen resolutions
|
|---|
| 511 | break;
|
|---|
| 512 | case SM_ARRANGE:
|
|---|
| 513 | rc = ARW_BOTTOMLEFT | ARW_LEFT;
|
|---|
| 514 | break;
|
|---|
| 515 | case SM_CXMINIMIZED:
|
|---|
| 516 | break;
|
|---|
| 517 | case SM_CYMINIMIZED:
|
|---|
| 518 | break;
|
|---|
| 519 |
|
|---|
| 520 | case SM_CXMINTRACK:
|
|---|
| 521 | case SM_CXMIN:
|
|---|
| 522 | rc = 112;
|
|---|
| 523 | break;
|
|---|
| 524 |
|
|---|
| 525 | case SM_CYMINTRACK:
|
|---|
| 526 | case SM_CYMIN:
|
|---|
| 527 | rc = 27;
|
|---|
| 528 | break;
|
|---|
| 529 |
|
|---|
| 530 | case SM_CXMAXTRACK: //max window size
|
|---|
| 531 | case SM_CXMAXIMIZED: //max toplevel window size
|
|---|
| 532 | rc = OSLibWinQuerySysValue(SVOS_CXSCREEN);
|
|---|
| 533 | break;
|
|---|
| 534 |
|
|---|
| 535 | case SM_CYMAXTRACK:
|
|---|
| 536 | case SM_CYMAXIMIZED:
|
|---|
| 537 | rc = OSLibWinQuerySysValue(SVOS_CYSCREEN);
|
|---|
| 538 | break;
|
|---|
| 539 |
|
|---|
| 540 | case SM_NETWORK:
|
|---|
| 541 | rc = 0x01; //TODO: default = yes
|
|---|
| 542 | break;
|
|---|
| 543 | case SM_CLEANBOOT:
|
|---|
| 544 | rc = 0; //normal boot
|
|---|
| 545 | break;
|
|---|
| 546 | case SM_CXDRAG: //nr of pixels before drag becomes a real one
|
|---|
| 547 | rc = 2;
|
|---|
| 548 | break;
|
|---|
| 549 | case SM_CYDRAG:
|
|---|
| 550 | rc = 2;
|
|---|
| 551 | break;
|
|---|
| 552 | case SM_SHOWSOUNDS: //show instead of play sound
|
|---|
| 553 | rc = FALSE;
|
|---|
| 554 | break;
|
|---|
| 555 | case SM_CXMENUCHECK:
|
|---|
| 556 | rc = 4; //TODO
|
|---|
| 557 | break;
|
|---|
| 558 | case SM_CYMENUCHECK:
|
|---|
| 559 | rc = OSLibWinQuerySysValue(SVOS_CYMENU);
|
|---|
| 560 | break;
|
|---|
| 561 | case SM_SLOWMACHINE:
|
|---|
| 562 | rc = FALSE; //even a slow machine is fast with OS/2 :)
|
|---|
| 563 | break;
|
|---|
| 564 | case SM_MIDEASTENABLED:
|
|---|
| 565 | rc = FALSE;
|
|---|
| 566 | break;
|
|---|
| 567 | case SM_MOUSEWHEELPRESENT:
|
|---|
| 568 | rc = FALSE;
|
|---|
| 569 | break;
|
|---|
| 570 | case SM_XVIRTUALSCREEN:
|
|---|
| 571 | rc = 0;
|
|---|
| 572 | break;
|
|---|
| 573 | case SM_YVIRTUALSCREEN:
|
|---|
| 574 | rc = 0;
|
|---|
| 575 | break;
|
|---|
| 576 |
|
|---|
| 577 | case SM_CXVIRTUALSCREEN:
|
|---|
| 578 | rc = OSLibWinQuerySysValue(SVOS_CXSCREEN);
|
|---|
| 579 | break;
|
|---|
| 580 | case SM_CYVIRTUALSCREEN:
|
|---|
| 581 | rc = OSLibWinQuerySysValue(SVOS_CYSCREEN);
|
|---|
| 582 | break;
|
|---|
| 583 | case SM_CMONITORS:
|
|---|
| 584 | rc = 1;
|
|---|
| 585 | break;
|
|---|
| 586 | case SM_SAMEDISPLAYFORMAT:
|
|---|
| 587 | rc = TRUE;
|
|---|
| 588 | break;
|
|---|
| 589 | case SM_CMETRICS:
|
|---|
| 590 | rc = 81;
|
|---|
| 591 | //rc = O32_GetSystemMetrics(44); //Open32 changed this one
|
|---|
| 592 | break;
|
|---|
| 593 | default:
|
|---|
| 594 | //better than nothing
|
|---|
| 595 | rc = O32_GetSystemMetrics(nIndex);
|
|---|
| 596 | break;
|
|---|
| 597 | }
|
|---|
| 598 | dprintf2(("USER32: GetSystemMetrics %d returned %d\n", nIndex, rc));
|
|---|
| 599 | return(rc);
|
|---|
| 600 | }
|
|---|
| 601 | //******************************************************************************
|
|---|
| 602 | /* Not support by Open32 (not included are the new win9x parameters):
|
|---|
| 603 | case SPI_GETFASTTASKSWITCH:
|
|---|
| 604 | case SPI_GETGRIDGRANULARITY:
|
|---|
| 605 | case SPI_GETICONTITLELOGFONT:
|
|---|
| 606 | case SPI_GETICONTITLEWRAP:
|
|---|
| 607 | case SPI_GETMENUDROPALIGNMENT:
|
|---|
| 608 | case SPI_ICONHORIZONTALSPACING:
|
|---|
| 609 | case SPI_ICONVERTICALSPACING:
|
|---|
| 610 | case SPI_LANGDRIVER:
|
|---|
| 611 | case SPI_SETFASTTASKSWITCH:
|
|---|
| 612 | case SPI_SETGRIDGRANULARITY:
|
|---|
| 613 | case SPI_SETICONTITLELOGFONT:
|
|---|
| 614 | case SPI_SETICONTITLEWRAP:
|
|---|
| 615 | case SPI_SETMENUDROPALIGNMENT:
|
|---|
| 616 | case SPI_GETSCREENSAVEACTIVE:
|
|---|
| 617 | case SPI_GETSCREENSAVETIMEOUT:
|
|---|
| 618 | case SPI_SETDESKPATTERN:
|
|---|
| 619 | case SPI_SETDESKWALLPAPER:
|
|---|
| 620 | case SPI_SETSCREENSAVEACTIVE:
|
|---|
| 621 | case SPI_SETSCREENSAVETIMEOUT:
|
|---|
| 622 | */
|
|---|
| 623 | //******************************************************************************
|
|---|
| 624 | BOOL WIN32API SystemParametersInfoA(UINT uiAction, UINT uiParam, PVOID pvParam, UINT fWinIni)
|
|---|
| 625 | {
|
|---|
| 626 | BOOL rc = TRUE;
|
|---|
| 627 |
|
|---|
| 628 | dprintf(("USER32: SystemParametersInfoA uiAction: %d, uiParam: %d, pvParam: %d, fWinIni: %d\n",
|
|---|
| 629 | uiAction, uiParam, pvParam, fWinIni));
|
|---|
| 630 |
|
|---|
| 631 | switch(uiAction) {
|
|---|
| 632 |
|
|---|
| 633 | case SPI_GETBEEP:
|
|---|
| 634 | *(ULONG*)pvParam = OSLibWinQuerySysValue(SVOS_ALARM);
|
|---|
| 635 | break;
|
|---|
| 636 |
|
|---|
| 637 | case SPI_GETKEYBOARDDELAY:
|
|---|
| 638 | *(PULONG)pvParam = OSLibPrfQueryProfileInt(OSLIB_HINI_USER, "PM_ControlPanel",
|
|---|
| 639 | "KeyRepeatDelay", 90);
|
|---|
| 640 | break;
|
|---|
| 641 |
|
|---|
| 642 | case SPI_GETKEYBOARDSPEED:
|
|---|
| 643 | *(PULONG)pvParam = OSLibPrfQueryProfileInt(OSLIB_HINI_USER, "PM_ControlPanel",
|
|---|
| 644 | "KeyRepeatRate", 19);
|
|---|
| 645 | break;
|
|---|
| 646 |
|
|---|
| 647 | #if 0
|
|---|
| 648 | // TODO: Make OSLib a seperate DLL and use it everywhere?
|
|---|
| 649 | case SPI_GETMOUSE:
|
|---|
| 650 | {
|
|---|
| 651 | ULONG retCode;
|
|---|
| 652 | retCode = OSLibDosOpen(
|
|---|
| 653 | break;
|
|---|
| 654 | }
|
|---|
| 655 | #endif
|
|---|
| 656 |
|
|---|
| 657 | case SPI_SETBEEP:
|
|---|
| 658 | // we don't do anything here. Win32 apps shouldn't change OS/2 settings
|
|---|
| 659 | dprintf(("USER32: SPI_SETBEEP is ignored!\n"));
|
|---|
| 660 | break;
|
|---|
| 661 |
|
|---|
| 662 | case SPI_SETBORDER:
|
|---|
| 663 | // TODO make this for Win32 apps only, Open32 changes OS/2 settings!
|
|---|
| 664 | dprintf(("USER32: SPI_SETBORDER is ignored, implement!\n"));
|
|---|
| 665 | break;
|
|---|
| 666 |
|
|---|
| 667 | case SPI_SETDOUBLECLKHEIGHT:
|
|---|
| 668 | // TODO make this for Win32 apps only, Open32 changes OS/2 settings!
|
|---|
| 669 | dprintf(("USER32: SPI_SETDOUBLECLICKHEIGHT is ignored, implement!\n"));
|
|---|
| 670 | break;
|
|---|
| 671 |
|
|---|
| 672 | case SPI_SETDOUBLECLKWIDTH:
|
|---|
| 673 | // TODO make this for Win32 apps only, Open32 changes OS/2 settings!
|
|---|
| 674 | dprintf(("USER32: SPI_SETDOUBLECLICKWIDTH is ignored, implement!\n"));
|
|---|
| 675 | break;
|
|---|
| 676 |
|
|---|
| 677 | case SPI_SETDOUBLECLICKTIME:
|
|---|
| 678 | // TODO make this for Win32 apps only, Open32 changes OS/2 settings!
|
|---|
| 679 | dprintf(("USER32: SPI_SETDOUBLECLICKTIME is ignored, implement!\n"));
|
|---|
| 680 | break;
|
|---|
| 681 |
|
|---|
| 682 | case SPI_SETKEYBOARDDELAY:
|
|---|
| 683 | // TODO make this for Win32 apps only, Open32 changes OS/2 settings!
|
|---|
| 684 | dprintf(("USER32: SPI_SETKEYBOARDDELAY is ignored, implement!\n"));
|
|---|
| 685 | break;
|
|---|
| 686 |
|
|---|
| 687 | case SPI_SETKEYBOARDSPEED:
|
|---|
| 688 | // TODO make this for Win32 apps only, Open32 changes OS/2 settings!
|
|---|
| 689 | dprintf(("USER32: SPI_SETKEYBOARDSPEED is ignored, implement!\n"));
|
|---|
| 690 | break;
|
|---|
| 691 |
|
|---|
| 692 | case SPI_SETMOUSE:
|
|---|
| 693 | // TODO make this for Win32 apps only, Open32 changes OS/2 settings!
|
|---|
| 694 | dprintf(("USER32: SPI_SETMOUSE is ignored, implement!\n"));
|
|---|
| 695 | break;
|
|---|
| 696 |
|
|---|
| 697 | case SPI_SETMOUSEBUTTONSWAP:
|
|---|
| 698 | // TODO make this for Win32 apps only, Open32 changes OS/2 settings!
|
|---|
| 699 | dprintf(("USER32: SPI_SETMOUSEBUTTONSWAP is ignored, implement!\n"));
|
|---|
| 700 | break;
|
|---|
| 701 |
|
|---|
| 702 | case SPI_SCREENSAVERRUNNING:
|
|---|
| 703 | *(BOOL *)pvParam = FALSE;
|
|---|
| 704 | break;
|
|---|
| 705 |
|
|---|
| 706 | case SPI_GETDRAGFULLWINDOWS:
|
|---|
| 707 | *(BOOL *)pvParam = OSLibWinQuerySysValue(SVOS_DYNAMICDRAG);
|
|---|
| 708 | break;
|
|---|
| 709 |
|
|---|
| 710 | case SPI_GETNONCLIENTMETRICS:
|
|---|
| 711 | {
|
|---|
| 712 | LPNONCLIENTMETRICSA lpnm = (LPNONCLIENTMETRICSA)pvParam;
|
|---|
| 713 |
|
|---|
| 714 | if (lpnm->cbSize == sizeof(NONCLIENTMETRICSA))
|
|---|
| 715 | {
|
|---|
| 716 | memset(lpnm, 0, sizeof(NONCLIENTMETRICSA));
|
|---|
| 717 | lpnm->cbSize = sizeof(NONCLIENTMETRICSA);
|
|---|
| 718 |
|
|---|
| 719 | SystemParametersInfoA(SPI_GETICONTITLELOGFONT, 0, (LPVOID)&(lpnm->lfCaptionFont),0);
|
|---|
| 720 | lpnm->lfCaptionFont.lfWeight = FW_BOLD;
|
|---|
| 721 | lpnm->iCaptionWidth = 32; //TODO
|
|---|
| 722 | lpnm->iCaptionHeight = 32; //TODO
|
|---|
| 723 |
|
|---|
| 724 | SystemParametersInfoA(SPI_GETICONTITLELOGFONT, 0, (LPVOID)&(lpnm->lfSmCaptionFont),0);
|
|---|
| 725 | lpnm->iSmCaptionWidth = GetSystemMetrics(SM_CXSMSIZE);
|
|---|
| 726 | lpnm->iSmCaptionHeight = GetSystemMetrics(SM_CYSMSIZE);
|
|---|
| 727 |
|
|---|
| 728 | LPLOGFONTA lpLogFont = &(lpnm->lfMenuFont);
|
|---|
| 729 | if(fOS2Look) {
|
|---|
| 730 | char fontname[128];
|
|---|
| 731 | char *pszFontName;
|
|---|
| 732 | BOOL fFound = TRUE;
|
|---|
| 733 |
|
|---|
| 734 | if(OSLibPrfQueryProfileString(OSLIB_HINI_USER, "PM_SystemFonts", "Menus", "", fontname, sizeof(fontname)) == 1) {
|
|---|
| 735 | if(OSLibPrfQueryProfileString(OSLIB_HINI_USER, "PM_SystemFonts", "DefaultFont", "", fontname, sizeof(fontname)) == 1) {
|
|---|
| 736 | fFound = FALSE;
|
|---|
| 737 | }
|
|---|
| 738 | }
|
|---|
| 739 | if(fFound) {
|
|---|
| 740 | pszFontName = fontname;
|
|---|
| 741 | while(*pszFontName != '.' && *pszFontName != 0) pszFontName++;
|
|---|
| 742 | if(*pszFontName) {
|
|---|
| 743 | *pszFontName++ = 0;
|
|---|
| 744 |
|
|---|
| 745 | strncpy(lpLogFont->lfFaceName, pszFontName, sizeof(lpLogFont->lfFaceName));
|
|---|
| 746 | lpLogFont->lfFaceName[sizeof(lpLogFont->lfFaceName)-1] = 0;
|
|---|
| 747 | lpLogFont->lfWeight = FW_NORMAL;
|
|---|
| 748 | lpLogFont->lfHeight = 16; //atoi(fontname);
|
|---|
| 749 | }
|
|---|
| 750 | else fFound = FALSE;
|
|---|
| 751 | }
|
|---|
| 752 | if(!fFound) {
|
|---|
| 753 | GetProfileStringA("Desktop", "MenuFont", "WarpSans",
|
|---|
| 754 | lpLogFont->lfFaceName, LF_FACESIZE);
|
|---|
| 755 | lpLogFont->lfWeight = FW_BOLD;
|
|---|
| 756 | lpLogFont->lfHeight = -GetProfileIntA("Desktop","MenuFontSize", 16);
|
|---|
| 757 | }
|
|---|
| 758 | lpLogFont->lfWidth = 0;
|
|---|
| 759 | lpLogFont->lfEscapement = lpLogFont->lfOrientation = 0;
|
|---|
| 760 | }
|
|---|
| 761 | else {
|
|---|
| 762 | GetProfileStringA("Desktop", "MenuFont", "MS Sans Serif",
|
|---|
| 763 | lpLogFont->lfFaceName, LF_FACESIZE);
|
|---|
| 764 | lpLogFont->lfWeight = FW_NORMAL;
|
|---|
| 765 | lpLogFont->lfHeight = -GetProfileIntA("Desktop","MenuFontSize", 13);
|
|---|
| 766 | lpLogFont->lfWidth = 0;
|
|---|
| 767 | lpLogFont->lfEscapement = lpLogFont->lfOrientation = 0;
|
|---|
| 768 | }
|
|---|
| 769 | lpLogFont->lfItalic = FALSE;
|
|---|
| 770 | lpLogFont->lfStrikeOut = FALSE;
|
|---|
| 771 | lpLogFont->lfUnderline = FALSE;
|
|---|
| 772 | lpLogFont->lfCharSet = ANSI_CHARSET;
|
|---|
| 773 | lpLogFont->lfOutPrecision = OUT_DEFAULT_PRECIS;
|
|---|
| 774 | lpLogFont->lfClipPrecision = CLIP_DEFAULT_PRECIS;
|
|---|
| 775 | lpLogFont->lfPitchAndFamily = DEFAULT_PITCH | FF_SWISS;
|
|---|
| 776 |
|
|---|
| 777 | SystemParametersInfoA(SPI_GETICONTITLELOGFONT, 0,
|
|---|
| 778 | (LPVOID)&(lpnm->lfStatusFont),0);
|
|---|
| 779 | SystemParametersInfoA(SPI_GETICONTITLELOGFONT, 0,
|
|---|
| 780 | (LPVOID)&(lpnm->lfMessageFont),0);
|
|---|
| 781 |
|
|---|
| 782 | lpnm->iBorderWidth = GetSystemMetrics(SM_CXBORDER);
|
|---|
| 783 | lpnm->iScrollWidth = GetSystemMetrics(SM_CXHSCROLL);
|
|---|
| 784 | lpnm->iScrollHeight = GetSystemMetrics(SM_CYHSCROLL);
|
|---|
| 785 | lpnm->iMenuHeight = GetSystemMetrics(SM_CYMENU);
|
|---|
| 786 | lpnm->iMenuWidth = lpnm->iMenuHeight; //TODO
|
|---|
| 787 | }
|
|---|
| 788 | else
|
|---|
| 789 | {
|
|---|
| 790 | dprintf(("SPI_GETNONCLIENTMETRICS: size mismatch !! (is %d; should be %d)\n", lpnm->cbSize, sizeof(NONCLIENTMETRICSA)));
|
|---|
| 791 | /* FIXME: SetLastError? */
|
|---|
| 792 | rc = FALSE;
|
|---|
| 793 | }
|
|---|
| 794 | break;
|
|---|
| 795 | }
|
|---|
| 796 |
|
|---|
| 797 | case SPI_GETICONMETRICS: /* 45 WINVER >= 0x400 */
|
|---|
| 798 | {
|
|---|
| 799 | LPICONMETRICSA lpIcon = (LPICONMETRICSA)pvParam;
|
|---|
| 800 | if(lpIcon && lpIcon->cbSize == sizeof(*lpIcon))
|
|---|
| 801 | {
|
|---|
| 802 | SystemParametersInfoA( SPI_ICONHORIZONTALSPACING, 0,
|
|---|
| 803 | &lpIcon->iHorzSpacing, FALSE );
|
|---|
| 804 | SystemParametersInfoA( SPI_ICONVERTICALSPACING, 0,
|
|---|
| 805 | &lpIcon->iVertSpacing, FALSE );
|
|---|
| 806 | SystemParametersInfoA( SPI_GETICONTITLEWRAP, 0,
|
|---|
| 807 | &lpIcon->iTitleWrap, FALSE );
|
|---|
| 808 | SystemParametersInfoA( SPI_GETICONTITLELOGFONT, 0,
|
|---|
| 809 | &lpIcon->lfFont, FALSE );
|
|---|
| 810 | }
|
|---|
| 811 | else
|
|---|
| 812 | {
|
|---|
| 813 | dprintf(("SPI_GETICONMETRICS: size mismatch !! (is %d; should be %d)\n", lpIcon->cbSize, sizeof(ICONMETRICSA)));
|
|---|
| 814 | /* FIXME: SetLastError? */
|
|---|
| 815 | rc = FALSE;
|
|---|
| 816 | }
|
|---|
| 817 | break;
|
|---|
| 818 | }
|
|---|
| 819 |
|
|---|
| 820 | case SPI_GETICONTITLELOGFONT:
|
|---|
| 821 | {
|
|---|
| 822 | LPLOGFONTA lpLogFont = (LPLOGFONTA)pvParam;
|
|---|
| 823 |
|
|---|
| 824 | /* from now on we always have an alias for MS Sans Serif */
|
|---|
| 825 | strcpy(lpLogFont->lfFaceName, "MS Sans Serif");
|
|---|
| 826 | lpLogFont->lfHeight = -GetProfileIntA("Desktop","IconTitleSize", /*8*/12); //CB: 8 is too small
|
|---|
| 827 | lpLogFont->lfWidth = 0;
|
|---|
| 828 | lpLogFont->lfEscapement = lpLogFont->lfOrientation = 0;
|
|---|
| 829 | lpLogFont->lfWeight = FW_NORMAL;
|
|---|
| 830 | lpLogFont->lfItalic = FALSE;
|
|---|
| 831 | lpLogFont->lfStrikeOut = FALSE;
|
|---|
| 832 | lpLogFont->lfUnderline = FALSE;
|
|---|
| 833 | lpLogFont->lfCharSet = ANSI_CHARSET;
|
|---|
| 834 | lpLogFont->lfOutPrecision = OUT_DEFAULT_PRECIS;
|
|---|
| 835 | lpLogFont->lfClipPrecision = CLIP_DEFAULT_PRECIS;
|
|---|
| 836 | lpLogFont->lfPitchAndFamily = DEFAULT_PITCH | FF_SWISS;
|
|---|
| 837 | break;
|
|---|
| 838 | }
|
|---|
| 839 | case SPI_GETBORDER:
|
|---|
| 840 | *(INT *)pvParam = GetSystemMetrics( SM_CXFRAME );
|
|---|
| 841 | break;
|
|---|
| 842 |
|
|---|
| 843 | case SPI_GETWORKAREA:
|
|---|
| 844 | SetRect( (RECT *)pvParam, 0, 0,
|
|---|
| 845 | GetSystemMetrics( SM_CXSCREEN ),
|
|---|
| 846 | GetSystemMetrics( SM_CYSCREEN )
|
|---|
| 847 | );
|
|---|
| 848 | break;
|
|---|
| 849 |
|
|---|
| 850 | case SPI_GETWHEELSCROLLLINES: //TODO: Undocumented
|
|---|
| 851 | rc = 16;
|
|---|
| 852 | break;
|
|---|
| 853 |
|
|---|
| 854 | default:
|
|---|
| 855 | dprintf(("System parameter value is not supported!\n"));
|
|---|
| 856 | rc = FALSE;
|
|---|
| 857 | // AH: no longer call Open32
|
|---|
| 858 | //rc = O32_SystemParametersInfo(uiAction, uiParam, pvParam, fWinIni);
|
|---|
| 859 | break;
|
|---|
| 860 | }
|
|---|
| 861 | dprintf(("USER32: SystemParametersInfoA %d, returned %d\n", uiAction, rc));
|
|---|
| 862 | return(rc);
|
|---|
| 863 | }
|
|---|
| 864 | //******************************************************************************
|
|---|
| 865 | //TODO: Check for more options that have different structs for Unicode!!!!
|
|---|
| 866 | //******************************************************************************
|
|---|
| 867 | BOOL WIN32API SystemParametersInfoW(UINT uiAction, UINT uiParam, PVOID pvParam, UINT fWinIni)
|
|---|
| 868 | {
|
|---|
| 869 | BOOL rc = TRUE;
|
|---|
| 870 | NONCLIENTMETRICSW *clientMetricsW = (NONCLIENTMETRICSW *)pvParam;
|
|---|
| 871 | NONCLIENTMETRICSA clientMetricsA = {0};
|
|---|
| 872 | PVOID pvParamA;
|
|---|
| 873 | UINT uiParamA;
|
|---|
| 874 |
|
|---|
| 875 | switch(uiAction) {
|
|---|
| 876 | case SPI_SETNONCLIENTMETRICS:
|
|---|
| 877 | clientMetricsA.cbSize = sizeof(NONCLIENTMETRICSA);
|
|---|
| 878 | clientMetricsA.iBorderWidth = clientMetricsW->iBorderWidth;
|
|---|
| 879 | clientMetricsA.iScrollWidth = clientMetricsW->iScrollWidth;
|
|---|
| 880 | clientMetricsA.iScrollHeight = clientMetricsW->iScrollHeight;
|
|---|
| 881 | clientMetricsA.iCaptionWidth = clientMetricsW->iCaptionWidth;
|
|---|
| 882 | clientMetricsA.iCaptionHeight = clientMetricsW->iCaptionHeight;
|
|---|
| 883 | ConvertFontWA(&clientMetricsW->lfCaptionFont, &clientMetricsA.lfCaptionFont);
|
|---|
| 884 | clientMetricsA.iSmCaptionWidth = clientMetricsW->iSmCaptionWidth;
|
|---|
| 885 | clientMetricsA.iSmCaptionHeight = clientMetricsW->iSmCaptionHeight;
|
|---|
| 886 | ConvertFontWA(&clientMetricsW->lfSmCaptionFont, &clientMetricsA.lfSmCaptionFont);
|
|---|
| 887 | clientMetricsA.iMenuWidth = clientMetricsW->iMenuWidth;
|
|---|
| 888 | clientMetricsA.iMenuHeight = clientMetricsW->iMenuHeight;
|
|---|
| 889 | ConvertFontWA(&clientMetricsW->lfMenuFont, &clientMetricsA.lfMenuFont);
|
|---|
| 890 | ConvertFontWA(&clientMetricsW->lfStatusFont, &clientMetricsA.lfStatusFont);
|
|---|
| 891 | ConvertFontWA(&clientMetricsW->lfMessageFont, &clientMetricsA.lfMessageFont);
|
|---|
| 892 | //no break
|
|---|
| 893 | case SPI_GETNONCLIENTMETRICS:
|
|---|
| 894 | uiParamA = sizeof(NONCLIENTMETRICSA);
|
|---|
| 895 | pvParamA = &clientMetricsA;
|
|---|
| 896 | break;
|
|---|
| 897 |
|
|---|
| 898 | case SPI_GETICONMETRICS: /* 45 WINVER >= 0x400 */
|
|---|
| 899 | {
|
|---|
| 900 | LPICONMETRICSW lpIcon = (LPICONMETRICSW)pvParam;
|
|---|
| 901 | if(lpIcon && lpIcon->cbSize == sizeof(*lpIcon))
|
|---|
| 902 | {
|
|---|
| 903 | SystemParametersInfoW( SPI_ICONHORIZONTALSPACING, 0,
|
|---|
| 904 | &lpIcon->iHorzSpacing, FALSE );
|
|---|
| 905 | SystemParametersInfoW( SPI_ICONVERTICALSPACING, 0,
|
|---|
| 906 | &lpIcon->iVertSpacing, FALSE );
|
|---|
| 907 | SystemParametersInfoW( SPI_GETICONTITLEWRAP, 0,
|
|---|
| 908 | &lpIcon->iTitleWrap, FALSE );
|
|---|
| 909 | SystemParametersInfoW( SPI_GETICONTITLELOGFONT, 0,
|
|---|
| 910 | &lpIcon->lfFont, FALSE );
|
|---|
| 911 | return TRUE;
|
|---|
| 912 | }
|
|---|
| 913 | else
|
|---|
| 914 | {
|
|---|
| 915 | dprintf(("SPI_GETICONMETRICS: size mismatch !! (is %d; should be %d)\n", lpIcon->cbSize, sizeof(ICONMETRICSA)));
|
|---|
| 916 | /* FIXME: SetLastError? */
|
|---|
| 917 | return FALSE;
|
|---|
| 918 | }
|
|---|
| 919 | }
|
|---|
| 920 |
|
|---|
| 921 | case SPI_GETICONTITLELOGFONT:
|
|---|
| 922 | {
|
|---|
| 923 | LPLOGFONTW lpLogFont = (LPLOGFONTW)pvParam;
|
|---|
| 924 |
|
|---|
| 925 | /* from now on we always have an alias for MS Sans Serif */
|
|---|
| 926 | lstrcpyW(lpLogFont->lfFaceName, (LPCWSTR)L"MS Sans Serif");
|
|---|
| 927 | lpLogFont->lfHeight = -GetProfileIntA("Desktop","IconTitleSize", /*8*/12); //CB: 8 is too small
|
|---|
| 928 | lpLogFont->lfWidth = 0;
|
|---|
| 929 | lpLogFont->lfEscapement = lpLogFont->lfOrientation = 0;
|
|---|
| 930 | lpLogFont->lfWeight = FW_NORMAL;
|
|---|
| 931 | lpLogFont->lfItalic = FALSE;
|
|---|
| 932 | lpLogFont->lfStrikeOut = FALSE;
|
|---|
| 933 | lpLogFont->lfUnderline = FALSE;
|
|---|
| 934 | lpLogFont->lfCharSet = ANSI_CHARSET;
|
|---|
| 935 | lpLogFont->lfOutPrecision = OUT_DEFAULT_PRECIS;
|
|---|
| 936 | lpLogFont->lfClipPrecision = CLIP_DEFAULT_PRECIS;
|
|---|
| 937 | lpLogFont->lfPitchAndFamily = DEFAULT_PITCH | FF_SWISS;
|
|---|
| 938 | return TRUE;
|
|---|
| 939 | }
|
|---|
| 940 | default:
|
|---|
| 941 | pvParamA = pvParam;
|
|---|
| 942 | uiParamA = uiParam;
|
|---|
| 943 | break;
|
|---|
| 944 | }
|
|---|
| 945 | rc = SystemParametersInfoA(uiAction, uiParamA, pvParamA, fWinIni);
|
|---|
| 946 |
|
|---|
| 947 | switch(uiAction) {
|
|---|
| 948 | case SPI_GETNONCLIENTMETRICS:
|
|---|
| 949 | clientMetricsW->cbSize = sizeof(*clientMetricsW);
|
|---|
| 950 | clientMetricsW->iBorderWidth = clientMetricsA.iBorderWidth;
|
|---|
| 951 | clientMetricsW->iScrollWidth = clientMetricsA.iScrollWidth;
|
|---|
| 952 | clientMetricsW->iScrollHeight = clientMetricsA.iScrollHeight;
|
|---|
| 953 | clientMetricsW->iCaptionWidth = clientMetricsA.iCaptionWidth;
|
|---|
| 954 | clientMetricsW->iCaptionHeight = clientMetricsA.iCaptionHeight;
|
|---|
| 955 | ConvertFontAW(&clientMetricsA.lfCaptionFont, &clientMetricsW->lfCaptionFont);
|
|---|
| 956 |
|
|---|
| 957 | clientMetricsW->iSmCaptionWidth = clientMetricsA.iSmCaptionWidth;
|
|---|
| 958 | clientMetricsW->iSmCaptionHeight = clientMetricsA.iSmCaptionHeight;
|
|---|
| 959 | ConvertFontAW(&clientMetricsA.lfSmCaptionFont, &clientMetricsW->lfSmCaptionFont);
|
|---|
| 960 |
|
|---|
| 961 | clientMetricsW->iMenuWidth = clientMetricsA.iMenuWidth;
|
|---|
| 962 | clientMetricsW->iMenuHeight = clientMetricsA.iMenuHeight;
|
|---|
| 963 | ConvertFontAW(&clientMetricsA.lfMenuFont, &clientMetricsW->lfMenuFont);
|
|---|
| 964 | ConvertFontAW(&clientMetricsA.lfStatusFont, &clientMetricsW->lfStatusFont);
|
|---|
| 965 | ConvertFontAW(&clientMetricsA.lfMessageFont, &clientMetricsW->lfMessageFont);
|
|---|
| 966 | break;
|
|---|
| 967 | }
|
|---|
| 968 | dprintf(("USER32: SystemParametersInfoW %d, returned %d\n", uiAction, rc));
|
|---|
| 969 | return(rc);
|
|---|
| 970 | }
|
|---|
| 971 |
|
|---|
| 972 | /* Help Functions */
|
|---|
| 973 |
|
|---|
| 974 | BOOL WIN32API WinHelpA( HWND hwnd, LPCSTR lpszHelp, UINT uCommand, DWORD dwData)
|
|---|
| 975 | {
|
|---|
| 976 | static WORD WM_WINHELP = 0;
|
|---|
| 977 | HWND hDest;
|
|---|
| 978 | LPWINHELP lpwh;
|
|---|
| 979 | HINSTANCE winhelp;
|
|---|
| 980 | int size,dsize,nlen;
|
|---|
| 981 | BOOL ret;
|
|---|
| 982 |
|
|---|
| 983 | dprintf(("USER32: WinHelpA %x %s %d %x", hwnd, lpszHelp, uCommand, dwData));
|
|---|
| 984 |
|
|---|
| 985 | if(!WM_WINHELP)
|
|---|
| 986 | {
|
|---|
| 987 | WM_WINHELP=RegisterWindowMessageA("WM_WINHELP");
|
|---|
| 988 | if(!WM_WINHELP)
|
|---|
| 989 | return FALSE;
|
|---|
| 990 | }
|
|---|
| 991 |
|
|---|
| 992 | hDest = FindWindowA( "MS_WINHELP", NULL );
|
|---|
| 993 | if(!hDest)
|
|---|
| 994 | {
|
|---|
| 995 | if(uCommand == HELP_QUIT)
|
|---|
| 996 | return TRUE;
|
|---|
| 997 | else
|
|---|
| 998 | winhelp = WinExec ( "winhlp32.exe -x", SW_SHOWNORMAL );
|
|---|
| 999 | if ( winhelp <= 32 ) return FALSE;
|
|---|
| 1000 | if ( ! ( hDest = FindWindowA ( "MS_WINHELP", NULL ) )) return FALSE;
|
|---|
| 1001 | }
|
|---|
| 1002 |
|
|---|
| 1003 | switch(uCommand)
|
|---|
| 1004 | {
|
|---|
| 1005 | case HELP_CONTEXT:
|
|---|
| 1006 | case HELP_SETCONTENTS:
|
|---|
| 1007 | case HELP_CONTENTS:
|
|---|
| 1008 | case HELP_CONTEXTPOPUP:
|
|---|
| 1009 | case HELP_FORCEFILE:
|
|---|
| 1010 | case HELP_HELPONHELP:
|
|---|
| 1011 | case HELP_FINDER:
|
|---|
| 1012 | case HELP_QUIT:
|
|---|
| 1013 | dsize=0;
|
|---|
| 1014 | break;
|
|---|
| 1015 |
|
|---|
| 1016 | case HELP_KEY:
|
|---|
| 1017 | case HELP_PARTIALKEY:
|
|---|
| 1018 | case HELP_COMMAND:
|
|---|
| 1019 | dsize = strlen( (LPSTR)dwData )+1;
|
|---|
| 1020 | break;
|
|---|
| 1021 |
|
|---|
| 1022 | case HELP_MULTIKEY:
|
|---|
| 1023 | dsize = ((LPMULTIKEYHELP)dwData)->mkSize;
|
|---|
| 1024 | break;
|
|---|
| 1025 |
|
|---|
| 1026 | case HELP_SETWINPOS:
|
|---|
| 1027 | dsize = ((LPHELPWININFO)dwData)->wStructSize;
|
|---|
| 1028 | break;
|
|---|
| 1029 |
|
|---|
| 1030 | default:
|
|---|
| 1031 | //WARN("Unknown help command %d\n",wCommand);
|
|---|
| 1032 | return FALSE;
|
|---|
| 1033 | }
|
|---|
| 1034 | if(lpszHelp)
|
|---|
| 1035 | nlen = strlen(lpszHelp)+1;
|
|---|
| 1036 | else
|
|---|
| 1037 | nlen = 0;
|
|---|
| 1038 | size = sizeof(WINHELP) + nlen + dsize;
|
|---|
| 1039 |
|
|---|
| 1040 | //allocate shared memory
|
|---|
| 1041 | lpwh = (WINHELP*)_smalloc(size);
|
|---|
| 1042 | lpwh->size = size;
|
|---|
| 1043 | lpwh->command = uCommand;
|
|---|
| 1044 | lpwh->data = dwData;
|
|---|
| 1045 | if(nlen)
|
|---|
| 1046 | {
|
|---|
| 1047 | strcpy(((char*)lpwh) + sizeof(WINHELP),lpszHelp);
|
|---|
| 1048 | lpwh->ofsFilename = sizeof(WINHELP);
|
|---|
| 1049 | } else
|
|---|
| 1050 | lpwh->ofsFilename = 0;
|
|---|
| 1051 | if(dsize)
|
|---|
| 1052 | {
|
|---|
| 1053 | memcpy(((char*)lpwh)+sizeof(WINHELP)+nlen,(LPSTR)dwData,dsize);
|
|---|
| 1054 | lpwh->ofsData = sizeof(WINHELP)+nlen;
|
|---|
| 1055 | } else
|
|---|
| 1056 | lpwh->ofsData = 0;
|
|---|
| 1057 |
|
|---|
| 1058 | ret = SendMessageA(hDest,WM_WINHELP,hwnd,(LPARAM)lpwh);
|
|---|
| 1059 | free(lpwh);
|
|---|
| 1060 | return ret;
|
|---|
| 1061 | }
|
|---|
| 1062 | //******************************************************************************
|
|---|
| 1063 | //******************************************************************************
|
|---|
| 1064 | BOOL WIN32API WinHelpW( HWND hwnd, LPCWSTR lpszHelp, UINT uCommand, DWORD dwData)
|
|---|
| 1065 | {
|
|---|
| 1066 | char *astring = UnicodeToAsciiString((LPWSTR)lpszHelp);
|
|---|
| 1067 | BOOL rc;
|
|---|
| 1068 |
|
|---|
| 1069 | dprintf(("USER32: WinHelpW\n"));
|
|---|
| 1070 |
|
|---|
| 1071 | rc = WinHelpA(hwnd,astring,uCommand,dwData);
|
|---|
| 1072 | FreeAsciiString(astring);
|
|---|
| 1073 |
|
|---|
| 1074 | return rc;
|
|---|
| 1075 | }
|
|---|
| 1076 |
|
|---|
| 1077 |
|
|---|
| 1078 | /* Window Functions */
|
|---|
| 1079 |
|
|---|
| 1080 | /*****************************************************************************
|
|---|
| 1081 | * Name : BOOL WIN32API PaintDesktop
|
|---|
| 1082 | * Purpose : The PaintDesktop function fills the clipping region in the
|
|---|
| 1083 | * specified device context with the desktop pattern or wallpaper.
|
|---|
| 1084 | * The function is provided primarily for shell desktops.
|
|---|
| 1085 | * Parameters:
|
|---|
| 1086 | * Variables :
|
|---|
| 1087 | * Result : If the function succeeds, the return value is TRUE.
|
|---|
| 1088 | * If the function fails, the return value is FALSE.
|
|---|
| 1089 | * Remark :
|
|---|
| 1090 | * Status : UNTESTED STUB
|
|---|
| 1091 | *
|
|---|
| 1092 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1093 | *****************************************************************************/
|
|---|
| 1094 | BOOL WIN32API PaintDesktop(HDC hdc)
|
|---|
| 1095 | {
|
|---|
| 1096 | dprintf(("USER32:PaintDesktop (%08x) not implemented.\n",
|
|---|
| 1097 | hdc));
|
|---|
| 1098 |
|
|---|
| 1099 | return (FALSE);
|
|---|
| 1100 | }
|
|---|
| 1101 |
|
|---|
| 1102 | /* Filled Shape Functions */
|
|---|
| 1103 |
|
|---|
| 1104 | /* Last COLOR id */
|
|---|
| 1105 | #define COLOR_MAX COLOR_GRADIENTINACTIVECAPTION
|
|---|
| 1106 |
|
|---|
| 1107 | int WIN32API FillRect(HDC hDC, const RECT * lprc, HBRUSH hbr)
|
|---|
| 1108 | {
|
|---|
| 1109 | //SvL: brush 0 means current selected brush (verified in NT4)
|
|---|
| 1110 | if(hbr == 0) {
|
|---|
| 1111 | hbr = GetCurrentObject(hDC, OBJ_BRUSH);
|
|---|
| 1112 | }
|
|---|
| 1113 | else
|
|---|
| 1114 | if (hbr <= (HBRUSH) (COLOR_MAX + 1)) {
|
|---|
| 1115 | hbr = GetSysColorBrush( (INT) hbr - 1 );
|
|---|
| 1116 | }
|
|---|
| 1117 | dprintf(("USER32: FillRect %x (%d,%d)(%d,%d) brush %X", hDC, lprc->left, lprc->top, lprc->right, lprc->bottom, hbr));
|
|---|
| 1118 | return O32_FillRect(hDC,lprc,hbr);
|
|---|
| 1119 | }
|
|---|
| 1120 | //******************************************************************************
|
|---|
| 1121 | //******************************************************************************
|
|---|
| 1122 | int WIN32API FrameRect( HDC hDC, const RECT * lprc, HBRUSH hbr)
|
|---|
| 1123 | {
|
|---|
| 1124 | dprintf(("USER32: FrameRect %x (%d,%d)(%d,%d) brush %x", hDC, lprc->top, lprc->left, lprc->bottom, lprc->right, hbr));
|
|---|
| 1125 | return O32_FrameRect(hDC,lprc,hbr);
|
|---|
| 1126 | }
|
|---|
| 1127 | //******************************************************************************
|
|---|
| 1128 | //******************************************************************************
|
|---|
| 1129 | BOOL WIN32API InvertRect( HDC hDC, const RECT * lprc)
|
|---|
| 1130 | {
|
|---|
| 1131 | if(lprc) {
|
|---|
| 1132 | dprintf(("USER32: InvertRect %x (%d,%d)(%d,%d)", hDC, lprc->left, lprc->top, lprc->right, lprc->bottom));
|
|---|
| 1133 | }
|
|---|
| 1134 | else dprintf(("USER32: InvertRect %x NULL", hDC));
|
|---|
| 1135 | return O32_InvertRect(hDC,lprc);
|
|---|
| 1136 | }
|
|---|
| 1137 |
|
|---|
| 1138 | /* System Information Functions */
|
|---|
| 1139 |
|
|---|
| 1140 | /* Window Station and Desktop Functions */
|
|---|
| 1141 |
|
|---|
| 1142 | /*****************************************************************************
|
|---|
| 1143 | * Name : HDESK WIN32API GetThreadDesktop
|
|---|
| 1144 | * Purpose : The GetThreadDesktop function returns a handle to the desktop
|
|---|
| 1145 | * associated with a specified thread.
|
|---|
| 1146 | * Parameters: DWORD dwThreadId thread identifier
|
|---|
| 1147 | * Variables :
|
|---|
| 1148 | * Result : If the function succeeds, the return value is the handle of the
|
|---|
| 1149 | * desktop associated with the specified thread.
|
|---|
| 1150 | * Remark :
|
|---|
| 1151 | * Status : UNTESTED STUB
|
|---|
| 1152 | *
|
|---|
| 1153 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1154 | *****************************************************************************/
|
|---|
| 1155 | HDESK WIN32API GetThreadDesktop(DWORD dwThreadId)
|
|---|
| 1156 | {
|
|---|
| 1157 | dprintf(("USER32:GetThreadDesktop (%u) not implemented.\n",
|
|---|
| 1158 | dwThreadId));
|
|---|
| 1159 |
|
|---|
| 1160 | return (NULL);
|
|---|
| 1161 | }
|
|---|
| 1162 |
|
|---|
| 1163 | /*****************************************************************************
|
|---|
| 1164 | * Name : BOOL WIN32API CloseDesktop
|
|---|
| 1165 | * Purpose : The CloseDesktop function closes an open handle of a desktop
|
|---|
| 1166 | * object. A desktop is a secure object contained within a window
|
|---|
| 1167 | * station object. A desktop has a logical display surface and
|
|---|
| 1168 | * contains windows, menus and hooks.
|
|---|
| 1169 | * Parameters: HDESK hDesktop
|
|---|
| 1170 | * Variables :
|
|---|
| 1171 | * Result : If the function succeeds, the return value is TRUE.
|
|---|
| 1172 | * If the functions fails, the return value is FALSE. To get
|
|---|
| 1173 | * extended error information, call GetLastError.
|
|---|
| 1174 | * Remark :
|
|---|
| 1175 | * Status : UNTESTED STUB
|
|---|
| 1176 | *
|
|---|
| 1177 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1178 | *****************************************************************************/
|
|---|
| 1179 | BOOL WIN32API CloseDesktop(HDESK hDesktop)
|
|---|
| 1180 | {
|
|---|
| 1181 | dprintf(("USER32:CloseDesktop(%08x) not implemented.\n",
|
|---|
| 1182 | hDesktop));
|
|---|
| 1183 |
|
|---|
| 1184 | return (FALSE);
|
|---|
| 1185 | }
|
|---|
| 1186 | /*****************************************************************************
|
|---|
| 1187 | * Name : BOOL WIN32API CloseWindowStation
|
|---|
| 1188 | * Purpose : The CloseWindowStation function closes an open window station handle.
|
|---|
| 1189 | * Parameters: HWINSTA hWinSta
|
|---|
| 1190 | * Variables :
|
|---|
| 1191 | * Result :
|
|---|
| 1192 | * Remark : If the function succeeds, the return value is TRUE.
|
|---|
| 1193 | * If the functions fails, the return value is FALSE. To get
|
|---|
| 1194 | * extended error information, call GetLastError.
|
|---|
| 1195 | * Status : UNTESTED STUB
|
|---|
| 1196 | *
|
|---|
| 1197 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1198 | *****************************************************************************/
|
|---|
| 1199 | BOOL WIN32API CloseWindowStation(HWINSTA hWinSta)
|
|---|
| 1200 | {
|
|---|
| 1201 | dprintf(("USER32:CloseWindowStation(%08x) not implemented.\n",
|
|---|
| 1202 | hWinSta));
|
|---|
| 1203 |
|
|---|
| 1204 | return (FALSE);
|
|---|
| 1205 | }
|
|---|
| 1206 | /*****************************************************************************
|
|---|
| 1207 | * Name : HDESK WIN32API CreateDesktopA
|
|---|
| 1208 | * Purpose : The CreateDesktop function creates a new desktop on the window
|
|---|
| 1209 | * station associated with the calling process.
|
|---|
| 1210 | * Parameters: LPCTSTR lpszDesktop name of the new desktop
|
|---|
| 1211 | * LPCTSTR lpszDevice name of display device to assign to the desktop
|
|---|
| 1212 | * LPDEVMODE pDevMode reserved; must be NULL
|
|---|
| 1213 | * DWORD dwFlags flags to control interaction with other applications
|
|---|
| 1214 | * DWORD dwDesiredAccess specifies access of returned handle
|
|---|
| 1215 | * LPSECURITY_ATTRIBUTES lpsa specifies security attributes of the desktop
|
|---|
| 1216 | * Variables :
|
|---|
| 1217 | * Result : If the function succeeds, the return value is a handle of the
|
|---|
| 1218 | * newly created desktop.
|
|---|
| 1219 | * If the function fails, the return value is NULL. To get extended
|
|---|
| 1220 | * error information, call GetLastError.
|
|---|
| 1221 | * Remark :
|
|---|
| 1222 | * Status : UNTESTED STUB
|
|---|
| 1223 | *
|
|---|
| 1224 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1225 | *****************************************************************************/
|
|---|
| 1226 | HDESK WIN32API CreateDesktopA(LPCTSTR lpszDesktop,
|
|---|
| 1227 | LPCTSTR lpszDevice,
|
|---|
| 1228 | LPDEVMODEA pDevMode,
|
|---|
| 1229 | DWORD dwFlags,
|
|---|
| 1230 | DWORD dwDesiredAccess,
|
|---|
| 1231 | LPSECURITY_ATTRIBUTES lpsa)
|
|---|
| 1232 | {
|
|---|
| 1233 | dprintf(("USER32:CreateDesktopA(%s,%s,%08xh,%08xh,%08xh,%08x) not implemented.\n",
|
|---|
| 1234 | lpszDesktop,
|
|---|
| 1235 | lpszDevice,
|
|---|
| 1236 | pDevMode,
|
|---|
| 1237 | dwFlags,
|
|---|
| 1238 | dwDesiredAccess,
|
|---|
| 1239 | lpsa));
|
|---|
| 1240 |
|
|---|
| 1241 | return (NULL);
|
|---|
| 1242 | }
|
|---|
| 1243 | /*****************************************************************************
|
|---|
| 1244 | * Name : HDESK WIN32API CreateDesktopW
|
|---|
| 1245 | * Purpose : The CreateDesktop function creates a new desktop on the window
|
|---|
| 1246 | * station associated with the calling process.
|
|---|
| 1247 | * Parameters: LPCTSTR lpszDesktop name of the new desktop
|
|---|
| 1248 | * LPCTSTR lpszDevice name of display device to assign to the desktop
|
|---|
| 1249 | * LPDEVMODE pDevMode reserved; must be NULL
|
|---|
| 1250 | * DWORD dwFlags flags to control interaction with other applications
|
|---|
| 1251 | * DWORD dwDesiredAccess specifies access of returned handle
|
|---|
| 1252 | * LPSECURITY_ATTRIBUTES lpsa specifies security attributes of the desktop
|
|---|
| 1253 | * Variables :
|
|---|
| 1254 | * Result : If the function succeeds, the return value is a handle of the
|
|---|
| 1255 | * newly created desktop.
|
|---|
| 1256 | * If the function fails, the return value is NULL. To get extended
|
|---|
| 1257 | * error information, call GetLastError.
|
|---|
| 1258 | * Remark :
|
|---|
| 1259 | * Status : UNTESTED STUB
|
|---|
| 1260 | *
|
|---|
| 1261 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1262 | *****************************************************************************/
|
|---|
| 1263 | HDESK WIN32API CreateDesktopW(LPCTSTR lpszDesktop,
|
|---|
| 1264 | LPCTSTR lpszDevice,
|
|---|
| 1265 | LPDEVMODEW pDevMode,
|
|---|
| 1266 | DWORD dwFlags,
|
|---|
| 1267 | DWORD dwDesiredAccess,
|
|---|
| 1268 | LPSECURITY_ATTRIBUTES lpsa)
|
|---|
| 1269 | {
|
|---|
| 1270 | dprintf(("USER32:CreateDesktopW(%s,%s,%08xh,%08xh,%08xh,%08x) not implemented.\n",
|
|---|
| 1271 | lpszDesktop,
|
|---|
| 1272 | lpszDevice,
|
|---|
| 1273 | pDevMode,
|
|---|
| 1274 | dwFlags,
|
|---|
| 1275 | dwDesiredAccess,
|
|---|
| 1276 | lpsa));
|
|---|
| 1277 |
|
|---|
| 1278 | return (NULL);
|
|---|
| 1279 | }
|
|---|
| 1280 | /*****************************************************************************
|
|---|
| 1281 | * Name : HWINSTA WIN32API CreateWindowStationA
|
|---|
| 1282 | * Purpose : The CreateWindowStation function creates a window station object.
|
|---|
| 1283 | * It returns a handle that can be used to access the window station.
|
|---|
| 1284 | * A window station is a secure object that contains a set of global
|
|---|
| 1285 | * atoms, a clipboard, and a set of desktop objects.
|
|---|
| 1286 | * Parameters: LPTSTR lpwinsta name of the new window station
|
|---|
| 1287 | * DWORD dwReserved reserved; must be NULL
|
|---|
| 1288 | * DWORD dwDesiredAccess specifies access of returned handle
|
|---|
| 1289 | * LPSECURITY_ATTRIBUTES lpsa specifies security attributes of the window station
|
|---|
| 1290 | * Variables :
|
|---|
| 1291 | * Result : If the function succeeds, the return value is the handle to the
|
|---|
| 1292 | * newly created window station.
|
|---|
| 1293 | * If the function fails, the return value is NULL. To get extended
|
|---|
| 1294 | * error information, call GetLastError.
|
|---|
| 1295 | * Remark :
|
|---|
| 1296 | * Status : UNTESTED STUB
|
|---|
| 1297 | *
|
|---|
| 1298 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1299 | *****************************************************************************/
|
|---|
| 1300 | HWINSTA WIN32API CreateWindowStationA(LPTSTR lpWinSta,
|
|---|
| 1301 | DWORD dwReserved,
|
|---|
| 1302 | DWORD dwDesiredAccess,
|
|---|
| 1303 | LPSECURITY_ATTRIBUTES lpsa)
|
|---|
| 1304 | {
|
|---|
| 1305 | dprintf(("USER32:CreateWindowStationA(%s,%08xh,%08xh,%08x) not implemented.\n",
|
|---|
| 1306 | lpWinSta,
|
|---|
| 1307 | dwReserved,
|
|---|
| 1308 | dwDesiredAccess,
|
|---|
| 1309 | lpsa));
|
|---|
| 1310 |
|
|---|
| 1311 | return (NULL);
|
|---|
| 1312 | }
|
|---|
| 1313 | /*****************************************************************************
|
|---|
| 1314 | * Name : HWINSTA WIN32API CreateWindowStationW
|
|---|
| 1315 | * Purpose : The CreateWindowStation function creates a window station object.
|
|---|
| 1316 | * It returns a handle that can be used to access the window station.
|
|---|
| 1317 | * A window station is a secure object that contains a set of global
|
|---|
| 1318 | * atoms, a clipboard, and a set of desktop objects.
|
|---|
| 1319 | * Parameters: LPTSTR lpwinsta name of the new window station
|
|---|
| 1320 | * DWORD dwReserved reserved; must be NULL
|
|---|
| 1321 | * DWORD dwDesiredAccess specifies access of returned handle
|
|---|
| 1322 | * LPSECURITY_ATTRIBUTES lpsa specifies security attributes of the window station
|
|---|
| 1323 | * Variables :
|
|---|
| 1324 | * Result : If the function succeeds, the return value is the handle to the
|
|---|
| 1325 | * newly created window station.
|
|---|
| 1326 | * If the function fails, the return value is NULL. To get extended
|
|---|
| 1327 | * error information, call GetLastError.
|
|---|
| 1328 | * Remark :
|
|---|
| 1329 | * Status : UNTESTED STUB
|
|---|
| 1330 | *
|
|---|
| 1331 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1332 | *****************************************************************************/
|
|---|
| 1333 | HWINSTA WIN32API CreateWindowStationW(LPWSTR lpWinSta,
|
|---|
| 1334 | DWORD dwReserved,
|
|---|
| 1335 | DWORD dwDesiredAccess,
|
|---|
| 1336 | LPSECURITY_ATTRIBUTES lpsa)
|
|---|
| 1337 | {
|
|---|
| 1338 | dprintf(("USER32:CreateWindowStationW(%s,%08xh,%08xh,%08x) not implemented.\n",
|
|---|
| 1339 | lpWinSta,
|
|---|
| 1340 | dwReserved,
|
|---|
| 1341 | dwDesiredAccess,
|
|---|
| 1342 | lpsa));
|
|---|
| 1343 |
|
|---|
| 1344 | return (NULL);
|
|---|
| 1345 | }
|
|---|
| 1346 | /*****************************************************************************
|
|---|
| 1347 | * Name : BOOL WIN32API EnumDesktopWindows
|
|---|
| 1348 | * Purpose : The EnumDesktopWindows function enumerates all windows in a
|
|---|
| 1349 | * desktop by passing the handle of each window, in turn, to an
|
|---|
| 1350 | * application-defined callback function.
|
|---|
| 1351 | * Parameters: HDESK hDesktop handle of desktop to enumerate
|
|---|
| 1352 | * WNDENUMPROC lpfn points to application's callback function
|
|---|
| 1353 | * LPARAM lParam 32-bit value to pass to the callback function
|
|---|
| 1354 | * Variables :
|
|---|
| 1355 | * Result : If the function succeeds, the return value is TRUE.
|
|---|
| 1356 | * If the function fails, the return value is FALSE. To get
|
|---|
| 1357 | * extended error information, call GetLastError.
|
|---|
| 1358 | * Remark :
|
|---|
| 1359 | * Status : UNTESTED STUB
|
|---|
| 1360 | *
|
|---|
| 1361 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1362 | *****************************************************************************/
|
|---|
| 1363 | BOOL WIN32API EnumDesktopWindows(HDESK hDesktop,
|
|---|
| 1364 | WNDENUMPROC lpfn,
|
|---|
| 1365 | LPARAM lParam)
|
|---|
| 1366 | {
|
|---|
| 1367 | dprintf(("USER32:EnumDesktopWindows (%08xh,%08xh,%08x) not implemented.\n",
|
|---|
| 1368 | hDesktop,
|
|---|
| 1369 | lpfn,
|
|---|
| 1370 | lParam));
|
|---|
| 1371 |
|
|---|
| 1372 | return (FALSE);
|
|---|
| 1373 | }
|
|---|
| 1374 | /*****************************************************************************
|
|---|
| 1375 | * Name : BOOL WIN32API EnumDesktopsA
|
|---|
| 1376 | * Purpose : The EnumDesktops function enumerates all desktops in the window
|
|---|
| 1377 | * station assigned to the calling process. The function does so by
|
|---|
| 1378 | * passing the name of each desktop, in turn, to an application-
|
|---|
| 1379 | * defined callback function.
|
|---|
| 1380 | * Parameters: HWINSTA hwinsta handle of window station to enumerate
|
|---|
| 1381 | * DESKTOPENUMPROC lpEnumFunc points to application's callback function
|
|---|
| 1382 | * LPARAM lParam 32-bit value to pass to the callback function
|
|---|
| 1383 | * Variables :
|
|---|
| 1384 | * Result : If the function succeeds, the return value is TRUE.
|
|---|
| 1385 | * If the function fails, the return value is FALSE. To get extended
|
|---|
| 1386 | * error information, call GetLastError.
|
|---|
| 1387 | * Remark :
|
|---|
| 1388 | * Status : UNTESTED STUB
|
|---|
| 1389 | *
|
|---|
| 1390 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1391 | *****************************************************************************/
|
|---|
| 1392 | BOOL WIN32API EnumDesktopsA(HWINSTA hWinSta,
|
|---|
| 1393 | DESKTOPENUMPROCA lpEnumFunc,
|
|---|
| 1394 | LPARAM lParam)
|
|---|
| 1395 | {
|
|---|
| 1396 | dprintf(("USER32:EnumDesktopsA (%08xh,%08xh,%08x) not implemented.\n",
|
|---|
| 1397 | hWinSta,
|
|---|
| 1398 | lpEnumFunc,
|
|---|
| 1399 | lParam));
|
|---|
| 1400 |
|
|---|
| 1401 | return (FALSE);
|
|---|
| 1402 | }
|
|---|
| 1403 | /*****************************************************************************
|
|---|
| 1404 | * Name : BOOL WIN32API EnumDesktopsW
|
|---|
| 1405 | * Purpose : The EnumDesktops function enumerates all desktops in the window
|
|---|
| 1406 | * station assigned to the calling process. The function does so by
|
|---|
| 1407 | * passing the name of each desktop, in turn, to an application-
|
|---|
| 1408 | * defined callback function.
|
|---|
| 1409 | * Parameters: HWINSTA hwinsta handle of window station to enumerate
|
|---|
| 1410 | * DESKTOPENUMPROC lpEnumFunc points to application's callback function
|
|---|
| 1411 | * LPARAM lParam 32-bit value to pass to the callback function
|
|---|
| 1412 | * Variables :
|
|---|
| 1413 | * Result : If the function succeeds, the return value is TRUE.
|
|---|
| 1414 | * If the function fails, the return value is FALSE. To get extended
|
|---|
| 1415 | * error information, call GetLastError.
|
|---|
| 1416 | * Remark :
|
|---|
| 1417 | * Status : UNTESTED STUB
|
|---|
| 1418 | *
|
|---|
| 1419 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1420 | *****************************************************************************/
|
|---|
| 1421 | BOOL WIN32API EnumDesktopsW(HWINSTA hWinSta,
|
|---|
| 1422 | DESKTOPENUMPROCW lpEnumFunc,
|
|---|
| 1423 | LPARAM lParam)
|
|---|
| 1424 | {
|
|---|
| 1425 | dprintf(("USER32:EnumDesktopsW (%08xh,%08xh,%08x) not implemented.\n",
|
|---|
| 1426 | hWinSta,
|
|---|
| 1427 | lpEnumFunc,
|
|---|
| 1428 | lParam));
|
|---|
| 1429 |
|
|---|
| 1430 | return (FALSE);
|
|---|
| 1431 | }
|
|---|
| 1432 | /*****************************************************************************
|
|---|
| 1433 | * Name : BOOL WIN32API EnumWindowStationsA
|
|---|
| 1434 | * Purpose : The EnumWindowStations function enumerates all windowstations
|
|---|
| 1435 | * in the system by passing the name of each window station, in
|
|---|
| 1436 | * turn, to an application-defined callback function.
|
|---|
| 1437 | * Parameters:
|
|---|
| 1438 | * Variables : WINSTAENUMPROC lpEnumFunc points to application's callback function
|
|---|
| 1439 | * LPARAM lParam 32-bit value to pass to the callback function
|
|---|
| 1440 | * Result : If the function succeeds, the return value is TRUE.
|
|---|
| 1441 | * If the function fails the return value is FALSE. To get extended
|
|---|
| 1442 | * error information, call GetLastError.
|
|---|
| 1443 | * Remark :
|
|---|
| 1444 | * Status : UNTESTED STUB
|
|---|
| 1445 | *
|
|---|
| 1446 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1447 | *****************************************************************************/
|
|---|
| 1448 | BOOL WIN32API EnumWindowStationsA(WINSTAENUMPROCA lpEnumFunc,
|
|---|
| 1449 | LPARAM lParam)
|
|---|
| 1450 | {
|
|---|
| 1451 | dprintf(("USER32:EnumWindowStationsA (%08xh,%08x) not implemented.\n",
|
|---|
| 1452 | lpEnumFunc,
|
|---|
| 1453 | lParam));
|
|---|
| 1454 |
|
|---|
| 1455 | return (FALSE);
|
|---|
| 1456 | }
|
|---|
| 1457 | /*****************************************************************************
|
|---|
| 1458 | * Name : BOOL WIN32API EnumWindowStationsW
|
|---|
| 1459 | * Purpose : The EnumWindowStations function enumerates all windowstations
|
|---|
| 1460 | * in the system by passing the name of each window station, in
|
|---|
| 1461 | * turn, to an application-defined callback function.
|
|---|
| 1462 | * Parameters:
|
|---|
| 1463 | * Variables : WINSTAENUMPROC lpEnumFunc points to application's callback function
|
|---|
| 1464 | * LPARAM lParam 32-bit value to pass to the callback function
|
|---|
| 1465 | * Result : If the function succeeds, the return value is TRUE.
|
|---|
| 1466 | * If the function fails the return value is FALSE. To get extended
|
|---|
| 1467 | * error information, call GetLastError.
|
|---|
| 1468 | * Remark :
|
|---|
| 1469 | * Status : UNTESTED STUB
|
|---|
| 1470 | *
|
|---|
| 1471 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1472 | *****************************************************************************/
|
|---|
| 1473 | BOOL WIN32API EnumWindowStationsW(WINSTAENUMPROCW lpEnumFunc,
|
|---|
| 1474 | LPARAM lParam)
|
|---|
| 1475 | {
|
|---|
| 1476 | dprintf(("USER32:EnumWindowStationsW (%08xh,%08x) not implemented.\n",
|
|---|
| 1477 | lpEnumFunc,
|
|---|
| 1478 | lParam));
|
|---|
| 1479 |
|
|---|
| 1480 | return (FALSE);
|
|---|
| 1481 | }
|
|---|
| 1482 | /*****************************************************************************
|
|---|
| 1483 | * Name : HWINSTA WIN32API GetProcessWindowStation
|
|---|
| 1484 | * Purpose : The GetProcessWindowStation function returns a handle of the
|
|---|
| 1485 | * window station associated with the calling process.
|
|---|
| 1486 | * Parameters:
|
|---|
| 1487 | * Variables :
|
|---|
| 1488 | * Result : If the function succeeds, the return value is a handle of the
|
|---|
| 1489 | * window station associated with the calling process.
|
|---|
| 1490 | * If the function fails, the return value is NULL. This can occur
|
|---|
| 1491 | * if the calling process is not an application written for Windows
|
|---|
| 1492 | * NT. To get extended error information, call GetLastError.
|
|---|
| 1493 | * Remark :
|
|---|
| 1494 | * Status : UNTESTED STUB
|
|---|
| 1495 | *
|
|---|
| 1496 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1497 | *****************************************************************************/
|
|---|
| 1498 | HWINSTA WIN32API GetProcessWindowStation(VOID)
|
|---|
| 1499 | {
|
|---|
| 1500 | dprintf(("USER32:GetProcessWindowStation () not implemented.\n"));
|
|---|
| 1501 |
|
|---|
| 1502 | return (NULL);
|
|---|
| 1503 | }
|
|---|
| 1504 | /*****************************************************************************
|
|---|
| 1505 | * Name : BOOL WIN32API GetUserObjectInformationA
|
|---|
| 1506 | * Purpose : The GetUserObjectInformation function returns information about
|
|---|
| 1507 | * a window station or desktop object.
|
|---|
| 1508 | * Parameters: HANDLE hObj handle of object to get information for
|
|---|
| 1509 | * int nIndex type of information to get
|
|---|
| 1510 | * PVOID pvInfo points to buffer that receives the information
|
|---|
| 1511 | * DWORD nLength size, in bytes, of pvInfo buffer
|
|---|
| 1512 | * LPDWORD lpnLengthNeeded receives required size, in bytes, of pvInfo buffer
|
|---|
| 1513 | * Variables :
|
|---|
| 1514 | * Result : If the function succeeds, the return value is TRUE.
|
|---|
| 1515 | * If the function fails, the return value is FALSE. To get extended
|
|---|
| 1516 | * error information, call GetLastError.
|
|---|
| 1517 | * Remark :
|
|---|
| 1518 | * Status : UNTESTED STUB
|
|---|
| 1519 | *
|
|---|
| 1520 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1521 | *****************************************************************************/
|
|---|
| 1522 | BOOL WIN32API GetUserObjectInformationA(HANDLE hObj,
|
|---|
| 1523 | int nIndex,
|
|---|
| 1524 | PVOID pvInfo,
|
|---|
| 1525 | DWORD nLength,
|
|---|
| 1526 | LPDWORD lpnLengthNeeded)
|
|---|
| 1527 | {
|
|---|
| 1528 | dprintf(("USER32:GetUserObjectInformationA (%08xh,%08xh,%08xh,%u,%08x) not implemented.\n",
|
|---|
| 1529 | hObj,
|
|---|
| 1530 | nIndex,
|
|---|
| 1531 | pvInfo,
|
|---|
| 1532 | nLength,
|
|---|
| 1533 | lpnLengthNeeded));
|
|---|
| 1534 |
|
|---|
| 1535 | return (FALSE);
|
|---|
| 1536 | }
|
|---|
| 1537 | /*****************************************************************************
|
|---|
| 1538 | * Name : BOOL WIN32API GetUserObjectInformationW
|
|---|
| 1539 | * Purpose : The GetUserObjectInformation function returns information about
|
|---|
| 1540 | * a window station or desktop object.
|
|---|
| 1541 | * Parameters: HANDLE hObj handle of object to get information for
|
|---|
| 1542 | * int nIndex type of information to get
|
|---|
| 1543 | * PVOID pvInfo points to buffer that receives the information
|
|---|
| 1544 | * DWORD nLength size, in bytes, of pvInfo buffer
|
|---|
| 1545 | * LPDWORD lpnLengthNeeded receives required size, in bytes, of pvInfo buffer
|
|---|
| 1546 | * Variables :
|
|---|
| 1547 | * Result : If the function succeeds, the return value is TRUE.
|
|---|
| 1548 | * If the function fails, the return value is FALSE. To get extended
|
|---|
| 1549 | * error information, call GetLastError.
|
|---|
| 1550 | * Remark :
|
|---|
| 1551 | * Status : UNTESTED STUB
|
|---|
| 1552 | *
|
|---|
| 1553 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1554 | *****************************************************************************/
|
|---|
| 1555 | BOOL WIN32API GetUserObjectInformationW(HANDLE hObj,
|
|---|
| 1556 | int nIndex,
|
|---|
| 1557 | PVOID pvInfo,
|
|---|
| 1558 | DWORD nLength,
|
|---|
| 1559 | LPDWORD lpnLengthNeeded)
|
|---|
| 1560 | {
|
|---|
| 1561 | dprintf(("USER32:GetUserObjectInformationW (%08xh,%08xh,%08xh,%u,%08x) not implemented.\n",
|
|---|
| 1562 | hObj,
|
|---|
| 1563 | nIndex,
|
|---|
| 1564 | pvInfo,
|
|---|
| 1565 | nLength,
|
|---|
| 1566 | lpnLengthNeeded));
|
|---|
| 1567 |
|
|---|
| 1568 | return (FALSE);
|
|---|
| 1569 | }
|
|---|
| 1570 | /*****************************************************************************
|
|---|
| 1571 | * Name : BOOL WIN32API GetUserObjectSecurity
|
|---|
| 1572 | * Purpose : The GetUserObjectSecurity function retrieves security information
|
|---|
| 1573 | * for the specified user object.
|
|---|
| 1574 | * Parameters: HANDLE hObj handle of user object
|
|---|
| 1575 | * SECURITY_INFORMATION * pSIRequested address of requested security information
|
|---|
| 1576 | * LPSECURITY_DESCRIPTOR pSID address of security descriptor
|
|---|
| 1577 | * DWORD nLength size of buffer for security descriptor
|
|---|
| 1578 | * LPDWORD lpnLengthNeeded address of required size of buffer
|
|---|
| 1579 | * Variables :
|
|---|
| 1580 | * Result : If the function succeeds, the return value is TRUE.
|
|---|
| 1581 | * If the function fails, the return value is FALSE. To get extended
|
|---|
| 1582 | * error information, call GetLastError.
|
|---|
| 1583 | * Remark :
|
|---|
| 1584 | * Status : UNTESTED STUB
|
|---|
| 1585 | *
|
|---|
| 1586 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1587 | *****************************************************************************/
|
|---|
| 1588 | BOOL WIN32API GetUserObjectSecurity(HANDLE hObj,
|
|---|
| 1589 | PSECURITY_INFORMATION pSIRequested,
|
|---|
| 1590 | PSECURITY_DESCRIPTOR pSID,
|
|---|
| 1591 | DWORD nLength,
|
|---|
| 1592 | LPDWORD lpnLengthNeeded)
|
|---|
| 1593 | {
|
|---|
| 1594 | dprintf(("USER32:GetUserObjectSecurity (%08xh,%08xh,%08xh,%u,%08x) not implemented.\n",
|
|---|
| 1595 | hObj,
|
|---|
| 1596 | pSIRequested,
|
|---|
| 1597 | pSID,
|
|---|
| 1598 | nLength,
|
|---|
| 1599 | lpnLengthNeeded));
|
|---|
| 1600 |
|
|---|
| 1601 | return (FALSE);
|
|---|
| 1602 | }
|
|---|
| 1603 | /*****************************************************************************
|
|---|
| 1604 | * Name : HDESK WIN32API OpenDesktopA
|
|---|
| 1605 | * Purpose : The OpenDesktop function returns a handle to an existing desktop.
|
|---|
| 1606 | * A desktop is a secure object contained within a window station
|
|---|
| 1607 | * object. A desktop has a logical display surface and contains
|
|---|
| 1608 | * windows, menus and hooks.
|
|---|
| 1609 | * Parameters: LPCTSTR lpszDesktopName name of the desktop to open
|
|---|
| 1610 | * DWORD dwFlags flags to control interaction with other applications
|
|---|
| 1611 | * BOOL fInherit specifies whether returned handle is inheritable
|
|---|
| 1612 | * DWORD dwDesiredAccess specifies access of returned handle
|
|---|
| 1613 | * Variables :
|
|---|
| 1614 | * Result : If the function succeeds, the return value is the handle to the
|
|---|
| 1615 | * opened desktop.
|
|---|
| 1616 | * If the function fails, the return value is NULL. To get extended
|
|---|
| 1617 | * error information, call GetLastError.
|
|---|
| 1618 | * Remark :
|
|---|
| 1619 | * Status : UNTESTED STUB
|
|---|
| 1620 | *
|
|---|
| 1621 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1622 | *****************************************************************************/
|
|---|
| 1623 | HDESK WIN32API OpenDesktopA(LPCTSTR lpszDesktopName,
|
|---|
| 1624 | DWORD dwFlags,
|
|---|
| 1625 | BOOL fInherit,
|
|---|
| 1626 | DWORD dwDesiredAccess)
|
|---|
| 1627 | {
|
|---|
| 1628 | dprintf(("USER32:OpenDesktopA (%s,%08xh,%08xh,%08x) not implemented.\n",
|
|---|
| 1629 | lpszDesktopName,
|
|---|
| 1630 | dwFlags,
|
|---|
| 1631 | fInherit,
|
|---|
| 1632 | dwDesiredAccess));
|
|---|
| 1633 |
|
|---|
| 1634 | return (NULL);
|
|---|
| 1635 | }
|
|---|
| 1636 | /*****************************************************************************
|
|---|
| 1637 | * Name : HDESK WIN32API OpenDesktopW
|
|---|
| 1638 | * Purpose : The OpenDesktop function returns a handle to an existing desktop.
|
|---|
| 1639 | * A desktop is a secure object contained within a window station
|
|---|
| 1640 | * object. A desktop has a logical display surface and contains
|
|---|
| 1641 | * windows, menus and hooks.
|
|---|
| 1642 | * Parameters: LPCTSTR lpszDesktopName name of the desktop to open
|
|---|
| 1643 | * DWORD dwFlags flags to control interaction with other applications
|
|---|
| 1644 | * BOOL fInherit specifies whether returned handle is inheritable
|
|---|
| 1645 | * DWORD dwDesiredAccess specifies access of returned handle
|
|---|
| 1646 | * Variables :
|
|---|
| 1647 | * Result : If the function succeeds, the return value is the handle to the
|
|---|
| 1648 | * opened desktop.
|
|---|
| 1649 | * If the function fails, the return value is NULL. To get extended
|
|---|
| 1650 | * error information, call GetLastError.
|
|---|
| 1651 | * Remark :
|
|---|
| 1652 | * Status : UNTESTED STUB
|
|---|
| 1653 | *
|
|---|
| 1654 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1655 | *****************************************************************************/
|
|---|
| 1656 | HDESK WIN32API OpenDesktopW(LPCTSTR lpszDesktopName,
|
|---|
| 1657 | DWORD dwFlags,
|
|---|
| 1658 | BOOL fInherit,
|
|---|
| 1659 | DWORD dwDesiredAccess)
|
|---|
| 1660 | {
|
|---|
| 1661 | dprintf(("USER32:OpenDesktopW (%s,%08xh,%08xh,%08x) not implemented.\n",
|
|---|
| 1662 | lpszDesktopName,
|
|---|
| 1663 | dwFlags,
|
|---|
| 1664 | fInherit,
|
|---|
| 1665 | dwDesiredAccess));
|
|---|
| 1666 |
|
|---|
| 1667 | return (NULL);
|
|---|
| 1668 | }
|
|---|
| 1669 | /*****************************************************************************
|
|---|
| 1670 | * Name : HDESK WIN32API OpenInputDesktop
|
|---|
| 1671 | * Purpose : The OpenInputDesktop function returns a handle to the desktop
|
|---|
| 1672 | * that receives user input. The input desktop is a desktop on the
|
|---|
| 1673 | * window station associated with the logged-on user.
|
|---|
| 1674 | * Parameters: DWORD dwFlags flags to control interaction with other applications
|
|---|
| 1675 | * BOOL fInherit specifies whether returned handle is inheritable
|
|---|
| 1676 | * DWORD dwDesiredAccess specifies access of returned handle
|
|---|
| 1677 | * Variables :
|
|---|
| 1678 | * Result : If the function succeeds, the return value is a handle of the
|
|---|
| 1679 | * desktop that receives user input.
|
|---|
| 1680 | * If the function fails, the return value is NULL. To get extended
|
|---|
| 1681 | * error information, call GetLastError.
|
|---|
| 1682 | * Remark :
|
|---|
| 1683 | * Status : UNTESTED STUB
|
|---|
| 1684 | *
|
|---|
| 1685 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1686 | *****************************************************************************/
|
|---|
| 1687 | HDESK WIN32API OpenInputDesktop(DWORD dwFlags,
|
|---|
| 1688 | BOOL fInherit,
|
|---|
| 1689 | DWORD dwDesiredAccess)
|
|---|
| 1690 | {
|
|---|
| 1691 | dprintf(("USER32:OpenInputDesktop (%08xh,%08xh,%08x) not implemented.\n",
|
|---|
| 1692 | dwFlags,
|
|---|
| 1693 | fInherit,
|
|---|
| 1694 | dwDesiredAccess));
|
|---|
| 1695 |
|
|---|
| 1696 | return (NULL);
|
|---|
| 1697 | }
|
|---|
| 1698 | /*****************************************************************************
|
|---|
| 1699 | * Name : HWINSTA WIN32API OpenWindowStationA
|
|---|
| 1700 | * Purpose : The OpenWindowStation function returns a handle to an existing
|
|---|
| 1701 | * window station.
|
|---|
| 1702 | * Parameters: LPCTSTR lpszWinStaName name of the window station to open
|
|---|
| 1703 | * BOOL fInherit specifies whether returned handle is inheritable
|
|---|
| 1704 | * DWORD dwDesiredAccess specifies access of returned handle
|
|---|
| 1705 | * Variables :
|
|---|
| 1706 | * Result : If the function succeeds, the return value is the handle to the
|
|---|
| 1707 | * specified window station.
|
|---|
| 1708 | * If the function fails, the return value is NULL. To get extended
|
|---|
| 1709 | * error information, call GetLastError.
|
|---|
| 1710 | * Remark :
|
|---|
| 1711 | * Status : UNTESTED STUB
|
|---|
| 1712 | *
|
|---|
| 1713 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1714 | *****************************************************************************/
|
|---|
| 1715 | HWINSTA WIN32API OpenWindowStationA(LPCTSTR lpszWinStaName,
|
|---|
| 1716 | BOOL fInherit,
|
|---|
| 1717 | DWORD dwDesiredAccess)
|
|---|
| 1718 | {
|
|---|
| 1719 | dprintf(("USER32:OpenWindowStatieonA (%s,%08xh,%08x) not implemented.\n",
|
|---|
| 1720 | lpszWinStaName,
|
|---|
| 1721 | fInherit,
|
|---|
| 1722 | dwDesiredAccess));
|
|---|
| 1723 |
|
|---|
| 1724 | return (NULL);
|
|---|
| 1725 | }
|
|---|
| 1726 | /*****************************************************************************
|
|---|
| 1727 | * Name : HWINSTA WIN32API OpenWindowStationW
|
|---|
| 1728 | * Purpose : The OpenWindowStation function returns a handle to an existing
|
|---|
| 1729 | * window station.
|
|---|
| 1730 | * Parameters: LPCTSTR lpszWinStaName name of the window station to open
|
|---|
| 1731 | * BOOL fInherit specifies whether returned handle is inheritable
|
|---|
| 1732 | * DWORD dwDesiredAccess specifies access of returned handle
|
|---|
| 1733 | * Variables :
|
|---|
| 1734 | * Result : If the function succeeds, the return value is the handle to the
|
|---|
| 1735 | * specified window station.
|
|---|
| 1736 | * If the function fails, the return value is NULL. To get extended
|
|---|
| 1737 | * error information, call GetLastError.
|
|---|
| 1738 |
|
|---|
| 1739 |
|
|---|
| 1740 | * Remark :
|
|---|
| 1741 | * Status : UNTESTED STUB
|
|---|
| 1742 | *
|
|---|
| 1743 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1744 | *****************************************************************************/
|
|---|
| 1745 | HWINSTA WIN32API OpenWindowStationW(LPCTSTR lpszWinStaName,
|
|---|
| 1746 | BOOL fInherit,
|
|---|
| 1747 | DWORD dwDesiredAccess)
|
|---|
| 1748 | {
|
|---|
| 1749 | dprintf(("USER32:OpenWindowStatieonW (%s,%08xh,%08x) not implemented.\n",
|
|---|
| 1750 | lpszWinStaName,
|
|---|
| 1751 | fInherit,
|
|---|
| 1752 | dwDesiredAccess));
|
|---|
| 1753 |
|
|---|
| 1754 | return (NULL);
|
|---|
| 1755 | }
|
|---|
| 1756 | /*****************************************************************************
|
|---|
| 1757 | * Name : BOOL WIN32API SetProcessWindowStation
|
|---|
| 1758 | * Purpose : The SetProcessWindowStation function assigns a window station
|
|---|
| 1759 | * to the calling process. This enables the process to access
|
|---|
| 1760 | * objects in the window station such as desktops, the clipboard,
|
|---|
| 1761 | * and global atoms. All subsequent operations on the window station
|
|---|
| 1762 | * use the access rights granted to hWinSta.
|
|---|
| 1763 | * Parameters:
|
|---|
| 1764 | * Variables :
|
|---|
| 1765 | * Result : If the function succeeds, the return value is TRUE.
|
|---|
| 1766 | * If the function fails, the return value is FALSE. To get extended
|
|---|
| 1767 | * error information, call GetLastError.
|
|---|
| 1768 | * Remark :
|
|---|
| 1769 | * Status : UNTESTED STUB
|
|---|
| 1770 | *
|
|---|
| 1771 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1772 | *****************************************************************************/
|
|---|
| 1773 | BOOL WIN32API SetProcessWindowStation(HWINSTA hWinSta)
|
|---|
| 1774 | {
|
|---|
| 1775 | dprintf(("USER32:SetProcessWindowStation (%08x) not implemented.\n",
|
|---|
| 1776 | hWinSta));
|
|---|
| 1777 |
|
|---|
| 1778 | return (FALSE);
|
|---|
| 1779 | }
|
|---|
| 1780 | /*****************************************************************************
|
|---|
| 1781 | * Name : BOOL WIN32API SetThreadDesktop
|
|---|
| 1782 | * Purpose : The SetThreadDesktop function assigns a desktop to the calling
|
|---|
| 1783 | * thread. All subsequent operations on the desktop use the access
|
|---|
| 1784 | * rights granted to hDesk.
|
|---|
| 1785 | * Parameters: HDESK hDesk handle of the desktop to assign to this thread
|
|---|
| 1786 | * Variables :
|
|---|
| 1787 | * Result : If the function succeeds, the return value is TRUE.
|
|---|
| 1788 | * If the function fails, the return value is FALSE. To get extended
|
|---|
| 1789 | * error information, call GetLastError.
|
|---|
| 1790 | * Remark :
|
|---|
| 1791 | * Status : UNTESTED STUB
|
|---|
| 1792 | *
|
|---|
| 1793 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1794 | *****************************************************************************/
|
|---|
| 1795 | BOOL WIN32API SetThreadDesktop(HDESK hDesktop)
|
|---|
| 1796 | {
|
|---|
| 1797 | dprintf(("USER32:SetThreadDesktop (%08x) not implemented.\n",
|
|---|
| 1798 | hDesktop));
|
|---|
| 1799 |
|
|---|
| 1800 | return (FALSE);
|
|---|
| 1801 | }
|
|---|
| 1802 | /*****************************************************************************
|
|---|
| 1803 | * Name : BOOL WIN32API SetUserObjectInformationA
|
|---|
| 1804 | * Purpose : The SetUserObjectInformation function sets information about a
|
|---|
| 1805 | * window station or desktop object.
|
|---|
| 1806 | * Parameters: HANDLE hObject handle of the object for which to set information
|
|---|
| 1807 | * int nIndex type of information to set
|
|---|
| 1808 | * PVOID lpvInfo points to a buffer that contains the information
|
|---|
| 1809 | * DWORD cbInfo size, in bytes, of lpvInfo buffer
|
|---|
| 1810 | * Variables :
|
|---|
| 1811 | * Result : If the function succeeds, the return value is TRUE.
|
|---|
| 1812 | * If the function fails the return value is FALSE. To get extended
|
|---|
| 1813 | * error information, call GetLastError.
|
|---|
| 1814 | * Remark :
|
|---|
| 1815 | * Status : UNTESTED STUB
|
|---|
| 1816 | *
|
|---|
| 1817 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1818 | *****************************************************************************/
|
|---|
| 1819 | BOOL WIN32API SetUserObjectInformationA(HANDLE hObject,
|
|---|
| 1820 | int nIndex,
|
|---|
| 1821 | PVOID lpvInfo,
|
|---|
| 1822 | DWORD cbInfo)
|
|---|
| 1823 | {
|
|---|
| 1824 | dprintf(("USER32:SetUserObjectInformationA (%08xh,%u,%08xh,%08x) not implemented.\n",
|
|---|
| 1825 | hObject,
|
|---|
| 1826 | nIndex,
|
|---|
| 1827 | lpvInfo,
|
|---|
| 1828 | cbInfo));
|
|---|
| 1829 |
|
|---|
| 1830 | return (FALSE);
|
|---|
| 1831 | }
|
|---|
| 1832 | /*****************************************************************************
|
|---|
| 1833 | * Name : BOOL WIN32API SetUserObjectInformationW
|
|---|
| 1834 | * Purpose : The SetUserObjectInformation function sets information about a
|
|---|
| 1835 | * window station or desktop object.
|
|---|
| 1836 | * Parameters: HANDLE hObject handle of the object for which to set information
|
|---|
| 1837 | * int nIndex type of information to set
|
|---|
| 1838 | * PVOID lpvInfo points to a buffer that contains the information
|
|---|
| 1839 | * DWORD cbInfo size, in bytes, of lpvInfo buffer
|
|---|
| 1840 | * Variables :
|
|---|
| 1841 | * Result : If the function succeeds, the return value is TRUE.
|
|---|
| 1842 | * If the function fails the return value is FALSE. To get extended
|
|---|
| 1843 | * error information, call GetLastError.
|
|---|
| 1844 | * Remark :
|
|---|
| 1845 | * Status : UNTESTED STUB
|
|---|
| 1846 | *
|
|---|
| 1847 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1848 | *****************************************************************************/
|
|---|
| 1849 | BOOL WIN32API SetUserObjectInformationW(HANDLE hObject,
|
|---|
| 1850 | int nIndex,
|
|---|
| 1851 | PVOID lpvInfo,
|
|---|
| 1852 | DWORD cbInfo)
|
|---|
| 1853 | {
|
|---|
| 1854 | dprintf(("USER32:SetUserObjectInformationW (%08xh,%u,%08xh,%08x) not implemented.\n",
|
|---|
| 1855 | hObject,
|
|---|
| 1856 | nIndex,
|
|---|
| 1857 | lpvInfo,
|
|---|
| 1858 | cbInfo));
|
|---|
| 1859 |
|
|---|
| 1860 | return (FALSE);
|
|---|
| 1861 | }
|
|---|
| 1862 | /*****************************************************************************
|
|---|
| 1863 | * Name : BOOL WIN32API SetUserObjectSecurity
|
|---|
| 1864 | * Purpose : The SetUserObjectSecurity function sets the security of a user
|
|---|
| 1865 | * object. This can be, for example, a window or a DDE conversation
|
|---|
| 1866 | * Parameters: HANDLE hObject handle of user object
|
|---|
| 1867 | * SECURITY_INFORMATION * psi address of security information
|
|---|
| 1868 | * LPSECURITY_DESCRIPTOR psd address of security descriptor
|
|---|
| 1869 | * Variables :
|
|---|
| 1870 | * Result : If the function succeeds, the return value is TRUE.
|
|---|
| 1871 | * If the function fails, the return value is FALSE. To get extended
|
|---|
| 1872 | * error information, call GetLastError.
|
|---|
| 1873 | * Remark :
|
|---|
| 1874 | * Status : UNTESTED STUB
|
|---|
| 1875 | *
|
|---|
| 1876 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1877 | *****************************************************************************/
|
|---|
| 1878 | BOOL WIN32API SetUserObjectSecurity(HANDLE hObject,
|
|---|
| 1879 | PSECURITY_INFORMATION psi,
|
|---|
| 1880 | PSECURITY_DESCRIPTOR psd)
|
|---|
| 1881 | {
|
|---|
| 1882 | dprintf(("USER32:SetUserObjectSecuroty (%08xh,%08xh,%08x) not implemented.\n",
|
|---|
| 1883 | hObject,
|
|---|
| 1884 | psi,
|
|---|
| 1885 | psd));
|
|---|
| 1886 |
|
|---|
| 1887 | return (FALSE);
|
|---|
| 1888 | }
|
|---|
| 1889 | /*****************************************************************************
|
|---|
| 1890 | * Name : BOOL WIN32API SwitchDesktop
|
|---|
| 1891 | * Purpose : The SwitchDesktop function makes a desktop visible and activates
|
|---|
| 1892 | * it. This enables the desktop to receive input from the user. The
|
|---|
| 1893 | * calling process must have DESKTOP_SWITCHDESKTOP access to the
|
|---|
| 1894 | * desktop for the SwitchDesktop function to succeed.
|
|---|
| 1895 | * Parameters:
|
|---|
| 1896 | * Variables :
|
|---|
| 1897 | * Result : If the function succeeds, the return value is TRUE.
|
|---|
| 1898 | * If the function fails, the return value is FALSE. To get extended
|
|---|
| 1899 | * error information, call GetLastError.
|
|---|
| 1900 | * Remark :
|
|---|
| 1901 | * Status : UNTESTED STUB
|
|---|
| 1902 | *
|
|---|
| 1903 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1904 | *****************************************************************************/
|
|---|
| 1905 | BOOL WIN32API SwitchDesktop(HDESK hDesktop)
|
|---|
| 1906 | {
|
|---|
| 1907 | dprintf(("USER32:SwitchDesktop (%08x) not implemented.\n",
|
|---|
| 1908 | hDesktop));
|
|---|
| 1909 |
|
|---|
| 1910 | return (FALSE);
|
|---|
| 1911 | }
|
|---|
| 1912 |
|
|---|
| 1913 | /* Debugging Functions */
|
|---|
| 1914 |
|
|---|
| 1915 | /*****************************************************************************
|
|---|
| 1916 | * Name : VOID WIN32API SetDebugErrorLevel
|
|---|
| 1917 | * Purpose : The SetDebugErrorLevel function sets the minimum error level at
|
|---|
| 1918 | * which Windows will generate debugging events and pass them to a debugger.
|
|---|
| 1919 | * Parameters: DWORD dwLevel debugging error level
|
|---|
| 1920 | * Variables :
|
|---|
| 1921 | * Result :
|
|---|
| 1922 | * Remark :
|
|---|
| 1923 | * Status : UNTESTED STUB
|
|---|
| 1924 | *
|
|---|
| 1925 | * Author : Patrick Haller [Thu, 1998/02/26 11:55]
|
|---|
| 1926 | *****************************************************************************/
|
|---|
| 1927 | VOID WIN32API SetDebugErrorLevel(DWORD dwLevel)
|
|---|
| 1928 | {
|
|---|
| 1929 | dprintf(("USER32:SetDebugErrorLevel (%08x) not implemented.\n",
|
|---|
| 1930 | dwLevel));
|
|---|
| 1931 | }
|
|---|
| 1932 |
|
|---|
| 1933 | /* Drag'n'drop */
|
|---|
| 1934 |
|
|---|
| 1935 | /*****************************************************************************
|
|---|
| 1936 | * Name : BOOL WIN32API DragObject
|
|---|
| 1937 | * Purpose : Unknown
|
|---|
| 1938 | * Parameters: Unknown
|
|---|
| 1939 | * Variables :
|
|---|
| 1940 | * Result :
|
|---|
| 1941 | * Remark :
|
|---|
| 1942 | * Status : UNTESTED UNKNOWN STUB
|
|---|
| 1943 | *
|
|---|
| 1944 | * Author : Patrick Haller [Wed, 1998/06/16 11:55]
|
|---|
| 1945 | *****************************************************************************/
|
|---|
| 1946 | DWORD WIN32API DragObject(HWND x1,HWND x2,UINT x3,DWORD x4,HCURSOR x5)
|
|---|
| 1947 | {
|
|---|
| 1948 | dprintf(("USER32: DragObject(%08x,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
|
|---|
| 1949 | x1,
|
|---|
| 1950 | x2,
|
|---|
| 1951 | x3,
|
|---|
| 1952 | x4,
|
|---|
| 1953 | x5));
|
|---|
| 1954 |
|
|---|
| 1955 | return (FALSE); /* default */
|
|---|
| 1956 | }
|
|---|
| 1957 |
|
|---|
| 1958 | /* Unknown */
|
|---|
| 1959 |
|
|---|
| 1960 | /*****************************************************************************
|
|---|
| 1961 | * Name : BOOL WIN32API SetShellWindow
|
|---|
| 1962 | * Purpose : Unknown
|
|---|
| 1963 | * Parameters: Unknown
|
|---|
| 1964 | * Variables :
|
|---|
| 1965 | * Result :
|
|---|
| 1966 | * Remark :
|
|---|
| 1967 | * Status : UNTESTED UNKNOWN STUB
|
|---|
| 1968 | *
|
|---|
| 1969 | * Author : Patrick Haller [Wed, 1998/06/16 11:55]
|
|---|
| 1970 | *****************************************************************************/
|
|---|
| 1971 | BOOL WIN32API SetShellWindow(DWORD x1)
|
|---|
| 1972 | {
|
|---|
| 1973 | dprintf(("USER32: SetShellWindow(%08x) not implemented.\n",
|
|---|
| 1974 | x1));
|
|---|
| 1975 |
|
|---|
| 1976 | return (FALSE); /* default */
|
|---|
| 1977 | }
|
|---|
| 1978 | /*****************************************************************************
|
|---|
| 1979 | * Name : BOOL WIN32API PlaySoundEvent
|
|---|
| 1980 | * Purpose : Unknown
|
|---|
| 1981 | * Parameters: Unknown
|
|---|
| 1982 | * Variables :
|
|---|
| 1983 | * Result :
|
|---|
| 1984 | * Remark :
|
|---|
| 1985 | * Status : UNTESTED UNKNOWN STUB
|
|---|
| 1986 | *
|
|---|
| 1987 | * Author : Patrick Haller [Wed, 1998/06/16 11:55]
|
|---|
| 1988 | *****************************************************************************/
|
|---|
| 1989 | BOOL WIN32API PlaySoundEvent(DWORD x1)
|
|---|
| 1990 | {
|
|---|
| 1991 | dprintf(("USER32: PlaySoundEvent(%08x) not implemented.\n",
|
|---|
| 1992 | x1));
|
|---|
| 1993 |
|
|---|
| 1994 | return (FALSE); /* default */
|
|---|
| 1995 | }
|
|---|
| 1996 | /*****************************************************************************
|
|---|
| 1997 | * Name : BOOL WIN32API SetSysColorsTemp
|
|---|
| 1998 | * Purpose : Unknown
|
|---|
| 1999 | * Parameters: Unknown
|
|---|
| 2000 | * Variables :
|
|---|
| 2001 | * Result :
|
|---|
| 2002 | * Remark :
|
|---|
| 2003 | * Status : UNTESTED UNKNOWN STUB
|
|---|
| 2004 | *
|
|---|
| 2005 | * Author : Patrick Haller [Wed, 1998/06/16 11:55]
|
|---|
| 2006 | *****************************************************************************/
|
|---|
| 2007 | BOOL WIN32API SetSysColorsTemp(void)
|
|---|
| 2008 | {
|
|---|
| 2009 | dprintf(("USER32: SetSysColorsTemp() not implemented.\n"));
|
|---|
| 2010 |
|
|---|
| 2011 | return (FALSE); /* default */
|
|---|
| 2012 | }
|
|---|
| 2013 | /*****************************************************************************
|
|---|
| 2014 | * Name : BOOL WIN32API RegisterNetworkCapabilities
|
|---|
| 2015 | * Purpose : Unknown
|
|---|
| 2016 | * Parameters: Unknown
|
|---|
| 2017 | * Variables :
|
|---|
| 2018 | * Result :
|
|---|
| 2019 | * Remark :
|
|---|
| 2020 | * Status : UNTESTED UNKNOWN STUB
|
|---|
| 2021 | *
|
|---|
| 2022 | * Author : Patrick Haller [Wed, 1998/06/16 11:55]
|
|---|
| 2023 | *****************************************************************************/
|
|---|
| 2024 | BOOL WIN32API RegisterNetworkCapabilities(DWORD x1,
|
|---|
| 2025 | DWORD x2)
|
|---|
| 2026 | {
|
|---|
| 2027 | dprintf(("USER32: RegisterNetworkCapabilities(%08xh,%08xh) not implemented.\n",
|
|---|
| 2028 | x1,
|
|---|
| 2029 | x2));
|
|---|
| 2030 |
|
|---|
| 2031 | return (FALSE); /* default */
|
|---|
| 2032 | }
|
|---|
| 2033 | /*****************************************************************************
|
|---|
| 2034 | * Name : BOOL WIN32API EndTask
|
|---|
| 2035 | * Purpose : Unknown
|
|---|
| 2036 | * Parameters: Unknown
|
|---|
| 2037 | * Variables :
|
|---|
| 2038 | * Result :
|
|---|
| 2039 | * Remark :
|
|---|
| 2040 | * Status : UNTESTED UNKNOWN STUB
|
|---|
| 2041 | *
|
|---|
| 2042 | * Author : Patrick Haller [Wed, 1998/06/16 11:55]
|
|---|
| 2043 | *****************************************************************************/
|
|---|
| 2044 | BOOL WIN32API EndTask(DWORD x1,
|
|---|
| 2045 | DWORD x2,
|
|---|
| 2046 | DWORD x3)
|
|---|
| 2047 | {
|
|---|
| 2048 | dprintf(("USER32: EndTask(%08xh,%08xh,%08xh) not implemented.\n",
|
|---|
| 2049 | x1,
|
|---|
| 2050 | x2,
|
|---|
| 2051 | x3));
|
|---|
| 2052 |
|
|---|
| 2053 | return (FALSE); /* default */
|
|---|
| 2054 | }
|
|---|
| 2055 | /*****************************************************************************
|
|---|
| 2056 | * Name : BOOL WIN32API GetNextQueueWindow
|
|---|
| 2057 | * Purpose : Unknown
|
|---|
| 2058 | * Parameters: Unknown
|
|---|
| 2059 | * Variables :
|
|---|
| 2060 | * Result :
|
|---|
| 2061 | * Remark :
|
|---|
| 2062 | * Status : UNTESTED UNKNOWN STUB
|
|---|
| 2063 | *
|
|---|
| 2064 | * Author : Patrick Haller [Wed, 1998/06/16 11:55]
|
|---|
| 2065 | *****************************************************************************/
|
|---|
| 2066 | BOOL WIN32API GetNextQueueWindow(DWORD x1,
|
|---|
| 2067 | DWORD x2)
|
|---|
| 2068 | {
|
|---|
| 2069 | dprintf(("USER32: GetNextQueueWindow(%08xh,%08xh) not implemented.\n",
|
|---|
| 2070 | x1,
|
|---|
| 2071 | x2));
|
|---|
| 2072 |
|
|---|
| 2073 | return (FALSE); /* default */
|
|---|
| 2074 | }
|
|---|
| 2075 | /*****************************************************************************
|
|---|
| 2076 | * Name : BOOL WIN32API YieldTask
|
|---|
| 2077 | * Purpose : Unknown
|
|---|
| 2078 | * Parameters: Unknown
|
|---|
| 2079 | * Variables :
|
|---|
| 2080 | * Result :
|
|---|
| 2081 | * Remark :
|
|---|
| 2082 | * Status : UNTESTED UNKNOWN STUB
|
|---|
| 2083 | *
|
|---|
| 2084 | * Author : Patrick Haller [Wed, 1998/06/16 11:55]
|
|---|
| 2085 | *****************************************************************************/
|
|---|
| 2086 | BOOL WIN32API YieldTask(void)
|
|---|
| 2087 | {
|
|---|
| 2088 | dprintf(("USER32: YieldTask() not implemented.\n"));
|
|---|
| 2089 |
|
|---|
| 2090 | return (FALSE); /* default */
|
|---|
| 2091 | }
|
|---|
| 2092 | /*****************************************************************************
|
|---|
| 2093 | * Name : BOOL WIN32API WinOldAppHackoMatic
|
|---|
| 2094 | * Purpose : Unknown
|
|---|
| 2095 | * Parameters: Unknown
|
|---|
| 2096 | * Variables :
|
|---|
| 2097 | * Result :
|
|---|
| 2098 | * Remark :
|
|---|
| 2099 | * Status : UNTESTED UNKNOWN STUB
|
|---|
| 2100 | *
|
|---|
| 2101 | * Author : Patrick Haller [Wed, 1998/06/16 11:55]
|
|---|
| 2102 | *****************************************************************************/
|
|---|
| 2103 | BOOL WIN32API WinOldAppHackoMatic(DWORD x1)
|
|---|
| 2104 | {
|
|---|
| 2105 | dprintf(("USER32: WinOldAppHackoMatic(%08x) not implemented.\n",
|
|---|
| 2106 | x1));
|
|---|
| 2107 |
|
|---|
| 2108 | return (FALSE); /* default */
|
|---|
| 2109 | }
|
|---|
| 2110 | /*****************************************************************************
|
|---|
| 2111 | * Name : BOOL WIN32API RegisterSystemThread
|
|---|
| 2112 | * Purpose : Unknown
|
|---|
| 2113 | * Parameters: Unknown
|
|---|
| 2114 | * Variables :
|
|---|
| 2115 | * Result :
|
|---|
| 2116 | * Remark :
|
|---|
| 2117 | * Status : UNTESTED UNKNOWN STUB
|
|---|
| 2118 | *
|
|---|
| 2119 | * Author : Patrick Haller [Wed, 1998/06/16 11:55]
|
|---|
| 2120 | *****************************************************************************/
|
|---|
| 2121 | BOOL WIN32API RegisterSystemThread(DWORD x1,
|
|---|
| 2122 | DWORD x2)
|
|---|
| 2123 | {
|
|---|
| 2124 | dprintf(("USER32: RegisterSystemThread(%08xh,%08xh) not implemented.\n",
|
|---|
| 2125 | x1,
|
|---|
| 2126 | x2));
|
|---|
| 2127 |
|
|---|
| 2128 | return (FALSE); /* default */
|
|---|
| 2129 | }
|
|---|
| 2130 | /*****************************************************************************
|
|---|
| 2131 | * Name : BOOL WIN32API IsHungThread
|
|---|
| 2132 | * Purpose : Unknown
|
|---|
| 2133 | * Parameters: Unknown
|
|---|
| 2134 | * Variables :
|
|---|
| 2135 | * Result :
|
|---|
| 2136 | * Remark :
|
|---|
| 2137 | * Status : UNTESTED UNKNOWN STUB
|
|---|
| 2138 | *
|
|---|
| 2139 | * Author : Patrick Haller [Wed, 1998/06/16 11:55]
|
|---|
| 2140 | *****************************************************************************/
|
|---|
| 2141 | BOOL WIN32API IsHungThread(DWORD x1)
|
|---|
| 2142 | {
|
|---|
| 2143 | dprintf(("USER32: IsHungThread(%08xh) not implemented.\n",
|
|---|
| 2144 | x1));
|
|---|
| 2145 |
|
|---|
| 2146 | return (FALSE); /* default */
|
|---|
| 2147 | }
|
|---|
| 2148 | /*****************************************************************************
|
|---|
| 2149 | * Name : BOOL WIN32API UserSignalProc
|
|---|
| 2150 | * Purpose : Unknown
|
|---|
| 2151 | * Parameters: Unknown
|
|---|
| 2152 | * Variables :
|
|---|
| 2153 | * Result :
|
|---|
| 2154 | * Remark :
|
|---|
| 2155 | * Status : UNTESTED UNKNOWN STUB
|
|---|
| 2156 | *
|
|---|
| 2157 | * Author : Patrick Haller [Wed, 1998/06/16 11:55]
|
|---|
| 2158 | *****************************************************************************/
|
|---|
| 2159 | BOOL WIN32API UserSignalProc(DWORD x1,
|
|---|
| 2160 | DWORD x2,
|
|---|
| 2161 | DWORD x3,
|
|---|
| 2162 | DWORD x4)
|
|---|
| 2163 | {
|
|---|
| 2164 | dprintf(("USER32: SysErrorBox(%08xh,%08xh,%08xh,%08xh) not implemented.\n",
|
|---|
| 2165 | x1,
|
|---|
| 2166 | x2,
|
|---|
| 2167 | x3,
|
|---|
| 2168 | x4));
|
|---|
| 2169 |
|
|---|
| 2170 | return (FALSE); /* default */
|
|---|
| 2171 | }
|
|---|
| 2172 | /*****************************************************************************
|
|---|
| 2173 | * Name : BOOL WIN32API GetShellWindow
|
|---|
| 2174 | * Purpose : Unknown
|
|---|
| 2175 | * Parameters: Unknown
|
|---|
| 2176 | * Variables :
|
|---|
| 2177 | * Result :
|
|---|
| 2178 | * Remark :
|
|---|
| 2179 | * Status : UNTESTED UNKNOWN STUB
|
|---|
| 2180 | *
|
|---|
| 2181 | * Author : Patrick Haller [Wed, 1998/06/16 11:55]
|
|---|
| 2182 | *****************************************************************************/
|
|---|
| 2183 | HWND WIN32API GetShellWindow(void)
|
|---|
| 2184 | {
|
|---|
| 2185 | dprintf(("USER32: GetShellWindow() not implemented.\n"));
|
|---|
| 2186 |
|
|---|
| 2187 | return (0); /* default */
|
|---|
| 2188 | }
|
|---|
| 2189 | /***********************************************************************
|
|---|
| 2190 | * RegisterTasklist32 [USER32.436]
|
|---|
| 2191 | */
|
|---|
| 2192 | DWORD WIN32API RegisterTasklist (DWORD x)
|
|---|
| 2193 | {
|
|---|
| 2194 | dprintf(("USER32: RegisterTasklist(%08xh) not implemented.\n",
|
|---|
| 2195 | x));
|
|---|
| 2196 |
|
|---|
| 2197 | return TRUE;
|
|---|
| 2198 | }
|
|---|
| 2199 | /***********************************************************************
|
|---|
| 2200 | * SetLogonNotifyWindow (USER32.486)
|
|---|
| 2201 | */
|
|---|
| 2202 | DWORD WIN32API SetLogonNotifyWindow(HWINSTA hwinsta,HWND hwnd)
|
|---|
| 2203 | {
|
|---|
| 2204 | dprintf(("USER32: SetLogonNotifyWindow - empty stub!"));
|
|---|
| 2205 |
|
|---|
| 2206 | return 1;
|
|---|
| 2207 | }
|
|---|
| 2208 |
|
|---|
| 2209 |
|
|---|
| 2210 | DWORD WIN32API GetGUIThreadInfo(DWORD arg1, DWORD arg2)
|
|---|
| 2211 | {
|
|---|
| 2212 | dprintf(("USER32: GetGUIThreadInfo %x %x - empty stub!!", arg1, arg2));
|
|---|
| 2213 |
|
|---|
| 2214 | return 0;
|
|---|
| 2215 | }
|
|---|