4 * Copyright 1993 Robert J. Amstadt
10 #include "wine/winbase16.h"
20 #include "cursoricon.h"
25 #include "sysmetrics.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
)
44 int userPercent
, gdiPercent
;
46 if ((gdi_inst
= LoadLibrary16( "GDI" )) < 32) return 0;
47 gdi_heap
= gdi_inst
| 7;
51 case GFSR_USERRESOURCES
:
52 userPercent
= (int)LOCAL_CountFree( USER_HeapSel
) * 100 /
53 LOCAL_HeapSize( USER_HeapSel
);
57 case GFSR_GDIRESOURCES
:
58 gdiPercent
= (int)LOCAL_CountFree( gdi_inst
) * 100 /
59 LOCAL_HeapSize( gdi_inst
);
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
);
71 userPercent
= gdiPercent
= 0;
74 FreeLibrary16( gdi_inst
);
75 return (WORD
)min( userPercent
, gdiPercent
);
79 /**********************************************************************
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;
94 /**********************************************************************
97 static void USER_ModuleUnload( HMODULE16 hModule
)
99 HOOK_FreeModuleHooks( hModule
);
100 CLASS_FreeModuleClasses( hModule
);
101 CURSORICON_FreeModuleIcons( hModule
);
104 /**********************************************************************
107 static void USER_QueueCleanup( HQUEUE16 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 /**********************************************************************
141 static void USER_AppExit(void)
143 HINSTANCE16 hInstance
= MapHModuleLS(0);
145 /* FIXME: maybe destroy menus (Windows only complains about them
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
,
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. */
190 case USIG_DLL_UNLOAD_WIN16
:
191 case USIG_DLL_UNLOAD_WIN32
:
192 USER_ModuleUnload( hModule
);
195 case USIG_DLL_UNLOAD_ORPHANS
:
198 case USIG_FAULT_DIALOG_PUSH
:
199 case USIG_FAULT_DIALOG_POP
:
202 case USIG_THREAD_INIT
:
205 case USIG_THREAD_EXIT
:
206 USER_QueueCleanup( GetThreadQueue16( dwThreadOrProcessID
) );
207 SetThreadQueue16( dwThreadOrProcessID
, 0 );
210 case USIG_PROCESS_CREATE
:
213 case USIG_PROCESS_INIT
:
214 case USIG_PROCESS_LOADED
:
216 case USIG_PROCESS_RUNNING
:
219 case USIG_PROCESS_EXIT
:
222 case USIG_PROCESS_DESTROY
:
227 FIXME_(win
)("(%04x, %08lx, %04lx, %04x)\n",
228 uCode
, dwThreadOrProcessID
, dwFlags
, hModule
);
232 /* FIXME: Should chain to GdiSignalProc now. */
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
)
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();
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 ))
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();
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
);
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");
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
,
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");
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.
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 */
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
);
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
;
411 /***********************************************************************
412 * EnumDisplaySettingsW (USER32.@)
414 BOOL WINAPI
EnumDisplaySettingsW(LPCWSTR name
,DWORD n
,LPDEVMODEW devmode
) {
415 LPSTR nameA
= HEAP_strdupWtoA(GetProcessHeap(),0,name
);
417 BOOL ret
= EnumDisplaySettingsA(nameA
,n
,&devmodeA
);
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
);
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
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
;
485 /***********************************************************************
486 * EnumDisplayDevicesW (USER32.@)
488 BOOL WINAPI
EnumDisplayDevicesW(
489 LPVOID unused
,DWORD i
,LPDISPLAY_DEVICEW lpDisplayDevice
,DWORD dwFlags
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
;
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
);
516 /***********************************************************************
517 * UserSeeUserDo (USER.216)
519 DWORD WINAPI
UserSeeUserDo16(WORD wReqType
, WORD wParam1
, WORD wParam2
, WORD wParam3
)
523 case USUD_LOCALALLOC
:
524 return LOCAL_Alloc(USER_HeapSel
, wParam1
, wParam3
);
526 return LOCAL_Free(USER_HeapSel
, wParam1
);
527 case USUD_LOCALCOMPACT
:
528 return LOCAL_Compact(USER_HeapSel
, wParam3
, 0);
531 case USUD_FIRSTCLASS
:
532 FIXME_(local
)("return a pointer to the first window class.\n");
535 WARN_(local
)("wReqType %04x (unknown)", wReqType
);
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
);
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
);
577 /***********************************************************************
578 * SetUserObjectSecurity (USER32.@)
580 BOOL WINAPI
SetUserObjectSecurity(
582 PSECURITY_INFORMATION pSIRequested
,
583 PSECURITY_DESCRIPTOR pSID
585 FIXME_(win32
)("(0x%08x,%p,%p),stub!\n",hObj
,pSIRequested
,pSID
);
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
);
626 /***********************************************************************
627 * CloseWindowStation (USER32.@)
629 BOOL WINAPI
CloseWindowStation(HWINSTA hWinSta
)
631 FIXME_(win32
)("(0x%08x)\n", hWinSta
);
635 /***********************************************************************
636 * CloseDesktop (USER32.@)
638 BOOL WINAPI
CloseDesktop(HDESK hDesk
)
640 FIXME_(win32
)("(0x%08x)\n", hDesk
);
644 /***********************************************************************
645 * SetWindowStationUser (USER32.@)
647 DWORD WINAPI
SetWindowStationUser(DWORD x1
,DWORD x2
) {
648 FIXME_(win32
)("(0x%08lx,0x%08lx),stub!\n",x1
,x2
);
652 /***********************************************************************
653 * SetLogonNotifyWindow (USER32.@)
655 DWORD WINAPI
SetLogonNotifyWindow(HWINSTA hwinsta
,HWND hwnd
) {
656 FIXME_(win32
)("(0x%x,%04x),stub!\n",hwinsta
,hwnd
);
660 /***********************************************************************
661 * LoadLocalFonts (USER32.@)
663 VOID WINAPI
LoadLocalFonts(VOID
) {
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
);
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
);
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
);
690 /***********************************************************************
691 * SetSystemCursor (USER32.@)
693 BOOL WINAPI
SetSystemCursor(HCURSOR hcur
, DWORD id
)
694 { FIXME_(win32
)("(%08x,%08lx),stub!\n", hcur
, id
);
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