ReactOS  0.4.14-dev-49-gfb4591c
dxeng.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DXENG_INDEX_Resverd0   0x00
 
#define DXENG_INDEX_DxEngNUIsTermSrv   0x01
 
#define DXENG_INDEX_DxEngScreenAccessCheck   0x02
 
#define DXENG_INDEX_DxEngRedrawDesktop   0x03
 
#define DXENG_INDEX_DxEngDispUniq   0x04
 
#define DXENG_INDEX_DxEngIncDispUniq   0x05
 
#define DXENG_INDEX_DxEngVisRgnUniq   0x06
 
#define DXENG_INDEX_DxEngLockShareSem   0x07
 
#define DXENG_INDEX_DxEngUnlockShareSem   0x08
 
#define DXENG_INDEX_DxEngEnumerateHdev   0x09
 
#define DXENG_INDEX_DxEngLockHdev   0x0A
 
#define DXENG_INDEX_DxEngUnlockHdev   0x0B
 
#define DXENG_INDEX_DxEngIsHdevLockedByCurrentThread   0x0C
 
#define DXENG_INDEX_DxEngReferenceHdev   0x0D
 
#define DXENG_INDEX_DxEngUnreferenceHdev   0x0E
 
#define DXENG_INDEX_DxEngGetDeviceGammaRamp   0x0F
 
#define DXENG_INDEX_DxEngSetDeviceGammaRamp   0x10
 
#define DXENG_INDEX_DxEngSpTearDownSprites   0x11
 
#define DXENG_INDEX_DxEngSpUnTearDownSprites   0x12
 
#define DXENG_INDEX_DxEngSpSpritesVisible   0x13
 
#define DXENG_INDEX_DxEngGetHdevData   0x14
 
#define DXENG_INDEX_DxEngSetHdevData   0x15
 
#define DXENG_INDEX_DxEngCreateMemoryDC   0x16
 
#define DXENG_INDEX_DxEngGetDesktopDC   0x17
 
#define DXENG_INDEX_DxEngDeleteDC   0x18
 
#define DXENG_INDEX_DxEngCleanDC   0x19
 
#define DXENG_INDEX_DxEngSetDCOwner   0x1A
 
#define DXENG_INDEX_DxEngLockDC   0x1B
 
#define DXENG_INDEX_DxEngUnlockDC   0x1C
 
#define DXENG_INDEX_DxEngSetDCState   0x1D
 
#define DXENG_INDEX_DxEngGetDCState   0x1E
 
#define DXENG_INDEX_DxEngSelectBitmap   0x1F
 
#define DXENG_INDEX_DxEngSetBitmapOwner   0x20
 
#define DXENG_INDEX_DxEngDeleteSurface   0x21
 
#define DXENG_INDEX_DxEngGetSurfaceData   0x22
 
#define DXENG_INDEX_DxEngAltLockSurface   0x23
 
#define DXENG_INDEX_DxEngUploadPaletteEntryToSurface   0x24
 
#define DXENG_INDEX_DxEngMarkSurfaceAsDirectDraw   0x25
 
#define DXENG_INDEX_DxEngSelectPaletteToSurface   0x26
 
#define DXENG_INDEX_DxEngSyncPaletteTableWithDevice   0x27
 
#define DXENG_INDEX_DxEngSetPaletteState   0x28
 
#define DXENG_INDEX_DxEngGetRedirectionBitmap   0x29
 
#define DXENG_INDEX_DxEngLoadImage   0x2A
 

Typedefs

typedef enum _DXEGSHDEVDATA DXEGSHDEVDATA
 
typedef enum _DXEGSHDEVDATAPDXEGSHDEVDATA
 

Enumerations

enum  _DXEGSHDEVDATA {
  DxEGShDevData_Surface, DxEGShDevData_hSpooler, DxEGShDevData_DitherFmt, DxEGShDevData_FxCaps,
  DxEGShDevData_FxCaps2, DxEGShDevData_DrvFuncs, DxEGShDevData_dhpdev, DxEGShDevData_eddg,
  DxEGShDevData_dd_nCount, DxEGShDevData_dd_flags, DxEGShDevData_disable, DxEGShDevData_metadev,
  DxEGShDevData_display, DxEGShDevData_Parent, DxEGShDevData_OpenRefs, DxEGShDevData_palette,
  DxEGShDevData_ldev, DxEGShDevData_GDev, DxEGShDevData_clonedev
}
 

Functions

BOOLEAN NTAPI DxEngNUIsTermSrv (VOID)
 
PDC NTAPI DxEngLockDC (HDC hDC)
 
BOOLEAN NTAPI DxEngUnlockDC (PDC pDC)
 
DWORD_PTR NTAPI DxEngGetHdevData (HDEV, DXEGSHDEVDATA)
 
BOOLEAN NTAPI DxEngSetHdevData (HDEV, DXEGSHDEVDATA, DWORD_PTR)
 
BOOLEAN NTAPI DxEngLockHdev (HDEV hdev)
 
BOOLEAN NTAPI DxEngUnlockHdev (HDEV hdev)
 
DWORD_PTR NTAPI DxEngGetDCState (HDC hDC, DWORD type)
 
BOOLEAN NTAPI DxEngReferenceHdev (HDEV hdev)
 
BOOLEAN NTAPI DxEngLockShareSem (VOID)
 
BOOLEAN NTAPI DxEngUnlockShareSem (VOID)
 
DWORD NTAPI DxEngScreenAccessCheck (VOID)
 
BOOL NTAPI DxEngSetDCOwner (HGDIOBJ hObject, DWORD OwnerMask)
 
