File tree Expand file tree Collapse file tree 5 files changed +25
-5
lines changed
Expand file tree Collapse file tree 5 files changed +25
-5
lines changed Original file line number Diff line number Diff line change @@ -233,6 +233,8 @@ Enable this if the module uses typeid or dynamic_cast. You will probably need to
233233 -D_WIN32_WINDOWS=0x502
234234 -D_SETUPAPI_VER=0x502
235235 -DMINGW_HAS_SECURE_API=1
236+ -DD3D_UMD_INTERFACE_VERSION=0x000C # Vista
237+ -DDXGKDDI_INTERFACE_VERSION=0x1052 # Vista
236238 -DDLL_EXPORT_VERSION=${DLL_EXPORT_VERSION} )
237239
238240 # Arch Options
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ typedef OBJECT_ATTRIBUTES *POBJECT_ATTRIBUTES;
2929// Available only for Vista (LONGHORN) and later and for
3030// multiplatform tools such as debugger extensions
3131//
32- #if ( NTDDI_VERSION >= NTDDI_LONGHORN ) || defined(D3DKMDT_SPECIAL_MULTIPLATFORM_TOOL )
32+ #if defined( __REACTOS__ ) || (( NTDDI_VERSION >= NTDDI_LONGHORN ) || defined(D3DKMDT_SPECIAL_MULTIPLATFORM_TOOL ) )
3333
3434typedef struct _D3DKMT_CREATEDEVICEFLAGS
3535{
@@ -5649,11 +5649,15 @@ typedef _Check_return_ NTSTATUS (APIENTRY *PFND3DKMT_CANCELPRESENTS)(_In_ D3DKMT
56495649
56505650#endif
56515651
5652+ #ifdef __REACTOS__
5653+ #if (DXGKDDI_INTERFACE_VERSION >= DXGKDDI_INTERFACE_VERSION_WDDM2_2 )
56525654EXTERN_C _Check_return_ NTSTATUS APIENTRY D3DKMTShareObjectWithHost (_Inout_ D3DKMT_SHAREOBJECTWITHHOST * );
56535655EXTERN_C _Check_return_ NTSTATUS APIENTRY D3DKMTCreateSyncFile (_Inout_ D3DKMT_CREATESYNCFILE * );
56545656
56555657// Used in WSL to close the internal file descriptor to /dev/dxg
56565658EXTERN_C VOID APIENTRY D3DKMTCloseDxCoreDevice ();
5659+ #endif // DXGKDDI_INTERFACE_VERSION_WDDM3_0
5660+ #endif // __REACTOS__
56575661
56585662#if !defined(D3DKMDT_SPECIAL_MULTIPLATFORM_TOOL )
56595663
Original file line number Diff line number Diff line change 2424
2525#include "d3dukmdt.h"
2626
27+ #ifndef __REACTOS__
28+
2729#define NTSTATUS int32_t
2830
2931/*
@@ -74,6 +76,14 @@ typedef enum _DEVICE_POWER_STATE {
7476 PowerDeviceMaximum
7577} DEVICE_POWER_STATE , * PDEVICE_POWER_STATE ;
7678
79+ #else
80+
81+ #ifndef NTSTATUS
82+ typedef LONG NTSTATUS ;
83+ #endif
84+
85+ #endif // !__REACTOS__
86+
7787#pragma region Desktop Family
7888#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP )
7989
@@ -85,7 +95,7 @@ typedef enum _DEVICE_POWER_STATE {
8595// Available only for Vista (LONGHORN) and later and for
8696// multiplatform tools such as debugger extensions
8797//
88- #if ( NTDDI_VERSION >= NTDDI_LONGHORN ) || defined(D3DKMDT_SPECIAL_MULTIPLATFORM_TOOL )
98+ #if defined( __REACTOS__ ) || (( NTDDI_VERSION >= NTDDI_LONGHORN ) || defined(D3DKMDT_SPECIAL_MULTIPLATFORM_TOOL ) )
8999
90100//
91101// Hardcoded overlay count
@@ -600,7 +610,11 @@ typedef struct _D3DKMDT_VIDEO_SIGNAL_INFO
600610 struct
601611 {
602612 // Scan line ordering (e.g. progressive, interlaced).
613+ #ifdef __REACTOS__
614+ UINT ScanLineOrdering : 3 ; // D3DDDI_VIDEO_SIGNAL_SCANLINE_ORDERING
615+ #else
603616 D3DDDI_VIDEO_SIGNAL_SCANLINE_ORDERING ScanLineOrdering : 3 ;
617+ #endif
604618
605619 // Vertical refresh frequency divider
606620 UINT VSyncFreqDivider : 6 ;
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ typedef union _D3DKMT_PTR_TYPE
194194// Available only for Vista (LONGHORN) and later and for
195195// multiplatform tools such as debugger extensions
196196//
197- #if ( NTDDI_VERSION >= NTDDI_LONGHORN) || defined(D3DKMDT_SPECIAL_MULTIPLATFORM_TOOL)
197+ #if defined(__REACTOS__) || (( NTDDI_VERSION >= NTDDI_LONGHORN) || defined(D3DKMDT_SPECIAL_MULTIPLATFORM_TOOL) )
198198
199199typedef ULONGLONG D3DGPU_VIRTUAL_ADDRESS;
200200typedef ULONGLONG D3DGPU_SIZE_T;
Original file line number Diff line number Diff line change 1515/***********************************************************************
1616 * D3DKMTCreateDCFromMemory (GDI32.@)
1717 */
18- DWORD WINAPI D3DKMTCreateDCFromMemory ( D3DKMT_CREATEDCFROMMEMORY * desc )
18+ NTSTATUS APIENTRY D3DKMTCreateDCFromMemory (_Inout_ D3DKMT_CREATEDCFROMMEMORY * desc )
1919{
2020 return NtGdiDdDDICreateDCFromMemory ( desc );
2121}
2222
23- DWORD WINAPI D3DKMTDestroyDCFromMemory ( const D3DKMT_DESTROYDCFROMMEMORY * desc )
23+ NTSTATUS APIENTRY D3DKMTDestroyDCFromMemory (_In_ CONST D3DKMT_DESTROYDCFROMMEMORY * desc )
2424{
2525 return NtGdiDdDDIDestroyDCFromMemory ( desc );
2626}
You can’t perform that action at this time.
0 commit comments