ReactOS  0.4.14-dev-57-g333b8f1
dd.c File Reference
#include <dxg_int.h>
Include dependency graph for dd.c:

Go to the source code of this file.

Functions

DWORD NTAPI DxDdCanCreateSurface (HANDLE DdHandle, PDD_CANCREATESURFACEDATA SurfaceData)
 

Function Documentation

◆ DxDdCanCreateSurface()

DWORD NTAPI DxDdCanCreateSurface ( HANDLE  DdHandle,
PDD_CANCREATESURFACEDATA  SurfaceData 
)

Definition at line 13 of file dd.c.

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
#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
#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