Add a missing </sect3>.
[wine.git] / windows / user.c
blob47a0d77adc56302c26d3cd29397d71bba488791c
1 /*
2 * Misc. USER functions
4 * Copyright 1993 Robert J. Amstadt
5 * 1996 Alex Korobka
6 */
8 #include <stdlib.h>
9 #include <string.h>
10 #include "wine/winbase16.h"
11 #include "windef.h"
12 #include "wingdi.h"
13 #include "winuser.h"
14 #include "heap.h"
15 #include "user.h"
16 #include "task.h"
17 #include "queue.h"
18 #include "win.h"
19 #include "controls.h"
20 #include "cursoricon.h"
21 #include "hook.h"
22 #include "toolhelp.h"
23 #include "message.h"
24 #include "miscemu.h"
25 #include "sysmetrics.h"
26 #include "callback.h"
27 #include "local.h"
28 #include "module.h"
29 #include "debugtools.h"
31 DECLARE_DEBUG_CHANNEL(hook);
32 DECLARE_DEBUG_CHANNEL(local);
33 DECLARE_DEBUG_CHANNEL(system);
34 DECLARE_DEBUG_CHANNEL(win);
35 DECLARE_DEBUG_CHANNEL(win32);
37 /***********************************************************************
38 * GetFreeSystemResources (USER.284)
40 WORD WINAPI GetFreeSystemResources16( WORD resType )
42 HINSTANCE16 gdi_inst;
43 WORD gdi_heap;
44 int userPercent, gdiPercent;
46 if ((gdi_inst = LoadLibrary16( "GDI" )) < 32) return 0;
47 gdi_heap = gdi_inst | 7;
49 switch(resType)
51 case GFSR_USERRESOURCES:
52 userPercent = (int)LOCAL_CountFree( USER_HeapSel ) * 100 /
53 LOCAL_HeapSize( USER_HeapSel );
54 gdiPercent = 100;
55 break;
57 case GFSR_GDIRESOURCES:
58 gdiPercent = (int)LOCAL_CountFree( gdi_inst ) * 100 /
59 LOCAL_HeapSize( gdi_inst );
60 userPercent = 100;
61 break;
63 case GFSR_SYSTEMRESOURCES:
64 userPercent = (int)LOCAL_CountFree( USER_HeapSel ) * 100 /
65 LOCAL_HeapSize( USER_HeapSel );
66 gdiPercent = (int)LOCAL_CountFree( gdi_inst ) * 100 /
67 LOCAL_HeapSize( gdi_inst );
68 break;
70 default:
71 userPercent = gdiPercent = 0;
72 break;
74 FreeLibrary16( gdi_inst );
75 return (WORD)min( userPercent, gdiPercent );
79 /**********************************************************************
80 * InitApp (USER.5)
82 INT16 WINAPI InitApp16( HINSTANCE16 hInstance )
84 /* Hack: restore the divide-by-zero handler */
85 /* FIXME: should set a USER-specific handler that displays a msg box */
86 INT_SetPMHandler( 0, INT_GetPMHandler( 0xff ) );
88 /* Create task message queue */
89 if ( !GetFastQueue16() ) return 0;
91 return 1;
94 /**********************************************************************
95 * USER_ModuleUnload
97 static void USER_ModuleUnload( HMODULE16 hModule )
99 HOOK_FreeModuleHooks( hModule );
100 CLASS_FreeModuleClasses( hModule );
101 CURSORICON_FreeModuleIcons( hModule );
104 /**********************************************************************
105 * USER_QueueCleanup
107 static void USER_QueueCleanup( HQUEUE16 hQueue )
109 if ( hQueue )
111 WND* desktop = WIN_GetDesktop();
113 /* Patch desktop window */
114 if ( desktop->hmemTaskQ == hQueue )
116 HTASK16 nextTask = TASK_GetNextTask( GetCurrentTask() );
117 desktop->hmemTaskQ = GetTaskQueue16( nextTask );
120 /* Patch resident popup menu window */
121 MENU_PatchResidentPopup( hQueue, NULL );
123 TIMER_RemoveQueueTimers( hQueue );
125 HOOK_FreeQueueHooks( hQueue );
127 QUEUE_SetExitingQueue( hQueue );
128 WIN_ResetQueueWindows( desktop, hQueue, (HQUEUE16)0);
129 QUEUE_SetExitingQueue( 0 );
131 /* Free the message queue */
132 QUEUE_DeleteMsgQueue( hQueue );
134 WIN_ReleaseDesktop();
138 /**********************************************************************
139 * USER_AppExit
141 static void USER_AppExit(void)
143 HINSTANCE16 hInstance = MapHModuleLS(0);
145 /* FIXME: maybe destroy menus (Windows only complains about them
146 * but does nothing);
149 /* ModuleUnload() in "Internals" */
151 hInstance = GetExePtr( hInstance );
152 if( GetModuleUsage16( hInstance ) <= 1 )
153 USER_ModuleUnload( hInstance );
157 /***********************************************************************
158 * SignalProc (USER.314)
160 void WINAPI USER_SignalProc( HANDLE16 hTaskOrModule, UINT16 uCode,
161 UINT16 uExitFn, HINSTANCE16 hInstance,
162 HQUEUE16 hQueue )
164 FIXME_(win)("Win 3.1 USER signal %04x\n", uCode );
167 /***********************************************************************
168 * FinalUserInit (USER.400)
170 void WINAPI FinalUserInit16( void )
172 /* FIXME: Should chain to FinalGdiInit now. */
175 /***********************************************************************
176 * SignalProc32 (USER.391)
177 * UserSignalProc (USER32.@)
179 * For comments about the meaning of uCode and dwFlags
180 * see PROCESS_CallUserSignalProc.
183 WORD WINAPI UserSignalProc( UINT uCode, DWORD dwThreadOrProcessID,
184 DWORD dwFlags, HMODULE16 hModule )
186 /* FIXME: Proper reaction to most signals still missing. */
188 switch ( uCode )
190 case USIG_DLL_UNLOAD_WIN16:
191 case USIG_DLL_UNLOAD_WIN32:
192 USER_ModuleUnload( hModule );
193 break;
195 case USIG_DLL_UNLOAD_ORPHANS:
196 break;
198 case USIG_FAULT_DIALOG_PUSH:
199 case USIG_FAULT_DIALOG_POP:
200 break;
202 case USIG_THREAD_INIT:
203 break;
205 case USIG_THREAD_EXIT:
206 USER_QueueCleanup( GetThreadQueue16( dwThreadOrProcessID ) );
207 SetThreadQueue16( dwThreadOrProcessID, 0 );
208 break;
210 case USIG_PROCESS_CREATE:
211 break;
213 case USIG_PROCESS_INIT:
214 case USIG_PROCESS_LOADED:
215 break;
216 case USIG_PROCESS_RUNNING:
217 break;
219 case USIG_PROCESS_EXIT:
220 break;
222 case USIG_PROCESS_DESTROY:
223 USER_AppExit();
224 break;
226 default:
227 FIXME_(win)("(%04x, %08lx, %04lx, %04x)\n",
228 uCode, dwThreadOrProcessID, dwFlags, hModule );
229 break;
232 /* FIXME: Should chain to GdiSignalProc now. */
234 return 0;
237 /***********************************************************************
238 * ExitWindows (USER.7)
240 BOOL16 WINAPI ExitWindows16( DWORD dwReturnCode, UINT16 wReserved )
242 return ExitWindowsEx( EWX_LOGOFF, 0xffffffff );
246 /***********************************************************************
247 * ExitWindowsExec (USER.246)
249 BOOL16 WINAPI ExitWindowsExec16( LPCSTR lpszExe, LPCSTR lpszParams )
251 TRACE_(system)("Should run the following in DOS-mode: \"%s %s\"\n",
252 lpszExe, lpszParams);
253 return ExitWindowsEx( EWX_LOGOFF, 0xffffffff );
257 /***********************************************************************
258 * ExitWindowsEx (USER32.@)
260 BOOL WINAPI ExitWindowsEx( UINT flags, DWORD reserved )
262 int i;
263 BOOL result;
264 WND **list, **ppWnd;
266 /* We have to build a list of all windows first, as in EnumWindows */
268 if (!(list = WIN_BuildWinArray( WIN_GetDesktop(), 0, NULL )))
270 WIN_ReleaseDesktop();
271 return FALSE;
274 /* Send a WM_QUERYENDSESSION message to every window */
276 for (ppWnd = list, i = 0; *ppWnd; ppWnd++, i++)
278 /* Make sure that the window still exists */
279 if (!IsWindow( (*ppWnd)->hwndSelf )) continue;
280 if (!SendMessage16( (*ppWnd)->hwndSelf, WM_QUERYENDSESSION, 0, 0 ))
281 break;
283 result = !(*ppWnd);
285 /* Now notify all windows that got a WM_QUERYENDSESSION of the result */
287 for (ppWnd = list; i > 0; i--, ppWnd++)
289 if (!IsWindow( (*ppWnd)->hwndSelf )) continue;
290 SendMessage16( (*ppWnd)->hwndSelf, WM_ENDSESSION, result, 0 );
292 WIN_ReleaseWinArray(list);
294 if (result) ExitKernel16();
295 WIN_ReleaseDesktop();
296 return FALSE;
299 static void _dump_CDS_flags(DWORD flags) {
300 #define X(x) if (flags & CDS_##x) MESSAGE(""#x ",");
301 X(UPDATEREGISTRY);X(TEST);X(FULLSCREEN);X(GLOBAL);
302 X(SET_PRIMARY);X(RESET);X(SETRECT);X(NORESET);
303 #undef X
306 /***********************************************************************
307 * ChangeDisplaySettingsA (USER32.@)
309 LONG WINAPI ChangeDisplaySettingsA( LPDEVMODEA devmode, DWORD flags )
311 FIXME_(system)("(%p,0x%08lx), stub\n",devmode,flags);
312 MESSAGE("\tflags=");_dump_CDS_flags(flags);MESSAGE("\n");
313 if (devmode==NULL)
314 FIXME_(system)(" devmode=NULL (return to default mode)\n");
315 else if ( (devmode->dmBitsPerPel != GetSystemMetrics(SM_WINE_BPP))
316 || (devmode->dmPelsHeight != GetSystemMetrics(SM_CYSCREEN))
317 || (devmode->dmPelsWidth != GetSystemMetrics(SM_CXSCREEN)) )
321 if (devmode->dmFields & DM_BITSPERPEL)
322 FIXME_(system)(" bpp=%ld\n",devmode->dmBitsPerPel);
323 if (devmode->dmFields & DM_PELSWIDTH)
324 FIXME_(system)(" width=%ld\n",devmode->dmPelsWidth);
325 if (devmode->dmFields & DM_PELSHEIGHT)
326 FIXME_(system)(" height=%ld\n",devmode->dmPelsHeight);
327 FIXME_(system)(" (Putting X in this mode beforehand might help)\n");
328 /* we don't, but the program ... does not need to know */
329 return DISP_CHANGE_SUCCESSFUL;
331 return DISP_CHANGE_SUCCESSFUL;
334 /***********************************************************************
335 * ChangeDisplaySettings (USER.620)
337 LONG WINAPI ChangeDisplaySettings16( LPDEVMODEA devmode, DWORD flags )
339 TRACE_(system)("(%p,0x%08lx), stub\n",devmode,flags);
340 return ChangeDisplaySettingsA(devmode, flags);
343 /***********************************************************************
344 * ChangeDisplaySettingsExA (USER32.@)
346 LONG WINAPI ChangeDisplaySettingsExA(
347 LPCSTR devname, LPDEVMODEA devmode, HWND hwnd, DWORD flags,
348 LPARAM lparam
350 FIXME_(system)("(%s,%p,0x%04x,0x%08lx,0x%08lx), stub\n",devname,devmode,hwnd,flags,lparam);
351 MESSAGE("\tflags=");_dump_CDS_flags(flags);MESSAGE("\n");
352 if (devmode==NULL)
353 FIXME_(system)(" devmode=NULL (return to default mode)\n");
354 else if ( (devmode->dmBitsPerPel != GetSystemMetrics(SM_WINE_BPP))
355 || (devmode->dmPelsHeight != GetSystemMetrics(SM_CYSCREEN))
356 || (devmode->dmPelsWidth != GetSystemMetrics(SM_CXSCREEN)) )
360 if (devmode->dmFields & DM_BITSPERPEL)
361 FIXME_(system)(" bpp=%ld\n",devmode->dmBitsPerPel);
362 if (devmode->dmFields & DM_PELSWIDTH)
363 FIXME_(system)(" width=%ld\n",devmode->dmPelsWidth);
364 if (devmode->dmFields & DM_PELSHEIGHT)
365 FIXME_(system)(" height=%ld\n",devmode->dmPelsHeight);
366 FIXME_(system)(" (Putting X in this mode beforehand might help)\n");
367 /* we don't, but the program ... does not need to know */
368 return DISP_CHANGE_SUCCESSFUL;
370 return DISP_CHANGE_SUCCESSFUL;
373 /***********************************************************************
374 * EnumDisplaySettingsA (USER32.@)
375 * FIXME: Currently uses static list of modes.
377 * RETURNS
378 * TRUE if nth setting exists found (described in the LPDEVMODEA struct)
379 * FALSE if we do not have the nth setting
381 BOOL WINAPI EnumDisplaySettingsA(
382 LPCSTR name, /* [in] huh? */
383 DWORD n, /* [in] nth entry in display settings list*/
384 LPDEVMODEA devmode /* [out] devmode for that setting */
386 #define NRMODES 5
387 #define NRDEPTHS 4
388 struct {
389 int w,h;
390 } modes[NRMODES]={{512,384},{640,400},{640,480},{800,600},{1024,768}};
391 int depths[4] = {8,16,24,32};
393 TRACE_(system)("(%s,%ld,%p)\n",name,n,devmode);
394 devmode->dmDisplayFlags = 0;
395 devmode->dmDisplayFrequency = 85;
396 if (n==0 || n == (DWORD)-1 || n == (DWORD)-2) {
397 devmode->dmBitsPerPel = GetSystemMetrics(SM_WINE_BPP);
398 devmode->dmPelsHeight = GetSystemMetrics(SM_CYSCREEN);
399 devmode->dmPelsWidth = GetSystemMetrics(SM_CXSCREEN);
400 return TRUE;
402 if ((n-1)<NRMODES*NRDEPTHS) {
403 devmode->dmBitsPerPel = depths[(n-1)/NRMODES];
404 devmode->dmPelsHeight = modes[(n-1)%NRMODES].h;
405 devmode->dmPelsWidth = modes[(n-1)%NRMODES].w;
406 return TRUE;
408 return FALSE;
411 /***********************************************************************
412 * EnumDisplaySettingsW (USER32.@)
414 BOOL WINAPI EnumDisplaySettingsW(LPCWSTR name,DWORD n,LPDEVMODEW devmode) {
415 LPSTR nameA = HEAP_strdupWtoA(GetProcessHeap(),0,name);
416 DEVMODEA devmodeA;
417 BOOL ret = EnumDisplaySettingsA(nameA,n,&devmodeA);
419 if (ret) {
420 devmode->dmBitsPerPel = devmodeA.dmBitsPerPel;
421 devmode->dmPelsHeight = devmodeA.dmPelsHeight;
422 devmode->dmPelsWidth = devmodeA.dmPelsWidth;
423 devmode->dmDisplayFlags = devmodeA.dmDisplayFlags;
424 devmode->dmDisplayFrequency = devmodeA.dmDisplayFrequency;
425 /* FIXME: convert rest too, if they are ever returned */
427 HeapFree(GetProcessHeap(),0,nameA);
428 return ret;
431 /***********************************************************************
432 * EnumDisplaySettings (USER.621)
434 BOOL16 WINAPI EnumDisplaySettings16(
435 LPCSTR name, /* [in] huh? */
436 DWORD n, /* [in] nth entry in display settings list*/
437 LPDEVMODEA devmode /* [out] devmode for that setting */
439 TRACE_(system)("(%s, %ld, %p)\n", name, n, devmode);
440 return (BOOL16)EnumDisplaySettingsA(name, n, devmode);
443 /***********************************************************************
444 * EnumDisplaySettingsExA (USER32.@)
446 BOOL WINAPI EnumDisplaySettingsExA(LPCSTR lpszDeviceName, DWORD iModeNum,
447 LPDEVMODEA lpDevMode, DWORD dwFlags)
449 TRACE_(system)("(%s,%lu,%p,%08lx): stub\n",
450 debugstr_a(lpszDeviceName), iModeNum, lpDevMode, dwFlags);
452 return EnumDisplaySettingsA(lpszDeviceName, iModeNum, lpDevMode);
455 /***********************************************************************
456 * EnumDisplaySettingsExW (USER32.@)
458 BOOL WINAPI EnumDisplaySettingsExW(LPCWSTR lpszDeviceName, DWORD iModeNum,
459 LPDEVMODEW lpDevMode, DWORD dwFlags)
461 TRACE_(system)("(%s,%lu,%p,%08lx): stub\n",
462 debugstr_w(lpszDeviceName), iModeNum, lpDevMode, dwFlags);
464 return EnumDisplaySettingsW(lpszDeviceName, iModeNum, lpDevMode);
467 /***********************************************************************
468 * EnumDisplayDevicesA (USER32.@)
470 BOOL WINAPI EnumDisplayDevicesA(
471 LPVOID unused,DWORD i,LPDISPLAY_DEVICEA lpDisplayDevice,DWORD dwFlags
473 if (i)
474 return FALSE;
475 FIXME_(system)("(%p,%ld,%p,0x%08lx), stub!\n",unused,i,lpDisplayDevice,dwFlags);
476 strcpy(lpDisplayDevice->DeviceName,"X11");
477 strcpy(lpDisplayDevice->DeviceString,"X 11 Windowing System");
478 lpDisplayDevice->StateFlags =
479 DISPLAY_DEVICE_ATTACHED_TO_DESKTOP |
480 DISPLAY_DEVICE_PRIMARY_DEVICE |
481 DISPLAY_DEVICE_VGA_COMPATIBLE;
482 return TRUE;
485 /***********************************************************************
486 * EnumDisplayDevicesW (USER32.@)
488 BOOL WINAPI EnumDisplayDevicesW(
489 LPVOID unused,DWORD i,LPDISPLAY_DEVICEW lpDisplayDevice,DWORD dwFlags
491 if (i)
492 return FALSE;
493 FIXME_(system)("(%p,%ld,%p,0x%08lx), stub!\n",unused,i,lpDisplayDevice,dwFlags);
494 MultiByteToWideChar( CP_ACP, 0, "X11", -1, lpDisplayDevice->DeviceName,
495 sizeof(lpDisplayDevice->DeviceName)/sizeof(WCHAR) );
496 MultiByteToWideChar( CP_ACP, 0, "X11 Windowing System", -1, lpDisplayDevice->DeviceString,
497 sizeof(lpDisplayDevice->DeviceString)/sizeof(WCHAR) );
498 lpDisplayDevice->StateFlags =
499 DISPLAY_DEVICE_ATTACHED_TO_DESKTOP |
500 DISPLAY_DEVICE_PRIMARY_DEVICE |
501 DISPLAY_DEVICE_VGA_COMPATIBLE;
502 return TRUE;
505 /***********************************************************************
506 * SetEventHook (USER.321)
508 * Used by Turbo Debugger for Windows
510 FARPROC16 WINAPI SetEventHook16(FARPROC16 lpfnEventHook)
512 FIXME_(hook)("(lpfnEventHook=%08x): stub\n", (UINT)lpfnEventHook);
513 return NULL;
516 /***********************************************************************
517 * UserSeeUserDo (USER.216)
519 DWORD WINAPI UserSeeUserDo16(WORD wReqType, WORD wParam1, WORD wParam2, WORD wParam3)
521 switch (wReqType)
523 case USUD_LOCALALLOC:
524 return LOCAL_Alloc(USER_HeapSel, wParam1, wParam3);
525 case USUD_LOCALFREE:
526 return LOCAL_Free(USER_HeapSel, wParam1);
527 case USUD_LOCALCOMPACT:
528 return LOCAL_Compact(USER_HeapSel, wParam3, 0);
529 case USUD_LOCALHEAP:
530 return USER_HeapSel;
531 case USUD_FIRSTCLASS:
532 FIXME_(local)("return a pointer to the first window class.\n");
533 return (DWORD)-1;
534 default:
535 WARN_(local)("wReqType %04x (unknown)", wReqType);
536 return (DWORD)-1;
540 /***********************************************************************
541 * GetSystemDebugState (USER.231)
543 WORD WINAPI GetSystemDebugState16(void)
545 return 0; /* FIXME */
548 /***********************************************************************
549 * RegisterLogonProcess (USER32.@)
551 DWORD WINAPI RegisterLogonProcess(HANDLE hprocess,BOOL x) {
552 FIXME_(win32)("(%d,%d),stub!\n",hprocess,x);
553 return 1;
556 /***********************************************************************
557 * CreateWindowStationW (USER32.@)
559 HWINSTA WINAPI CreateWindowStationW(
560 LPWSTR winstation,DWORD res1,DWORD desiredaccess,
561 LPSECURITY_ATTRIBUTES lpsa
563 FIXME_(win32)("(%s,0x%08lx,0x%08lx,%p),stub!\n",debugstr_w(winstation),
564 res1,desiredaccess,lpsa
566 return (HWINSTA)0xdeadcafe;
569 /***********************************************************************
570 * SetProcessWindowStation (USER32.@)
572 BOOL WINAPI SetProcessWindowStation(HWINSTA hWinSta) {
573 FIXME_(win32)("(%d),stub!\n",hWinSta);
574 return TRUE;
577 /***********************************************************************
578 * SetUserObjectSecurity (USER32.@)
580 BOOL WINAPI SetUserObjectSecurity(
581 HANDLE hObj,
582 PSECURITY_INFORMATION pSIRequested,
583 PSECURITY_DESCRIPTOR pSID
585 FIXME_(win32)("(0x%08x,%p,%p),stub!\n",hObj,pSIRequested,pSID);
586 return TRUE;
589 /***********************************************************************
590 * CreateDesktopA (USER32.@)
592 HDESK WINAPI CreateDesktopA(
593 LPSTR lpszDesktop,LPSTR lpszDevice,LPDEVMODEA pDevmode,
594 DWORD dwFlags,DWORD dwDesiredAccess,LPSECURITY_ATTRIBUTES lpsa
596 FIXME_(win32)("(%s,%s,%p,0x%08lx,0x%08lx,%p),stub!\n",
597 lpszDesktop,lpszDevice,pDevmode,
598 dwFlags,dwDesiredAccess,lpsa
600 return (HDESK)0xcafedead;
603 /***********************************************************************
604 * CreateDesktopW (USER32.@)
606 HDESK WINAPI CreateDesktopW(
607 LPWSTR lpszDesktop,LPWSTR lpszDevice,LPDEVMODEW pDevmode,
608 DWORD dwFlags,DWORD dwDesiredAccess,LPSECURITY_ATTRIBUTES lpsa
610 FIXME_(win32)("(%s,%s,%p,0x%08lx,0x%08lx,%p),stub!\n",
611 debugstr_w(lpszDesktop),debugstr_w(lpszDevice),pDevmode,
612 dwFlags,dwDesiredAccess,lpsa
614 return (HDESK)0xcafedead;
617 /***********************************************************************
618 * EnumDesktopWindows (USER32.@)
620 BOOL WINAPI EnumDesktopWindows( HDESK hDesktop, WNDENUMPROC lpfn, LPARAM lParam ) {
621 FIXME_(win32)("(0x%08x, %p, 0x%08lx), stub!\n", hDesktop, lpfn, lParam );
622 return TRUE;
626 /***********************************************************************
627 * CloseWindowStation (USER32.@)
629 BOOL WINAPI CloseWindowStation(HWINSTA hWinSta)
631 FIXME_(win32)("(0x%08x)\n", hWinSta);
632 return TRUE;
635 /***********************************************************************
636 * CloseDesktop (USER32.@)
638 BOOL WINAPI CloseDesktop(HDESK hDesk)
640 FIXME_(win32)("(0x%08x)\n", hDesk);
641 return TRUE;
644 /***********************************************************************
645 * SetWindowStationUser (USER32.@)
647 DWORD WINAPI SetWindowStationUser(DWORD x1,DWORD x2) {
648 FIXME_(win32)("(0x%08lx,0x%08lx),stub!\n",x1,x2);
649 return 1;
652 /***********************************************************************
653 * SetLogonNotifyWindow (USER32.@)
655 DWORD WINAPI SetLogonNotifyWindow(HWINSTA hwinsta,HWND hwnd) {
656 FIXME_(win32)("(0x%x,%04x),stub!\n",hwinsta,hwnd);
657 return 1;
660 /***********************************************************************
661 * LoadLocalFonts (USER32.@)
663 VOID WINAPI LoadLocalFonts(VOID) {
664 /* are loaded. */
665 return;
667 /***********************************************************************
668 * GetUserObjectInformationA (USER32.@)
670 BOOL WINAPI GetUserObjectInformationA( HANDLE hObj, INT nIndex, LPVOID pvInfo, DWORD nLength, LPDWORD lpnLen )
671 { FIXME_(win32)("(0x%x %i %p %ld %p),stub!\n", hObj, nIndex, pvInfo, nLength, lpnLen );
672 return TRUE;
674 /***********************************************************************
675 * GetUserObjectInformationW (USER32.@)
677 BOOL WINAPI GetUserObjectInformationW( HANDLE hObj, INT nIndex, LPVOID pvInfo, DWORD nLength, LPDWORD lpnLen )
678 { FIXME_(win32)("(0x%x %i %p %ld %p),stub!\n", hObj, nIndex, pvInfo, nLength, lpnLen );
679 return TRUE;
681 /***********************************************************************
682 * GetUserObjectSecurity (USER32.@)
684 BOOL WINAPI GetUserObjectSecurity(HANDLE hObj, PSECURITY_INFORMATION pSIRequested,
685 PSECURITY_DESCRIPTOR pSID, DWORD nLength, LPDWORD lpnLengthNeeded)
686 { FIXME_(win32)("(0x%x %p %p len=%ld %p),stub!\n", hObj, pSIRequested, pSID, nLength, lpnLengthNeeded);
687 return TRUE;
690 /***********************************************************************
691 * SetSystemCursor (USER32.@)
693 BOOL WINAPI SetSystemCursor(HCURSOR hcur, DWORD id)
694 { FIXME_(win32)("(%08x,%08lx),stub!\n", hcur, id);
695 return TRUE;
698 /***********************************************************************
699 * RegisterSystemThread (USER32.@)
701 void WINAPI RegisterSystemThread(DWORD flags, DWORD reserved)
703 FIXME_(win32)("(%08lx, %08lx)\n", flags, reserved);
706 /***********************************************************************
707 * RegisterDeviceNotificationA (USER32.@)
709 HDEVNOTIFY WINAPI RegisterDeviceNotificationA(
710 HANDLE hnd, LPVOID notifyfilter, DWORD flags
712 FIXME_(win32)("(hwnd=%08x, filter=%p,flags=0x%08lx), STUB!\n",
713 hnd,notifyfilter,flags
715 return 0;