ReactOS 0.4.15-dev-7931-gfd331f1
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;
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}
#define InterlockedDecrement
Definition: armddk.h:52
PVOID FASTCALL DdHmgLock(HANDLE DdHandle, UCHAR ObjectType, BOOLEAN LockOwned)
Definition: ddhmg.c:147
#define DDHAL_CB32_CANCREATESURFACE
Definition: ddrawi.h:658
#define DDHAL_DRIVER_NOTHANDLED
Definition: ddrawi.h:320
struct _DD_DIRECTDRAW_GLOBAL * PDD_DIRECTDRAW_GLOBAL
struct _EDD_DIRECTDRAW_LOCAL * PEDD_DIRECTDRAW_LOCAL
#define FALSE
Definition: types.h:117
DXENG_FUNCTIONS gpEngFuncs
Definition: main.c:20
#define ObjType_DDLOCAL_TYPE
Definition: dxg_int.h:51
unsigned long DWORD
Definition: ntddk_ex.h:95
PDD_CANCREATESURFACE CanCreateSurface
Definition: ddrawint.h:505
DWORD dwFlags
Definition: ddrawint.h:499
USHORT cExclusiveLock
Definition: dxg_int.h:34
PDD_DIRECTDRAW_GLOBAL lpDD
Definition: ddrawint.h:456
PFN_DxEngUnlockHdev DxEngUnlockHdev
Definition: dxg_int.h:133
PFN_DxEngLockHdev DxEngLockHdev
Definition: dxg_int.h:132
DD_CALLBACKS ddCallbacks
Definition: directxint.h:160
struct _EDD_DIRECTDRAW_GLOBAL * peDirectDrawGlobal2
Definition: directxint.h:22
DD_BASEOBJECT pobj
Definition: directxint.h:16