ReactOS  0.4.13-dev-259-g5ca9c9c
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 
14 NTAPI
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 
29 BOOL
30 NTAPI
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 }
#define TRUE
Definition: types.h:120
DD_SURFACE_LOCAL ddsSurfaceLocal
Definition: directxint.h:51
BOOL NTAPI DxDdUnlockDirectDrawSurface(PDD_SURFACE_LOCAL pSurface)
Definition: eng.c:31
#define ObjType_DDSURFACE_TYPE
Definition: dxg_int.h:57
PDD_SURFACE_LOCAL NTAPI DxDdLockDirectDrawSurface(HANDLE hDdSurface)
Definition: eng.c:15
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
unsigned int BOOL
Definition: ntddk_ex.h:94
smooth NULL
Definition: ftsmooth.c:416
_In_ DD_SURFACE_LOCAL * pSurface
Definition: winddi.h:3481
PVOID FASTCALL DdHmgLock(HANDLE DdHandle, UCHAR ObjectType, BOOLEAN LockOwned)
Definition: ddhmg.c:147