mirror of
https://github.com/reactos/reactos.git
synced 2024-11-23 11:33:31 +08:00
[SDK][WIN32SS] Make Them Build
This commit is contained in:
parent
50647e58e4
commit
690783179e
@ -233,6 +233,8 @@ Enable this if the module uses typeid or dynamic_cast. You will probably need to
|
|||||||
-D_WIN32_WINDOWS=0x502
|
-D_WIN32_WINDOWS=0x502
|
||||||
-D_SETUPAPI_VER=0x502
|
-D_SETUPAPI_VER=0x502
|
||||||
-DMINGW_HAS_SECURE_API=1
|
-DMINGW_HAS_SECURE_API=1
|
||||||
|
-DD3D_UMD_INTERFACE_VERSION=0x000C # Vista
|
||||||
|
-DDXGKDDI_INTERFACE_VERSION=0x1052 # Vista
|
||||||
-DDLL_EXPORT_VERSION=${DLL_EXPORT_VERSION})
|
-DDLL_EXPORT_VERSION=${DLL_EXPORT_VERSION})
|
||||||
|
|
||||||
# Arch Options
|
# Arch Options
|
||||||
|
@ -29,7 +29,7 @@ typedef OBJECT_ATTRIBUTES *POBJECT_ATTRIBUTES;
|
|||||||
// Available only for Vista (LONGHORN) and later and for
|
// Available only for Vista (LONGHORN) and later and for
|
||||||
// multiplatform tools such as debugger extensions
|
// multiplatform tools such as debugger extensions
|
||||||
//
|
//
|
||||||
#if (NTDDI_VERSION >= NTDDI_LONGHORN) || defined(D3DKMDT_SPECIAL_MULTIPLATFORM_TOOL)
|
#if defined(__REACTOS__) || ((NTDDI_VERSION >= NTDDI_LONGHORN) || defined(D3DKMDT_SPECIAL_MULTIPLATFORM_TOOL))
|
||||||
|
|
||||||
typedef struct _D3DKMT_CREATEDEVICEFLAGS
|
typedef struct _D3DKMT_CREATEDEVICEFLAGS
|
||||||
{
|
{
|
||||||
@ -5649,11 +5649,15 @@ typedef _Check_return_ NTSTATUS (APIENTRY *PFND3DKMT_CANCELPRESENTS)(_In_ D3DKMT
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
#if (DXGKDDI_INTERFACE_VERSION >= DXGKDDI_INTERFACE_VERSION_WDDM2_2)
|
||||||
EXTERN_C _Check_return_ NTSTATUS APIENTRY D3DKMTShareObjectWithHost(_Inout_ D3DKMT_SHAREOBJECTWITHHOST*);
|
EXTERN_C _Check_return_ NTSTATUS APIENTRY D3DKMTShareObjectWithHost(_Inout_ D3DKMT_SHAREOBJECTWITHHOST*);
|
||||||
EXTERN_C _Check_return_ NTSTATUS APIENTRY D3DKMTCreateSyncFile(_Inout_ D3DKMT_CREATESYNCFILE*);
|
EXTERN_C _Check_return_ NTSTATUS APIENTRY D3DKMTCreateSyncFile(_Inout_ D3DKMT_CREATESYNCFILE*);
|
||||||
|
|
||||||
// Used in WSL to close the internal file descriptor to /dev/dxg
|
// Used in WSL to close the internal file descriptor to /dev/dxg
|
||||||
EXTERN_C VOID APIENTRY D3DKMTCloseDxCoreDevice();
|
EXTERN_C VOID APIENTRY D3DKMTCloseDxCoreDevice();
|
||||||
|
#endif // DXGKDDI_INTERFACE_VERSION_WDDM3_0
|
||||||
|
#endif // __REACTOS__
|
||||||
|
|
||||||
#if !defined(D3DKMDT_SPECIAL_MULTIPLATFORM_TOOL)
|
#if !defined(D3DKMDT_SPECIAL_MULTIPLATFORM_TOOL)
|
||||||
|
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
#include "d3dukmdt.h"
|
#include "d3dukmdt.h"
|
||||||
|
|
||||||
|
#ifndef __REACTOS__
|
||||||
|
|
||||||
#define NTSTATUS int32_t
|
#define NTSTATUS int32_t
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -74,6 +76,14 @@ typedef enum _DEVICE_POWER_STATE {
|
|||||||
PowerDeviceMaximum
|
PowerDeviceMaximum
|
||||||
} DEVICE_POWER_STATE, *PDEVICE_POWER_STATE;
|
} DEVICE_POWER_STATE, *PDEVICE_POWER_STATE;
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
#ifndef NTSTATUS
|
||||||
|
typedef LONG NTSTATUS;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif // !__REACTOS__
|
||||||
|
|
||||||
#pragma region Desktop Family
|
#pragma region Desktop Family
|
||||||
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
||||||
|
|
||||||
@ -85,7 +95,7 @@ typedef enum _DEVICE_POWER_STATE {
|
|||||||
// Available only for Vista (LONGHORN) and later and for
|
// Available only for Vista (LONGHORN) and later and for
|
||||||
// multiplatform tools such as debugger extensions
|
// multiplatform tools such as debugger extensions
|
||||||
//
|
//
|
||||||
#if (NTDDI_VERSION >= NTDDI_LONGHORN) || defined(D3DKMDT_SPECIAL_MULTIPLATFORM_TOOL)
|
#if defined(__REACTOS__) || ((NTDDI_VERSION >= NTDDI_LONGHORN) || defined(D3DKMDT_SPECIAL_MULTIPLATFORM_TOOL))
|
||||||
|
|
||||||
//
|
//
|
||||||
// Hardcoded overlay count
|
// Hardcoded overlay count
|
||||||
@ -600,7 +610,11 @@ typedef struct _D3DKMDT_VIDEO_SIGNAL_INFO
|
|||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
// Scan line ordering (e.g. progressive, interlaced).
|
// Scan line ordering (e.g. progressive, interlaced).
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
UINT ScanLineOrdering : 3; // D3DDDI_VIDEO_SIGNAL_SCANLINE_ORDERING
|
||||||
|
#else
|
||||||
D3DDDI_VIDEO_SIGNAL_SCANLINE_ORDERING ScanLineOrdering : 3;
|
D3DDDI_VIDEO_SIGNAL_SCANLINE_ORDERING ScanLineOrdering : 3;
|
||||||
|
#endif
|
||||||
|
|
||||||
// Vertical refresh frequency divider
|
// Vertical refresh frequency divider
|
||||||
UINT VSyncFreqDivider : 6;
|
UINT VSyncFreqDivider : 6;
|
||||||
|
@ -194,7 +194,7 @@ typedef union _D3DKMT_PTR_TYPE
|
|||||||
// Available only for Vista (LONGHORN) and later and for
|
// Available only for Vista (LONGHORN) and later and for
|
||||||
// multiplatform tools such as debugger extensions
|
// multiplatform tools such as debugger extensions
|
||||||
//
|
//
|
||||||
#if (NTDDI_VERSION >= NTDDI_LONGHORN) || defined(D3DKMDT_SPECIAL_MULTIPLATFORM_TOOL)
|
#if defined(__REACTOS__) || ((NTDDI_VERSION >= NTDDI_LONGHORN) || defined(D3DKMDT_SPECIAL_MULTIPLATFORM_TOOL))
|
||||||
|
|
||||||
typedef ULONGLONG D3DGPU_VIRTUAL_ADDRESS;
|
typedef ULONGLONG D3DGPU_VIRTUAL_ADDRESS;
|
||||||
typedef ULONGLONG D3DGPU_SIZE_T;
|
typedef ULONGLONG D3DGPU_SIZE_T;
|
||||||
|
@ -15,12 +15,12 @@
|
|||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* D3DKMTCreateDCFromMemory (GDI32.@)
|
* D3DKMTCreateDCFromMemory (GDI32.@)
|
||||||
*/
|
*/
|
||||||
DWORD WINAPI D3DKMTCreateDCFromMemory( D3DKMT_CREATEDCFROMMEMORY *desc )
|
NTSTATUS APIENTRY D3DKMTCreateDCFromMemory(_Inout_ D3DKMT_CREATEDCFROMMEMORY* desc)
|
||||||
{
|
{
|
||||||
return NtGdiDdDDICreateDCFromMemory( desc );
|
return NtGdiDdDDICreateDCFromMemory( desc );
|
||||||
}
|
}
|
||||||
|
|
||||||
DWORD WINAPI D3DKMTDestroyDCFromMemory( const D3DKMT_DESTROYDCFROMMEMORY *desc )
|
NTSTATUS APIENTRY D3DKMTDestroyDCFromMemory(_In_ CONST D3DKMT_DESTROYDCFROMMEMORY* desc)
|
||||||
{
|
{
|
||||||
return NtGdiDdDDIDestroyDCFromMemory( desc );
|
return NtGdiDdDDIDestroyDCFromMemory( desc );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user