diff --git a/sdk/include/ddk/d3dkmthk.h b/sdk/include/ddk/d3dkmthk.h index bc38231299548..1ab3524f69aaa 100644 --- a/sdk/include/ddk/d3dkmthk.h +++ b/sdk/include/ddk/d3dkmthk.h @@ -29,7 +29,7 @@ typedef OBJECT_ATTRIBUTES *POBJECT_ATTRIBUTES; // Available only for Vista (LONGHORN) and later and for // multiplatform tools such as debugger extensions // -#if (NTDDI_VERSION >= NTDDI_LONGHORN) || defined(D3DKMDT_SPECIAL_MULTIPLATFORM_TOOL) +#ifdef __REACTOS__ typedef struct _D3DKMT_CREATEDEVICEFLAGS { @@ -5649,12 +5649,6 @@ typedef _Check_return_ NTSTATUS (APIENTRY *PFND3DKMT_CANCELPRESENTS)(_In_ D3DKMT #endif -EXTERN_C _Check_return_ NTSTATUS APIENTRY D3DKMTShareObjectWithHost(_Inout_ D3DKMT_SHAREOBJECTWITHHOST*); -EXTERN_C _Check_return_ NTSTATUS APIENTRY D3DKMTCreateSyncFile(_Inout_ D3DKMT_CREATESYNCFILE*); - -// Used in WSL to close the internal file descriptor to /dev/dxg -EXTERN_C VOID APIENTRY D3DKMTCloseDxCoreDevice(); - #if !defined(D3DKMDT_SPECIAL_MULTIPLATFORM_TOOL) #ifdef __cplusplus diff --git a/sdk/include/psdk/d3dkmdt.h b/sdk/include/psdk/d3dkmdt.h index 3699f6f05b9d7..e536803d54185 100644 --- a/sdk/include/psdk/d3dkmdt.h +++ b/sdk/include/psdk/d3dkmdt.h @@ -24,7 +24,10 @@ #include "d3dukmdt.h" -#define NTSTATUS int32_t +#ifndef NTSTATUS +#define NTSTATUS UINT32 +#endif + /* * Some of the Windows return codes, which needs to be translated to Linux @@ -32,6 +35,7 @@ * returned from the driver IOCTLs. libdxcore.so depends on returning * specific return codes. */ +#ifndef STATUS_SUCCESS #define STATUS_SUCCESS ((NTSTATUS)(0)) #define STATUS_OBJECT_NAME_INVALID ((NTSTATUS)(0xC0000033L)) #define STATUS_DEVICE_REMOVED ((NTSTATUS)(0xC00002B6L)) @@ -52,27 +56,7 @@ #define STATUS_UNSUCCESSFUL ((NTSTATUS)(0xC0000001L)) #define STATUS_INVALID_PARAMETER ((NTSTATUS)(0xC000000DL)) #define NT_SUCCESS(status) (status >= 0) - -typedef enum { - PowerActionNone = 0, - PowerActionReserved, - PowerActionSleep, - PowerActionHibernate, - PowerActionShutdown, - PowerActionShutdownReset, - PowerActionShutdownOff, - PowerActionWarmEject, - PowerActionDisplayOff -} POWER_ACTION, *PPOWER_ACTION; - -typedef enum _DEVICE_POWER_STATE { - PowerDeviceUnspecified = 0, - PowerDeviceD0, - PowerDeviceD1, - PowerDeviceD2, - PowerDeviceD3, - PowerDeviceMaximum -} DEVICE_POWER_STATE, *PDEVICE_POWER_STATE; +#endif #pragma region Desktop Family #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) @@ -85,7 +69,7 @@ typedef enum _DEVICE_POWER_STATE { // Available only for Vista (LONGHORN) and later and for // multiplatform tools such as debugger extensions // -#if (NTDDI_VERSION >= NTDDI_LONGHORN) || defined(D3DKMDT_SPECIAL_MULTIPLATFORM_TOOL) +#ifdef __REACTOS__ // // Hardcoded overlay count diff --git a/sdk/include/psdk/d3dukmdt.h b/sdk/include/psdk/d3dukmdt.h index d8b1128d3811e..85a5fd0dd7b5d 100644 --- a/sdk/include/psdk/d3dukmdt.h +++ b/sdk/include/psdk/d3dukmdt.h @@ -76,7 +76,7 @@ ) #if !defined(DXGKDDI_INTERFACE_VERSION) -#define DXGKDDI_INTERFACE_VERSION DXGKDDI_INTERFACE_VERSION_WDDM3_0 +#define DXGKDDI_INTERFACE_VERSION DXGKDDI_INTERFACE_VERSION_VISTA_SP1 #endif // !defined(DXGKDDI_INTERFACE_VERSION) #define D3D_UMD_INTERFACE_VERSION_VISTA 0x000C @@ -138,7 +138,7 @@ // Search for D3D_UMD_INTERFACE_VERSION across all depots to ensure all dependencies are updated. #if !defined(D3D_UMD_INTERFACE_VERSION) -#define D3D_UMD_INTERFACE_VERSION D3D_UMD_INTERFACE_VERSION_WDDM3_0 +#define D3D_UMD_INTERFACE_VERSION D3D_UMD_INTERFACE_VERSION_VISTA #endif // !defined(D3D_UMD_INTERFACE_VERSION) // @@ -194,7 +194,7 @@ typedef union _D3DKMT_PTR_TYPE // Available only for Vista (LONGHORN) and later and for // multiplatform tools such as debugger extensions // -#if (NTDDI_VERSION >= NTDDI_LONGHORN) || defined(D3DKMDT_SPECIAL_MULTIPLATFORM_TOOL) +#ifdef __REACTOS__ typedef ULONGLONG D3DGPU_VIRTUAL_ADDRESS; typedef ULONGLONG D3DGPU_SIZE_T;