BOOLEAN NTAPI DxEngRedrawDesktop (VOID)
 
ULONG NTAPI DxEngDispUniq (VOID)
 
ULONG NTAPI DxEngVisRgnUniq (VOID)
 
HDEV *NTAPI DxEngEnumerateHdev (HDEV *hdev)
 
BOOL NTAPI DxEngGetDeviceGammaRamp (HDEV hPDev, PGAMMARAMP Ramp)
 
BOOLEAN NTAPI DxEngSetDeviceGammaRamp (HDEV hPDev, PGAMMARAMP Ramp, BOOL Unuse)
 
BOOLEAN NTAPI DxEngCleanDC (HDC hdc)
 
BOOLEAN NTAPI DxEngIncDispUniq (VOID)
 
HDC NTAPI DxEngCreateMemoryDC (HDEV hDev)
 
BOOLEAN NTAPI DxEngIsHdevLockedByCurrentThread (HDEV hDev)
 
BOOLEAN NTAPI DxEngUnreferenceHdev (HDEV hDev)
 
DWORD NTAPI DxEngSpTearDownSprites (DWORD x1, DWORD x2, DWORD x3)
 
DWORD NTAPI DxEngSpUnTearDownSprites (DWORD x1, DWORD x2, DWORD x3)
 
DWORD NTAPI DxEngSpSpritesVisible (DWORD x1)
 
HDC NTAPI DxEngGetDesktopDC (ULONG DcType, BOOL EmptyDC, BOOL ValidatehWnd)
 
BOOLEAN NTAPI DxEngDeleteDC (HDC hdc, BOOL Force)
 
BOOLEAN NTAPI DxEngSetDCState (HDC hDC, DWORD SetType, DWORD Set)
 
DWORD NTAPI DxEngSelectBitmap (DWORD x1, DWORD x2)
 
DWORD NTAPI DxEngSetBitmapOwner (DWORD x1, DWORD x2)
 
DWORD NTAPI DxEngDeleteSurface (DWORD x1)
 
DWORD NTAPI DxEngGetSurfaceData (DWORD x1, DWORD x2)
 
DWORD NTAPI DxEngAltLockSurface (DWORD x1)
 
DWORD NTAPI DxEngUploadPaletteEntryToSurface (DWORD x1, DWORD x2, DWORD x3, DWORD x4)
 
DWORD NTAPI DxEngMarkSurfaceAsDirectDraw (DWORD x1, DWORD x2)
 
DWORD NTAPI DxEngSelectPaletteToSurface (DWORD x1, DWORD x2)
 
DWORD NTAPI DxEngSyncPaletteTableWithDevice (DWORD x1, DWORD x2)
 
DWORD NTAPI DxEngSetPaletteState (DWORD x1, DWORD x2, DWORD x3)
 
DWORD NTAPI DxEngGetRedirectionBitmap (DWORD x1)
 
DWORD NTAPI DxEngLoadImage (DWORD x1, DWORD x2)
 

Macro Definition Documentation

◆ DXENG_INDEX_DxEngAltLockSurface

#define DXENG_INDEX_DxEngAltLockSurface   0x23

Definition at line 41 of file dxeng.h.

◆ DXENG_INDEX_DxEngCleanDC

#define DXENG_INDEX_DxEngCleanDC   0x19

Definition at line 31 of file dxeng.h.

◆ DXENG_INDEX_DxEngCreateMemoryDC

#define DXENG_INDEX_DxEngCreateMemoryDC   0x16

Definition at line 28 of file dxeng.h.

◆ DXENG_INDEX_DxEngDeleteDC

#define DXENG_INDEX_DxEngDeleteDC   0x18

Definition at line 30 of file dxeng.h.

◆ DXENG_INDEX_DxEngDeleteSurface

#define DXENG_INDEX_DxEngDeleteSurface   0x21

Definition at line 39 of file dxeng.h.

◆ DXENG_INDEX_DxEngDispUniq

#define DXENG_INDEX_DxEngDispUniq   0x04

Definition at line 10 of file dxeng.h.

◆ DXENG_INDEX_DxEngEnumerateHdev

#define DXENG_INDEX_DxEngEnumerateHdev   0x09

Definition at line 15 of file dxeng.h.

◆ DXENG_INDEX_DxEngGetDCState

#define DXENG_INDEX_DxEngGetDCState   0x1E

Definition at line 36 of file dxeng.h.

◆ DXENG_INDEX_DxEngGetDesktopDC

#define DXENG_INDEX_DxEngGetDesktopDC   0x17

Definition at line 29 of file dxeng.h.

◆ DXENG_INDEX_DxEngGetDeviceGammaRamp

#define DXENG_INDEX_DxEngGetDeviceGammaRamp   0x0F

Definition at line 21 of file dxeng.h.

◆ DXENG_INDEX_DxEngGetHdevData

#define DXENG_INDEX_DxEngGetHdevData   0x14

Definition at line 26 of file dxeng.h.

◆ DXENG_INDEX_DxEngGetRedirectionBitmap

#define DXENG_INDEX_DxEngGetRedirectionBitmap   0x29

Definition at line 47 of file dxeng.h.

◆ DXENG_INDEX_DxEngGetSurfaceData

#define DXENG_INDEX_DxEngGetSurfaceData   0x22

Definition at line 40 of file dxeng.h.

◆ DXENG_INDEX_DxEngIncDispUniq

#define DXENG_INDEX_DxEngIncDispUniq   0x05

Definition at line 11 of file dxeng.h.

◆ DXENG_INDEX_DxEngIsHdevLockedByCurrentThread

