ReactOS 0.4.15-dev-7659-ga55345b
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
14 HANDLE DdHandle,
15 PDD_CANCREATESURFACEDATA SurfaceData)
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
DWORD NTAPI DxDdCanCreateSurface(HANDLE DdHandle, PDD_CANCREATESURFACEDATA SurfaceData)
Definition: dd.c:13
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
#define NTAPI
Definition: typedefs.h:36