[Win32SS]

- Add utility of setting and clearing the state bits from user space. Use this later. Fix build.

svn path=/trunk/; revision=56664
This commit is contained in:
James Tabor 2012-05-28 04:51:31 +00:00
parent 845ea709c3
commit b22bc1a952

View file

@ -446,6 +446,48 @@ CLEANUP:
END_CLEANUP;
}
VOID FASTCALL
IntSetWindowState(PWND pWnd, UINT Flag)
{
UINT bit;
if (gptiCurrent->ppi != pWnd->head.pti->ppi) return;
bit = 1 << LOWORD(Flag);
TRACE("SWS %x\n",bit);
switch(HIWORD(Flag))
{
case 0:
pWnd->state |= bit;
break;
case 1:
pWnd->state2 |= bit;
break;
case 2:
pWnd->ExStyle2 |= bit;
break;
}
}
VOID FASTCALL
IntClearWindowState(PWND pWnd, UINT Flag)
{
UINT bit;
if (gptiCurrent->ppi != pWnd->head.pti->ppi) return;
bit = 1 << LOWORD(Flag);
TRACE("CWS %x\n",bit);
switch(HIWORD(Flag))
{
case 0:
pWnd->state &= ~bit;
break;
case 1:
pWnd->state2 &= ~bit;
break;
case 2:
pWnd->ExStyle2 &= ~bit;
break;
}
}
NTSTATUS FASTCALL
IntSafeCopyUnicodeString(PUNICODE_STRING Dest,
PUNICODE_STRING Source)