From bd8a20efb11ed1fb74f244ab67fb5baa03701780 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sun, 21 Oct 2007 17:06:27 +0000 Subject: [PATCH] add correct prototypes for DxEngLockDC and DxEngUnlockDC add comment how DxEngLockDC and DxEngUnlockDC works svn path=/branches/reactx/; revision=29742 --- .../include/reactos/drivers/directx/dxeng.h | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/reactos/include/reactos/drivers/directx/dxeng.h b/reactos/include/reactos/drivers/directx/dxeng.h index c353bbcb993..98b5c696715 100644 --- a/reactos/include/reactos/drivers/directx/dxeng.h +++ b/reactos/include/reactos/drivers/directx/dxeng.h @@ -56,20 +56,25 @@ BOOL DxEngNUIsTermSrv(); /* Notes : it always return TRUE, and it update whole the screen (redaw current desktop) */ BOOL DxEngRedrawDesktop(); -/* Notes : return the DisplayUniqVisrgn counter from gdishare memory */ +/* Notes : return the DisplayUniqVisrgn counter from gdishare memory */ ULONG DxEngDispUniq(); /* Notes : return the VisRgnUniq counter for win32k */ ULONG DxEngVisRgnUniq(); -/* Enumate all drivers in win32k */ -HDEV * -DxEngEnumerateHdev(HDEV *hdev); +/* Notes : Enumate all drivers in win32k */ +HDEV *DxEngEnumerateHdev(HDEV *hdev); -/* same protypes NtGdiEngGetDeviceGammaRamp, diffent is we skipp the user mode checks and seh */ +/* Notes : same protypes NtGdiEngGetDeviceGammaRamp, diffent is we skipp the user mode checks and seh */ BOOL DxEngGetDeviceGammaRamp(HDC hDC, LPVOID lpRamp); +/* Notes : Lock the hDC */ +PDC DxEngLockDC(HDC hDC); + +/* Notes : Unlock the hDC */ +BOOL DxEngUnlockDC(PDC pDC); + /* prototypes are not done yet, I need gather all my notes * to make them correct @@ -138,11 +143,9 @@ DxEngCleanDC(x); DWORD DxEngSetDCOwner(x,x) -DWORD -DxEngLockDC(x); -DWORD -DxEngUnlockDC(x); + + DWORD DxEngSetDCState(x,x,x);