Author: jimtabor Date: Mon May 28 04:51:31 2012 New Revision: 56664
URL: http://svn.reactos.org/svn/reactos?rev=56664&view=rev Log: [Win32SS] - Add utility of setting and clearing the state bits from user space. Use this later. Fix build.
Modified: trunk/reactos/win32ss/user/ntuser/misc.c
Modified: trunk/reactos/win32ss/user/ntuser/misc.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/misc.c?... ============================================================================== --- trunk/reactos/win32ss/user/ntuser/misc.c [iso-8859-1] (original) +++ trunk/reactos/win32ss/user/ntuser/misc.c [iso-8859-1] Mon May 28 04:51:31 2012 @@ -446,6 +446,48 @@ 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)