#define DXENG_INDEX_DxEngIsHdevLockedByCurrentThread   0x0C

Definition at line 18 of file dxeng.h.

◆ DXENG_INDEX_DxEngLoadImage

#define DXENG_INDEX_DxEngLoadImage   0x2A

Definition at line 48 of file dxeng.h.

◆ DXENG_INDEX_DxEngLockDC

#define DXENG_INDEX_DxEngLockDC   0x1B

Definition at line 33 of file dxeng.h.

◆ DXENG_INDEX_DxEngLockHdev

#define DXENG_INDEX_DxEngLockHdev   0x0A

Definition at line 16 of file dxeng.h.

◆ DXENG_INDEX_DxEngLockShareSem

#define DXENG_INDEX_DxEngLockShareSem   0x07

Definition at line 13 of file dxeng.h.

◆ DXENG_INDEX_DxEngMarkSurfaceAsDirectDraw

#define DXENG_INDEX_DxEngMarkSurfaceAsDirectDraw   0x25

Definition at line 43 of file dxeng.h.

◆ DXENG_INDEX_DxEngNUIsTermSrv

#define DXENG_INDEX_DxEngNUIsTermSrv   0x01

Definition at line 7 of file dxeng.h.

◆ DXENG_INDEX_DxEngRedrawDesktop

#define DXENG_INDEX_DxEngRedrawDesktop   0x03

Definition at line 9 of file dxeng.h.

◆ DXENG_INDEX_DxEngReferenceHdev

#define DXENG_INDEX_DxEngReferenceHdev   0x0D

Definition at line 19 of file dxeng.h.

◆ DXENG_INDEX_DxEngScreenAccessCheck

#define DXENG_INDEX_DxEngScreenAccessCheck   0x02

Definition at line 8 of file dxeng.h.

◆ DXENG_INDEX_DxEngSelectBitmap

#define DXENG_INDEX_DxEngSelectBitmap   0x1F

Definition at line 37 of file dxeng.h.

◆ DXENG_INDEX_DxEngSelectPaletteToSurface

#define DXENG_INDEX_DxEngSelectPaletteToSurface   0x26

Definition at line 44 of file dxeng.h.

◆ DXENG_INDEX_DxEngSetBitmapOwner

#define DXENG_INDEX_DxEngSetBitmapOwner   0x20

Definition at line 38 of file dxeng.h.

◆ DXENG_INDEX_DxEngSetDCOwner

#define DXENG_INDEX_DxEngSetDCOwner   0x1A

Definition at line 32 of file dxeng.h.

◆ DXENG_INDEX_DxEngSetDCState

#define DXENG_INDEX_DxEngSetDCState   0x1D

Definition at line 35 of file dxeng.h.

◆ DXENG_INDEX_DxEngSetDeviceGammaRamp

#define DXENG_INDEX_DxEngSetDeviceGammaRamp   0x10

Definition at line 22 of file dxeng.h.

◆ DXENG_INDEX_DxEngSetHdevData

#define DXENG_INDEX_DxEngSetHdevData   0x15

Definition at line 27 of file dxeng.h.

◆ DXENG_INDEX_DxEngSetPaletteState

#define DXENG_INDEX_DxEngSetPaletteState   0x28

Definition at line 46 of file dxeng.h.

◆ DXENG_INDEX_DxEngSpSpritesVisible

#define DXENG_INDEX_DxEngSpSpritesVisible   0x13

Definition at line 25 of file dxeng.h.

◆ DXENG_INDEX_DxEngSpTearDownSprites

#define DXENG_INDEX_DxEngSpTearDownSprites   0x11

Definition at line 23 of file dxeng.h.

◆ DXENG_INDEX_DxEngSpUnTearDownSprites

#define DXENG_INDEX_DxEngSpUnTearDownSprites   0x12

Definition at line 24 of file dxeng.h.

◆ DXENG_INDEX_DxEngSyncPaletteTableWithDevice

#define DXENG_INDEX_DxEngSyncPaletteTableWithDevice   0x27

Definition at line 45 of file dxeng.h.

◆ DXENG_INDEX_DxEngUnlockDC

#define DXENG_INDEX_DxEngUnlockDC   0x1C

Definition at line 34 of file dxeng.h.

◆ DXENG_INDEX_DxEngUnlockHdev

#define DXENG_INDEX_DxEngUnlockHdev   0x0B

Definition at line 17 of file dxeng.h.

◆ DXENG_INDEX_DxEngUnlockShareSem

#define DXENG_INDEX_DxEngUnlockShareSem   0x08

Definition at line 14 of file dxeng.h.

◆ DXENG_INDEX_DxEngUnreferenceHdev

#define DXENG_INDEX_DxEngUnreferenceHdev   0x0E

Definition at line 20 of file dxeng.h.

◆ DXENG_INDEX_DxEngUploadPaletteEntryToSurface

#define DXENG_INDEX_DxEngUploadPaletteEntryToSurface   0x24

Definition at line 42 of file dxeng.h.

◆ DXENG_INDEX_DxEngVisRgnUniq

#define DXENG_INDEX_DxEngVisRgnUniq   0x06

Definition at line 12 of file dxeng.h.

◆ DXENG_INDEX_Resverd0

#define DXENG_INDEX_Resverd0   0x00

Definition at line 6 of file dxeng.h.

Typedef Documentation

◆ DXEGSHDEVDATA

◆ PDXEGSHDEVDATA

Enumeration Type Documentation

◆ _DXEGSHDEVDATA

