ReactOS 0.4.15-dev-8222-g9164419
eng.c
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * PURPOSE: Native driver for dxg implementation
5 * FILE: win32ss/reactx/dxg/eng.c
6 * PROGRAMER: Magnus olsen (magnus@greatlord.com)
7 * REVISION HISTORY:
8 * 30/12-2007 Magnus Olsen
9 */
10
11#include <dxg_int.h>
12
16{
17 PEDD_SURFACE pEDDSurface = NULL;
18 PDD_SURFACE_LOCAL pSurfacelcl = NULL;
19
20 pEDDSurface = DdHmgLock(hDdSurface, ObjType_DDSURFACE_TYPE, FALSE);
21 if (pEDDSurface != NULL)
22 {
23 pSurfacelcl = &pEDDSurface->ddsSurfaceLocal;
24 }
25
26 return pSurfacelcl;
27}
28
29BOOL
32{
33 BOOL retVal = FALSE;
34 //PEDD_SURFACE pEDDSurface = NULL;
35
36 if (pSurface)
37 {
38 // pEDDSurface = (PEDD_SURFACE)( ((PBYTE)pSurface) - sizeof(DD_BASEOBJECT));
39 // InterlockedDecrement(&pEDDSurface->pobj.cExclusiveLock);
40 retVal = TRUE;
41 }
42
43 return retVal;
44}
PVOID FASTCALL DdHmgLock(HANDLE DdHandle, UCHAR ObjectType, BOOLEAN LockOwned)
Definition: ddhmg.c:147
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define ObjType_DDSURFACE_TYPE
Definition: dxg_int.h:52
unsigned int BOOL
Definition: ntddk_ex.h:94
BOOL NTAPI DxDdUnlockDirectDrawSurface(PDD_SURFACE_LOCAL pSurface)
Definition: eng.c:31
PDD_SURFACE_LOCAL NTAPI DxDdLockDirectDrawSurface(HANDLE hDdSurface)
Definition: eng.c:15
DD_SURFACE_LOCAL ddsSurfaceLocal
Definition: directxint.h:51
#define NTAPI
Definition: typedefs.h:36
_In_ DD_SURFACE_LOCAL * pSurface
Definition: winddi.h:3481