ReactOS  0.4.14-dev-614-gbfd8a84
dd.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/dd.c
6  * PROGRAMER: Sebastian Gasiorek (sebastian.gasiorek@reactos.org)
7  */
8 
9 #include <dxg_int.h>
10 
11 DWORD
12 NTAPI
14  HANDLE DdHandle,
15  PDD_CANCREATESURFACEDATA SurfaceData)
16 {
20 
22  if (!peDdL)
23  return RetVal;
24 
25  peDdGl = peDdL->peDirectDrawGlobal2;
26  gpEngFuncs.DxEngLockHdev(peDdGl->hDev);
27 
28  // assign out DirectDrawGlobal to SurfaceData
29  SurfaceData->lpDD = (PDD_DIRECTDRAW_GLOBAL)peDdGl;
30 
32  {
33  RetVal = peDdGl->ddCallbacks.CanCreateSurface(SurfaceData);
34  }
35 
38 
39  return RetVal;
40 }
struct _DD_DIRECTDRAW_GLOBAL * PDD_DIRECTDRAW_GLOBAL
DWORD NTAPI DxDdCanCreateSurface(HANDLE DdHandle, PDD_CANCREATESURFACEDATA SurfaceData)
Definition: dd.c:13
#define DDHAL_DRIVER_NOTHANDLED
Definition: ddrawi.h:320
USHORT cExclusiveLock
Definition: dxg_int.h:39
DXENG_FUNCTIONS gpEngFuncs
Definition: main.c:20
#define DDHAL_CB32_CANCREATESURFACE
Definition: ddrawi.h:658
PDD_CANCREATESURFACE CanCreateSurface
Definition: ddrawint.h:505
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
#define ObjType_DDLOCAL_TYPE
Definition: dxg_int.h:56
PVOID FASTCALL DdHmgLock(HANDLE DdHandle, UCHAR ObjectType, BOOLEAN LockOwned)
Definition: ddhmg.c:147
unsigned long DWORD
Definition: ntddk_ex.h:95
DD_BASEOBJECT pobj
Definition: directxint.h:16
#define InterlockedDecrement
Definition: armddk.h:52
PDD_DIRECTDRAW_GLOBAL lpDD
Definition: ddrawint.h:456
struct _EDD_DIRECTDRAW_GLOBAL * peDirectDrawGlobal2
Definition: directxint.h:22
DD_CALLBACKS ddCallbacks
Definition: directxint.h:160
struct _EDD_DIRECTDRAW_LOCAL * PEDD_DIRECTDRAW_LOCAL
DWORD dwFlags
Definition: ddrawint.h:499
PFN_DxEngLockHdev DxEngLockHdev
Definition: dxg_int.h:137
PFN_DxEngUnlockHdev DxEngUnlockHdev
Definition: dxg_int.h:138