Author: greatlrd Date: Sun Oct 21 21:08:12 2007 New Revision: 29743
URL: http://svn.reactos.org/svn/reactos?rev=29743&view=rev Log: implement DxEngLockDC and DxEngUnlockDC Documented DxEngLockDC and DxEngUnlockDC
Modified: branches/reactx/reactos/subsystems/win32/win32k/ntddraw/dxeng.c
Modified: branches/reactx/reactos/subsystems/win32/win32k/ntddraw/dxeng.c URL: http://svn.reactos.org/svn/reactos/branches/reactx/reactos/subsystems/win32/... ============================================================================== --- branches/reactx/reactos/subsystems/win32/win32k/ntddraw/dxeng.c (original) +++ branches/reactx/reactos/subsystems/win32/win32k/ntddraw/dxeng.c Sun Oct 21 21:08:12 2007 @@ -61,10 +61,8 @@ {0, (PFN) NULL}, // hack for now // {DXENG_INDEX_DxEngSetDCOwner, (PFN)DxEngSetDCOwner}, {0, (PFN) NULL}, // hack for now -// {DXENG_INDEX_DxEngLockDC, (PFN)DxEngLockDC}, - {0, (PFN) NULL}, // hack for now -// {DXENG_INDEX_DxEngUnlockDC, (PFN)DxEngUnlockDC}, - {0, (PFN) NULL}, // hack for now + {DXENG_INDEX_DxEngLockDC, (PFN)DxEngLockDC}, + {DXENG_INDEX_DxEngUnlockDC, (PFN)DxEngUnlockDC}, // {DXENG_INDEX_DxEngSetDCState, (PFN)DxEngGetDCState}, {0, (PFN) NULL}, // hack for now // {DXENG_INDEX_DxEngGetDCState, (PFN)DxEngGetDCState}, @@ -172,5 +170,51 @@ }
- - +/*++ +* @name DxEngLockDC +* @implemented +* +* The function DxEngLockDC lock a hdc from dxg.sys +* +* @param HDC hDC +* The handle we need want lock +* +* @return +* This api return PDC or NULL depns if it sussess lock the hdc or not +* @remarks. +* none +* +*--*/ +PDC +DxEngLockDC(HDC hDC) +{ + return DC_LockDc(hdc); +} + + +/*++ +* @name DxEngUnlockDC +* @implemented +* +* The function DxEngUnlockDC Unlock a pDC (hdc) from dxg.sys + +* @param PDC pDC +* The handle we need unlock +* +* @return +* This api always return TRUE if it sussess or not + +* @remarks. +* none +* +*--*/ +BOOL +DxEngUnlockDC(PDC pDC) +{ + DC_UnlockDc(pDC); + return TRUE; +} + + + +