Enumerator
DxEGShDevData_Surface 
DxEGShDevData_hSpooler 
DxEGShDevData_DitherFmt 
DxEGShDevData_FxCaps 
DxEGShDevData_FxCaps2 
DxEGShDevData_DrvFuncs 
DxEGShDevData_dhpdev 
DxEGShDevData_eddg 
DxEGShDevData_dd_nCount 
DxEGShDevData_dd_flags 
DxEGShDevData_disable 
DxEGShDevData_metadev 
DxEGShDevData_display 
DxEGShDevData_Parent 
DxEGShDevData_OpenRefs 
DxEGShDevData_palette 
DxEGShDevData_ldev 
DxEGShDevData_GDev 
DxEGShDevData_clonedev 

Definition at line 50 of file dxeng.h.

51 {
enum _DXEGSHDEVDATA DXEGSHDEVDATA
enum _DXEGSHDEVDATA * PDXEGSHDEVDATA

Function Documentation

◆ DxEngAltLockSurface()

DWORD NTAPI DxEngAltLockSurface ( DWORD  x1)

Definition at line 797 of file dxeng.c.

798 {
800  return FALSE;
801 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ DxEngCleanDC()

BOOLEAN NTAPI DxEngCleanDC ( HDC  hdc)

Definition at line 717 of file dxeng.c.

718 {
719  return IntGdiCleanDC(hdc);
720 }
BOOL FASTCALL IntGdiCleanDC(HDC hDC)
Definition: dcstate.c:73
HDC hdc
Definition: main.c:9

◆ DxEngCreateMemoryDC()

HDC NTAPI DxEngCreateMemoryDC ( HDEV  hDev)

Definition at line 653 of file dxeng.c.

654 {
656 }
HDC FASTCALL IntGdiCreateDisplayDC(HDEV hDev, ULONG DcType, BOOL EmptyDC)
Definition: dclife.c:1066
#define DC_TYPE_MEMORY
Definition: ntgdihdl.h:124

◆ DxEngDeleteDC()

BOOLEAN NTAPI DxEngDeleteDC ( HDC  hdc,
BOOL  Force 
)

Definition at line 707 of file dxeng.c.

708 {
709  return IntGdiDeleteDC(hdc, Force);
710 }
BOOL FASTCALL IntGdiDeleteDC(HDC, BOOL)
Definition: dclife.c:892
HDC hdc
Definition: main.c:9
_Inout_ PVCB _In_ BOOLEAN Force
Definition: cdprocs.h:1425

◆ DxEngDeleteSurface()

DWORD NTAPI DxEngDeleteSurface ( DWORD  x1)

Definition at line 779 of file dxeng.c.

780 {
782  return FALSE;
783 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ DxEngDispUniq()

ULONG NTAPI DxEngDispUniq ( VOID  )

Definition at line 78 of file dxeng.c.

79 {
80  DPRINT1("ReactX Calling : DxEngDispUniq\n");
81  return GdiHandleTable->flDeviceUniq;
82 }
#define GdiHandleTable
Definition: win32nt.h:35
#define DPRINT1
Definition: precomp.h:8

◆ DxEngEnumerateHdev()

HDEV* NTAPI DxEngEnumerateHdev ( HDEV *  hdev)

Definition at line 641 of file dxeng.c.

642 {
643  /* FIXME: Enumerate all drivers in win32k */
645  return FALSE;
646 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ DxEngGetDCState()

DWORD_PTR NTAPI DxEngGetDCState ( HDC  hDC,
DWORD  type 
)

Definition at line 450 of file dxeng.c.

452 {
453  PDC pDC = DC_LockDc(hDC);
454  DWORD_PTR retVal = 0;
455 
456  DPRINT1("ReactX Calling : DxEngGetDCState type : %lu\n", type);
457 
458  if (pDC)
459  {
460  switch (type)
461  {
462  case 1:
463  retVal = (DWORD_PTR) pDC->fs & DC_FLAG_FULLSCREEN;
464  break;
465  case 2:
467  break;
468  case 3:
469  {
470  /* Return the HDEV of this DC. */
471  retVal = (DWORD_PTR) pDC->ppdev;
472  break;
473  }
474  default:
475  /* If a valid type is not found, zero is returned */
476  DPRINT1("Warning: did not find type %lu\n", type);
477  break;
478  }
479  DC_UnlockDc(pDC);
480  }
481 
482  return retVal;
483 }
FORCEINLINE PDC DC_LockDc(HDC hdc)
Definition: dc.h:219
#define DWORD_PTR
Definition: treelist.c:76
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
Definition: polytest.cpp:40
uint32_t DWORD_PTR
Definition: typedefs.h:63
static HDC hDC
Definition: 3dtext.c:33
FORCEINLINE VOID DC_UnlockDc(PDC pdc)
Definition: dc.h:237
#define DC_FLAG_FULLSCREEN
Definition: ntgdihdl.h:139
#define DPRINT1
Definition: precomp.h:8
#define UNIMPLEMENTED
Definition: debug.h:114

◆ DxEngGetDesktopDC()

HDC NTAPI DxEngGetDesktopDC ( ULONG  DcType,
BOOL  EmptyDC,
BOOL  ValidatehWnd 
)

Definition at line 697 of file dxeng.c.

698 {
699  return UserGetDesktopDC(DcType, EmptyDC, ValidatehWnd);
700 }
HDC FASTCALL UserGetDesktopDC(ULONG DcType, BOOL bAltDc, BOOL ValidatehWnd)
Definition: desktop.c:1536

◆ DxEngGetDeviceGammaRamp()

BOOL NTAPI DxEngGetDeviceGammaRamp ( HDEV  hPDev,
PGAMMARAMP  Ramp 
)

Definition at line 105 of file dxeng.c.

106 {
107  DPRINT1("ReactX Calling : DxEngGetDeviceGammaRamp\n");
108  return IntGetDeviceGammaRamp(hPDev, Ramp);
109 }
BOOL FASTCALL IntGetDeviceGammaRamp(HDEV hPDev, PGAMMARAMP Ramp)
Definition: icm.c:92
#define DPRINT1
Definition: precomp.h:8

◆ DxEngGetHdevData()

DWORD_PTR NTAPI DxEngGetHdevData ( HDEV  ,
DXEGSHDEVDATA   
)

Definition at line 280 of file dxeng.c.

282 {
283  DWORD_PTR retVal = 0;
284  PPDEVOBJ PDev = (PPDEVOBJ)hDev;
285 
286  DPRINT1("ReactX Calling : DxEngGetHdevData DXEGSHDEVDATA : %ld\n", Type);
287 
288 #if 1
289  DPRINT1("HDEV hDev %p\n", hDev);
290 #endif
291 
292  switch ( Type )
293  {
295  DPRINT1("requested DXEGSHDEVDATA DxEGShDevData_Surface\n");
296  retVal = (DWORD_PTR) PDev->pSurface; // ptr to Surface handle.
297  break;
299  DPRINT1("requested DXEGSHDEVDATA DxEGShDevData_hSpooler\n");
300  retVal = (DWORD_PTR) PDev->hSpooler;
301  break;
303  DPRINT1("requested DXEGSHDEVDATA DxEGShDevData_DitherFmt\n");
304  retVal = (DWORD_PTR) PDev->devinfo.iDitherFormat;
305  break;
307  DPRINT1("requested DXEGSHDEVDATA DxEGShDevData_FxCaps\n");
308  retVal = (DWORD_PTR) PDev->devinfo.flGraphicsCaps;
309  break;
311  DPRINT1("requested DXEGSHDEVDATA DxEGShDevData_FxCaps2\n");
312  retVal = (DWORD_PTR) PDev->devinfo.flGraphicsCaps2;
313  break;
315  DPRINT1("requested DXEGSHDEVDATA DxEGShDevData_DrvFuncs\n");
316  retVal = (DWORD_PTR) &PDev->DriverFunctions;
317  break;
319  DPRINT1("requested DXEGSHDEVDATA DxEGShDevData_dhpdev\n");
320  retVal = (DWORD_PTR) PDev->dhpdev; // DHPDEV
321  break;
322  case DxEGShDevData_eddg:
323  DPRINT1("requested DXEGSHDEVDATA DxEGShDevData_eddg\n");
324  retVal = (DWORD_PTR) PDev->pEDDgpl;
325  break;
327  DPRINT1("requested DXEGSHDEVDATA DxEGShDevData_dd_nCount\n");
328  retVal = (DWORD_PTR) PDev->DxDd_nCount;
329  break;
331  DPRINT1("requested DXEGSHDEVDATA DxEGShDevData_dd_flags\n");
332  retVal = (DWORD_PTR) PDev->DxDd_Flags;
333  break;
335  DPRINT1("requested DXEGSHDEVDATA DxEGShDevData_disable\n");
336  retVal = (DWORD_PTR) PDev->flFlags & PDEV_DISABLED;
337  break;
339  DPRINT1("requested DXEGSHDEVDATA DxEGShDevData_metadev\n");
340  retVal = (DWORD_PTR) PDev->flFlags & PDEV_META_DEVICE;
341  break;
343  DPRINT1("requested DXEGSHDEVDATA DxEGShDevData_display\n");
344  retVal = (DWORD_PTR) PDev->flFlags & PDEV_DISPLAY;
345  break;
347  DPRINT1("requested DXEGSHDEVDATA DxEGShDevData_Parent\n");
348  retVal = (DWORD_PTR) PDev->ppdevParent;
349  break;
351  DPRINT1("requested DXEGSHDEVDATA DxEGShDevData_OpenRefs\n");
352  retVal = (DWORD_PTR) PDev->cPdevOpenRefs != 0;
353  break;
355  DPRINT1("requested DXEGSHDEVDATA DxEGShDevData_palette\n");
356  retVal = (DWORD_PTR) PDev->gdiinfo.flRaster & RC_PALETTE;
357  break;
358  case DxEGShDevData_ldev:
359  DPRINT1("requested DXEGSHDEVDATA DxEGShDevData_ldev\n");
360  retVal = (DWORD_PTR) PDev->pldev;
361  break;
362  case DxEGShDevData_GDev:
363  DPRINT1("requested DXEGSHDEVDATA DxEGShDevData_GDev\n");
364  retVal = (DWORD_PTR) PDev->pGraphicsDevice; // P"GRAPHICS_DEVICE"
365  break;
367  DPRINT1("requested DXEGSHDEVDATA DxEGShDevData_clonedev\n");
368  retVal = (DWORD_PTR) PDev->flFlags & PDEV_CLONE_DEVICE;
369  break;
370 
371  default:
372  break;
373  }
374 
375 #if 1
376  DPRINT1("return value %08lx\n", retVal);
377 #endif
378 
379  return retVal;
380 
381 }
DHPDEV dhpdev
Definition: pdevobj.h:121
Type
Definition: Type.h:6
struct _LDEVOBJ * pldev
Definition: pdevobj.h:120
#define DWORD_PTR
Definition: treelist.c:76
GDIINFO gdiinfo
Definition: pdevobj.h:124
struct _PDEVOBJ * PPDEVOBJ
DRIVER_FUNCTIONS DriverFunctions
Definition: pdevobj.h:138
FLONG flFlags
Definition: pdevobj.h:89
LONG cPdevOpenRefs
Definition: pdevobj.h:87
ULONG iDitherFormat
Definition: winddi.h:395
DEVINFO devinfo
Definition: pdevobj.h:123
#define RC_PALETTE
Definition: wingdi.h:789
struct _PDEVOBJ * ppdevParent
Definition: pdevobj.h:88
HANDLE hSpooler
Definition: pdevobj.h:126
ULONG flRaster
Definition: winddi.h:887
uint32_t DWORD_PTR
Definition: typedefs.h:63
ULONG DxDd_nCount
Definition: pdevobj.h:144
struct _EDD_DIRECTDRAW_GLOBAL * pEDDgpl
Definition: pdevobj.h:150
FLONG DxDd_Flags
Definition: pdevobj.h:132
FLONG flGraphicsCaps
Definition: winddi.h:390
PSURFACE pSurface
Definition: pdevobj.h:125
#define DPRINT1
Definition: precomp.h:8
PGRAPHICS_DEVICE pGraphicsDevice
Definition: pdevobj.h:128
FLONG flGraphicsCaps2
Definition: winddi.h:399

◆ DxEngGetRedirectionBitmap()

DWORD NTAPI DxEngGetRedirectionBitmap ( DWORD  x1)

Definition at line 853 of file dxeng.c.

854 {
855  return FALSE; // Normal return.
856 }

◆ DxEngGetSurfaceData()

DWORD NTAPI DxEngGetSurfaceData ( DWORD  x1,
DWORD  x2 
)

Definition at line 788 of file dxeng.c.

789 {
791  return FALSE;
792 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ DxEngIncDispUniq()

BOOLEAN NTAPI DxEngIncDispUniq ( VOID  )

Definition at line 500 of file dxeng.c.

501 {
502  DPRINT1("ReactX Calling : DxEngIncDispUniq \n");
503 
504  InterlockedIncrement((LONG*)&GdiHandleTable->flDeviceUniq);
505  return TRUE;
506 }
#define TRUE
Definition: types.h:120
long LONG
Definition: pedump.c:60
#define GdiHandleTable
Definition: win32nt.h:35
#define InterlockedIncrement
Definition: armddk.h:53
#define DPRINT1
Definition: precomp.h:8

◆ DxEngIsHdevLockedByCurrentThread()

BOOLEAN NTAPI DxEngIsHdevLockedByCurrentThread ( HDEV  hDev)

Definition at line 674 of file dxeng.c.

675 { // Based on EngIsSemaphoreOwnedByCurrentThread w/o the Ex call.
676  PERESOURCE pSem = (PERESOURCE)(((PPDEVOBJ)hDev)->hsemDevLock);
677  return pSem->OwnerEntry.OwnerThread == (ERESOURCE_THREAD)PsGetCurrentThread();
678 }
ULONG_PTR ERESOURCE_THREAD
Definition: extypes.h:208
#define PsGetCurrentThread()
Definition: env_spec_w32.h:81
ERESOURCE * PERESOURCE
Definition: env_spec_w32.h:595

◆ DxEngLoadImage()

DWORD NTAPI DxEngLoadImage ( DWORD  x1,
DWORD  x2 
)

Definition at line 861 of file dxeng.c.

862 {
864  return FALSE;
865 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ DxEngLockDC()

PDC NTAPI DxEngLockDC ( HDC  hDC)

Definition at line 130 of file dxeng.c.

131 {
132  DPRINT1("ReactX Calling : DxEngLockDC\n");
133  return DC_LockDc(hDC);
134 }
FORCEINLINE PDC DC_LockDc(HDC hdc)
Definition: dc.h:219
static HDC hDC
Definition: 3dtext.c:33
#define DPRINT1
Definition: precomp.h:8

◆ DxEngLockHdev()

BOOLEAN NTAPI DxEngLockHdev ( HDEV  hdev)

Definition at line 526 of file dxeng.c.

527 {
528  PPDEVOBJ ppdev = (PPDEVOBJ)hDev;
530 
531  DPRINT1("ReactX Calling : DxEngLockHdev \n");
532 
533  DPRINT1("hDev : 0x%p\n",hDev);
534 
535  Resource = (PERESOURCE)ppdev->hsemDevLock;
536 
537  if (Resource)
538  {
540  ExAcquireResourceExclusiveLite( Resource , TRUE); // Lock monitor.
541  }
542  return TRUE;
543 }
#define TRUE
Definition: types.h:120
struct _PDEVOBJ * PPDEVOBJ
BOOLEAN NTAPI ExAcquireResourceExclusiveLite(IN PERESOURCE Resource, IN BOOLEAN Wait)
Definition: resource.c:770
ERESOURCE * PERESOURCE
Definition: env_spec_w32.h:595
_Acquires_exclusive_lock_ Resource _Acquires_shared_lock_ Resource _Inout_ PERESOURCE Resource
Definition: cdprocs.h:848
HSEMAPHORE hsemDevLock
Definition: pdevobj.h:91
if(!(yy_init))
Definition: macro.lex.yy.c:714
#define KeEnterCriticalRegion()
Definition: ke_x.h:83
#define DPRINT1
Definition: precomp.h:8

◆ DxEngLockShareSem()

BOOLEAN NTAPI DxEngLockShareSem ( VOID  )

Definition at line 179 of file dxeng.c.

180 {
181  DPRINT1("ReactX Calling : DxEngLockShareSem\n");
182  if(!ghsemShareDevLock) ghsemShareDevLock = EngCreateSemaphore(); // Hax, should be in dllmain.c
184  return TRUE;
185 }
#define TRUE
Definition: types.h:120
ENGAPI VOID APIENTRY EngAcquireSemaphore(_Inout_ HSEMAPHORE hsem)
#define DPRINT1
Definition: precomp.h:8
HSEMAPHORE WINAPI EngCreateSemaphore(VOID)
Definition: eng.c:75
HSEMAPHORE ghsemShareDevLock
Definition: dxeng.c:12

◆ DxEngMarkSurfaceAsDirectDraw()

DWORD NTAPI DxEngMarkSurfaceAsDirectDraw ( DWORD  x1,
DWORD  x2 
)

Definition at line 815 of file dxeng.c.

816 {
818  return FALSE;
819 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ DxEngNUIsTermSrv()

BOOLEAN NTAPI DxEngNUIsTermSrv ( VOID  )

Definition at line 598 of file dxeng.c.

599 {
600  /* FIXME: ReactOS does not suport terminal server yet, we can not check if we got connections or not */
602  return FALSE;
603 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ DxEngRedrawDesktop()

BOOLEAN NTAPI DxEngRedrawDesktop ( VOID  )

Definition at line 613 of file dxeng.c.

614 {
616  return TRUE;
617 }
#define TRUE
Definition: types.h:120
VOID APIENTRY UserRedrawDesktop(VOID)
Definition: desktop.c:1561

◆ DxEngReferenceHdev()

BOOLEAN NTAPI DxEngReferenceHdev ( HDEV  hdev)

Definition at line 584 of file dxeng.c.

585 {
587  /* ALWAYS return true */
588  return TRUE;
589 }
#define TRUE
Definition: types.h:120
VOID FASTCALL IntGdiReferencePdev(PPDEVOBJ pPDev)
Definition: device.c:17

◆ DxEngScreenAccessCheck()

DWORD NTAPI DxEngScreenAccessCheck ( VOID  )

Definition at line 661 of file dxeng.c.

662 {
664 
665  /* We're cheating here and telling dxg.sys it has always had permissions to access the screen */
666  return TRUE;
667 }
#define TRUE
Definition: types.h:120
#define UNIMPLEMENTED
Definition: debug.h:114

◆ DxEngSelectBitmap()

DWORD NTAPI DxEngSelectBitmap ( DWORD  x1,
DWORD  x2 
)

Definition at line 761 of file dxeng.c.

762 {
764  return FALSE;
765 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ DxEngSelectPaletteToSurface()

DWORD NTAPI DxEngSelectPaletteToSurface ( DWORD  x1,
DWORD  x2 
)

Definition at line 824 of file dxeng.c.

825 {
827  return FALSE;
828 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ DxEngSetBitmapOwner()

DWORD NTAPI DxEngSetBitmapOwner ( DWORD  x1,
DWORD  x2 
)

Definition at line 770 of file dxeng.c.

771 {
773  return FALSE;
774 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ DxEngSetDCOwner()

BOOL NTAPI DxEngSetDCOwner ( HGDIOBJ  hObject,
DWORD  OwnerMask 
)

Definition at line 725 of file dxeng.c.

726 {
727  DPRINT1("ReactX Calling : DxEngSetDCOwner \n");
728 
729  return GreSetDCOwner(hObject, OwnerMask);
730 }
BOOL NTAPI GreSetDCOwner(HDC hdc, ULONG ulOwner)
Definition: dclife.c:455
#define DPRINT1
Definition: precomp.h:8

◆ DxEngSetDCState()

BOOLEAN NTAPI DxEngSetDCState ( HDC  hDC,
DWORD  SetType,
DWORD  Set 
)

Definition at line 737 of file dxeng.c.

738 {
739  BOOLEAN Ret = FALSE;
740  PDC pDC = DC_LockDc(hDC);
741 
742  if (pDC)
743  {
744  if (SetType == 1)
745  {
746  if ( Set )
747  pDC->fs |= DC_FLAG_FULLSCREEN;
748  else
749  pDC->fs &= ~DC_FLAG_FULLSCREEN;
750  Ret = TRUE;
751  }
752  DC_UnlockDc(pDC);
753  return Ret; // Everything else returns FALSE.
754  }
755  return Ret;
756 }
#define TRUE
Definition: types.h:120
FORCEINLINE PDC DC_LockDc(HDC hdc)
Definition: dc.h:219
static BOOL Set
Definition: pageheap.c:10
unsigned char BOOLEAN
Definition: polytest.cpp:40
static HDC hDC
Definition: 3dtext.c:33
FORCEINLINE VOID DC_UnlockDc(PDC pdc)
Definition: dc.h:237
#define DC_FLAG_FULLSCREEN
Definition: ntgdihdl.h:139

◆ DxEngSetDeviceGammaRamp()

BOOLEAN NTAPI DxEngSetDeviceGammaRamp ( HDEV  hPDev,
PGAMMARAMP  Ramp,
BOOL  Unuse 
)

Definition at line 233 of file dxeng.c.

234 {
235  DPRINT1("ReactX Calling : DxEngSetDeviceGammaRamp\n");
236  return IntSetDeviceGammaRamp(hPDev, Ramp, Test);
237 }
BOOL FASTCALL IntSetDeviceGammaRamp(HDEV hPDev, PGAMMARAMP Ramp, BOOL Test)
Definition: icm.c:284
#define DPRINT1
Definition: precomp.h:8

◆ DxEngSetHdevData()

BOOLEAN NTAPI DxEngSetHdevData ( HDEV  ,
DXEGSHDEVDATA  ,
DWORD_PTR   
)

Definition at line 407 of file dxeng.c.

410 {
411  BOOLEAN retVal = FALSE; // Default, no set.
412 
413  DPRINT1("ReactX Calling : DxEngSetHdevData DXEGSHDEVDATA : %ld\n", Type);
414 
415  if ( Type == DxEGShDevData_dd_nCount )
416  {
417  ((PPDEVOBJ)hDev)->DxDd_nCount = Data;
418  retVal = TRUE; // Set
419  }
420  return retVal;
421 }
#define TRUE
Definition: types.h:120
Type
Definition: Type.h:6
struct _PDEVOBJ * PPDEVOBJ
unsigned char BOOLEAN
_In_ LPGUID _In_ PVOID Data
Definition: classpnp.h:778
#define DPRINT1
Definition: precomp.h:8

◆ DxEngSetPaletteState()

DWORD NTAPI DxEngSetPaletteState ( DWORD  x1,
DWORD  x2,
DWORD  x3 
)

Definition at line 842 of file dxeng.c.

843 {
845  return FALSE;
846 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ DxEngSpSpritesVisible()

DWORD NTAPI DxEngSpSpritesVisible ( DWORD  x1)

Definition at line 888 of file dxeng.c.

889 {
891  return FALSE;
892 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ DxEngSpTearDownSprites()

DWORD NTAPI DxEngSpTearDownSprites ( DWORD  x1,
DWORD  x2,
DWORD  x3 
)

Definition at line 870 of file dxeng.c.

871 {
873  return FALSE;
874 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ DxEngSpUnTearDownSprites()

DWORD NTAPI DxEngSpUnTearDownSprites ( DWORD  x1,
DWORD  x2,
DWORD  x3 
)

Definition at line 879 of file dxeng.c.

880 {
882  return FALSE;
883 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ DxEngSyncPaletteTableWithDevice()

DWORD NTAPI DxEngSyncPaletteTableWithDevice ( DWORD  x1,
DWORD  x2 
)

Definition at line 833 of file dxeng.c.

834 {
836  return FALSE;
837 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ DxEngUnlockDC()

BOOLEAN NTAPI DxEngUnlockDC ( PDC  pDC)

Definition at line 155 of file dxeng.c.

156 {
157  DPRINT1("ReactX Calling : DxEngUnlockDC\n");
158  DC_UnlockDc(pDC);
159  return TRUE;
160 }
#define TRUE
Definition: types.h:120
FORCEINLINE VOID DC_UnlockDc(PDC pdc)
Definition: dc.h:237
#define DPRINT1
Definition: precomp.h:8

◆ DxEngUnlockHdev()

BOOLEAN NTAPI DxEngUnlockHdev ( HDEV  hdev)

Definition at line 563 of file dxeng.c.

564 {
565  PPDEVOBJ ppdev = (PPDEVOBJ)hDev;
567 
568  DPRINT1("ReactX Calling : DxEngUnlockHdev \n");
569 
570  if (Resource)
571  {
574  }
575  return TRUE;
576 }
#define TRUE
Definition: types.h:120
struct _PDEVOBJ * PPDEVOBJ
ERESOURCE * PERESOURCE
Definition: env_spec_w32.h:595
_Acquires_exclusive_lock_ Resource _Acquires_shared_lock_ Resource _Inout_ PERESOURCE Resource
Definition: cdprocs.h:848
HSEMAPHORE hsemDevLock
Definition: pdevobj.h:91
VOID FASTCALL ExReleaseResourceLite(IN PERESOURCE Resource)
Definition: resource.c:1817
#define KeLeaveCriticalRegion()
Definition: ke_x.h:114
#define DPRINT1
Definition: precomp.h:8

◆ DxEngUnlockShareSem()

BOOLEAN NTAPI DxEngUnlockShareSem ( VOID  )

Definition at line 202 of file dxeng.c.

203 {
204  DPRINT1("ReactX Calling : DxEngUnlockShareSem\n");
206  return TRUE;
207 }
VOID WINAPI EngReleaseSemaphore(IN HSEMAPHORE hsem)
Definition: eng.c:235
#define TRUE
Definition: types.h:120
#define DPRINT1
Definition: precomp.h:8
HSEMAPHORE ghsemShareDevLock
Definition: dxeng.c:12

◆ DxEngUnreferenceHdev()

BOOLEAN NTAPI DxEngUnreferenceHdev ( HDEV  hDev)

Definition at line 686 of file dxeng.c.

687 {
688  IntGdiUnreferencePdev((PPDEVOBJ) hDev, 0);
689  return TRUE; // Always true.
690 }
#define TRUE
Definition: types.h:120
VOID FASTCALL IntGdiUnreferencePdev(PPDEVOBJ pPDev, DWORD CleanUpType)
Definition: device.c:23

◆ DxEngUploadPaletteEntryToSurface()

DWORD NTAPI DxEngUploadPaletteEntryToSurface ( DWORD  x1,
DWORD  x2,
DWORD  x3,
DWORD  x4 
)

Definition at line 806 of file dxeng.c.

807 {
809  return FALSE;
810 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ DxEngVisRgnUniq()

ULONG NTAPI DxEngVisRgnUniq ( VOID  )

Definition at line 628 of file dxeng.c.

629 {
630  DPRINT1("ReactX Calling : DxEngVisRgnUniq \n");
631 
632  return gulVisRgnUniqueness;
633 }
ULONG gulVisRgnUniqueness
Definition: dxeng.c:620
#define DPRINT1
Definition: precomp.h:8