mirror of
https://github.com/reactos/reactos.git
synced 2024-07-08 13:45:06 +00:00
[win32k]
- Implement NtUserLockWorkStation [winlogon] - Handle LN_LOCK_WORKSTATION case of the WM_LOGONNOTIFY message svn path=/trunk/; revision=58346
This commit is contained in:
parent
1877afb7da
commit
637726c75d
|
@ -1174,6 +1174,11 @@ SASWindowProc(
|
||||||
inScrn = FALSE;
|
inScrn = FALSE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case LN_LOCK_WORKSTATION:
|
||||||
|
{
|
||||||
|
DoGenericAction(Session, WLX_SAS_ACTION_LOCK_WKSTA);
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
ERR("WM_LOGONNOTIFY case %d is unimplemented\n", wParam);
|
ERR("WM_LOGONNOTIFY case %d is unimplemented\n", wParam);
|
||||||
|
|
|
@ -307,15 +307,6 @@ NtUserInitTask(
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL
|
|
||||||
APIENTRY
|
|
||||||
NtUserLockWorkStation(VOID)
|
|
||||||
{
|
|
||||||
STUB
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
DWORD
|
DWORD
|
||||||
APIENTRY
|
APIENTRY
|
||||||
NtUserMNDragLeave(VOID)
|
NtUserMNDragLeave(VOID)
|
||||||
|
|
|
@ -1320,4 +1320,27 @@ NtUserSetLogonNotifyWindow(HWND hWnd)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOL
|
||||||
|
APIENTRY
|
||||||
|
NtUserLockWorkStation(VOID)
|
||||||
|
{
|
||||||
|
BOOL ret;
|
||||||
|
PTHREADINFO pti = PsGetCurrentThreadWin32Thread();
|
||||||
|
|
||||||
|
UserEnterExclusive();
|
||||||
|
|
||||||
|
if (pti->rpdesk == IntGetActiveDesktop())
|
||||||
|
{
|
||||||
|
ret = UserPostMessage(hwndSAS, WM_LOGONNOTIFY, LN_LOCK_WORKSTATION, 0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ret = FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
UserLeave();
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
Loading…
Reference in a new issue