Author: jimtabor
Date: Mon Apr 28 20:46:58 2008
New Revision: 33185
URL:
http://svn.reactos.org/svn/reactos?rev=33185&view=rev
Log:
Update DxEngSetDCOwner and add owner masks.
Modified:
trunk/reactos/include/reactos/drivers/directx/dxeng.h
trunk/reactos/include/reactos/win32k/ntgdihdl.h
trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c
Modified: trunk/reactos/include/reactos/drivers/directx/dxeng.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/drivers/di…
==============================================================================
--- trunk/reactos/include/reactos/drivers/directx/dxeng.h [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/drivers/directx/dxeng.h [iso-8859-1] Mon Apr 28 20:46:58
2008
@@ -84,6 +84,7 @@
BOOLEAN STDCALL DxEngLockShareSem();
BOOLEAN STDCALL DxEngUnlockShareSem();
DWORD STDCALL DxEngScreenAccessCheck();
+BOOL STDCALL DxEngSetDCOwner(HGDIOBJ hObject, DWORD OwnerMask);
/* prototypes are not done yet, I need gather all my notes
* to make them correct
@@ -106,7 +107,6 @@
DWORD DxEngSpSpritesVisible(DWORD x1);
DWORD DxEngGetDesktopDC(DWORD x1, DWORD x2, DWORD x3);
DWORD DxEngDeleteDC(DWORD x1, DWORD x2);
-DWORD DxEngSetDCOwner(DWORD x1, DWORD x2);
DWORD DxEngSetDCState(DWORD x1, DWORD x2, DWORD x3);
DWORD DxEngSelectBitmap(DWORD x1, DWORD x2);
DWORD DxEngSetBitmapOwner(DWORD x1, DWORD x2);
Modified: trunk/reactos/include/reactos/win32k/ntgdihdl.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/win32k/ntg…
==============================================================================
--- trunk/reactos/include/reactos/win32k/ntgdihdl.h [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/win32k/ntgdihdl.h [iso-8859-1] Mon Apr 28 20:46:58 2008
@@ -110,6 +110,14 @@
#define GDI_OBJECT_GET_TYPE_INDEX(t) \
((t & GDI_HANDLE_BASETYPE_MASK) >> GDI_HANDLE_BASETYPE_SHIFT)
+
+/* Gdi Object Handle Managment Pid lock masking sets. */
+/* Ref: used with DxEngSetDCOwner */
+#define GDI_OBJ_HMGR_PUBLIC 0 // Public owner, Open access?
+#define GDI_OBJ_HMGR_POWNED 0x80000002 // Set to current owner.
+#define GDI_OBJ_HMGR_NONE 0x80000012 // No owner, Open access?
+#define GDI_OBJ_HMGR_RESTRICTED 0x80000022 // Restricted?
+
/* DC OBJ Types */
#define DC_TYPE_DIRECT 0 // normal device context
Modified: trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c [iso-8859-1] Mon Apr 28 20:46:58
2008
@@ -1,3 +1,4 @@
+
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@@ -722,7 +723,7 @@
/************************************************************************/
/* DxEngSetDCOwner */
/************************************************************************/
-DWORD DxEngSetDCOwner(DWORD x1, DWORD x2)
+BOOL STDCALL DxEngSetDCOwner(HGDIOBJ hObject, DWORD OwnerMask)
{
UNIMPLEMENTED;
return FALSE;