Updated mingw-w64 to version 8.0.0

This commit is contained in:
Alexandros Naskos 2020-11-05 18:59:36 +02:00
parent 17837affd2
commit 708962d51e
No known key found for this signature in database
GPG Key ID: 02BF2E72B0EA32D2
284 changed files with 86667 additions and 70550 deletions

0
lib/libc/include/any-windows-any/KHR/khrplatform.h Normal file → Executable file
View File

View File

@ -86,8 +86,7 @@ limitations in handling dllimport attribute. */
#elif defined(_MSC_VER)
# define __CRT_INLINE __inline
#else
# if ( __MINGW_GNUC_PREREQ(4, 3) && __STDC_VERSION__ >= 199901L) \
|| (defined (__clang__))
# if ((__MINGW_GNUC_PREREQ(4, 3) || defined(__clang__)) && __STDC_VERSION__ >= 199901L)
# define __CRT_INLINE extern inline __attribute__((__gnu_inline__))
# else
# define __CRT_INLINE extern __inline__
@ -223,7 +222,7 @@ limitations in handling dllimport attribute. */
#ifndef __MSVCRT_VERSION__
/* High byte is the major version, low byte is the minor. */
# ifndef _UCRT
# define __MSVCRT_VERSION__ 0x700
# define __MSVCRT_VERSION__ @DEFAULT_MSVCRT_VERSION@
# else
# define __MSVCRT_VERSION__ 0xE00
# endif
@ -231,7 +230,7 @@ limitations in handling dllimport attribute. */
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0603
#define _WIN32_WINNT @DEFAULT_WIN32_WINNT@
#endif
#ifndef _INT128_DEFINED
@ -418,15 +417,16 @@ typedef int __int128 __attribute__ ((__mode__ (TI)));
#endif
/* We are activating __USE_MINGW_ANSI_STDIO for various define indicators.
Note that we enable it also for _GNU_SOURCE in C++, but not for C case. */
* printf ll modifier (unsupported by msvcrt.dll) is required by C99 and C++11 standards. */
#if (defined (_POSIX) || defined (_POSIX_SOURCE) || defined (_POSIX_C_SOURCE) \
|| defined (_ISOC99_SOURCE) \
|| (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L && __MSVCRT_VERSION__ < 0xE00) \
|| (defined (__cplusplus) && __cplusplus >= 201103L && __MSVCRT_VERSION__ < 0xE00) \
|| defined (_XOPEN_SOURCE) || defined (_XOPEN_SOURCE_EXTENDED) \
|| (defined (_GNU_SOURCE) && defined (__cplusplus)) \
|| defined (_GNU_SOURCE) \
|| defined (_SVID_SOURCE)) \
&& !defined(__USE_MINGW_ANSI_STDIO)
/* Enable __USE_MINGW_ANSI_STDIO if _POSIX defined
* and If user did _not_ specify it explicitly... */
/* Enable __USE_MINGW_ANSI_STDIO if user did _not_ specify it explicitly... */
# define __USE_MINGW_ANSI_STDIO 1
#endif
@ -606,7 +606,6 @@ const char *__mingw_get_crt_info (void);
#define __GOT_SECURE_LIB__ __STDC_SECURE_LIB__
#ifndef __WIDL__
#include "sdks/_mingw_directx.h"
#include "sdks/_mingw_ddk.h"
#endif

View File

@ -11,7 +11,7 @@
#define __MINGW64_STRINGIFY(x) \
__STRINGIFY(x)
#define __MINGW64_VERSION_MAJOR 7
#define __MINGW64_VERSION_MAJOR 8
#define __MINGW64_VERSION_MINOR 0
#define __MINGW64_VERSION_BUGFIX 0

View File

@ -7,8 +7,6 @@
#include <winapifamily.h>
#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
#include <_mingw_unicode.h>
#include <windows.h>
#include <accctrl.h>
@ -17,14 +15,12 @@
extern "C" {
#endif
#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
typedef VOID (*FN_PROGRESS) (LPWSTR pObjectName, DWORD Status, PPROG_INVOKE_SETTING pInvokeSetting, PVOID Args, WINBOOL SecuritySet);
#define SetEntriesInAcl __MINGW_NAME_AW(SetEntriesInAcl)
#define GetExplicitEntriesFromAcl __MINGW_NAME_AW(GetExplicitEntriesFromAcl)
#define GetEffectiveRightsFromAcl __MINGW_NAME_AW(GetEffectiveRightsFromAcl)
#define GetAuditedPermissionsFromAcl __MINGW_NAME_AW(GetAuditedPermissionsFromAcl)
#define GetNamedSecurityInfo __MINGW_NAME_AW(GetNamedSecurityInfo)
#define SetNamedSecurityInfo __MINGW_NAME_AW(SetNamedSecurityInfo)
#define GetInheritanceSource __MINGW_NAME_AW(GetInheritanceSource)
#define TreeResetNamedSecurityInfo __MINGW_NAME_AW(TreeResetNamedSecurityInfo)
#define BuildSecurityDescriptor __MINGW_NAME_AW(BuildSecurityDescriptor)
@ -47,20 +43,10 @@ extern "C" {
#define AccProvInit(err)
WINADVAPI DWORD WINAPI SetEntriesInAclA (ULONG cCountOfExplicitEntries, PEXPLICIT_ACCESS_A pListOfExplicitEntries, PACL OldAcl, PACL *NewAcl);
WINADVAPI DWORD WINAPI SetEntriesInAclW (ULONG cCountOfExplicitEntries, PEXPLICIT_ACCESS_W pListOfExplicitEntries, PACL OldAcl, PACL *NewAcl);
WINADVAPI DWORD WINAPI GetExplicitEntriesFromAclA (PACL pacl, PULONG pcCountOfExplicitEntries, PEXPLICIT_ACCESS_A *pListOfExplicitEntries);
WINADVAPI DWORD WINAPI GetExplicitEntriesFromAclW (PACL pacl, PULONG pcCountOfExplicitEntries, PEXPLICIT_ACCESS_W *pListOfExplicitEntries);
WINADVAPI DWORD WINAPI GetEffectiveRightsFromAclA (PACL pacl, PTRUSTEE_A pTrustee, PACCESS_MASK pAccessRights);
WINADVAPI DWORD WINAPI GetEffectiveRightsFromAclW (PACL pacl, PTRUSTEE_W pTrustee, PACCESS_MASK pAccessRights);
WINADVAPI DWORD WINAPI GetAuditedPermissionsFromAclA (PACL pacl, PTRUSTEE_A pTrustee, PACCESS_MASK pSuccessfulAuditedRights, PACCESS_MASK pFailedAuditRights);
WINADVAPI DWORD WINAPI GetAuditedPermissionsFromAclW (PACL pacl, PTRUSTEE_W pTrustee, PACCESS_MASK pSuccessfulAuditedRights, PACCESS_MASK pFailedAuditRights);
WINADVAPI DWORD WINAPI GetNamedSecurityInfoA (LPCSTR pObjectName, SE_OBJECT_TYPE ObjectType, SECURITY_INFORMATION SecurityInfo, PSID *ppsidOwner, PSID *ppsidGroup, PACL *ppDacl, PACL *ppSacl, PSECURITY_DESCRIPTOR *ppSecurityDescriptor);
WINADVAPI DWORD WINAPI GetNamedSecurityInfoW (LPCWSTR pObjectName, SE_OBJECT_TYPE ObjectType, SECURITY_INFORMATION SecurityInfo, PSID *ppsidOwner, PSID *ppsidGroup, PACL *ppDacl, PACL *ppSacl, PSECURITY_DESCRIPTOR *ppSecurityDescriptor);
WINADVAPI DWORD WINAPI GetSecurityInfo (HANDLE handle, SE_OBJECT_TYPE ObjectType, SECURITY_INFORMATION SecurityInfo, PSID *ppsidOwner, PSID *ppsidGroup, PACL *ppDacl, PACL *ppSacl, PSECURITY_DESCRIPTOR *ppSecurityDescriptor);
WINADVAPI DWORD WINAPI SetNamedSecurityInfoA (LPSTR pObjectName, SE_OBJECT_TYPE ObjectType, SECURITY_INFORMATION SecurityInfo, PSID psidOwner, PSID psidGroup, PACL pDacl, PACL pSacl);
WINADVAPI DWORD WINAPI SetNamedSecurityInfoW (LPWSTR pObjectName, SE_OBJECT_TYPE ObjectType, SECURITY_INFORMATION SecurityInfo, PSID psidOwner, PSID psidGroup, PACL pDacl, PACL pSacl);
WINADVAPI DWORD WINAPI SetSecurityInfo (HANDLE handle, SE_OBJECT_TYPE ObjectType, SECURITY_INFORMATION SecurityInfo, PSID psidOwner, PSID psidGroup, PACL pDacl, PACL pSacl);
WINADVAPI DWORD WINAPI GetInheritanceSourceA (LPSTR pObjectName, SE_OBJECT_TYPE ObjectType, SECURITY_INFORMATION SecurityInfo, WINBOOL Container, GUID **pObjectClassGuids, DWORD GuidCount, PACL pAcl, PFN_OBJECT_MGR_FUNCTS pfnArray, PGENERIC_MAPPING pGenericMapping, PINHERITED_FROMA pInheritArray);
WINADVAPI DWORD WINAPI GetInheritanceSourceW (LPWSTR pObjectName, SE_OBJECT_TYPE ObjectType, SECURITY_INFORMATION SecurityInfo, WINBOOL Container, GUID **pObjectClassGuids, DWORD GuidCount, PACL pAcl, PFN_OBJECT_MGR_FUNCTS pfnArray, PGENERIC_MAPPING pGenericMapping, PINHERITED_FROMW pInheritArray);
WINADVAPI DWORD WINAPI FreeInheritedFromArray (PINHERITED_FROMW pInheritArray, USHORT AceCnt, PFN_OBJECT_MGR_FUNCTS pfnArray);
@ -100,8 +86,27 @@ extern "C" {
WINADVAPI DWORD WINAPI TreeSetNamedSecurityInfoW (LPWSTR pObjectName, SE_OBJECT_TYPE ObjectType, SECURITY_INFORMATION SecurityInfo, PSID pOwner, PSID pGroup, PACL pDacl, PACL pSacl, DWORD dwAction, FN_PROGRESS fnProgress, PROG_INVOKE_SETTING ProgressInvokeSetting, PVOID Args);
#endif
#endif /* WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) */
#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP)
#define SetEntriesInAcl __MINGW_NAME_AW(SetEntriesInAcl)
#define GetExplicitEntriesFromAcl __MINGW_NAME_AW(GetExplicitEntriesFromAcl)
#define GetNamedSecurityInfo __MINGW_NAME_AW(GetNamedSecurityInfo)
#define SetNamedSecurityInfo __MINGW_NAME_AW(SetNamedSecurityInfo)
WINADVAPI DWORD WINAPI SetEntriesInAclA (ULONG cCountOfExplicitEntries, PEXPLICIT_ACCESS_A pListOfExplicitEntries, PACL OldAcl, PACL *NewAcl);
WINADVAPI DWORD WINAPI SetEntriesInAclW (ULONG cCountOfExplicitEntries, PEXPLICIT_ACCESS_W pListOfExplicitEntries, PACL OldAcl, PACL *NewAcl);
WINADVAPI DWORD WINAPI GetExplicitEntriesFromAclA (PACL pacl, PULONG pcCountOfExplicitEntries, PEXPLICIT_ACCESS_A *pListOfExplicitEntries);
WINADVAPI DWORD WINAPI GetExplicitEntriesFromAclW (PACL pacl, PULONG pcCountOfExplicitEntries, PEXPLICIT_ACCESS_W *pListOfExplicitEntries);
WINADVAPI DWORD WINAPI GetNamedSecurityInfoA (LPCSTR pObjectName, SE_OBJECT_TYPE ObjectType, SECURITY_INFORMATION SecurityInfo, PSID *ppsidOwner, PSID *ppsidGroup, PACL *ppDacl, PACL *ppSacl, PSECURITY_DESCRIPTOR *ppSecurityDescriptor);
WINADVAPI DWORD WINAPI GetNamedSecurityInfoW (LPCWSTR pObjectName, SE_OBJECT_TYPE ObjectType, SECURITY_INFORMATION SecurityInfo, PSID *ppsidOwner, PSID *ppsidGroup, PACL *ppDacl, PACL *ppSacl, PSECURITY_DESCRIPTOR *ppSecurityDescriptor);
WINADVAPI DWORD WINAPI GetSecurityInfo (HANDLE handle, SE_OBJECT_TYPE ObjectType, SECURITY_INFORMATION SecurityInfo, PSID *ppsidOwner, PSID *ppsidGroup, PACL *ppDacl, PACL *ppSacl, PSECURITY_DESCRIPTOR *ppSecurityDescriptor);
WINADVAPI DWORD WINAPI SetNamedSecurityInfoA (LPSTR pObjectName, SE_OBJECT_TYPE ObjectType, SECURITY_INFORMATION SecurityInfo, PSID psidOwner, PSID psidGroup, PACL pDacl, PACL pSacl);
WINADVAPI DWORD WINAPI SetNamedSecurityInfoW (LPWSTR pObjectName, SE_OBJECT_TYPE ObjectType, SECURITY_INFORMATION SecurityInfo, PSID psidOwner, PSID psidGroup, PACL pDacl, PACL pSacl);
WINADVAPI DWORD WINAPI SetSecurityInfo (HANDLE handle, SE_OBJECT_TYPE ObjectType, SECURITY_INFORMATION SecurityInfo, PSID psidOwner, PSID psidGroup, PACL pDacl, PACL pSacl);
#endif /* WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP) */
#ifdef __cplusplus
}
#endif
#endif
#endif
#endif /* __ACCESS_CONTROL_API__ */

View File

@ -1,4 +1,4 @@
/*** Autogenerated by WIDL 4.19 from direct-x/include/amstream.idl - Do not edit ***/
/*** Autogenerated by WIDL 5.16 from include/amstream.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__

View File

@ -1,4 +1,4 @@
/*** Autogenerated by WIDL 4.19 from direct-x/include/amvideo.idl - Do not edit ***/
/*** Autogenerated by WIDL 5.16 from include/amvideo.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__

View File

@ -94,4 +94,12 @@
#endif
#endif
#ifndef WINSTORAGEAPI
#ifndef _WINSTORAGEAPI_
#define WINSTORAGEAPI DECLSPEC_IMPORT
#else
#define WINSTORAGEAPI
#endif
#endif
#endif /* _APISETCCONV_ */

View File

@ -138,11 +138,18 @@ enum _AUDCLNT_BUFFERFLAGS {
AUDCLNT_BUFFERFLAGS_SILENT = 0x2,
AUDCLNT_BUFFERFLAGS_TIMESTAMP_ERROR = 0x4
};
typedef enum AUDCLNT_STREAMOPTIONS {
AUDCLNT_STREAMOPTIONS_NONE = 0x0,
AUDCLNT_STREAMOPTIONS_RAW = 0x1,
AUDCLNT_STREAMOPTIONS_MATCH_FORMAT = 0x2,
AUDCLNT_STREAMOPTIONS_AMBISONICS = 0x4
} AUDCLNT_STREAMOPTIONS;
typedef struct AudioClientProperties {
UINT32 cbSize;
WINBOOL bIsOffload;
AUDIO_STREAM_CATEGORY eCategory;
AUDCLNT_STREAMOPTIONS Options;
} AudioClientProperties;
/*****************************************************************************

View File

@ -38,7 +38,11 @@ typedef enum _AUDIO_STREAM_CATEGORY {
AudioCategory_Alerts,
AudioCategory_SoundEffects,
AudioCategory_GameEffects,
AudioCategory_GameMedia
AudioCategory_GameMedia,
AudioCategory_GameChat,
AudioCategory_Speech,
AudioCategory_Movie,
AudioCategory_Media
} AUDIO_STREAM_CATEGORY;
#define AUDCLNT_STREAMFLAGS_CROSSPROCESS 0x00010000

View File

@ -1,4 +1,4 @@
/*** Autogenerated by WIDL 4.19 from direct-x/include/austream.idl - Do not edit ***/
/*** Autogenerated by WIDL 5.16 from include/austream.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__

View File

@ -6,11 +6,26 @@
#ifndef _CFG_INCLUDED_
#define _CFG_INCLUDED_
#include <winapifamily.h>
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
typedef enum _PNP_VETO_TYPE {
PNP_VetoTypeUnknown,PNP_VetoLegacyDevice,PNP_VetoPendingClose,PNP_VetoWindowsApp,PNP_VetoWindowsService,PNP_VetoOutstandingOpen,
PNP_VetoDevice,PNP_VetoDriver,PNP_VetoIllegalDeviceRequest,PNP_VetoInsufficientPower,PNP_VetoNonDisableable,PNP_VetoLegacyDriver,
PNP_VetoInsufficientRights
} PNP_VETO_TYPE,*PPNP_VETO_TYPE;
PNP_VetoTypeUnknown,
PNP_VetoLegacyDevice,
PNP_VetoPendingClose,
PNP_VetoWindowsApp,
PNP_VetoWindowsService,
PNP_VetoOutstandingOpen,
PNP_VetoDevice,
PNP_VetoDriver,
PNP_VetoIllegalDeviceRequest,
PNP_VetoInsufficientPower,
PNP_VetoNonDisableable,
PNP_VetoLegacyDriver,
PNP_VetoInsufficientRights,
PNP_VetoAlreadyRemoved
} PNP_VETO_TYPE, *PPNP_VETO_TYPE;
#define CM_PROB_NOT_CONFIGURED (0x00000001)
#define CM_PROB_DEVLOADER_FAILED (0x00000002)
@ -62,13 +77,52 @@ typedef enum _PNP_VETO_TYPE {
#define CM_PROB_DRIVER_BLOCKED (0x00000030)
#define CM_PROB_REGISTRY_TOO_LARGE (0x00000031)
#define CM_PROB_SETPROPERTIES_FAILED (0x00000032)
#define NUM_CM_PROB (0x00000033)
#define CM_PROB_WAITING_ON_DEPENDENCY (0x00000033)
#define CM_PROB_UNSIGNED_DRIVER (0x00000034)
#define CM_PROB_USED_BY_DEBUGGER (0x00000035)
#define CM_PROB_DEVICE_RESET (0x00000036)
#define CM_PROB_CONSOLE_LOCKED (0x00000037)
#define CM_PROB_NEED_CLASS_CONFIG (0x00000038)
#define CM_PROB_GUEST_ASSIGNMENT_FAILED (0x00000039)
#define CM_GLOBAL_STATE_CAN_DO_UI (0x00000001)
#define CM_GLOBAL_STATE_ON_BIG_STACK (0x00000002)
#define CM_GLOBAL_STATE_SERVICES_AVAILABLE (0x00000004)
#define CM_GLOBAL_STATE_SHUTTING_DOWN (0x00000008)
#define CM_GLOBAL_STATE_DETECTION_PENDING (0x00000010)
#if WINVER >= _WIN32_WINNT_WIN7
#define CM_GLOBAL_STATE_REBOOT_REQUIRED (0x00000020)
#endif
#define NUM_CM_PROB_V1 (0x00000025)
#define NUM_CM_PROB_V2 (0x00000032)
#define NUM_CM_PROB_V3 (0x00000033)
#define NUM_CM_PROB_V4 (0x00000034)
#define NUM_CM_PROB_V5 (0x00000035)
#define NUM_CM_PROB_V6 (0x00000036)
#define NUM_CM_PROB_V7 (0x00000037)
#define NUM_CM_PROB_V8 (0x00000039)
#define NUM_CM_PROB_V9 (0x0000003A)
#if NTDDI_VERSION >= NTDDI_WIN10_VB
#define NUM_CM_PROB NUM_CM_PROB_V9
#elif NTDDI_VERSION >= NTDDI_WIN10_RS3
#define NUM_CM_PROB NUM_CM_PROB_V8
#elif NTDDI_VERSION >= NTDDI_WINTHRESHOLD
#define NUM_CM_PROB NUM_CM_PROB_V7
#elif NTDDI_VERSION >= NTDDI_WINBLUE
#define NUM_CM_PROB NUM_CM_PROB_V6
#elif NTDDI_VERSION >= NTDDI_WIN7
#define NUM_CM_PROB NUM_CM_PROB_V5
#elif NTDDI_VERSION >= NTDDI_WS08
#define NUM_CM_PROB NUM_CM_PROB_V4
#elif NTDDI_VERSION >= NTDDI_WS03
#define NUM_CM_PROB NUM_CM_PROB_V3
#elif NTDDI_VERSION >= NTDDI_WINXP
#define NUM_CM_PROB NUM_CM_PROB_V2
#elif NTDDI_VERSION >= NTDDI_WIN2K
#define NUM_CM_PROB NUM_CM_PROB_V1
#endif
#define DN_ROOT_ENUMERATED (0x00000001)
#define DN_DRIVER_LOADED (0x00000002)
@ -105,10 +159,24 @@ typedef enum _PNP_VETO_TYPE {
#define DN_NO_SHOW_IN_DM 0x40000000
#define DN_BOOT_LOG_PROB 0x80000000
#if NTDDI_VERSION >= NTDDI_WIN2K
#define DN_NEED_RESTART DN_LIAR
#endif
#if NTDDI_VERSION >= NTDDI_WINXP
#define DN_DRIVER_BLOCKED DN_NOT_FIRST_TIME
#define DN_LEGACY_DRIVER DN_MOVED
#define DN_CHILD_WITH_INVALID_ID DN_HAS_MARK
#endif
#if NTDDI_VERSION >= NTDDI_WIN8
#define DN_DEVICE_DISCONNECTED DN_NEEDS_LOCKING
#endif
#if NTDDI_VERSION >= NTDDI_WIN10
#define DN_QUERY_REMOVE_PENDING DN_MF_PARENT
#define DN_QUERY_REMOVE_ACTIVE DN_MF_CHILD
#endif
#define DN_CHANGEABLE_FLAGS (DN_NOT_FIRST_TIME+ DN_HARDWARE_ENUM+ DN_HAS_MARK+ DN_DISABLEABLE+ DN_REMOVABLE+ DN_MF_CHILD+ DN_MF_PARENT+ DN_NOT_FIRST_TIMEE+ DN_STOP_FREE_RES+ DN_REBAL_CANDIDATE+ DN_NT_ENUMERATOR+ DN_NT_DRIVER+ DN_SILENT_INSTALL+ DN_NO_SHOW_IN_DM)
@ -127,4 +195,34 @@ typedef enum _PNP_VETO_TYPE {
#define LCPRI_IMPOSSIBLE (0x0000F000)
#define LCPRI_DISABLED (0x0000FFFF)
#define MAX_LCPRI (0x0000FFFF)
#endif
#define CM_DEVICE_PANEL_SIDE_UNKNOWN (0x00000000)
#define CM_DEVICE_PANEL_SIDE_TOP (0x00000001)
#define CM_DEVICE_PANEL_SIDE_BOTTOM (0x00000002)
#define CM_DEVICE_PANEL_SIDE_LEFT (0x00000003)
#define CM_DEVICE_PANEL_SIDE_RIGHT (0x00000004)
#define CM_DEVICE_PANEL_SIDE_FRONT (0x00000005)
#define CM_DEVICE_PANEL_SIDE_BACK (0x00000006)
#define CM_DEVICE_PANEL_EDGE_UNKNOWN (0x00000000)
#define CM_DEVICE_PANEL_EDGE_TOP (0x00000001)
#define CM_DEVICE_PANEL_EDGE_BOTTOM (0x00000002)
#define CM_DEVICE_PANEL_EDGE_LEFT (0x00000003)
#define CM_DEVICE_PANEL_EDGE_RIGHT (0x00000004)
#define CM_DEVICE_PANEL_SHAPE_UNKNOWN (0x00000000)
#define CM_DEVICE_PANEL_SHAPE_RECTANGLE (0x00000001)
#define CM_DEVICE_PANEL_SHAPE_OVAL (0x00000002)
#define CM_DEVICE_PANEL_ORIENTATION_HORIZONTAL (0x00000000)
#define CM_DEVICE_PANEL_ORIENTATION_VERTICAL (0x00000001)
#define CM_DEVICE_PANEL_JOINT_TYPE_UNKNOWN (0x00000000)
#define CM_DEVICE_PANEL_JOINT_TYPE_PLANAR (0x00000001)
#define CM_DEVICE_PANEL_JOINT_TYPE_HINGE (0x00000002)
#define CM_DEVICE_PANEL_JOINT_TYPE_PIVOT (0x00000003)
#define CM_DEVICE_PANEL_JOINT_TYPE_SWIVEL (0x00000004)
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
#endif /* _CFG_INCLUDED_ */

View File

@ -16,6 +16,13 @@
extern "C" {
#endif
typedef DWORD RETURN_TYPE;
typedef RETURN_TYPE CONFIGRET;
typedef CHAR *DEVNODEID_A,*DEVINSTID_A;
typedef WCHAR *DEVNODEID_W,*DEVINSTID_W;
#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
typedef CONST VOID *PCVOID;
#define MAX_DEVICE_ID_LEN 200
@ -40,12 +47,8 @@ extern "C" {
typedef DWORDLONG *PDWORDLONG;
#endif
typedef DWORD RETURN_TYPE;
typedef RETURN_TYPE CONFIGRET;
typedef DWORD DEVNODE,DEVINST;
typedef DEVNODE *PDEVNODE,*PDEVINST;
typedef CHAR *DEVNODEID_A,*DEVINSTID_A;
typedef WCHAR *DEVNODEID_W,*DEVINSTID_W;
__MINGW_TYPEDEF_UAW(DEVNODEID)
__MINGW_TYPEDEF_UAW(DEVINSTID)
@ -132,6 +135,9 @@ extern "C" {
#define fMD_NonCacheable (0x0)
#define fMD_Cacheable (0x20)
#define fMD_WINDOW_DECODE (0x40)
#define fMD_MEMORY_BAR (0x80)
typedef struct Mem_Range_s {
DWORDLONG MR_Align;
ULONG MR_nBytes;
@ -157,6 +163,31 @@ extern "C" {
#define MType_Range sizeof(struct Mem_Range_s)
typedef struct Mem_Large_Range_s {
DWORDLONG MLR_Align;
ULONGLONG MLR_nBytes;
DWORDLONG MLR_Min;
DWORDLONG MLR_Max;
DWORD MLR_Flags;
DWORD MLR_Reserved;
} MEM_LARGE_RANGE, *PMEM_LARGE_RANGE;
typedef struct Mem_Large_Des_s {
DWORD MLD_Count;
DWORD MLD_Type;
DWORDLONG MLD_Alloc_Base;
DWORDLONG MLD_Alloc_End;
DWORD MLD_Flags;
DWORD MLD_Reserved;
} MEM_LARGE_DES, *PMEM_LARGE_DES;
typedef struct Mem_Large_Resource_s {
MEM_LARGE_DES MEM_LARGE_Header;
MEM_LARGE_RANGE MEM_LARGE_Data[ANYSIZE_ARRAY];
} MEM_LARGE_RESOURCE, *PMEM_LARGE_RESOURCE;
#define MLType_Range sizeof(struct Mem_Large_Range_s)
#define fIOD_PortType (0x1)
#define fIOD_Memory (0x0)
#define fIOD_IO (0x1)
@ -167,6 +198,7 @@ extern "C" {
#define fIOD_POSITIVE_DECODE (0x0020)
#define fIOD_PASSIVE_DECODE (0x0040)
#define fIOD_WINDOW_DECODE (0x0080)
#define fIOD_PORT_BAR (0x0100)
#define IO_ALIAS_10_BIT_DECODE (0x00000004)
#define IO_ALIAS_12_BIT_DECODE (0x00000010)
@ -249,13 +281,23 @@ extern "C" {
typedef struct IRQ_Range_s {
ULONG IRQR_Min;
ULONG IRQR_Max;
#ifdef NT_PROCESSOR_GROUPS
USHORT IRQR_Flags;
USHORT IRQR_Rsvdz;
#else
ULONG IRQR_Flags;
#endif
} IRQ_RANGE,*PIRQ_RANGE;
typedef struct IRQ_Des_32_s {
DWORD IRQD_Count;
DWORD IRQD_Type;
#ifdef NT_PROCESSOR_GROUPS
USHORT IRQD_Flags;
USHORT IRQD_Group;
#else
DWORD IRQD_Flags;
#endif
ULONG IRQD_Alloc_Num;
ULONG32 IRQD_Affinity;
} IRQ_DES_32,*PIRQ_DES_32;
@ -263,7 +305,12 @@ extern "C" {
typedef struct IRQ_Des_64_s {
DWORD IRQD_Count;
DWORD IRQD_Type;
#if defined(NT_PROCESSOR_GROUPS)
USHORT IRQD_Flags;
USHORT IRQD_Group;
#else
DWORD IRQD_Flags;
#endif
ULONG IRQD_Alloc_Num;
ULONG64 IRQD_Affinity;
} IRQ_DES_64,*PIRQ_DES_64;
@ -296,10 +343,12 @@ extern "C" {
#define IRQType_Range sizeof(struct IRQ_Range_s)
#if WINVER >= _WIN32_WINNT_WINXP
#define CM_RESDES_WIDTH_DEFAULT (0x00000000)
#define CM_RESDES_WIDTH_32 (0x00000001)
#define CM_RESDES_WIDTH_64 (0x00000002)
#define CM_RESDES_WIDTH_BITS (0x00000003)
#endif
typedef struct DevPrivate_Range_s {
DWORD PR_Data1;
@ -353,6 +402,7 @@ extern "C" {
#define fPCD_MEM_WS_TWO (0x200)
#define fPCD_MEM_WS_THREE (0x300)
#if WINVER >= _WIN32_WINNT_WINXP
#define fPCD_MEM_A (0x4)
#define fPCD_ATTRIBUTES_PER_WINDOW (0x8000)
@ -381,6 +431,7 @@ extern "C" {
#define PCD_MAX_MEMORY 2
#define PCD_MAX_IO 2
#endif
typedef struct PcCard_Des_s {
DWORD PCD_Count;
@ -390,9 +441,11 @@ extern "C" {
BYTE PCD_Reserved[3];
DWORD PCD_MemoryCardBase1;
DWORD PCD_MemoryCardBase2;
#if WINVER >= _WIN32_WINNT_WINXP
DWORD PCD_MemoryCardBase[PCD_MAX_MEMORY];
WORD PCD_MemoryFlags[PCD_MAX_MEMORY];
BYTE PCD_IoFlags[PCD_MAX_IO];
#endif
} PCCARD_DES,*PPCCARD_DES;
typedef struct PcCard_Resource_s {
@ -438,6 +491,24 @@ extern "C" {
#define BusNumberType_Range sizeof(struct BusNumber_Range_s)
#if WINVER >= _WIN32_WINNT_WIN8
typedef struct Connection_Des_s {
DWORD COND_Type;
DWORD COND_Flags;
BYTE COND_Class;
BYTE COND_ClassType;
BYTE COND_Reserved1;
BYTE COND_Reserved2;
LARGE_INTEGER COND_Id;
} CONNECTION_DES, *PCONNECTION_DES;
typedef struct Connection_Resource_s {
CONNECTION_DES Connection_Header;
} CONNECTION_RESOURCE, *PCONNECTION_RESOURCE;
#endif
#define CM_HWPI_NOT_DOCKABLE (0x00000000)
#define CM_HWPI_UNDOCKED (0x00000001)
#define CM_HWPI_DOCKED (0x00000002)
@ -467,13 +538,18 @@ extern "C" {
#define ResType_IRQ (0x00000004)
#define ResType_DoNotUse (0x00000005)
#define ResType_BusNumber (0x00000006)
#define ResType_MAX (0x00000006)
#define ResType_MemLarge (0x00000007)
#define ResType_MAX (0x00000007)
#define ResType_Ignored_Bit (0x00008000)
#define ResType_ClassSpecific (0x0000FFFF)
#define ResType_Reserved (0x00008000)
#define ResType_DevicePrivate (0x00008001)
#define ResType_PcCardConfig (0x00008002)
#define ResType_MfCardConfig (0x00008003)
#if WINVER >= _WIN32_WINNT_WIN8
#define ResType_Connection (0x00008004)
#endif
#define CM_ADD_RANGE_ADDIFCONFLICT (0x00000000)
#define CM_ADD_RANGE_DONOTADDIFCONFLICT (0x00000001)
@ -516,7 +592,16 @@ extern "C" {
#define CM_DELETE_CLASS_ONLY (0x00000000)
#define CM_DELETE_CLASS_SUBKEYS (0x00000001)
#define CM_DELETE_CLASS_BITS (0x00000001)
#if WINVER >= _WIN32_WINNT_LONGHORN
#define CM_DELETE_CLASS_INTERFACE (0x00000002)
#endif
#define CM_DELETE_CLASS_BITS (0x00000003)
#if WINVER >= _WIN32_WINNT_WIN8
#define CM_ENUMERATE_CLASSES_INSTALLER (0x00000000)
#define CM_ENUMERATE_CLASSES_INTERFACE (0x00000001)
#define CM_ENUMERATE_CLASSES_BITS (0x00000001)
#endif
#define CM_DETECT_NEW_PROFILE (0x00000001)
#define CM_DETECT_CRASHED (0x00000002)
@ -528,6 +613,7 @@ extern "C" {
#define CM_DISABLE_ABSOLUTE (0x00000001)
#define CM_DISABLE_HARDWARE (0x00000002)
#define CM_DISABLE_UI_NOT_OK (0x00000004)
#define CM_DISABLE_PERSIST (0x00000008)
#define CM_DISABLE_BITS (0x00000007)
#define CM_GETIDLIST_FILTER_NONE (0x00000000)
@ -538,7 +624,15 @@ extern "C" {
#define CM_GETIDLIST_FILTER_POWERRELATIONS (0x00000010)
#define CM_GETIDLIST_FILTER_BUSRELATIONS (0x00000020)
#define CM_GETIDLIST_DONOTGENERATE (0x10000040)
#if WINVER <= _WIN32_WINNT_LONGHORN
#define CM_GETIDLIST_FILTER_BITS (0x1000007F)
#endif
#if WINVER >= _WIN32_WINNT_WIN7
#define CM_GETIDLIST_FILTER_TRANSPORTRELATIONS (0x00000080)
#define CM_GETIDLIST_FILTER_PRESENT (0x00000100)
#define CM_GETIDLIST_FILTER_CLASS (0x00000200)
#define CM_GETIDLIST_FILTER_BITS (0x100003FF)
#endif
#define CM_GET_DEVICE_INTERFACE_LIST_PRESENT (0x00000000)
#define CM_GET_DEVICE_INTERFACE_LIST_ALL_DEVICES (0x00000001)
@ -562,7 +656,13 @@ extern "C" {
#define CM_DRP_CAPABILITIES (0x00000010)
#define CM_DRP_UI_NUMBER (0x00000011)
#define CM_DRP_UPPERFILTERS (0x00000012)
#if WINVER >= _WIN32_WINNT_LONGHORN
#define CM_CRP_UPPERFILTERS CM_DRP_UPPERFILTERS
#endif
#define CM_DRP_LOWERFILTERS (0x00000013)
#if WINVER >= _WIN32_WINNT_LONGHORN
#define CM_CRP_LOWERFILTERS CM_DRP_LOWERFILTERS
#endif
#define CM_DRP_BUSTYPEGUID (0x00000014)
#define CM_DRP_LEGACYBUSTYPE (0x00000015)
#define CM_DRP_BUSNUMBER (0x00000016)
@ -579,11 +679,19 @@ extern "C" {
#define CM_CRP_CHARACTERISTICS CM_DRP_CHARACTERISTICS
#define CM_DRP_ADDRESS (0x0000001D)
#define CM_DRP_UI_NUMBER_DESC_FORMAT (0x0000001E)
#if WINVER >= _WIN32_WINNT_WINXP
#define CM_DRP_DEVICE_POWER_DATA (0x0000001F)
#define CM_DRP_REMOVAL_POLICY (0x00000020)
#define CM_DRP_REMOVAL_POLICY_HW_DEFAULT (0x00000021)
#define CM_DRP_REMOVAL_POLICY_OVERRIDE (0x00000022)
#define CM_DRP_INSTALL_STATE (0x00000023)
#endif
#if WINVER >= _WIN32_WINNT_WS03
#define CM_DRP_LOCATION_PATHS (0x00000024)
#endif
#if WINVER >= _WIN32_WINNT_WIN7
#define CM_DRP_BASE_CONTAINERID (0x00000025)
#endif
#define CM_DRP_MIN (0x00000001)
#define CM_CRP_MIN CM_DRP_MIN
@ -600,7 +708,9 @@ extern "C" {
#define CM_DEVCAP_SURPRISEREMOVALOK (0x00000080)
#define CM_DEVCAP_HARDWAREDISABLED (0x00000100)
#define CM_DEVCAP_NONDYNAMIC (0x00000200)
#define CM_DEVCAP_SECUREDEVICE (0x00000400)
#if WINVER >= _WIN32_WINNT_WINXP
#define CM_REMOVAL_POLICY_EXPECT_NO_REMOVAL 1
#define CM_REMOVAL_POLICY_EXPECT_ORDERLY_REMOVAL 2
#define CM_REMOVAL_POLICY_EXPECT_SURPRISE_REMOVAL 3
@ -609,6 +719,7 @@ extern "C" {
#define CM_INSTALL_STATE_NEEDS_REINSTALL 1
#define CM_INSTALL_STATE_FAILED_INSTALL 2
#define CM_INSTALL_STATE_FINISH_INSTALL 3
#endif
#define CM_LOCATE_DEVNODE_NORMAL 0x00000000
#define CM_LOCATE_DEVNODE_PHANTOM 0x00000001
@ -637,8 +748,10 @@ extern "C" {
#define CM_REENUMERATE_NORMAL 0x00000000
#define CM_REENUMERATE_SYNCHRONOUS 0x00000001
#if WINVER >= _WIN32_WINNT_WINXP
#define CM_REENUMERATE_RETRY_INSTALLATION 0x00000002
#define CM_REENUMERATE_ASYNCHRONOUS 0x00000004
#endif
#define CM_REENUMERATE_BITS 0x00000007
#define CM_REGISTER_DEVICE_DRIVER_STATIC (0x00000000)
@ -668,16 +781,113 @@ extern "C" {
#define CM_SETUP_DOWNLOAD (0x00000001)
#define CM_SETUP_WRITE_LOG_CONFS (0x00000002)
#define CM_SETUP_PROP_CHANGE (0x00000003)
#if WINVER >= _WIN32_WINNT_WINXP
#define CM_SETUP_DEVNODE_RESET (0x00000004)
#define CM_SETUP_DEVINST_RESET CM_SETUP_DEVNODE_RESET
#endif
#if WINVER >= _WIN32_WINNT_WIN8
#define CM_SETUP_DEVNODE_CONFIG (0x00000005)
#define CM_SETUP_DEVINST_CONFIG CM_SETUP_DEVNODE_CONFIG
#define CM_SETUP_DEVNODE_CONFIG_CLASS (0x00000006)
#define CM_SETUP_DEVINST_CONFIG_CLASS CM_SETUP_DEVNODE_CONFIG_CLASS
#endif
#if WINVER >= _WIN32_WINNT_WINBLUE
#define CM_SETUP_DEVNODE_CONFIG_EXTENSIONS (0x00000007)
#define CM_SETUP_DEVINST_CONFIG_EXTENSIONS CM_SETUP_DEVNODE_CONFIG_EXTENSIONS
#endif
#if WINVER >= _WIN32_WINNT_WINTHRESHOLD
#define CM_SETUP_DEVNODE_CONFIG_RESET (0x00000008)
#define CM_SETUP_DEVINST_CONFIG_RESET CM_SETUP_DEVNODE_CONFIG_RESET
#endif
#define CM_SETUP_BITS (0x00000007)
#define CM_QUERY_ARBITRATOR_RAW (0x00000000)
#define CM_QUERY_ARBITRATOR_TRANSLATED (0x00000001)
#define CM_QUERY_ARBITRATOR_BITS (0x00000001)
#if WINVER >= _WIN32_WINNT_WINXP
#define CM_CUSTOMDEVPROP_MERGE_MULTISZ (0x00000001)
#define CM_CUSTOMDEVPROP_BITS (0x00000001)
#endif
#define CM_NAME_ATTRIBUTE_NAME_RETRIEVED_FROM_DEVICE (0x1)
#define CM_NAME_ATTRIBUTE_USER_ASSIGNED_NAME (0x2)
#if WINVER >= _WIN32_WINNT_LONGHORN
#define CM_CLASS_PROPERTY_INSTALLER (0x00000000)
#define CM_CLASS_PROPERTY_INTERFACE (0x00000001)
#define CM_CLASS_PROPERTY_BITS (0x00000001)
#endif
#if WINVER >= _WIN32_WINNT_WIN8
DECLARE_HANDLE(HCMNOTIFICATION);
typedef HCMNOTIFICATION *PHCMNOTIFICATION;
#define CM_NOTIFY_FILTER_FLAG_ALL_INTERFACE_CLASSES 0x00000001
#define CM_NOTIFY_FILTER_FLAG_ALL_DEVICE_INSTANCES 0x00000002
#define CM_NOTIFY_FILTER_VALID_FLAGS (CM_NOTIFY_FILTER_FLAG_ALL_INTERFACE_CLASSES | CM_NOTIFY_FILTER_FLAG_ALL_DEVICE_INSTANCES)
typedef enum _CM_NOTIFY_FILTER_TYPE {
CM_NOTIFY_FILTER_TYPE_DEVICEINTERFACE = 0,
CM_NOTIFY_FILTER_TYPE_DEVICEHANDLE,
CM_NOTIFY_FILTER_TYPE_DEVICEINSTANCE,
CM_NOTIFY_FILTER_TYPE_MAX
} CM_NOTIFY_FILTER_TYPE, *PCM_NOTIFY_FILTER_TYPE;
typedef struct _CM_NOTIFY_FILTER {
DWORD cbSize;
DWORD Flags;
CM_NOTIFY_FILTER_TYPE FilterType;
DWORD Reserved;
union {
struct {
GUID ClassGuid;
} DeviceInterface;
struct {
HANDLE hTarget;
} DeviceHandle;
struct {
WCHAR InstanceId[MAX_DEVICE_ID_LEN];
} DeviceInstance;
} u;
} CM_NOTIFY_FILTER, *PCM_NOTIFY_FILTER;
typedef enum _CM_NOTIFY_ACTION {
CM_NOTIFY_ACTION_DEVICEINTERFACEARRIVAL = 0,
CM_NOTIFY_ACTION_DEVICEINTERFACEREMOVAL,
CM_NOTIFY_ACTION_DEVICEQUERYREMOVE,
CM_NOTIFY_ACTION_DEVICEQUERYREMOVEFAILED,
CM_NOTIFY_ACTION_DEVICEREMOVEPENDING,
CM_NOTIFY_ACTION_DEVICEREMOVECOMPLETE,
CM_NOTIFY_ACTION_DEVICECUSTOMEVENT,
CM_NOTIFY_ACTION_DEVICEINSTANCEENUMERATED,
CM_NOTIFY_ACTION_DEVICEINSTANCESTARTED,
CM_NOTIFY_ACTION_DEVICEINSTANCEREMOVED,
CM_NOTIFY_ACTION_MAX
} CM_NOTIFY_ACTION, *PCM_NOTIFY_ACTION;
typedef struct _CM_NOTIFY_EVENT_DATA {
CM_NOTIFY_FILTER_TYPE FilterType;
DWORD Reserved;
union {
struct {
GUID ClassGuid;
WCHAR SymbolicLink[ANYSIZE_ARRAY];
} DeviceInterface;
struct {
GUID EventGuid;
LONG NameOffset;
DWORD DataSize;
BYTE Data[ANYSIZE_ARRAY];
} DeviceHandle;
struct {
WCHAR InstanceId[ANYSIZE_ARRAY];
} DeviceInstance;
} u;
} CM_NOTIFY_EVENT_DATA, *PCM_NOTIFY_EVENT_DATA;
typedef DWORD (CALLBACK *PCM_NOTIFY_CALLBACK)(HCMNOTIFICATION hNotify, PVOID Context, CM_NOTIFY_ACTION Action, PCM_NOTIFY_EVENT_DATA EventData, DWORD EventDataSize);
#endif /* WINVER >= _WIN32_WINNT_WIN8 */
#define CM_Add_ID __MINGW_NAME_AW(CM_Add_ID)
#define CM_Add_ID_Ex __MINGW_NAME_AW(CM_Add_ID_Ex)
@ -712,9 +922,7 @@ extern "C" {
#define CM_Get_HW_Prof_Flags_Ex __MINGW_NAME_AW(CM_Get_HW_Prof_Flags_Ex)
#define CM_Get_Device_Interface_Alias __MINGW_NAME_AW(CM_Get_Device_Interface_Alias)
#define CM_Get_Device_Interface_Alias_Ex __MINGW_NAME_AW(CM_Get_Device_Interface_Alias_Ex)
#define CM_Get_Device_Interface_List __MINGW_NAME_AW(CM_Get_Device_Interface_List)
#define CM_Get_Device_Interface_List_Ex __MINGW_NAME_AW(CM_Get_Device_Interface_List_Ex)
#define CM_Get_Device_Interface_List_Size __MINGW_NAME_AW(CM_Get_Device_Interface_List_Size)
#define CM_Get_Device_Interface_List_Size_Ex __MINGW_NAME_AW(CM_Get_Device_Interface_List_Size_Ex)
#define CM_Locate_DevNode __MINGW_NAME_AW(CM_Locate_DevNode)
#define CM_Locate_DevInst __MINGW_NAME_AW(CM_Locate_DevNode)
@ -860,12 +1068,8 @@ extern "C" {
CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_AliasW(LPCWSTR pszDeviceInterface,LPGUID AliasInterfaceGuid,LPWSTR pszAliasDeviceInterface,PULONG pulLength,ULONG ulFlags);
CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_Alias_ExA(LPCSTR pszDeviceInterface,LPGUID AliasInterfaceGuid,LPSTR pszAliasDeviceInterface,PULONG pulLength,ULONG ulFlags,HMACHINE hMachine);
CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_Alias_ExW(LPCWSTR pszDeviceInterface,LPGUID AliasInterfaceGuid,LPWSTR pszAliasDeviceInterface,PULONG pulLength,ULONG ulFlags,HMACHINE hMachine);
CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_ListA(LPGUID InterfaceClassGuid,DEVINSTID_A pDeviceID,PCHAR Buffer,ULONG BufferLen,ULONG ulFlags);
CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_ListW(LPGUID InterfaceClassGuid,DEVINSTID_W pDeviceID,PWCHAR Buffer,ULONG BufferLen,ULONG ulFlags);
CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_List_ExA(LPGUID InterfaceClassGuid,DEVINSTID_A pDeviceID,PCHAR Buffer,ULONG BufferLen,ULONG ulFlags,HMACHINE hMachine);
CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_List_ExW(LPGUID InterfaceClassGuid,DEVINSTID_W pDeviceID,PWCHAR Buffer,ULONG BufferLen,ULONG ulFlags,HMACHINE hMachine);
CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_List_SizeA(PULONG pulLen,LPGUID InterfaceClassGuid,DEVINSTID_A pDeviceID,ULONG ulFlags);
CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_List_SizeW(PULONG pulLen,LPGUID InterfaceClassGuid,DEVINSTID_W pDeviceID,ULONG ulFlags);
CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_List_Size_ExA(PULONG pulLen,LPGUID InterfaceClassGuid,DEVINSTID_A pDeviceID,ULONG ulFlags,HMACHINE hMachine);
CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_List_Size_ExW(PULONG pulLen,LPGUID InterfaceClassGuid,DEVINSTID_W pDeviceID,ULONG ulFlags,HMACHINE hMachine);
CMAPI CONFIGRET WINAPI CM_Get_Log_Conf_Priority(LOG_CONF lcLogConf,PPRIORITY pPriority,ULONG ulFlags);
@ -1053,6 +1257,18 @@ extern "C" {
#define CR_INVALID_STRUCTURE_SIZE (0x0000003B)
#define NUM_CR_RESULTS (0x0000003C)
#endif /* WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) */
#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP)
#define CM_Get_Device_Interface_List __MINGW_NAME_AW(CM_Get_Device_Interface_List)
#define CM_Get_Device_Interface_List_Size __MINGW_NAME_AW(CM_Get_Device_Interface_List_Size)
CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_ListA(LPGUID InterfaceClassGuid,DEVINSTID_A pDeviceID,PCHAR Buffer,ULONG BufferLen,ULONG ulFlags);
CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_ListW(LPGUID InterfaceClassGuid,DEVINSTID_W pDeviceID,PWCHAR Buffer,ULONG BufferLen,ULONG ulFlags);
CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_List_SizeA(PULONG pulLen,LPGUID InterfaceClassGuid,DEVINSTID_A pDeviceID,ULONG ulFlags);
CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_List_SizeW(PULONG pulLen,LPGUID InterfaceClassGuid,DEVINSTID_W pDeviceID,ULONG ulFlags);
#endif
#ifdef __cplusplus
}
#endif

View File

@ -30,35 +30,549 @@
# endif
#endif
enum eAVEncH264VLevel {
eAVEncH264VLevel1 = 10,
eAVEncH264VLevel1_b = 11,
eAVEncH264VLevel1_1 = 11,
eAVEncH264VLevel1_2 = 12,
eAVEncH264VLevel1_3 = 13,
eAVEncH264VLevel2 = 20,
eAVEncH264VLevel2_1 = 21,
eAVEncH264VLevel2_2 = 22,
eAVEncH264VLevel3 = 30,
eAVEncH264VLevel3_1 = 31,
eAVEncH264VLevel3_2 = 32,
eAVEncH264VLevel4 = 40,
eAVEncH264VLevel4_1 = 41,
eAVEncH264VLevel4_2 = 42,
eAVEncH264VLevel5 = 50,
eAVEncH264VLevel5_1 = 51
enum eAVEncCommonRateControlMode {
eAVEncCommonRateControlMode_CBR = 0,
eAVEncCommonRateControlMode_PeakConstrainedVBR = 1,
eAVEncCommonRateControlMode_UnconstrainedVBR = 2,
eAVEncCommonRateControlMode_Quality = 3,
eAVEncCommonRateControlMode_LowDelayVBR = 4,
eAVEncCommonRateControlMode_GlobalVBR = 5,
eAVEncCommonRateControlMode_GlobalLowDelayVBR = 6
};
enum eAVEncCommonStreamEndHandling {
eAVEncCommonStreamEndHandling_DiscardPartial = 0,
eAVEncCommonStreamEndHandling_EnsureComplete = 1
};
enum eAVEncVideoOutputFrameRateConversion {
eAVEncVideoOutputFrameRateConversion_Disable = 0,
eAVEncVideoOutputFrameRateConversion_Enable = 1,
eAVEncVideoOutputFrameRateConversion_Alias = 2
};
enum eAVDecVideoSoftwareDeinterlaceMode {
eAVDecVideoSoftwareDeinterlaceMode_NoDeinterlacing = 0,
eAVDecVideoSoftwareDeinterlaceMode_ProgressiveDeinterlacing = 1,
eAVDecVideoSoftwareDeinterlaceMode_BOBDeinterlacing = 2,
eAVDecVideoSoftwareDeinterlaceMode_SmartBOBDeinterlacing = 3
};
enum eAVFastDecodeMode {
eVideoDecodeCompliant = 0,
eVideoDecodeOptimalLF = 1,
eVideoDecodeDisableLF = 2,
eVideoDecodeFastest = 32
};
enum eAVDecVideoH264ErrorConcealment {
eErrorConcealmentTypeDrop = 0,
eErrorConcealmentTypeBasic = 1,
eErrorConcealmentTypeAdvanced = 2,
eErrorConcealmentTypeDXVASetBlack = 3
};
enum eAVDecVideoMPEG2ErrorConcealment {
eErrorConcealmentOff = 0,
eErrorConcealmentOn = 1
};
enum eAVDecVideoCodecType {
eAVDecVideoCodecType_NOTPLAYING = 0,
eAVDecVideoCodecType_MPEG2 = 1,
eAVDecVideoCodecType_H264 = 2
};
enum eAVDecVideoDXVAMode {
eAVDecVideoDXVAMode_NOTPLAYING = 0,
eAVDecVideoDXVAMode_SW = 1,
eAVDecVideoDXVAMode_MC = 2,
eAVDecVideoDXVAMode_IDCT = 3,
eAVDecVideoDXVAMode_VLD = 4
};
enum eAVDecVideoDXVABusEncryption {
eAVDecVideoDXVABusEncryption_NONE = 0,
eAVDecVideoDXVABusEncryption_PRIVATE = 1,
eAVDecVideoDXVABusEncryption_AES = 2
};
enum eAVEncVideoSourceScanType {
eAVEncVideoSourceScan_Automatic = 0,
eAVEncVideoSourceScan_Interlaced = 1,
eAVEncVideoSourceScan_Progressive = 2
};
enum eAVEncVideoOutputScanType {
eAVEncVideoOutputScan_Progressive = 0,
eAVEncVideoOutputScan_Interlaced = 1,
eAVEncVideoOutputScan_SameAsInput = 2,
eAVEncVideoOutputScan_Automatic = 3
};
enum eAVEncVideoFilmContent {
eAVEncVideoFilmContent_VideoOnly = 0,
eAVEncVideoFilmContent_FilmOnly = 1,
eAVEncVideoFilmContent_Mixed = 2
};
enum eAVEncVideoChromaResolution {
eAVEncVideoChromaResolution_SameAsSource = 0,
eAVEncVideoChromaResolution_444 = 1,
eAVEncVideoChromaResolution_422 = 2,
eAVEncVideoChromaResolution_420 = 3,
eAVEncVideoChromaResolution_411 = 4
};
enum eAVEncVideoChromaSubsampling {
eAVEncVideoChromaSubsamplingFormat_SameAsSource = 0,
eAVEncVideoChromaSubsamplingFormat_ProgressiveChroma = 0x8,
eAVEncVideoChromaSubsamplingFormat_Horizontally_Cosited = 0x4,
eAVEncVideoChromaSubsamplingFormat_Vertically_Cosited = 0x2,
eAVEncVideoChromaSubsamplingFormat_Vertically_AlignedChromaPlanes = 0x1
};
enum eAVEncVideoColorPrimaries {
eAVEncVideoColorPrimaries_SameAsSource = 0,
eAVEncVideoColorPrimaries_Reserved = 1,
eAVEncVideoColorPrimaries_BT709 = 2,
eAVEncVideoColorPrimaries_BT470_2_SysM = 3,
eAVEncVideoColorPrimaries_BT470_2_SysBG = 4,
eAVEncVideoColorPrimaries_SMPTE170M = 5,
eAVEncVideoColorPrimaries_SMPTE240M = 6,
eAVEncVideoColorPrimaries_EBU3231 = 7,
eAVEncVideoColorPrimaries_SMPTE_C = 8
};
enum eAVEncVideoColorTransferFunction {
eAVEncVideoColorTransferFunction_SameAsSource = 0,
eAVEncVideoColorTransferFunction_10 = 1,
eAVEncVideoColorTransferFunction_18 = 2,
eAVEncVideoColorTransferFunction_20 = 3,
eAVEncVideoColorTransferFunction_22 = 4,
eAVEncVideoColorTransferFunction_22_709 = 5,
eAVEncVideoColorTransferFunction_22_240M = 6,
eAVEncVideoColorTransferFunction_22_8bit_sRGB = 7,
eAVEncVideoColorTransferFunction_28 = 8
};
enum eAVEncVideoColorTransferMatrix {
eAVEncVideoColorTransferMatrix_SameAsSource = 0,
eAVEncVideoColorTransferMatrix_BT709 = 1,
eAVEncVideoColorTransferMatrix_BT601 = 2,
eAVEncVideoColorTransferMatrix_SMPTE240M = 3
};
enum eAVEncVideoColorLighting {
eAVEncVideoColorLighting_SameAsSource = 0,
eAVEncVideoColorLighting_Unknown = 1,
eAVEncVideoColorLighting_Bright = 2,
eAVEncVideoColorLighting_Office = 3,
eAVEncVideoColorLighting_Dim = 4,
eAVEncVideoColorLighting_Dark = 5
};
enum eAVEncVideoColorNominalRange {
eAVEncVideoColorNominalRange_SameAsSource = 0,
eAVEncVideoColorNominalRange_0_255 = 1,
eAVEncVideoColorNominalRange_16_235 = 2,
eAVEncVideoColorNominalRange_48_208 = 3
};
enum eAVEncInputVideoSystem {
eAVEncInputVideoSystem_Unspecified = 0,
eAVEncInputVideoSystem_PAL = 1,
eAVEncInputVideoSystem_NTSC = 2,
eAVEncInputVideoSystem_SECAM = 3,
eAVEncInputVideoSystem_MAC = 4,
eAVEncInputVideoSystem_HDV = 5,
eAVEncInputVideoSystem_Component = 6
};
enum eAVEncVideoContentType {
eAVEncVideoContentType_Unknown = 0,
eAVEncVideoContentType_FixedCameraAngle = 1
};
enum eAVEncAdaptiveMode {
eAVEncAdaptiveMode_None = 0,
eAVEncAdaptiveMode_Resolution = 1,
eAVEncAdaptiveMode_FrameRate = 2
};
enum eAVScenarioInfo {
eAVScenarioInfo_Unknown = 0,
eAVScenarioInfo_DisplayRemoting = 1,
eAVScenarioInfo_VideoConference = 2,
eAVScenarioInfo_Archive = 3,
eAVScenarioInfo_LiveStreaming = 4,
eAVScenarioInfo_CameraRecord = 5,
eAVScenarioInfo_DisplayRemotingWithFeatureMap = 6
};
enum eVideoEncoderDisplayContentType {
eVideoEncoderDisplayContent_Unknown = 0,
eVideoEncoderDisplayContent_FullScreenVideo = 1
};
enum eAVEncMuxOutput {
eAVEncMuxOutputAuto = 0,
eAVEncMuxOutputPS = 1,
eAVEncMuxOutputTS = 2
};
enum eAVEncAudioDualMono {
eAVEncAudioDualMono_SameAsInput = 0,
eAVEncAudioDualMono_Off = 1,
eAVEncAudioDualMono_On = 2
};
enum eAVEncAudioInputContent {
AVEncAudioInputContent_Unknown =0,
AVEncAudioInputContent_Voice = 1,
AVEncAudioInputContent_Music = 2
};
enum eAVEncMPVProfile {
eAVEncMPVProfile_unknown = 0,
eAVEncMPVProfile_Simple = 1,
eAVEncMPVProfile_Main = 2,
eAVEncMPVProfile_High = 3,
eAVEncMPVProfile_422 = 4
};
enum eAVEncMPVLevel {
eAVEncMPVLevel_Low = 1,
eAVEncMPVLevel_Main = 2,
eAVEncMPVLevel_High1440 = 3,
eAVEncMPVLevel_High = 4
};
enum eAVEncH263VProfile {
eAVEncH263VProfile_Base = 0,
eAVEncH263VProfile_CompatibilityV2 = 1,
eAVEncH263VProfile_CompatibilityV1 = 2,
eAVEncH263VProfile_WirelessV2 = 3,
eAVEncH263VProfile_WirelessV3 = 4,
eAVEncH263VProfile_HighCompression = 5,
eAVEncH263VProfile_Internet = 6,
eAVEncH263VProfile_Interlace = 7,
eAVEncH263VProfile_HighLatency = 8
};
enum eAVEncH264VProfile {
eAVEncH264VProfile_unknown = 0,
eAVEncH264VProfile_Simple = 66,
eAVEncH264VProfile_Base = 66,
eAVEncH264VProfile_Main = 77,
eAVEncH264VProfile_High = 100,
eAVEncH264VProfile_422 = 122,
eAVEncH264VProfile_High10 = 110,
eAVEncH264VProfile_444 = 144,
eAVEncH264VProfile_Extended = 88
eAVEncH264VProfile_unknown = 0,
eAVEncH264VProfile_Simple = 66,
eAVEncH264VProfile_Base = 66,
eAVEncH264VProfile_Main = 77,
eAVEncH264VProfile_High = 100,
eAVEncH264VProfile_422 = 122,
eAVEncH264VProfile_High10 = 110,
eAVEncH264VProfile_444 = 244,
eAVEncH264VProfile_Extended = 88,
eAVEncH264VProfile_ScalableBase = 83,
eAVEncH264VProfile_ScalableHigh = 86,
eAVEncH264VProfile_MultiviewHigh = 118,
eAVEncH264VProfile_StereoHigh = 128,
eAVEncH264VProfile_ConstrainedBase = 256,
eAVEncH264VProfile_UCConstrainedHigh = 257,
eAVEncH264VProfile_UCScalableConstrainedBase = 258,
eAVEncH264VProfile_UCScalableConstrainedHigh = 259
};
enum eAVEncH265VProfile {
eAVEncH265VProfile_unknown = 0,
eAVEncH265VProfile_Main_420_8 = 1,
eAVEncH265VProfile_Main_420_10 = 2,
eAVEncH265VProfile_Main_420_12 = 3,
eAVEncH265VProfile_Main_422_10 = 4,
eAVEncH265VProfile_Main_422_12 = 5,
eAVEncH265VProfile_Main_444_8 = 6,
eAVEncH265VProfile_Main_444_10 = 7,
eAVEncH265VProfile_Main_444_12 = 8,
eAVEncH265VProfile_Monochrome_12 = 9,
eAVEncH265VProfile_Monochrome_16 = 10,
eAVEncH265VProfile_MainIntra_420_8 = 11,
eAVEncH265VProfile_MainIntra_420_10 = 12,
eAVEncH265VProfile_MainIntra_420_12 = 13,
eAVEncH265VProfile_MainIntra_422_10 = 14,
eAVEncH265VProfile_MainIntra_422_12 = 15,
eAVEncH265VProfile_MainIntra_444_8 = 16,
eAVEncH265VProfile_MainIntra_444_10 = 17,
eAVEncH265VProfile_MainIntra_444_12 = 18,
eAVEncH265VProfile_MainIntra_444_16 = 19,
eAVEncH265VProfile_MainStill_420_8 = 20,
eAVEncH265VProfile_MainStill_444_8 = 21,
eAVEncH265VProfile_MainStill_444_16 = 22
};
enum eAVEncVP9VProfile {
eAVEncVP9VProfile_unknown = 0,
eAVEncVP9VProfile_420_8 = 1,
eAVEncVP9VProfile_420_10 = 2,
eAVEncVP9VProfile_420_12 = 3
};
enum eAVEncH263PictureType {
eAVEncH263PictureType_I = 0,
eAVEncH263PictureType_P,
eAVEncH263PictureType_B
};
enum eAVEncH264PictureType {
eAVEncH264PictureType_IDR = 0,
eAVEncH264PictureType_P,
eAVEncH264PictureType_B
};
enum eAVEncH263VLevel {
eAVEncH263VLevel1 = 10,
eAVEncH263VLevel2 = 20,
eAVEncH263VLevel3 = 30,
eAVEncH263VLevel4 = 40,
eAVEncH263VLevel4_5 = 45,
eAVEncH263VLevel5 = 50,
eAVEncH263VLevel6 = 60,
eAVEncH263VLevel7 = 70
};
enum eAVEncH264VLevel {
eAVEncH264VLevel1 = 10,
eAVEncH264VLevel1_b = 11,
eAVEncH264VLevel1_1 = 11,
eAVEncH264VLevel1_2 = 12,
eAVEncH264VLevel1_3 = 13,
eAVEncH264VLevel2 = 20,
eAVEncH264VLevel2_1 = 21,
eAVEncH264VLevel2_2 = 22,
eAVEncH264VLevel3 = 30,
eAVEncH264VLevel3_1 = 31,
eAVEncH264VLevel3_2 = 32,
eAVEncH264VLevel4 = 40,
eAVEncH264VLevel4_1 = 41,
eAVEncH264VLevel4_2 = 42,
eAVEncH264VLevel5 = 50,
eAVEncH264VLevel5_1 = 51,
eAVEncH264VLevel5_2 = 52
};
enum eAVEncH265VLevel {
eAVEncH265VLevel1 = 30,
eAVEncH265VLevel2 = 60,
eAVEncH265VLevel2_1 = 63,
eAVEncH265VLevel3 = 90,
eAVEncH265VLevel3_1 = 93,
eAVEncH265VLevel4 = 120,
eAVEncH265VLevel4_1 = 123,
eAVEncH265VLevel5 = 150,
eAVEncH265VLevel5_1 = 153,
eAVEncH265VLevel5_2 = 156,
eAVEncH265VLevel6 = 180,
eAVEncH265VLevel6_1 = 183,
eAVEncH265VLevel6_2 = 186
};
enum eAVEncMPVFrameFieldMode {
eAVEncMPVFrameFieldMode_FieldMode = 0,
eAVEncMPVFrameFieldMode_FrameMode = 1
};
enum eAVEncMPVSceneDetection {
eAVEncMPVSceneDetection_None = 0,
eAVEncMPVSceneDetection_InsertIPicture = 1,
eAVEncMPVSceneDetection_StartNewGOP = 2,
eAVEncMPVSceneDetection_StartNewLocatableGOP = 3
};
enum eAVEncMPVScanPattern {
eAVEncMPVScanPattern_Auto = 0,
eAVEncMPVScanPattern_ZigZagScan = 1,
eAVEncMPVScanPattern_AlternateScan = 2
};
enum eAVEncMPVQScaleType {
eAVEncMPVQScaleType_Auto = 0,
eAVEncMPVQScaleType_Linear = 1,
eAVEncMPVQScaleType_NonLinear = 2
};
enum eAVEncMPVIntraVLCTable {
eAVEncMPVIntraVLCTable_Auto = 0,
eAVEncMPVIntraVLCTable_MPEG1 = 1,
eAVEncMPVIntraVLCTable_Alternate = 2
};
enum eAVEncMPALayer {
eAVEncMPALayer_1 = 1,
eAVEncMPALayer_2 = 2,
eAVEncMPALayer_3 = 3
};
enum eAVEncMPACodingMode {
eAVEncMPACodingMode_Mono = 0,
eAVEncMPACodingMode_Stereo = 1,
eAVEncMPACodingMode_DualChannel = 2,
eAVEncMPACodingMode_JointStereo = 3,
eAVEncMPACodingMode_Surround = 4
};
enum eAVEncMPAEmphasisType {
eAVEncMPAEmphasisType_None = 0,
eAVEncMPAEmphasisType_50_15 = 1,
eAVEncMPAEmphasisType_Reserved = 2,
eAVEncMPAEmphasisType_CCITT_J17 = 3
};
enum eAVEncDDService {
eAVEncDDService_CM = 0,
eAVEncDDService_ME = 1,
eAVEncDDService_VI = 2,
eAVEncDDService_HI = 3,
eAVEncDDService_D = 4,
eAVEncDDService_C = 5,
eAVEncDDService_E = 6,
eAVEncDDService_VO = 7
};
enum eAVEncDDProductionRoomType {
eAVEncDDProductionRoomType_NotIndicated = 0,
eAVEncDDProductionRoomType_Large = 1,
eAVEncDDProductionRoomType_Small = 2
};
enum eAVEncDDDynamicRangeCompressionControl {
eAVEncDDDynamicRangeCompressionControl_None = 0,
eAVEncDDDynamicRangeCompressionControl_FilmStandard = 1,
eAVEncDDDynamicRangeCompressionControl_FilmLight = 2,
eAVEncDDDynamicRangeCompressionControl_MusicStandard = 3,
eAVEncDDDynamicRangeCompressionControl_MusicLight = 4,
eAVEncDDDynamicRangeCompressionControl_Speech = 5
};
enum eAVEncDDSurroundExMode {
eAVEncDDSurroundExMode_NotIndicated = 0,
eAVEncDDSurroundExMode_No = 1,
eAVEncDDSurroundExMode_Yes = 2
};
enum eAVEncDDPreferredStereoDownMixMode {
eAVEncDDPreferredStereoDownMixMode_LtRt = 0,
eAVEncDDPreferredStereoDownMixMode_LoRo = 1
};
enum eAVEncDDAtoDConverterType {
eAVEncDDAtoDConverterType_Standard = 0,
eAVEncDDAtoDConverterType_HDCD = 1
};
enum eAVEncDDHeadphoneMode {
eAVEncDDHeadphoneMode_NotIndicated = 0,
eAVEncDDHeadphoneMode_NotEncoded = 1,
eAVEncDDHeadphoneMode_Encoded = 2
};
enum eAVDecVideoInputScanType {
eAVDecVideoInputScan_Unknown = 0,
eAVDecVideoInputScan_Progressive = 1,
eAVDecVideoInputScan_Interlaced_UpperFieldFirst = 2,
eAVDecVideoInputScan_Interlaced_LowerFieldFirst = 3
};
enum eAVDecVideoSWPowerLevel {
eAVDecVideoSWPowerLevel_BatteryLife = 0,
eAVDecVideoSWPowerLevel_Balanced = 50,
eAVDecVideoSWPowerLevel_VideoQuality = 100
};
enum eAVDecAACDownmixMode {
eAVDecAACUseISODownmix = 0,
eAVDecAACUseARIBDownmix = 1
};
enum eAVDecHEAACDynamicRangeControl {
eAVDecHEAACDynamicRangeControl_OFF = 0,
eAVDecHEAACDynamicRangeControl_ON = 1
};
enum eAVDecAudioDualMono {
eAVDecAudioDualMono_IsNotDualMono = 0,
eAVDecAudioDualMono_IsDualMono = 1,
eAVDecAudioDualMono_UnSpecified = 2
};
enum eAVDecAudioDualMonoReproMode {
eAVDecAudioDualMonoReproMode_STEREO = 0,
eAVDecAudioDualMonoReproMode_LEFT_MONO = 1,
eAVDecAudioDualMonoReproMode_RIGHT_MONO = 2,
eAVDecAudioDualMonoReproMode_MIX_MONO = 3
};
enum eAVAudioChannelConfig {
eAVAudioChannelConfig_FRONT_LEFT = 0x1,
eAVAudioChannelConfig_FRONT_RIGHT = 0x2,
eAVAudioChannelConfig_FRONT_CENTER = 0x4,
eAVAudioChannelConfig_LOW_FREQUENCY = 0x8,
eAVAudioChannelConfig_BACK_LEFT = 0x10,
eAVAudioChannelConfig_BACK_RIGHT = 0x20,
eAVAudioChannelConfig_FRONT_LEFT_OF_CENTER = 0x40,
eAVAudioChannelConfig_FRONT_RIGHT_OF_CENTER = 0x80,
eAVAudioChannelConfig_BACK_CENTER = 0x100,
eAVAudioChannelConfig_SIDE_LEFT = 0x200,
eAVAudioChannelConfig_SIDE_RIGHT = 0x400,
eAVAudioChannelConfig_TOP_CENTER = 0x800,
eAVAudioChannelConfig_TOP_FRONT_LEFT = 0x1000,
eAVAudioChannelConfig_TOP_FRONT_CENTER = 0x2000,
eAVAudioChannelConfig_TOP_FRONT_RIGHT = 0x4000,
eAVAudioChannelConfig_TOP_BACK_LEFT = 0x8000,
eAVAudioChannelConfig_TOP_BACK_CENTER = 0x10000,
eAVAudioChannelConfig_TOP_BACK_RIGHT = 0x20000
};
enum eAVDDSurroundMode {
eAVDDSurroundMode_NotIndicated = 0,
eAVDDSurroundMode_No = 1,
eAVDDSurroundMode_Yes = 2
};
enum eAVDecDDOperationalMode {
eAVDecDDOperationalMode_NONE = 0,
eAVDecDDOperationalMode_LINE = 1,
eAVDecDDOperationalMode_RF = 2,
eAVDecDDOperationalMode_CUSTOM0 = 3,
eAVDecDDOperationalMode_CUSTOM1 = 4,
eAVDecDDOperationalMode_PORTABLE8 = 5,
eAVDecDDOperationalMode_PORTABLE11 = 6,
eAVDecDDOperationalMode_PORTABLE14 = 7
};
enum eAVDecDDMatrixDecodingMode {
eAVDecDDMatrixDecodingMode_OFF = 0,
eAVDecDDMatrixDecodingMode_ON = 1,
eAVDecDDMatrixDecodingMode_AUTO = 2
};
enum eAVDecDDStereoDownMixMode {
eAVDecDDStereoDownMixMode_Auto = 0,
eAVDecDDStereoDownMixMode_LtRt = 1,
eAVDecDDStereoDownMixMode_LoRo = 2
};
enum eAVDSPLoudnessEqualization {
eAVDSPLoudnessEqualization_OFF = 0,
eAVDSPLoudnessEqualization_ON = 1,
eAVDSPLoudnessEqualization_AUTO = 2
};
enum eAVDSPSpeakerFill {
eAVDSPSpeakerFill_OFF = 0,
eAVDSPSpeakerFill_ON = 1,
eAVDSPSpeakerFill_AUTO = 2
};
enum eAVEncChromaEncodeMode {
eAVEncChromaEncodeMode_420,
eAVEncChromaEncodeMode_444,
eAVEncChromaEncodeMode_444_v2
};
#define STATIC_CODECAPI_AVDecVideoThumbnailGenerationMode 0x2efd8eee,0x1150,0x4328,0x9c,0xf5,0x66,0xdc,0xe9,0x33,0xfc,0xf4
@ -125,6 +639,30 @@ DEFINE_CODECAPI_GUID(AVDecSoftwareDynamicFormatChange, "862e2f0a-507b-47ff-af47-
DEFINE_CODECAPI_GUID(AVDecDisableVideoPostProcessing, "f8749193-667a-4f2c-a9e8-5d4af924f08f",
0xf8749193,0x667a,0x4f2c,0xa9,0xe8,0x5d,0x4a,0xf9,0x24,0xf0,0x8f);
#define STATIC_CODECAPI_AVEncCommonMeanBitRate 0xf7222374,0x2144,0x4815,0xb5,0x50,0xa3,0x7f,0x8e,0x12,0xee,0x52
DEFINE_CODECAPI_GUID(AVEncCommonMeanBitRate, "f7222374-2144-4815-b550-a37f8e12ee52",
0xf7222374,0x2144,0x4815,0xb5,0x50,0xa3,0x7f,0x8e,0x12,0xee,0x52)
#define STATIC_CODECAPI_AVEncCommonQuality 0xfcbf57a3,0x7ea5,0x4b0c,0x96,0x44,0x69,0xb4,0x0c,0x39,0xc3,0x91
DEFINE_CODECAPI_GUID(AVEncCommonQuality, "fcbf57a3-7ea5-4b0c-9644-69b40c39c391",
0xfcbf57a3,0x7ea5,0x4b0c,0x96,0x44,0x69,0xb4,0x0c,0x39,0xc3,0x91)
#define STATIC_CODECAPI_AVEncCommonRateControlMode 0x1c0608e9,0x370c,0x4710,0x8a,0x58,0xcb,0x61,0x81,0xc4,0x24,0x23
DEFINE_CODECAPI_GUID(AVEncCommonRateControlMode, "1c0608e9-370c-4710-8a58-cb6181c42423",
0x1c0608e9,0x370c,0x4710,0x8a,0x58,0xcb,0x61,0x81,0xc4,0x24,0x23)
#define STATIC_CODECAPI_AVEncVideoForceKeyFrame 0x398c1b98,0x8353,0x475a,0x9e,0xf2,0x8f,0x26,0x5d,0x26,0x3,0x45
DEFINE_CODECAPI_GUID(AVEncVideoForceKeyFrame, "398c1b98-8353-475a-9ef2-8f265d260345",
0x398c1b98,0x8353,0x475a,0x9e,0xf2,0x8f,0x26,0x5d,0x26,0x3,0x45)
#define STATIC_CODECAPI_AVEncMPVDefaultBPictureCount 0x8d390aac,0xdc5c,0x4200,0xb5,0x7f,0x81,0x4d,0x04,0xba,0xba,0xb2
DEFINE_CODECAPI_GUID(AVEncMPVDefaultBPictureCount, "8d390aac-dc5c-4200-b57f-814d04babab2",
0x8d390aac,0xdc5c,0x4200,0xb5,0x7f,0x81,0x4d,0x04,0xba,0xba,0xb2)
#define STATIC_CODECAPI_AVEncH264CABACEnable 0xee6cad62,0xd305,0x4248,0xa5,0xe,0xe1,0xb2,0x55,0xf7,0xca,0xf8
DEFINE_CODECAPI_GUID(AVEncH264CABACEnable, "ee6cad62-d305-4248-a50e-e1b255f7caf8",
0xee6cad62,0xd305,0x4248,0xa5,0xe,0xe1,0xb2,0x55,0xf7,0xca,0xf8)
#ifndef UUID_GEN
#define CODECAPI_AVDecVideoThumbnailGenerationMode DEFINE_CODECAPI_GUIDNAMED(AVDecVideoThumbnailGenerationMode)
@ -143,6 +681,13 @@ DEFINE_CODECAPI_GUID(AVDecDisableVideoPostProcessing, "f8749193-667a-4f2c-a9e8-5
#define CODECAPI_AVDecNumWorkerThreads DEFINE_CODECAPI_GUIDNAMED(AVDecNumWorkerThreads)
#define CODECAPI_AVDecSoftwareDynamicFormatChange DEFINE_CODECAPI_GUIDNAMED(AVDecSoftwareDynamicFormatChange)
#define CODECAPI_AVDecDisableVideoPostProcessing DEFINE_CODECAPI_GUIDNAMED(AVDecDisableVideoPostProcessing)
#define CODECAPI_AVEncCommonMeanBitRate DEFINE_CODECAPI_GUIDNAMED(AVEncCommonMeanBitRate)
#define CODECAPI_AVEncCommonQuality DEFINE_CODECAPI_GUIDNAMED(AVEncCommonQuality)
#define CODECAPI_AVEncCommonRateControlMode DEFINE_CODECAPI_GUIDNAMED(AVEncCommonRateControlMode)
#define CODECAPI_AVEncVideoForceKeyFrame DEFINE_CODECAPI_GUIDNAMED(AVEncVideoForceKeyFrame)
#define CODECAPI_AVEncMPVDefaultBPictureCount DEFINE_CODECAPI_GUIDNAMED(AVEncMPVDefaultBPictureCount)
#define CODECAPI_AVEncMPVDefaultBPictureCount DEFINE_CODECAPI_GUIDNAMED(AVEncMPVDefaultBPictureCount)
#define CODECAPI_AVEncH264CABACEnable DEFINE_CODECAPI_GUIDNAMED(AVEncH264CABACEnable)
#endif

View File

@ -193,8 +193,6 @@ WINOLEAPI CoGetCallerTID (LPDWORD lpdwTID);
WINOLEAPI CoGetDefaultContext (APTTYPE aptType, REFIID riid, void **ppv);
#if NTDDI_VERSION >= 0x06020000
WINOLEAPI CoDecodeProxy (DWORD dwClientPid, UINT64 ui64ProxyAddress, PServerInformation pServerInformation);
WINOLEAPI CoIncrementMTAUsage (CO_MTA_USAGE_COOKIE *pCookie);
WINOLEAPI CoDecrementMTAUsage (CO_MTA_USAGE_COOKIE Cookie);
WINOLEAPI CoWaitForMultipleObjects (DWORD dwFlags, DWORD dwTimeout, ULONG cHandles, const HANDLE *pHandles, LPDWORD lpdwindex);
WINOLEAPI CoAllowUnmarshalerCLSID (REFCLSID clsid);
#endif
@ -211,6 +209,10 @@ WINOLEAPI CoGetStdMarshalEx (LPUNKNOWN pUnkOuter, DWORD smexflags, LPUNKNOWN *pp
#endif
#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP)
#if NTDDI_VERSION >= 0x06020000
WINOLEAPI CoIncrementMTAUsage (CO_MTA_USAGE_COOKIE *pCookie);
WINOLEAPI CoDecrementMTAUsage (CO_MTA_USAGE_COOKIE Cookie);
#endif
typedef enum tagSTDMSHLFLAGS {
SMEXF_SERVER = 0x01,
SMEXF_HANDLER = 0x02

View File

@ -44,7 +44,7 @@ class _bstr_t;
class _variant_t;
namespace _com_util {
inline void CheckError(HRESULT hr) throw() {
inline void CheckError(HRESULT hr) {
if(FAILED(hr)) { _com_issue_error(hr); }
}
}

View File

@ -7,30 +7,8 @@
#define _INC_CONIO
#include <crtdefs.h>
#if !defined(_UCRTBASE_STDIO_DEFINED) && defined(_UCRT)
#define _UCRTBASE_STDIO_DEFINED
#define UCRTBASE_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION (0x0001)
#define UCRTBASE_PRINTF_STANDARD_SNPRINTF_BEHAVIOUR (0x0002)
#define UCRTBASE_PRINTF_LEGACY_WIDE_SPECIFIERS (0x0004)
#define UCRTBASE_PRINTF_LEGACY_MSVCRT_COMPATIBILITY (0x0008)
#define UCRTBASE_PRINTF_LEGACY_THREE_DIGIT_EXPONENTS (0x0010)
#define UCRTBASE_SCANF_SECURECRT (0x0001)
#define UCRTBASE_SCANF_LEGACY_WIDE_SPECIFIERS (0x0002)
#define UCRTBASE_SCANF_LEGACY_MSVCRT_COMPATIBILITY (0x0004)
// Default wide printfs and scanfs to the legacy wide mode. Only code built
// with -D__USE_MINGW_ANSI_STDIO=1 will expect the standard behaviour.
#ifndef UCRTBASE_PRINTF_DEFAULT_WIDE
#define UCRTBASE_PRINTF_DEFAULT_WIDE UCRTBASE_PRINTF_LEGACY_WIDE_SPECIFIERS
#endif
#ifndef UCRTBASE_SCANF_DEFAULT_WIDE
#define UCRTBASE_SCANF_DEFAULT_WIDE UCRTBASE_SCANF_LEGACY_WIDE_SPECIFIERS
#endif
#endif
#include <corecrt_stdio_config.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
@ -170,7 +148,7 @@ extern "C" {
__mingw_ovr int __cdecl _vcwprintf(const wchar_t * __restrict__ _Format,va_list _ArgList)
{
return __conio_common_vcwprintf(UCRTBASE_PRINTF_DEFAULT_WIDE, _Format, NULL, _ArgList);
return __conio_common_vcwprintf(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Format, NULL, _ArgList);
}
__mingw_ovr int __cdecl _cwprintf(const wchar_t * __restrict__ _Format,...)
{
@ -186,7 +164,7 @@ extern "C" {
__builtin_va_list _ArgList;
int _Ret;
__builtin_va_start(_ArgList, _Format);
_Ret = __conio_common_vcwscanf(UCRTBASE_SCANF_DEFAULT_WIDE, _Format, NULL, _ArgList);
_Ret = __conio_common_vcwscanf(_CRT_INTERNAL_LOCAL_SCANF_OPTIONS, _Format, NULL, _ArgList);
__builtin_va_end(_ArgList);
return _Ret;
}
@ -195,13 +173,13 @@ extern "C" {
__builtin_va_list _ArgList;
int _Ret;
__builtin_va_start(_ArgList, _Locale);
_Ret = __conio_common_vcwscanf(UCRTBASE_SCANF_DEFAULT_WIDE, _Format, _Locale, _ArgList);
_Ret = __conio_common_vcwscanf(_CRT_INTERNAL_LOCAL_SCANF_OPTIONS, _Format, _Locale, _ArgList);
__builtin_va_end(_ArgList);
return _Ret;
}
__mingw_ovr int __cdecl _vcwprintf_p(const wchar_t * __restrict__ _Format,va_list _ArgList)
{
return __conio_common_vcwprintf_p(UCRTBASE_PRINTF_DEFAULT_WIDE, _Format, NULL, _ArgList);
return __conio_common_vcwprintf_p(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Format, NULL, _ArgList);
}
__mingw_ovr int __cdecl _cwprintf_p(const wchar_t * __restrict__ _Format,...)
{
@ -214,7 +192,7 @@ extern "C" {
}
__mingw_ovr int __cdecl _vcwprintf_l(const wchar_t * __restrict__ _Format,_locale_t _Locale,va_list _ArgList)
{
return __conio_common_vcwprintf(UCRTBASE_PRINTF_DEFAULT_WIDE, _Format, _Locale, _ArgList);
return __conio_common_vcwprintf(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Format, _Locale, _ArgList);
}
__mingw_ovr int __cdecl _cwprintf_l(const wchar_t * __restrict__ _Format,_locale_t _Locale,...)
{
@ -227,7 +205,7 @@ extern "C" {
}
__mingw_ovr int __cdecl _vcwprintf_p_l(const wchar_t * __restrict__ _Format,_locale_t _Locale,va_list _ArgList)
{
return __conio_common_vcwprintf_p(UCRTBASE_PRINTF_DEFAULT_WIDE, _Format, _Locale, _ArgList);
return __conio_common_vcwprintf_p(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Format, _Locale, _ArgList);
}
__mingw_ovr int __cdecl _cwprintf_p_l(const wchar_t * __restrict__ _Format,_locale_t _Locale,...)
{

View File

@ -16,7 +16,7 @@
#endif
#if !defined(_UCRT) && ((__MSVCRT_VERSION__ >= 0x1400) || (__MSVCRT_VERSION__ >= 0xE00 && __MSVCRT_VERSION__ < 0x1000))
// Allow both 0x1400 and 0xE00 to identify UCRT
/* Allow both 0x1400 and 0xE00 to identify UCRT */
#define _UCRT
#endif
@ -491,6 +491,17 @@ typedef struct threadlocaleinfostruct {
#define __crt_typefix(ctype)
#endif
#ifndef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
#ifdef WINAPI_FAMILY
#include <winapifamily.h>
#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
#define _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
#endif
#else /* !WINAPI_FAMILY */
#define _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
#endif /* !WINAPI_FAMILY */
#endif /* _CRT_USE_WINAPI_FAMILY_DESKTOP_APP */
#ifndef __WIDL__
#pragma pack(pop)
#endif

View File

@ -0,0 +1,30 @@
/**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the Wine project.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#ifndef _STDIO_CONFIG_DEFINED
#define _STDIO_CONFIG_DEFINED
#include <corecrt.h>
#define _CRT_INTERNAL_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION 0x0001ULL
#define _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR 0x0002ULL
#define _CRT_INTERNAL_PRINTF_LEGACY_WIDE_SPECIFIERS 0x0004ULL
#define _CRT_INTERNAL_PRINTF_LEGACY_MSVCRT_COMPATIBILITY 0x0008ULL
#define _CRT_INTERNAL_PRINTF_LEGACY_THREE_DIGIT_EXPONENTS 0x0010ULL
#define _CRT_INTERNAL_SCANF_SECURECRT 0x0001ULL
#define _CRT_INTERNAL_SCANF_LEGACY_WIDE_SPECIFIERS 0x0002ULL
#define _CRT_INTERNAL_SCANF_LEGACY_MSVCRT_COMPATIBILITY 0x0004ULL
#ifndef _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS
#define _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS _CRT_INTERNAL_PRINTF_LEGACY_WIDE_SPECIFIERS
#endif
#ifndef _CRT_INTERNAL_LOCAL_SCANF_OPTIONS
#define _CRT_INTERNAL_LOCAL_SCANF_OPTIONS _CRT_INTERNAL_SCANF_LEGACY_WIDE_SPECIFIERS
#endif
#endif /* _STDIO_CONFIG_DEFINED */

View File

@ -1,4 +1,4 @@
/*** Autogenerated by WIDL 4.19 from include/ctfutb.idl - Do not edit ***/
/*** Autogenerated by WIDL 5.16 from include/ctfutb.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__

View File

@ -52,7 +52,7 @@ extern "C" {
#ifndef _CRT_WCTYPEDATA_DEFINED
#define _CRT_WCTYPEDATA_DEFINED
#ifndef _CTYPE_DISABLE_MACROS
#ifndef _wctype
#if !defined(_wctype) && defined(_CRT_USE_WINAPI_FAMILY_DESKTOP_APP)
#ifdef _MSVCRT_
extern unsigned short *_wctype;
#else
@ -171,8 +171,10 @@ int __cdecl isblank(int _C);
int __cdecl iswcntrl(wint_t _C);
_CRTIMP int __cdecl _iswcntrl_l(wint_t _C,_locale_t _Locale);
int __cdecl iswascii(wint_t _C);
#ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
int __cdecl isleadbyte(int _C);
_CRTIMP int __cdecl _isleadbyte_l(int _C,_locale_t _Locale);
#endif /* _CRT_USE_WINAPI_FAMILY_DESKTOP_APP */
wint_t __cdecl towupper(wint_t _C);
_CRTIMP wint_t __cdecl _towupper_l(wint_t _C,_locale_t _Locale);
wint_t __cdecl towlower(wint_t _C);
@ -183,7 +185,9 @@ int __cdecl isblank(int _C);
_CRTIMP int __cdecl _iswcsymf_l(wint_t _C,_locale_t _Locale);
_CRTIMP int __cdecl __iswcsym(wint_t _C);
_CRTIMP int __cdecl _iswcsym_l(wint_t _C,_locale_t _Locale);
#ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
int __cdecl is_wctype(wint_t _C,wctype_t _Type);
#endif /* _CRT_USE_WINAPI_FAMILY_DESKTOP_APP */
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || !defined (NO_OLDNAMES)
int __cdecl iswblank(wint_t _C);

View File

@ -14,12 +14,8 @@
#include <unknwn.h>
#include <dcommon.h>
#ifdef __MINGW_HAS_DXSDK
#include <dxgiformat.h>
#include <d3d10_1.h>
#endif
#include <d2dbasetypes.h>
#include <d2derr.h>
@ -48,123 +44,6 @@ typedef struct DWRITE_GLYPH_RUN DWRITE_GLYPH_RUN;
#define D2D1_INVALID_TAG ULONGLONG_MAX
#define D2D1_DEFAULT_FLATTENING_TOLERANCE (0.25f)
/* enumerations */
#ifndef __MINGW_HAS_DXSDK
typedef enum D3D10_FEATURE_LEVEL1 {
D3D10_FEATURE_LEVEL_10_0 = 0xa000,
D3D10_FEATURE_LEVEL_10_1 = 0xa100,
D3D10_FEATURE_LEVEL_9_1 = 0x9100,
D3D10_FEATURE_LEVEL_9_2 = 0x9200,
D3D10_FEATURE_LEVEL_9_3 = 0x9300
} D3D10_FEATURE_LEVEL1;
typedef enum DXGI_FORMAT {
DXGI_FORMAT_UNKNOWN = 0,
DXGI_FORMAT_R32G32B32A32_TYPELESS = 1,
DXGI_FORMAT_R32G32B32A32_FLOAT = 2,
DXGI_FORMAT_R32G32B32A32_UINT = 3,
DXGI_FORMAT_R32G32B32A32_SINT = 4,
DXGI_FORMAT_R32G32B32_TYPELESS = 5,
DXGI_FORMAT_R32G32B32_FLOAT = 6,
DXGI_FORMAT_R32G32B32_UINT = 7,
DXGI_FORMAT_R32G32B32_SINT = 8,
DXGI_FORMAT_R16G16B16A16_TYPELESS = 9,
DXGI_FORMAT_R16G16B16A16_FLOAT = 10,
DXGI_FORMAT_R16G16B16A16_UNORM = 11,
DXGI_FORMAT_R16G16B16A16_UINT = 12,
DXGI_FORMAT_R16G16B16A16_SNORM = 13,
DXGI_FORMAT_R16G16B16A16_SINT = 14,
DXGI_FORMAT_R32G32_TYPELESS = 15,
DXGI_FORMAT_R32G32_FLOAT = 16,
DXGI_FORMAT_R32G32_UINT = 17,
DXGI_FORMAT_R32G32_SINT = 18,
DXGI_FORMAT_R32G8X24_TYPELESS = 19,
DXGI_FORMAT_D32_FLOAT_S8X24_UINT = 20,
DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS = 21,
DXGI_FORMAT_X32_TYPELESS_G8X24_UINT = 22,
DXGI_FORMAT_R10G10B10A2_TYPELESS = 23,
DXGI_FORMAT_R10G10B10A2_UNORM = 24,
DXGI_FORMAT_R10G10B10A2_UINT = 25,
DXGI_FORMAT_R11G11B10_FLOAT = 26,
DXGI_FORMAT_R8G8B8A8_TYPELESS = 27,
DXGI_FORMAT_R8G8B8A8_UNORM = 28,
DXGI_FORMAT_R8G8B8A8_UNORM_SRGB = 29,
DXGI_FORMAT_R8G8B8A8_UINT = 30,
DXGI_FORMAT_R8G8B8A8_SNORM = 31,
DXGI_FORMAT_R8G8B8A8_SINT = 32,
DXGI_FORMAT_R16G16_TYPELESS = 33,
DXGI_FORMAT_R16G16_FLOAT = 34,
DXGI_FORMAT_R16G16_UNORM = 35,
DXGI_FORMAT_R16G16_UINT = 36,
DXGI_FORMAT_R16G16_SNORM = 37,
DXGI_FORMAT_R16G16_SINT = 38,
DXGI_FORMAT_R32_TYPELESS = 39,
DXGI_FORMAT_D32_FLOAT = 40,
DXGI_FORMAT_R32_FLOAT = 41,
DXGI_FORMAT_R32_UINT = 42,
DXGI_FORMAT_R32_SINT = 43,
DXGI_FORMAT_R24G8_TYPELESS = 44,
DXGI_FORMAT_D24_UNORM_S8_UINT = 45,
DXGI_FORMAT_R24_UNORM_X8_TYPELESS = 46,
DXGI_FORMAT_X24_TYPELESS_G8_UINT = 47,
DXGI_FORMAT_R8G8_TYPELESS = 48,
DXGI_FORMAT_R8G8_UNORM = 49,
DXGI_FORMAT_R8G8_UINT = 50,
DXGI_FORMAT_R8G8_SNORM = 51,
DXGI_FORMAT_R8G8_SINT = 52,
DXGI_FORMAT_R16_TYPELESS = 53,
DXGI_FORMAT_R16_FLOAT = 54,
DXGI_FORMAT_D16_UNORM = 55,
DXGI_FORMAT_R16_UNORM = 56,
DXGI_FORMAT_R16_UINT = 57,
DXGI_FORMAT_R16_SNORM = 58,
DXGI_FORMAT_R16_SINT = 59,
DXGI_FORMAT_R8_TYPELESS = 60,
DXGI_FORMAT_R8_UNORM = 61,
DXGI_FORMAT_R8_UINT = 62,
DXGI_FORMAT_R8_SNORM = 63,
DXGI_FORMAT_R8_SINT = 64,
DXGI_FORMAT_A8_UNORM = 65,
DXGI_FORMAT_R1_UNORM = 66,
DXGI_FORMAT_R9G9B9E5_SHAREDEXP = 67,
DXGI_FORMAT_R8G8_B8G8_UNORM = 68,
DXGI_FORMAT_G8R8_G8B8_UNORM = 69,
DXGI_FORMAT_BC1_TYPELESS = 70,
DXGI_FORMAT_BC1_UNORM = 71,
DXGI_FORMAT_BC1_UNORM_SRGB = 72,
DXGI_FORMAT_BC2_TYPELESS = 73,
DXGI_FORMAT_BC2_UNORM = 74,
DXGI_FORMAT_BC2_UNORM_SRGB = 75,
DXGI_FORMAT_BC3_TYPELESS = 76,
DXGI_FORMAT_BC3_UNORM = 77,
DXGI_FORMAT_BC3_UNORM_SRGB = 78,
DXGI_FORMAT_BC4_TYPELESS = 79,
DXGI_FORMAT_BC4_UNORM = 80,
DXGI_FORMAT_BC4_SNORM = 81,
DXGI_FORMAT_BC5_TYPELESS = 82,
DXGI_FORMAT_BC5_UNORM = 83,
DXGI_FORMAT_BC5_SNORM = 84,
DXGI_FORMAT_B5G6R5_UNORM = 85,
DXGI_FORMAT_B5G5R5A1_UNORM = 86,
DXGI_FORMAT_B8G8R8A8_UNORM = 87,
DXGI_FORMAT_B8G8R8X8_UNORM = 88,
DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM = 89,
DXGI_FORMAT_B8G8R8A8_TYPELESS = 90,
DXGI_FORMAT_B8G8R8A8_UNORM_SRGB = 91,
DXGI_FORMAT_B8G8R8X8_TYPELESS = 92,
DXGI_FORMAT_B8G8R8X8_UNORM_SRGB = 93,
DXGI_FORMAT_BC6H_TYPELESS = 94,
DXGI_FORMAT_BC6H_UF16 = 95,
DXGI_FORMAT_BC6H_SF16 = 96,
DXGI_FORMAT_BC7_TYPELESS = 97,
DXGI_FORMAT_BC7_UNORM = 98,
DXGI_FORMAT_BC7_UNORM_SRGB = 99,
DXGI_FORMAT_FORCE_UINT = 0xffffffff
} DXGI_FORMAT, *LPDXGI_FORMAT;
#endif /*__MINGW_HAS_DXSDK*/
#ifndef __IDWriteRenderingParams_FWD_DEFINED__
#define __IDWriteRenderingParams_FWD_DEFINED__
typedef struct IDWriteRenderingParams IDWriteRenderingParams;
@ -190,14 +69,6 @@ typedef struct IDWriteTextLayout IDWriteTextLayout;
typedef struct IDWriteFontFace IDWriteFontFace;
#endif
typedef enum D2D1_ALPHA_MODE {
D2D1_ALPHA_MODE_UNKNOWN = 0,
D2D1_ALPHA_MODE_PREMULTIPLIED = 1,
D2D1_ALPHA_MODE_STRAIGHT = 2,
D2D1_ALPHA_MODE_IGNORE = 3,
D2D1_ALPHA_MODE_FORCE_DWORD = 0xffffffff
} D2D1_ALPHA_MODE;
typedef enum D2D1_ANTIALIAS_MODE {
D2D1_ANTIALIAS_MODE_PER_PRIMITIVE = 0,
D2D1_ANTIALIAS_MODE_ALIASED = 1,
@ -463,7 +334,6 @@ typedef struct D2D1_GRADIENT_STOP D2D1_GRADIENT_STOP;
typedef struct D2D1_HWND_RENDER_TARGET_PROPERTIES D2D1_HWND_RENDER_TARGET_PROPERTIES;
typedef struct D2D1_LAYER_PARAMETERS D2D1_LAYER_PARAMETERS;
typedef struct D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES;
typedef struct D2D1_PIXEL_FORMAT D2D1_PIXEL_FORMAT;
typedef struct D2D1_QUADRATIC_BEZIER_SEGMENT D2D1_QUADRATIC_BEZIER_SEGMENT;
typedef struct D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES;
typedef struct D2D1_RENDER_TARGET_PROPERTIES D2D1_RENDER_TARGET_PROPERTIES;
@ -471,6 +341,14 @@ typedef struct D2D1_ROUNDED_RECT D2D1_ROUNDED_RECT;
typedef struct D2D1_STROKE_STYLE_PROPERTIES D2D1_STROKE_STYLE_PROPERTIES;
typedef struct D2D1_TRIANGLE D2D1_TRIANGLE;
typedef D2D_MATRIX_3X2_F D2D1_MATRIX_3X2_F;
typedef D2D_RECT_F D2D1_RECT_F;
typedef D2D_SIZE_F D2D1_SIZE_F;
typedef UINT64 D2D1_TAG;
typedef D2D_POINT_2U D2D1_POINT_2U;
typedef D2D_RECT_U D2D1_RECT_U;
typedef D2D_COLOR_F D2D1_COLOR_F;
struct D2D1_ARC_SEGMENT {
D2D1_POINT_2F point;
D2D1_SIZE_F size;
@ -491,11 +369,6 @@ struct D2D1_BITMAP_BRUSH_PROPERTIES {
D2D1_BITMAP_INTERPOLATION_MODE interpolationMode;
};
struct D2D1_PIXEL_FORMAT {
DXGI_FORMAT format;
D2D1_ALPHA_MODE alphaMode;
};
struct D2D1_BITMAP_PROPERTIES {
D2D1_PIXEL_FORMAT pixelFormat;
FLOAT dpiX;

View File

@ -564,8 +564,21 @@ interface ID2D1Bitmap1 : public ID2D1Bitmap
#else
typedef interface ID2D1Bitmap1 ID2D1Bitmap1;
/* FIXME: Add full C declaration */
typedef struct ID2D1Bitmap1Vtbl {
ID2D1BitmapVtbl Base;
STDMETHOD_(void, GetColorContext)(ID2D1Bitmap1 *This, ID2D1ColorContext **colorContext) PURE;
STDMETHOD_(D2D1_BITMAP_OPTIONS, GetOptions)(ID2D1Bitmap1 *This) PURE;
STDMETHOD(GetSurface)(ID2D1Bitmap1 *This, IDXGISurface **dxgiSurface) PURE;
STDMETHOD(Map)(ID2D1Bitmap1 *This, D2D1_MAP_OPTIONS options, D2D1_MAPPED_RECT *mappedRect) PURE;
STDMETHOD(Unmap)(ID2D1Bitmap1 *This) PURE;
}
ID2D1Bitmap1Vtbl;
interface ID2D1Bitmap1 {
const ID2D1Bitmap1Vtbl *lpVtbl;
};
#endif
DEFINE_GUID(IID_ID2D1Bitmap1, 0xa898a84c,0x3873,0x4588,0xb0,0x8b,0xeb,0xbf,0x97,0x8d,0xf0,0x41);
@ -864,7 +877,130 @@ interface ID2D1DeviceContext : public ID2D1RenderTarget
#else
typedef interface ID2D1DeviceContext ID2D1DeviceContext;
/* FIXME: Add full C declaration */
typedef struct ID2D1DeviceContextVtbl {
struct ID2D1RenderTargetVtbl Base;
STDMETHOD(CreateBitmap)(ID2D1DeviceContext *This, D2D1_SIZE_U size,
CONST void *sourceData, UINT32 pitch,
CONST D2D1_BITMAP_PROPERTIES1 *bitmapProperties,
ID2D1Bitmap1 **bitmap) PURE;
STDMETHOD(CreateBitmapFromWicBitmap)(ID2D1DeviceContext *This,
IWICBitmapSource *wicBitmapSource,
CONST D2D1_BITMAP_PROPERTIES1 *bitmapProperties,
ID2D1Bitmap1 **bitmap) PURE;
STDMETHOD(CreateColorContext)(ID2D1DeviceContext *This,
D2D1_COLOR_SPACE space, CONST BYTE *profile, UINT32 profileSize,
ID2D1ColorContext **colorContext) PURE;
STDMETHOD(CreateColorContextFromFilename)(ID2D1DeviceContext *This,
PCWSTR filename, ID2D1ColorContext **colorContext) PURE;
STDMETHOD(CreateColorContextFromWicColorContext)(ID2D1DeviceContext *This,
IWICColorContext *wicColorContext,
ID2D1ColorContext **colorContext) PURE;
STDMETHOD(CreateBitmapFromDxgiSurface)(ID2D1DeviceContext *This,
IDXGISurface *surface, CONST D2D1_BITMAP_PROPERTIES1 *bitmapProperties,
ID2D1Bitmap1 **bitmap) PURE;
STDMETHOD(CreateEffect)(ID2D1DeviceContext *This, REFCLSID effectId,
ID2D1Effect **effect) PURE;
STDMETHOD(CreateGradientStopCollection)(ID2D1DeviceContext *This,
CONST D2D1_GRADIENT_STOP *straightAlphaGradientStops,
UINT32 straightAlphaGradientStopsCount,
D2D1_COLOR_SPACE preInterpolationSpace,
D2D1_COLOR_SPACE postInterpolationSpace,
D2D1_BUFFER_PRECISION bufferPrecision,
D2D1_EXTEND_MODE extendMode,
D2D1_COLOR_INTERPOLATION_MODE colorInterpolationMode,
ID2D1GradientStopCollection1 **gradientStopCollection1) PURE;
STDMETHOD(CreateImageBrush)(ID2D1DeviceContext *This,
struct ID2D1Image *image,
CONST D2D1_IMAGE_BRUSH_PROPERTIES *imageBrushProperties,
CONST D2D1_BRUSH_PROPERTIES *brushProperties,
ID2D1ImageBrush **imageBrush) PURE;
STDMETHOD(CreateBitmapBrush)(ID2D1DeviceContext *This, ID2D1Bitmap *bitmap,
CONST D2D1_BITMAP_BRUSH_PROPERTIES1 *bitmapBrushProperties,
CONST D2D1_BRUSH_PROPERTIES *brushProperties,
ID2D1BitmapBrush1 **bitmapBrush) PURE;
STDMETHOD(CreateCommandList)(ID2D1DeviceContext *This,
ID2D1CommandList **commandList) PURE;
STDMETHOD_(BOOL, IsDxgiFormatSupported)(ID2D1DeviceContext *This,
DXGI_FORMAT format) PURE;
STDMETHOD_(BOOL, IsBufferPrecisionSupported)(ID2D1DeviceContext *This,
D2D1_BUFFER_PRECISION bufferPrecision) PURE;
STDMETHOD(GetImageLocalBounds)(ID2D1DeviceContext *This,
struct ID2D1Image *image, D2D1_RECT_F *localBounds) PURE;
STDMETHOD(GetImageWorldBounds)(ID2D1DeviceContext *This,
struct ID2D1Image *image, D2D1_RECT_F *worldBounds) PURE;
STDMETHOD(GetGlyphRunWorldBounds)(ID2D1DeviceContext *This,
D2D1_POINT_2F baselineOrigin, CONST DWRITE_GLYPH_RUN *glyphRun,
DWRITE_MEASURING_MODE measuringMode, D2D1_RECT_F *bounds) PURE;
STDMETHOD_(void, GetDevice)(ID2D1DeviceContext *This,
ID2D1Device **device) PURE;
STDMETHOD_(void, SetTarget)(ID2D1DeviceContext *This,
struct ID2D1Image *image) PURE;
STDMETHOD_(void, GetTarget)(ID2D1DeviceContext *This,
struct ID2D1Image **image) PURE;
STDMETHOD_(void, SetRenderingControls)(ID2D1DeviceContext *This,
CONST D2D1_RENDERING_CONTROLS *renderingControls) PURE;
STDMETHOD_(void, GetRenderingControls)(ID2D1DeviceContext *This,
D2D1_RENDERING_CONTROLS *renderingControls) PURE;
STDMETHOD_(void, SetPrimitiveBlend)(ID2D1DeviceContext *This,
D2D1_PRIMITIVE_BLEND primitiveBlend) PURE;
STDMETHOD_(D2D1_PRIMITIVE_BLEND, GetPrimitiveBlend)(ID2D1DeviceContext *This) PURE;
STDMETHOD_(void, SetUnitMode)(ID2D1DeviceContext *This,
D2D1_UNIT_MODE unitMode) PURE;
STDMETHOD_(D2D1_UNIT_MODE, GetUnitMode)(ID2D1DeviceContext *This) PURE;
STDMETHOD_(void, DrawGlyphRun)(ID2D1DeviceContext *This,
D2D1_POINT_2F baselineOrigin, CONST DWRITE_GLYPH_RUN *glyphRun,
CONST DWRITE_GLYPH_RUN_DESCRIPTION *glyphRunDescription,
ID2D1Brush *foregroundBrush, DWRITE_MEASURING_MODE measuringMode) PURE;
STDMETHOD_(void, DrawImage)(ID2D1DeviceContext *This,
struct ID2D1Image *image, CONST D2D1_POINT_2F *targetOffset,
CONST D2D1_RECT_F *imageRectangle,
D2D1_INTERPOLATION_MODE interpolationMode,
D2D1_COMPOSITE_MODE compositeMode) PURE;
STDMETHOD_(void, DrawGdiMetafile)(ID2D1DeviceContext *This,
ID2D1GdiMetafile *gdiMetafile, CONST D2D1_POINT_2F *targetOffset) PURE;
STDMETHOD_(void, DrawBitmap)(ID2D1DeviceContext *This,
ID2D1Bitmap *bitmap, CONST D2D1_RECT_F *destinationRectangle,
FLOAT opacity, D2D1_INTERPOLATION_MODE interpolationMode,
CONST D2D1_RECT_F *sourceRectangle,
CONST D2D1_MATRIX_4X4_F *perspectiveTransform) PURE;
STDMETHOD_(void, PushLayer)(ID2D1DeviceContext *This,
CONST D2D1_LAYER_PARAMETERS1 *layerParameters, ID2D1Layer *layer) PURE;
STDMETHOD(InvalidateEffectInputRectangle)(ID2D1DeviceContext *This,
ID2D1Effect *effect, UINT32 input,
CONST D2D1_RECT_F *inputRectangle) PURE;
STDMETHOD(GetEffectInvalidRectangleCount)(ID2D1DeviceContext *This,
ID2D1Effect *effect, UINT32 *rectangleCount) PURE;
STDMETHOD(GetEffectInvalidRectangles)(ID2D1DeviceContext *This,
ID2D1Effect *effect, D2D1_RECT_F *rectangles,
UINT32 rectanglesCount) PURE;
STDMETHOD(GetEffectRequiredInputRectangles)(ID2D1DeviceContext *This,
ID2D1Effect *renderEffect, CONST D2D1_RECT_F *renderImageRectangle,
CONST D2D1_EFFECT_INPUT_DESCRIPTION *inputDescriptions,
D2D1_RECT_F *requiredInputRects, UINT32 inputCount) PURE;
STDMETHOD_(void, FillOpacityMask)(ID2D1DeviceContext *This,
ID2D1Bitmap *opacityMask, ID2D1Brush *brush,
CONST D2D1_RECT_F *destinationRectangle,
CONST D2D1_RECT_F *sourceRectangle) PURE;
}
ID2D1DeviceContextVtbl;
interface ID2D1DeviceContext {
const ID2D1DeviceContextVtbl *lpVtbl;
};
#endif
@ -891,7 +1027,29 @@ interface ID2D1Device : public ID2D1Resource
#else
typedef interface ID2D1Device ID2D1Device;
/* FIXME: Add full C declaration */
typedef struct ID2D1DeviceVtbl {
struct ID2D1ResourceVtbl Base;
STDMETHOD(CreateDeviceContext)(ID2D1Device *This,
D2D1_DEVICE_CONTEXT_OPTIONS options,
ID2D1DeviceContext **deviceContext) PURE;
STDMETHOD(CreatePrintControl)(ID2D1Device *This,
IWICImagingFactory *wicFactory,
IPrintDocumentPackageTarget *documentTarget,
CONST D2D1_PRINT_CONTROL_PROPERTIES *printControlProperties,
ID2D1PrintControl **printControl) PURE;
STDMETHOD_(void, SetMaximumTextureMemory)(ID2D1Device *This,
UINT64 maximumInBytes) PURE;
STDMETHOD_(UINT64, GetMaximumTextureMemory)(ID2D1Device *This) PURE;
STDMETHOD_(void, ClearResources)(ID2D1Device *This,
UINT32 millisecondsSinceUse) PURE;
}
ID2D1DeviceVtbl;
interface ID2D1Device {
const ID2D1DeviceVtbl *lpVtbl;
};
#endif
@ -999,7 +1157,57 @@ interface ID2D1Factory1 : public ID2D1Factory
#else
typedef interface ID2D1Factory1 ID2D1Factory1;
/* FIXME: Add full C declaration */
typedef struct ID2D1Factory1Vtbl {
ID2D1FactoryVtbl Base;
STDMETHOD(CreateDevice)(ID2D1Factory1 *This, IDXGIDevice *dxgiDevice,
ID2D1Device **d2dDevice) PURE;
STDMETHOD(CreateStrokeStyle)(ID2D1Factory1 *This,
CONST D2D1_STROKE_STYLE_PROPERTIES1 *strokeStyleProperties,
CONST FLOAT *dashes, UINT32 dashesCount,
ID2D1StrokeStyle1 **strokeStyle) PURE;
STDMETHOD(CreatePathGeometry)(ID2D1Factory1 *This,
ID2D1PathGeometry1 **pathGeometry) PURE;
STDMETHOD(CreateDrawingStateBlock)(ID2D1Factory1 *This,
CONST D2D1_DRAWING_STATE_DESCRIPTION1 *drawingStateDescription,
IDWriteRenderingParams *textRenderingParams,
ID2D1DrawingStateBlock1 **drawingStateBlock) PURE;
STDMETHOD(CreateGdiMetafile)(ID2D1Factory1 *This, IStream *metafileStream,
ID2D1GdiMetafile **metafile) PURE;
STDMETHOD(RegisterEffectFromStream)(ID2D1Factory1 *This, REFCLSID classId,
IStream *propertyXml, CONST D2D1_PROPERTY_BINDING *bindings,
UINT32 bindingsCount,
CONST PD2D1_EFFECT_FACTORY effectFactory) PURE;
STDMETHOD(RegisterEffectFromString)(ID2D1Factory1 *This,
REFCLSID classId, PCWSTR propertyXml,
CONST D2D1_PROPERTY_BINDING *bindings, UINT32 bindingsCount,
CONST PD2D1_EFFECT_FACTORY effectFactory) PURE;
STDMETHOD(UnregisterEffect)(ID2D1Factory1 *This, REFCLSID classId) PURE;
STDMETHOD(GetRegisteredEffects)(ID2D1Factory1 *This, CLSID *effects,
UINT32 effectsCount, UINT32 *effectsReturned,
UINT32 *effectsRegistered) PURE;
STDMETHOD(GetEffectProperties)(ID2D1Factory1 *This, REFCLSID effectId,
ID2D1Properties **properties) PURE;
} ID2D1Factory1Vtbl;
interface ID2D1Factory1 {
const ID2D1Factory1Vtbl *lpVtbl;
};
#define ID2D1Factory1_QueryInterface(this,A,B) (this)->lpVtbl->Base.Base.QueryInterface((IUnknown *)(this),A,B)
#define ID2D1Factory1_AddRef(this) (this)->lpVtbl->Base.Base.AddRef((IUnknown *)(this))
#define ID2D1Factory1_Release(this) (this)->lpVtbl->Base.Base.Release((IUnknown *)(this))
#define ID2D1Factory1_CreateDevice(this,A,B) (this)->lpVtbl->CreateDevice(this,A,B)
#define ID2D1Factory1_CreateStrokeStyle(this,A,B,C,D) (this)->lpVtbl->CreateStrokeStyle(this,A,B,C,D)
#define ID2D1Factory1_CreatePathGeometry(this,A) (this)->lpVbtl->CreatePathGeometry(this,A)
#define ID2D1Factory1_CreateDrawingStateBlock(this,A,B, C) (this)->lpVtbl->CreateDrawingStateBlock(this,A,B,C)
#define ID2D1Factory1_CreateGdiMetafile(this,A,B) (this)->lpVtbl->CreateGdiMetafile(this,A,B)
#define ID2D1Factory1_RegisterEffectFromStream(this,A,B,C,D,E) (this)->lpVtbl->RegisterEffectFromStream(this,A,B,C,D,E)
#define ID2D1Factory1_RegisterEffectFromString(this,A,B,C,D,E) (this)->lpVtbl->RegisterEffectFromString(this,A,B,C,D,E)
#define ID2D1Factory1_UnregisterEffect(this,A) (this)->lpVtbl->UnregisterEffect(this,A)
#define ID2D1Factory1_GetRegisteredEffects(this,A,B,C,D) (this)->lpVtbl->GetRegisteredEffects(this,A,B,C,D)
#define ID2D1Factory1_GetEffectProperties(this,A,B) (this)->lpVtbl->GetEffectProperties(this,A,B)
#endif
@ -1018,7 +1226,25 @@ interface ID2D1Multithread : public IUnknown
#else
typedef interface ID2D1Multithread ID2D1Multithread;
/* FIXME: Add full C declaration */
typedef struct ID2D1MultithreadVtbl {
IUnknownVtbl Base;
STDMETHOD_(BOOL, GetMultithreadProtected)(ID2D1Multithread *This) PURE;
STDMETHOD_(void, Enter)(ID2D1Multithread *This) PURE;
STDMETHOD_(void, Leave)(ID2D1Multithread *This) PURE;
} ID2D1MultithreadVtbl;
interface ID2D1Multithread {
ID2D1MultithreadVtbl *lpVtbl;
};
#define ID2D1Multithread_QueryInterface(this,A,B) (this)->lpVtbl->Base.QueryInterface((IUnknown *)(this),A,B)
#define ID2D1Multithread_AddRef(this) (this)->lpVtbl->Base.AddRef((IUnknown *)(this))
#define ID2D1Multithread_Release(this) (this)->lpVtbl->Base.Release((IUnknown *)(this))
#define ID2D1Mutlithread_GetMultithreadProtected(this) (this)->lpVtbl->GetMultihreadProtected(this)
#define ID2D1Multithread_Enter(this) (this)->lpVtbl->Enter(this)
#define ID2D1Multithread_Leave(this) (this)->lpVtbl->Leave(this)
#endif

View File

@ -1,126 +1,63 @@
/**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
* d2dbasetypes.h - Header file for the Direct2D API
* No original Microsoft headers were used in the creation of this
* file.
*API docs available at: http://msdn.microsoft.com/en-us/library/dd372349%28v=VS.85%29.aspx
/*
* Copyright 2013 Nikolay Sivov for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef _D2DBASETYPES_H
#define _D2DBASETYPES_H
#ifndef _D2DBASETYPES_INCLUDED
#define _D2DBASETYPES_INCLUDED
#include <d3d9types.h>
#ifndef D3DCOLORVALUE_DEFINED
typedef struct D3DCOLORVALUE
{
float r;
float g;
float b;
float a;
} D3DCOLORVALUE;
#define D3DCOLORVALUE_DEFINED
#endif
typedef D3DCOLORVALUE D2D_COLOR_F;
struct D2D_MATRIX_3X2_F {
FLOAT _11;
FLOAT _12;
FLOAT _21;
FLOAT _22;
FLOAT _31;
FLOAT _32;
};
typedef struct D2D_RECT_F
{
float left;
float top;
float right;
float bottom;
} D2D_RECT_F;
typedef struct D2D_MATRIX_4X3_F {
__C89_NAMELESS union {
__C89_NAMELESS struct {
FLOAT _11, _12, _13;
FLOAT _21, _22, _23;
FLOAT _31, _32, _33;
FLOAT _41, _42, _43;
};
FLOAT m[4][3];
};
} D2D_MATRIX_4X3_F;
typedef struct D2D_SIZE_F
{
float width;
float height;
} D2D_SIZE_F;
typedef struct D2D_MATRIX_4X4_F {
__C89_NAMELESS union {
__C89_NAMELESS struct {
FLOAT _11, _12, _13, _14;
FLOAT _21, _22, _23, _24;
FLOAT _31, _32, _33, _34;
FLOAT _41, _42, _43, _44;
};
FLOAT m[4][4];
};
} D2D_MATRIX_4X4_F;
typedef struct D2D_POINT_2U
{
UINT32 x;
UINT32 y;
} D2D_POINT_2U;
typedef struct D2D_MATRIX_5X4_F {
__C89_NAMELESS union {
__C89_NAMELESS struct {
FLOAT _11, _12, _13, _14;
FLOAT _21, _22, _23, _24;
FLOAT _31, _32, _33, _34;
FLOAT _41, _42, _43, _44;
FLOAT _51, _52, _53, _54;
};
FLOAT m[5][4];
};
} D2D_MATRIX_5X4_F;
typedef struct D2D_RECT_U
{
UINT32 left;
UINT32 top;
UINT32 right;
UINT32 bottom;
} D2D_RECT_U;
struct D2D_POINT_2F {
FLOAT x;
FLOAT y;
};
struct D2D_POINT_2U {
UINT32 x;
UINT32 y;
};
struct D2D_RECT_F {
FLOAT left;
FLOAT top;
FLOAT right;
FLOAT bottom;
};
struct D2D_RECT_U {
UINT32 left;
UINT32 top;
UINT32 right;
UINT32 bottom;
};
typedef RECT D2D_RECT_L;
struct D2D_SIZE_F {
FLOAT width;
FLOAT height;
};
typedef D2D_COLOR_F D2D1_COLOR_F;
typedef struct D2D_POINT_2F D2D1_POINT_2F;
typedef struct D2D_POINT_2U D2D1_POINT_2U;
typedef struct D2D_RECT_F D2D1_RECT_F;
typedef struct D2D_RECT_U D2D1_RECT_U;
typedef struct D2D_SIZE_F D2D1_SIZE_F;
typedef struct D2D_VECTOR_2F {
FLOAT x;
FLOAT y;
} D2D_VECTOR_2F;
typedef struct D2D_VECTOR_3F {
FLOAT x;
FLOAT y;
FLOAT z;
} D2D_VECTOR_3F;
typedef struct D2D_VECTOR_4F {
FLOAT x;
FLOAT y;
FLOAT z;
FLOAT w;
} D2D_VECTOR_4F;
#endif /* _D2DBASETYPES_H */
#endif /* _D2DBASETYPES_INCLUDED */

View File

@ -1,4 +1,4 @@
/*** Autogenerated by WIDL 4.19 from direct-x/include/d3d10.idl - Do not edit ***/
/*** Autogenerated by WIDL 5.16 from include/d3d10.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__
@ -1039,8 +1039,14 @@ typedef enum D3D10_RTV_DIMENSION {
D3D10_RTV_DIMENSION_TEXTURE3D = 8
} D3D10_RTV_DIMENSION;
typedef struct D3D10_BUFFER_RTV {
UINT ElementOffset;
UINT ElementWidth;
__C89_NAMELESS union {
UINT FirstElement;
UINT ElementOffset;
} __C89_NAMELESSUNIONNAME1;
__C89_NAMELESS union {
UINT NumElements;
UINT ElementWidth;
} __C89_NAMELESSUNIONNAME2;
} D3D10_BUFFER_RTV;
typedef struct D3D10_TEX1D_RTV {
UINT MipSlice;
@ -1086,8 +1092,14 @@ typedef struct D3D10_RENDER_TARGET_VIEW_DESC {
} D3D10_RENDER_TARGET_VIEW_DESC;
typedef D3D_SRV_DIMENSION D3D10_SRV_DIMENSION;
typedef struct D3D10_BUFFER_SRV {
UINT ElementOffset;
UINT ElementWidth;
__C89_NAMELESS union {
UINT FirstElement;
UINT ElementOffset;
} __C89_NAMELESSUNIONNAME1;
__C89_NAMELESS union {
UINT NumElements;
UINT ElementWidth;
} __C89_NAMELESSUNIONNAME2;
} D3D10_BUFFER_SRV;
typedef struct D3D10_TEX1D_SRV {
UINT MostDetailedMip;
@ -1301,7 +1313,9 @@ typedef enum D3D10_CREATE_DEVICE_FLAG {
D3D10_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS = 0x8,
D3D10_CREATE_DEVICE_ALLOW_NULL_FROM_MAP = 0x10,
D3D10_CREATE_DEVICE_BGRA_SUPPORT = 0x20,
D3D10_CREATE_DEVICE_STRICT_VALIDATION = 0x200
D3D10_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY = 0x80,
D3D10_CREATE_DEVICE_STRICT_VALIDATION = 0x200,
D3D10_CREATE_DEVICE_DEBUGGABLE = 0x400
} D3D10_CREATE_DEVICE_FLAG;
#ifndef __ID3D10Device_FWD_DEFINED__
#define __ID3D10Device_FWD_DEFINED__

View File

@ -660,8 +660,14 @@ typedef enum D3D10_RTV_DIMENSION {
} D3D10_RTV_DIMENSION;
typedef struct D3D10_BUFFER_RTV {
UINT ElementOffset;
UINT ElementWidth;
union {
UINT FirstElement;
UINT ElementOffset;
};
union {
UINT NumElements;
UINT ElementWidth;
};
} D3D10_BUFFER_RTV;
typedef struct D3D10_TEX1D_RTV {
@ -717,8 +723,14 @@ typedef struct D3D10_RENDER_TARGET_VIEW_DESC {
typedef D3D_SRV_DIMENSION D3D10_SRV_DIMENSION;
typedef struct D3D10_BUFFER_SRV {
UINT ElementOffset;
UINT ElementWidth;
union {
UINT FirstElement;
UINT ElementOffset;
};
union {
UINT NumElements;
UINT ElementWidth;
};
} D3D10_BUFFER_SRV;
typedef struct D3D10_TEX1D_SRV {
@ -972,7 +984,9 @@ typedef enum D3D10_CREATE_DEVICE_FLAG {
D3D10_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS = 0x8,
D3D10_CREATE_DEVICE_ALLOW_NULL_FROM_MAP = 0x10,
D3D10_CREATE_DEVICE_BGRA_SUPPORT = 0x20,
D3D10_CREATE_DEVICE_STRICT_VALIDATION = 0x0200
D3D10_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY = 0x80,
D3D10_CREATE_DEVICE_STRICT_VALIDATION = 0x200,
D3D10_CREATE_DEVICE_DEBUGGABLE = 0x400,
} D3D10_CREATE_DEVICE_FLAG;
/* Core */

View File

@ -1,4 +1,4 @@
/*** Autogenerated by WIDL 4.19 from direct-x/include/d3d10_1.idl - Do not edit ***/
/*** Autogenerated by WIDL 5.16 from include/d3d10_1.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__

View File

@ -1,157 +0,0 @@
/*
* Copyright 2010 Jacek Caban for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
import "oaidl.idl";
import "ocidl.idl";
cpp_quote("#ifndef _D3D10_1_CONSTANTS")
cpp_quote("#define _D3D10_1_CONSTANTS")
const UINT D3D10_1_DEFAULT_SAMPLE_MASK = 0xffffffff;
const UINT D3D10_1_GS_INPUT_REGISTER_COUNT = 32;
const UINT D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = 32;
const UINT D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS = 128;
const UINT D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT = 32;
const UINT D3D10_1_PS_OUTPUT_MASK_REGISTER_COMPONENTS = 1;
const UINT D3D10_1_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT = 32;
const UINT D3D10_1_PS_OUTPUT_MASK_REGISTER_COUNT = 1;
const UINT D3D10_1_SHADER_MAJOR_VERSION = 4;
const UINT D3D10_1_SHADER_MINOR_VERSION = 1;
const UINT D3D10_1_SO_BUFFER_MAX_STRIDE_IN_BYTES = 2048;
const UINT D3D10_1_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = 256;
const UINT D3D10_1_SO_BUFFER_SLOT_COUNT = 4;
const UINT D3D10_1_SO_MULTIPLE_BUFFER_ELEMENTS_PER_BUFFER = 1;
const UINT D3D10_1_SO_SINGLE_BUFFER_COMPONENT_LIMIT = 64;
const UINT D3D10_1_STANDARD_VERTEX_ELEMENT_COUNT = 32;
const UINT D3D10_1_SUBPIXEL_FRACTIONAL_BIT_COUNT = 8;
const UINT D3D10_1_VS_INPUT_REGISTER_COUNT = 32;
const UINT D3D10_1_VS_OUTPUT_REGISTER_COUNT = 32;
cpp_quote("#endif")
cpp_quote("#define D3D10_1_FLOAT16_FUSED_TOLERANCE_IN_ULP (0.6)")
cpp_quote("#define D3D10_1_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP (0.6f)")
import "d3d10.idl";
cpp_quote("#include <d3d10_1shader.h>")
typedef enum D3D10_FEATURE_LEVEL1
{
D3D10_FEATURE_LEVEL_10_0 = 0xa000,
D3D10_FEATURE_LEVEL_10_1 = 0xa100,
D3D10_FEATURE_LEVEL_9_1 = 0x9100,
D3D10_FEATURE_LEVEL_9_2 = 0x9200,
D3D10_FEATURE_LEVEL_9_3 = 0x9300
} D3D10_FEATURE_LEVEL1;
typedef struct D3D10_RENDER_TARGET_BLEND_DESC1
{
BOOL BlendEnable;
D3D10_BLEND SrcBlend;
D3D10_BLEND DestBlend;
D3D10_BLEND_OP BlendOp;
D3D10_BLEND SrcBlendAlpha;
D3D10_BLEND DestBlendAlpha;
D3D10_BLEND_OP BlendOpAlpha;
UINT8 RenderTargetWriteMask;
} D3D10_RENDER_TARGET_BLEND_DESC1;
typedef struct D3D10_BLEND_DESC1
{
BOOL AlphaToCoverageEnable;
BOOL IndependentBlendEnable;
D3D10_RENDER_TARGET_BLEND_DESC1 RenderTarget[D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT];
} D3D10_BLEND_DESC1;
[
uuid(edad8d99-8a35-4d6d-8566-2ea276cde161),
object,
local,
pointer_default(unique)
]
interface ID3D10BlendState1 : ID3D10BlendState
{
void GetDesc1([out] D3D10_BLEND_DESC1 *pDesc);
}
typedef struct D3D10_TEXCUBE_ARRAY_SRV1
{
UINT MostDetailedMip;
UINT MipLevels;
UINT First2DArrayFace;
UINT NumCubes;
} D3D10_TEXCUBE_ARRAY_SRV1;
typedef D3D_SRV_DIMENSION D3D10_SRV_DIMENSION1;
typedef struct D3D10_SHADER_RESOURCE_VIEW_DESC1
{
DXGI_FORMAT Format;
D3D10_SRV_DIMENSION1 ViewDimension;
union {
D3D10_BUFFER_SRV Buffer;
D3D10_TEX1D_SRV Texture1D;
D3D10_TEX1D_ARRAY_SRV Texture1DArray;
D3D10_TEX2D_SRV Texture2D;
D3D10_TEX2D_ARRAY_SRV Texture2DArray;
D3D10_TEX2DMS_SRV Texture2DMS;
D3D10_TEX2DMS_ARRAY_SRV Texture2DMSArray;
D3D10_TEX3D_SRV Texture3D;
D3D10_TEXCUBE_SRV TextureCube;
D3D10_TEXCUBE_ARRAY_SRV1 TextureCubeArray;
};
} D3D10_SHADER_RESOURCE_VIEW_DESC1;
[
uuid(9b7e4c87-342c-4106-a19f-4f2704f689f0),
object,
local,
pointer_default(unique)
]
interface ID3D10ShaderResourceView1 : ID3D10ShaderResourceView
{
void GetDesc1([out] D3D10_SHADER_RESOURCE_VIEW_DESC1 *pDesc);
}
[
uuid(9b7e4c8f-342c-4106-a19f-4f2704f689f0),
object,
local,
pointer_default(unique)
]
interface ID3D10Device1 : ID3D10Device
{
HRESULT CreateShaderResourceView1(
[in] ID3D10Resource *pResource,
[in, out] const D3D10_SHADER_RESOURCE_VIEW_DESC1 *pDesc,
[out] ID3D10ShaderResourceView1 **ppSRView);
HRESULT CreateBlendState1(
[in] const D3D10_BLEND_DESC1 *pBlendStateDesc,
[out] ID3D10BlendState1 **ppBlendState);
D3D10_FEATURE_LEVEL1 GetFeatureLevel();
}
const UINT D3D10_1_SDK_VERSION = 0x20;
cpp_quote("HRESULT WINAPI D3D10CreateDevice1(IDXGIAdapter*,D3D10_DRIVER_TYPE,")
cpp_quote(" HMODULE,UINT,D3D10_FEATURE_LEVEL1,UINT,ID3D10Device1**);")
[local] HRESULT __stdcall D3D10CreateDeviceAndSwapChain1(IDXGIAdapter *adapter, enum D3D10_DRIVER_TYPE driver_type,
HMODULE swrast, UINT flags, D3D10_FEATURE_LEVEL1 feature_level, UINT sdk_version,
DXGI_SWAP_CHAIN_DESC *swapchain_desc, IDXGISwapChain **swapchain, ID3D10Device1 **device);

View File

@ -1,4 +1,4 @@
/*** Autogenerated by WIDL 4.19 from direct-x/include/d3d10sdklayers.idl - Do not edit ***/
/*** Autogenerated by WIDL 5.16 from include/d3d10sdklayers.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__
@ -18,6 +18,22 @@
/* Forward declarations */
#ifndef __ID3D10Debug_FWD_DEFINED__
#define __ID3D10Debug_FWD_DEFINED__
typedef interface ID3D10Debug ID3D10Debug;
#ifdef __cplusplus
interface ID3D10Debug;
#endif /* __cplusplus */
#endif
#ifndef __ID3D10SwitchToRef_FWD_DEFINED__
#define __ID3D10SwitchToRef_FWD_DEFINED__
typedef interface ID3D10SwitchToRef ID3D10SwitchToRef;
#ifdef __cplusplus
interface ID3D10SwitchToRef;
#endif /* __cplusplus */
#endif
#ifndef __ID3D10InfoQueue_FWD_DEFINED__
#define __ID3D10InfoQueue_FWD_DEFINED__
typedef interface ID3D10InfoQueue ID3D10InfoQueue;
@ -39,6 +55,12 @@ extern "C" {
#ifdef WINE_NO_UNICODE_MACROS
#undef GetMessage
#endif
#define D3D10_DEBUG_FEATURE_FLUSH_PER_RENDER_OP (0x1)
#define D3D10_DEBUG_FEATURE_FINISH_PER_RENDER_OP (0x2)
#define D3D10_DEBUG_FEATURE_PRESENT_PER_RENDER_OP (0x4)
typedef enum D3D10_MESSAGE_CATEGORY {
D3D10_MESSAGE_CATEGORY_APPLICATION_DEFINED = 0,
D3D10_MESSAGE_CATEGORY_MISCELLANEOUS = 1,
@ -587,6 +609,233 @@ typedef struct D3D10_INFO_QUEUE_FILTER {
D3D10_INFO_QUEUE_FILTER_DESC AllowList;
D3D10_INFO_QUEUE_FILTER_DESC DenyList;
} D3D10_INFO_QUEUE_FILTER;
/*****************************************************************************
* ID3D10Debug interface
*/
#ifndef __ID3D10Debug_INTERFACE_DEFINED__
#define __ID3D10Debug_INTERFACE_DEFINED__
DEFINE_GUID(IID_ID3D10Debug, 0x9b7e4e01, 0x342c, 0x4106, 0xa1,0x9f, 0x4f,0x27,0x04,0xf6,0x89,0xf0);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("9b7e4e01-342c-4106-a19f-4f2704f689f0")
ID3D10Debug : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE SetFeatureMask(
UINT mask) = 0;
virtual UINT STDMETHODCALLTYPE GetFeatureMask(
) = 0;
virtual HRESULT STDMETHODCALLTYPE SetPresentPerRenderOpDelay(
UINT milliseconds) = 0;
virtual UINT STDMETHODCALLTYPE GetPresentPerRenderOpDelay(
) = 0;
virtual HRESULT STDMETHODCALLTYPE SetSwapChain(
IDXGISwapChain *swapchain) = 0;
virtual HRESULT STDMETHODCALLTYPE GetSwapChain(
IDXGISwapChain **swapchain) = 0;
virtual HRESULT STDMETHODCALLTYPE Validate(
) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(ID3D10Debug, 0x9b7e4e01, 0x342c, 0x4106, 0xa1,0x9f, 0x4f,0x27,0x04,0xf6,0x89,0xf0)
#endif
#else
typedef struct ID3D10DebugVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
ID3D10Debug *This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
ID3D10Debug *This);
ULONG (STDMETHODCALLTYPE *Release)(
ID3D10Debug *This);
/*** ID3D10Debug methods ***/
HRESULT (STDMETHODCALLTYPE *SetFeatureMask)(
ID3D10Debug *This,
UINT mask);
UINT (STDMETHODCALLTYPE *GetFeatureMask)(
ID3D10Debug *This);
HRESULT (STDMETHODCALLTYPE *SetPresentPerRenderOpDelay)(
ID3D10Debug *This,
UINT milliseconds);
UINT (STDMETHODCALLTYPE *GetPresentPerRenderOpDelay)(
ID3D10Debug *This);
HRESULT (STDMETHODCALLTYPE *SetSwapChain)(
ID3D10Debug *This,
IDXGISwapChain *swapchain);
HRESULT (STDMETHODCALLTYPE *GetSwapChain)(
ID3D10Debug *This,
IDXGISwapChain **swapchain);
HRESULT (STDMETHODCALLTYPE *Validate)(
ID3D10Debug *This);
END_INTERFACE
} ID3D10DebugVtbl;
interface ID3D10Debug {
CONST_VTBL ID3D10DebugVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define ID3D10Debug_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define ID3D10Debug_AddRef(This) (This)->lpVtbl->AddRef(This)
#define ID3D10Debug_Release(This) (This)->lpVtbl->Release(This)
/*** ID3D10Debug methods ***/
#define ID3D10Debug_SetFeatureMask(This,mask) (This)->lpVtbl->SetFeatureMask(This,mask)
#define ID3D10Debug_GetFeatureMask(This) (This)->lpVtbl->GetFeatureMask(This)
#define ID3D10Debug_SetPresentPerRenderOpDelay(This,milliseconds) (This)->lpVtbl->SetPresentPerRenderOpDelay(This,milliseconds)
#define ID3D10Debug_GetPresentPerRenderOpDelay(This) (This)->lpVtbl->GetPresentPerRenderOpDelay(This)
#define ID3D10Debug_SetSwapChain(This,swapchain) (This)->lpVtbl->SetSwapChain(This,swapchain)
#define ID3D10Debug_GetSwapChain(This,swapchain) (This)->lpVtbl->GetSwapChain(This,swapchain)
#define ID3D10Debug_Validate(This) (This)->lpVtbl->Validate(This)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT ID3D10Debug_QueryInterface(ID3D10Debug* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG ID3D10Debug_AddRef(ID3D10Debug* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG ID3D10Debug_Release(ID3D10Debug* This) {
return This->lpVtbl->Release(This);
}
/*** ID3D10Debug methods ***/
static FORCEINLINE HRESULT ID3D10Debug_SetFeatureMask(ID3D10Debug* This,UINT mask) {
return This->lpVtbl->SetFeatureMask(This,mask);
}
static FORCEINLINE UINT ID3D10Debug_GetFeatureMask(ID3D10Debug* This) {
return This->lpVtbl->GetFeatureMask(This);
}
static FORCEINLINE HRESULT ID3D10Debug_SetPresentPerRenderOpDelay(ID3D10Debug* This,UINT milliseconds) {
return This->lpVtbl->SetPresentPerRenderOpDelay(This,milliseconds);
}
static FORCEINLINE UINT ID3D10Debug_GetPresentPerRenderOpDelay(ID3D10Debug* This) {
return This->lpVtbl->GetPresentPerRenderOpDelay(This);
}
static FORCEINLINE HRESULT ID3D10Debug_SetSwapChain(ID3D10Debug* This,IDXGISwapChain *swapchain) {
return This->lpVtbl->SetSwapChain(This,swapchain);
}
static FORCEINLINE HRESULT ID3D10Debug_GetSwapChain(ID3D10Debug* This,IDXGISwapChain **swapchain) {
return This->lpVtbl->GetSwapChain(This,swapchain);
}
static FORCEINLINE HRESULT ID3D10Debug_Validate(ID3D10Debug* This) {
return This->lpVtbl->Validate(This);
}
#endif
#endif
#endif
#endif /* __ID3D10Debug_INTERFACE_DEFINED__ */
/*****************************************************************************
* ID3D10SwitchToRef interface
*/
#ifndef __ID3D10SwitchToRef_INTERFACE_DEFINED__
#define __ID3D10SwitchToRef_INTERFACE_DEFINED__
DEFINE_GUID(IID_ID3D10SwitchToRef, 0x9b7e4e02, 0x342c, 0x4106, 0xa1,0x9f, 0x4f,0x27,0x04,0xf6,0x89,0xf0);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("9b7e4e02-342c-4106-a19f-4f2704f689f0")
ID3D10SwitchToRef : public IUnknown
{
virtual WINBOOL STDMETHODCALLTYPE SetUseRef(
WINBOOL useref) = 0;
virtual WINBOOL STDMETHODCALLTYPE GetUseRef(
) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(ID3D10SwitchToRef, 0x9b7e4e02, 0x342c, 0x4106, 0xa1,0x9f, 0x4f,0x27,0x04,0xf6,0x89,0xf0)
#endif
#else
typedef struct ID3D10SwitchToRefVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
ID3D10SwitchToRef *This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
ID3D10SwitchToRef *This);
ULONG (STDMETHODCALLTYPE *Release)(
ID3D10SwitchToRef *This);
/*** ID3D10SwitchToRef methods ***/
WINBOOL (STDMETHODCALLTYPE *SetUseRef)(
ID3D10SwitchToRef *This,
WINBOOL useref);
WINBOOL (STDMETHODCALLTYPE *GetUseRef)(
ID3D10SwitchToRef *This);
END_INTERFACE
} ID3D10SwitchToRefVtbl;
interface ID3D10SwitchToRef {
CONST_VTBL ID3D10SwitchToRefVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define ID3D10SwitchToRef_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define ID3D10SwitchToRef_AddRef(This) (This)->lpVtbl->AddRef(This)
#define ID3D10SwitchToRef_Release(This) (This)->lpVtbl->Release(This)
/*** ID3D10SwitchToRef methods ***/
#define ID3D10SwitchToRef_SetUseRef(This,useref) (This)->lpVtbl->SetUseRef(This,useref)
#define ID3D10SwitchToRef_GetUseRef(This) (This)->lpVtbl->GetUseRef(This)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT ID3D10SwitchToRef_QueryInterface(ID3D10SwitchToRef* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG ID3D10SwitchToRef_AddRef(ID3D10SwitchToRef* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG ID3D10SwitchToRef_Release(ID3D10SwitchToRef* This) {
return This->lpVtbl->Release(This);
}
/*** ID3D10SwitchToRef methods ***/
static FORCEINLINE WINBOOL ID3D10SwitchToRef_SetUseRef(ID3D10SwitchToRef* This,WINBOOL useref) {
return This->lpVtbl->SetUseRef(This,useref);
}
static FORCEINLINE WINBOOL ID3D10SwitchToRef_GetUseRef(ID3D10SwitchToRef* This) {
return This->lpVtbl->GetUseRef(This);
}
#endif
#endif
#endif
#endif /* __ID3D10SwitchToRef_INTERFACE_DEFINED__ */
/*****************************************************************************
* ID3D10InfoQueue interface
*/

View File

@ -1,676 +0,0 @@
/*
* Copyright 2016 Alistair Leslie-Hughes
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
import "oaidl.idl";
import "ocidl.idl";
import "dxgi.idl";
cpp_quote("#ifdef WINE_NO_UNICODE_MACROS")
cpp_quote("#undef GetMessage")
cpp_quote("#endif")
typedef enum D3D10_MESSAGE_CATEGORY
{
D3D10_MESSAGE_CATEGORY_APPLICATION_DEFINED,
D3D10_MESSAGE_CATEGORY_MISCELLANEOUS,
D3D10_MESSAGE_CATEGORY_INITIALIZATION,
D3D10_MESSAGE_CATEGORY_CLEANUP,
D3D10_MESSAGE_CATEGORY_COMPILATION,
D3D10_MESSAGE_CATEGORY_STATE_CREATION,
D3D10_MESSAGE_CATEGORY_STATE_SETTING,
D3D10_MESSAGE_CATEGORY_STATE_GETTING,
D3D10_MESSAGE_CATEGORY_RESOURCE_MANIPULATION,
D3D10_MESSAGE_CATEGORY_EXECUTION,
D3D10_MESSAGE_CATEGORY_SHADER,
} D3D10_MESSAGE_CATEGORY;
typedef enum D3D10_MESSAGE_SEVERITY
{
D3D10_MESSAGE_SEVERITY_CORRUPTION,
D3D10_MESSAGE_SEVERITY_ERROR,
D3D10_MESSAGE_SEVERITY_WARNING,
D3D10_MESSAGE_SEVERITY_INFO,
D3D10_MESSAGE_SEVERITY_MESSAGE,
} D3D10_MESSAGE_SEVERITY;
typedef enum D3D10_MESSAGE_ID
{
D3D10_MESSAGE_ID_UNKNOWN = 0,
D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_HAZARD,
D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_HAZARD,
D3D10_MESSAGE_ID_DEVICE_VSSETSHADERRESOURCES_HAZARD,
D3D10_MESSAGE_ID_DEVICE_VSSETCONSTANTBUFFERS_HAZARD,
D3D10_MESSAGE_ID_DEVICE_GSSETSHADERRESOURCES_HAZARD,
D3D10_MESSAGE_ID_DEVICE_GSSETCONSTANTBUFFERS_HAZARD,
D3D10_MESSAGE_ID_DEVICE_PSSETSHADERRESOURCES_HAZARD,
D3D10_MESSAGE_ID_DEVICE_PSSETCONSTANTBUFFERS_HAZARD,
D3D10_MESSAGE_ID_DEVICE_OMSETRENDERTARGETS_HAZARD,
D3D10_MESSAGE_ID_DEVICE_SOSETTARGETS_HAZARD,
D3D10_MESSAGE_ID_STRING_FROM_APPLICATION,
D3D10_MESSAGE_ID_CORRUPTED_THIS,
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER1,
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER2,
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER3,
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER4,
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER5,
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER6,
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER7,
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER8,
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER9,
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER10,
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER11,
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER12,
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER13,
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER14,
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER15,
D3D10_MESSAGE_ID_CORRUPTED_MULTITHREADING,
D3D10_MESSAGE_ID_MESSAGE_REPORTING_OUTOFMEMORY,
D3D10_MESSAGE_ID_IASETINPUTLAYOUT_UNBINDDELETINGOBJECT,
D3D10_MESSAGE_ID_IASETVERTEXBUFFERS_UNBINDDELETINGOBJECT,
D3D10_MESSAGE_ID_IASETINDEXBUFFER_UNBINDDELETINGOBJECT,
D3D10_MESSAGE_ID_VSSETSHADER_UNBINDDELETINGOBJECT,
D3D10_MESSAGE_ID_VSSETSHADERRESOURCES_UNBINDDELETINGOBJECT,
D3D10_MESSAGE_ID_VSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT,
D3D10_MESSAGE_ID_VSSETSAMPLERS_UNBINDDELETINGOBJECT,
D3D10_MESSAGE_ID_GSSETSHADER_UNBINDDELETINGOBJECT,
D3D10_MESSAGE_ID_GSSETSHADERRESOURCES_UNBINDDELETINGOBJECT,
D3D10_MESSAGE_ID_GSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT,
D3D10_MESSAGE_ID_GSSETSAMPLERS_UNBINDDELETINGOBJECT,
D3D10_MESSAGE_ID_SOSETTARGETS_UNBINDDELETINGOBJECT,
D3D10_MESSAGE_ID_PSSETSHADER_UNBINDDELETINGOBJECT,
D3D10_MESSAGE_ID_PSSETSHADERRESOURCES_UNBINDDELETINGOBJECT,
D3D10_MESSAGE_ID_PSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT,
D3D10_MESSAGE_ID_PSSETSAMPLERS_UNBINDDELETINGOBJECT,
D3D10_MESSAGE_ID_RSSETSTATE_UNBINDDELETINGOBJECT,
D3D10_MESSAGE_ID_OMSETBLENDSTATE_UNBINDDELETINGOBJECT,
D3D10_MESSAGE_ID_OMSETDEPTHSTENCILSTATE_UNBINDDELETINGOBJECT,
D3D10_MESSAGE_ID_OMSETRENDERTARGETS_UNBINDDELETINGOBJECT,
D3D10_MESSAGE_ID_SETPREDICATION_UNBINDDELETINGOBJECT,
D3D10_MESSAGE_ID_GETPRIVATEDATA_MOREDATA,
D3D10_MESSAGE_ID_SETPRIVATEDATA_INVALIDFREEDATA,
D3D10_MESSAGE_ID_SETPRIVATEDATA_INVALIDIUNKNOWN,
D3D10_MESSAGE_ID_SETPRIVATEDATA_INVALIDFLAGS,
D3D10_MESSAGE_ID_SETPRIVATEDATA_CHANGINGPARAMS,
D3D10_MESSAGE_ID_SETPRIVATEDATA_OUTOFMEMORY,
D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDFORMAT,
D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDSAMPLES,
D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDUSAGE,
D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDBINDFLAGS,
D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDCPUACCESSFLAGS,
D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDMISCFLAGS,
D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDCPUACCESSFLAGS,
D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDBINDFLAGS,
D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDINITIALDATA,
D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDDIMENSIONS,
D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDMIPLEVELS,
D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDMISCFLAGS,
D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDARG_RETURN,
D3D10_MESSAGE_ID_CREATEBUFFER_OUTOFMEMORY_RETURN,
D3D10_MESSAGE_ID_CREATEBUFFER_NULLDESC,
D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDCONSTANTBUFFERBINDINGS,
D3D10_MESSAGE_ID_CREATEBUFFER_LARGEALLOCATION,
D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDFORMAT,
D3D10_MESSAGE_ID_CREATETEXTURE1D_UNSUPPORTEDFORMAT,
D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDSAMPLES,
D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDUSAGE,
D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDBINDFLAGS,
D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDCPUACCESSFLAGS,
D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDMISCFLAGS,
D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDCPUACCESSFLAGS,
D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDBINDFLAGS,
D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDINITIALDATA,
D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDDIMENSIONS,
D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDMIPLEVELS,
D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDMISCFLAGS,
D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDARG_RETURN,
D3D10_MESSAGE_ID_CREATETEXTURE1D_OUTOFMEMORY_RETURN,
D3D10_MESSAGE_ID_CREATETEXTURE1D_NULLDESC,
D3D10_MESSAGE_ID_CREATETEXTURE1D_LARGEALLOCATION,
D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDFORMAT,
D3D10_MESSAGE_ID_CREATETEXTURE2D_UNSUPPORTEDFORMAT,
D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDSAMPLES,
D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDUSAGE,
D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDBINDFLAGS,
D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDCPUACCESSFLAGS,
D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDMISCFLAGS,
D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDCPUACCESSFLAGS,
D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDBINDFLAGS,
D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDINITIALDATA,
D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDDIMENSIONS,
D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDMIPLEVELS,
D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDMISCFLAGS,
D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDARG_RETURN,
D3D10_MESSAGE_ID_CREATETEXTURE2D_OUTOFMEMORY_RETURN,
D3D10_MESSAGE_ID_CREATETEXTURE2D_NULLDESC,
D3D10_MESSAGE_ID_CREATETEXTURE2D_LARGEALLOCATION,
D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDFORMAT,
D3D10_MESSAGE_ID_CREATETEXTURE3D_UNSUPPORTEDFORMAT,
D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDSAMPLES,
D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDUSAGE,
D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDBINDFLAGS,
D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDCPUACCESSFLAGS,
D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDMISCFLAGS,
D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDCPUACCESSFLAGS,
D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDBINDFLAGS,
D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDINITIALDATA,
D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDDIMENSIONS,
D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDMIPLEVELS,
D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDMISCFLAGS,
D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDARG_RETURN,
D3D10_MESSAGE_ID_CREATETEXTURE3D_OUTOFMEMORY_RETURN,
D3D10_MESSAGE_ID_CREATETEXTURE3D_NULLDESC,
D3D10_MESSAGE_ID_CREATETEXTURE3D_LARGEALLOCATION,
D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_UNRECOGNIZEDFORMAT,
D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDESC,
D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDFORMAT,
D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDIMENSIONS,
D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDRESOURCE,
D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_TOOMANYOBJECTS,
D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDARG_RETURN,
D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_OUTOFMEMORY_RETURN,
D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_UNRECOGNIZEDFORMAT,
D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_UNSUPPORTEDFORMAT,
D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDESC,
D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDFORMAT,
D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDIMENSIONS,
D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDRESOURCE,
D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_TOOMANYOBJECTS,
D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDARG_RETURN,
D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_OUTOFMEMORY_RETURN,
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_UNRECOGNIZEDFORMAT,
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDESC,
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDFORMAT,
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDIMENSIONS,
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDRESOURCE,
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_TOOMANYOBJECTS,
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDARG_RETURN,
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_OUTOFMEMORY_RETURN,
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_OUTOFMEMORY,
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_TOOMANYELEMENTS,
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDFORMAT,
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INCOMPATIBLEFORMAT,
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOT,
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDINPUTSLOTCLASS,
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_STEPRATESLOTCLASSMISMATCH,
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOTCLASSCHANGE,
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSTEPRATECHANGE,
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDALIGNMENT,
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_DUPLICATESEMANTIC,
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_UNPARSEABLEINPUTSIGNATURE,
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_NULLSEMANTIC,
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_MISSINGELEMENT,
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_NULLDESC,
D3D10_MESSAGE_ID_CREATEVERTEXSHADER_OUTOFMEMORY,
D3D10_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERBYTECODE,
D3D10_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERTYPE,
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADER_OUTOFMEMORY,
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERBYTECODE,
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERTYPE,
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTOFMEMORY,
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERBYTECODE,
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERTYPE,
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMENTRIES,
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSTREAMSTRIDEUNUSED,
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDDECL,
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_EXPECTEDDECL,
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSLOT0EXPECTED,
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSLOT,
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_ONLYONEELEMENTPERSLOT,
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDCOMPONENTCOUNT,
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTARTCOMPONENTANDCOMPONENTCOUNT,
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDGAPDEFINITION,
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_REPEATEDOUTPUT,
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSTREAMSTRIDE,
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGSEMANTIC,
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MASKMISMATCH,
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_CANTHAVEONLYGAPS,
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DECLTOOCOMPLEX,
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGOUTPUTSIGNATURE,
D3D10_MESSAGE_ID_CREATEPIXELSHADER_OUTOFMEMORY,
D3D10_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERBYTECODE,
D3D10_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERTYPE,
D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDFILLMODE,
D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDCULLMODE,
D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDDEPTHBIASCLAMP,
D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDSLOPESCALEDDEPTHBIAS,
D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_TOOMANYOBJECTS,
D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_NULLDESC,
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHWRITEMASK,
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHFUNC,
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFAILOP,
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILZFAILOP,
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILPASSOP,
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFUNC,
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFAILOP,
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILZFAILOP,
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILPASSOP,
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFUNC,
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_TOOMANYOBJECTS,
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_NULLDESC,
D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLEND,
D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLEND,
D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOP,
D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLENDALPHA,
D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLENDALPHA,
D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOPALPHA,
D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDRENDERTARGETWRITEMASK,
D3D10_MESSAGE_ID_CREATEBLENDSTATE_TOOMANYOBJECTS,
D3D10_MESSAGE_ID_CREATEBLENDSTATE_NULLDESC,
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDFILTER,
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSU,
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSV,
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSW,
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMIPLODBIAS,
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMAXANISOTROPY,
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDCOMPARISONFUNC,
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMINLOD,
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMAXLOD,
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_TOOMANYOBJECTS,
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_NULLDESC,
D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDQUERY,
D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDMISCFLAGS,
D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_UNEXPECTEDMISCFLAG,
D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_NULLDESC,
D3D10_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNRECOGNIZED,
D3D10_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNDEFINED,
D3D10_MESSAGE_ID_IASETVERTEXBUFFERS_INVALIDBUFFER,
D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_OFFSET_TOO_LARGE,
D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_BUFFERS_EMPTY,
D3D10_MESSAGE_ID_IASETINDEXBUFFER_INVALIDBUFFER,
D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_FORMAT_INVALID,
D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_OFFSET_TOO_LARGE,
D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_OFFSET_UNALIGNED,
D3D10_MESSAGE_ID_DEVICE_VSSETSHADERRESOURCES_VIEWS_EMPTY,
D3D10_MESSAGE_ID_VSSETCONSTANTBUFFERS_INVALIDBUFFER,
D3D10_MESSAGE_ID_DEVICE_VSSETCONSTANTBUFFERS_BUFFERS_EMPTY,
D3D10_MESSAGE_ID_DEVICE_VSSETSAMPLERS_SAMPLERS_EMPTY,
D3D10_MESSAGE_ID_DEVICE_GSSETSHADERRESOURCES_VIEWS_EMPTY,
D3D10_MESSAGE_ID_GSSETCONSTANTBUFFERS_INVALIDBUFFER,
D3D10_MESSAGE_ID_DEVICE_GSSETCONSTANTBUFFERS_BUFFERS_EMPTY,
D3D10_MESSAGE_ID_DEVICE_GSSETSAMPLERS_SAMPLERS_EMPTY,
D3D10_MESSAGE_ID_SOSETTARGETS_INVALIDBUFFER,
D3D10_MESSAGE_ID_DEVICE_SOSETTARGETS_OFFSET_UNALIGNED,
D3D10_MESSAGE_ID_DEVICE_PSSETSHADERRESOURCES_VIEWS_EMPTY,
D3D10_MESSAGE_ID_PSSETCONSTANTBUFFERS_INVALIDBUFFER,
D3D10_MESSAGE_ID_DEVICE_PSSETCONSTANTBUFFERS_BUFFERS_EMPTY,
D3D10_MESSAGE_ID_DEVICE_PSSETSAMPLERS_SAMPLERS_EMPTY,
D3D10_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_INVALIDVIEWPORT,
D3D10_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_INVALIDSCISSOR,
D3D10_MESSAGE_ID_CLEARRENDERTARGETVIEW_DENORMFLUSH,
D3D10_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_DENORMFLUSH,
D3D10_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_INVALID,
D3D10_MESSAGE_ID_DEVICE_IAGETVERTEXBUFFERS_BUFFERS_EMPTY,
D3D10_MESSAGE_ID_DEVICE_VSGETSHADERRESOURCES_VIEWS_EMPTY,
D3D10_MESSAGE_ID_DEVICE_VSGETCONSTANTBUFFERS_BUFFERS_EMPTY,
D3D10_MESSAGE_ID_DEVICE_VSGETSAMPLERS_SAMPLERS_EMPTY,
D3D10_MESSAGE_ID_DEVICE_GSGETSHADERRESOURCES_VIEWS_EMPTY,
D3D10_MESSAGE_ID_DEVICE_GSGETCONSTANTBUFFERS_BUFFERS_EMPTY,
D3D10_MESSAGE_ID_DEVICE_GSGETSAMPLERS_SAMPLERS_EMPTY,
D3D10_MESSAGE_ID_DEVICE_SOGETTARGETS_BUFFERS_EMPTY,
D3D10_MESSAGE_ID_DEVICE_PSGETSHADERRESOURCES_VIEWS_EMPTY,
D3D10_MESSAGE_ID_DEVICE_PSGETCONSTANTBUFFERS_BUFFERS_EMPTY,
D3D10_MESSAGE_ID_DEVICE_PSGETSAMPLERS_SAMPLERS_EMPTY,
D3D10_MESSAGE_ID_DEVICE_RSGETVIEWPORTS_VIEWPORTS_EMPTY,
D3D10_MESSAGE_ID_DEVICE_RSGETSCISSORRECTS_RECTS_EMPTY,
D3D10_MESSAGE_ID_DEVICE_GENERATEMIPS_RESOURCE_INVALID,
D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDDESTINATIONSUBRESOURCE,
D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCESUBRESOURCE,
D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCEBOX,
D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCE,
D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDDESTINATIONSTATE,
D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCESTATE,
D3D10_MESSAGE_ID_COPYRESOURCE_INVALIDSOURCE,
D3D10_MESSAGE_ID_COPYRESOURCE_INVALIDDESTINATIONSTATE,
D3D10_MESSAGE_ID_COPYRESOURCE_INVALIDSOURCESTATE,
D3D10_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONSUBRESOURCE,
D3D10_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONBOX,
D3D10_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONSTATE,
D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_DESTINATION_INVALID,
D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_DESTINATION_SUBRESOURCE_INVALID,
D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_SOURCE_INVALID,
D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_SOURCE_SUBRESOURCE_INVALID,
D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_FORMAT_INVALID,
D3D10_MESSAGE_ID_BUFFER_MAP_INVALIDMAPTYPE,
D3D10_MESSAGE_ID_BUFFER_MAP_INVALIDFLAGS,
D3D10_MESSAGE_ID_BUFFER_MAP_ALREADYMAPPED,
D3D10_MESSAGE_ID_BUFFER_MAP_DEVICEREMOVED_RETURN,
D3D10_MESSAGE_ID_BUFFER_UNMAP_NOTMAPPED,
D3D10_MESSAGE_ID_TEXTURE1D_MAP_INVALIDMAPTYPE,
D3D10_MESSAGE_ID_TEXTURE1D_MAP_INVALIDSUBRESOURCE,
D3D10_MESSAGE_ID_TEXTURE1D_MAP_INVALIDFLAGS,
D3D10_MESSAGE_ID_TEXTURE1D_MAP_ALREADYMAPPED,
D3D10_MESSAGE_ID_TEXTURE1D_MAP_DEVICEREMOVED_RETURN,
D3D10_MESSAGE_ID_TEXTURE1D_UNMAP_INVALIDSUBRESOURCE,
D3D10_MESSAGE_ID_TEXTURE1D_UNMAP_NOTMAPPED,
D3D10_MESSAGE_ID_TEXTURE2D_MAP_INVALIDMAPTYPE,
D3D10_MESSAGE_ID_TEXTURE2D_MAP_INVALIDSUBRESOURCE,
D3D10_MESSAGE_ID_TEXTURE2D_MAP_INVALIDFLAGS,
D3D10_MESSAGE_ID_TEXTURE2D_MAP_ALREADYMAPPED,
D3D10_MESSAGE_ID_TEXTURE2D_MAP_DEVICEREMOVED_RETURN,
D3D10_MESSAGE_ID_TEXTURE2D_UNMAP_INVALIDSUBRESOURCE,
D3D10_MESSAGE_ID_TEXTURE2D_UNMAP_NOTMAPPED,
D3D10_MESSAGE_ID_TEXTURE3D_MAP_INVALIDMAPTYPE,
D3D10_MESSAGE_ID_TEXTURE3D_MAP_INVALIDSUBRESOURCE,
D3D10_MESSAGE_ID_TEXTURE3D_MAP_INVALIDFLAGS,
D3D10_MESSAGE_ID_TEXTURE3D_MAP_ALREADYMAPPED,
D3D10_MESSAGE_ID_TEXTURE3D_MAP_DEVICEREMOVED_RETURN,
D3D10_MESSAGE_ID_TEXTURE3D_UNMAP_INVALIDSUBRESOURCE,
D3D10_MESSAGE_ID_TEXTURE3D_UNMAP_NOTMAPPED,
D3D10_MESSAGE_ID_CHECKFORMATSUPPORT_FORMAT_DEPRECATED,
D3D10_MESSAGE_ID_CHECKMULTISAMPLEQUALITYLEVELS_FORMAT_DEPRECATED,
D3D10_MESSAGE_ID_SETEXCEPTIONMODE_UNRECOGNIZEDFLAGS,
D3D10_MESSAGE_ID_SETEXCEPTIONMODE_INVALIDARG_RETURN,
D3D10_MESSAGE_ID_SETEXCEPTIONMODE_DEVICEREMOVED_RETURN,
D3D10_MESSAGE_ID_REF_SIMULATING_INFINITELY_FAST_HARDWARE,
D3D10_MESSAGE_ID_REF_THREADING_MODE,
D3D10_MESSAGE_ID_REF_UMDRIVER_EXCEPTION,
D3D10_MESSAGE_ID_REF_KMDRIVER_EXCEPTION,
D3D10_MESSAGE_ID_REF_HARDWARE_EXCEPTION,
D3D10_MESSAGE_ID_REF_ACCESSING_INDEXABLE_TEMP_OUT_OF_RANGE,
D3D10_MESSAGE_ID_REF_PROBLEM_PARSING_SHADER,
D3D10_MESSAGE_ID_REF_OUT_OF_MEMORY,
D3D10_MESSAGE_ID_REF_INFO,
D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEXPOS_OVERFLOW,
D3D10_MESSAGE_ID_DEVICE_DRAWINDEXED_INDEXPOS_OVERFLOW,
D3D10_MESSAGE_ID_DEVICE_DRAWINSTANCED_VERTEXPOS_OVERFLOW,
D3D10_MESSAGE_ID_DEVICE_DRAWINSTANCED_INSTANCEPOS_OVERFLOW,
D3D10_MESSAGE_ID_DEVICE_DRAWINDEXEDINSTANCED_INSTANCEPOS_OVERFLOW,
D3D10_MESSAGE_ID_DEVICE_DRAWINDEXEDINSTANCED_INDEXPOS_OVERFLOW,
D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_SHADER_NOT_SET,
D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_SEMANTICNAME_NOT_FOUND,
D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_REGISTERINDEX,
D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_COMPONENTTYPE,
D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_REGISTERMASK,
D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_SYSTEMVALUE,
D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_NEVERWRITTEN_ALWAYSREADS,
D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_NOT_SET,
D3D10_MESSAGE_ID_DEVICE_DRAW_INPUTLAYOUT_NOT_SET,
D3D10_MESSAGE_ID_DEVICE_DRAW_CONSTANT_BUFFER_NOT_SET,
D3D10_MESSAGE_ID_DEVICE_DRAW_CONSTANT_BUFFER_TOO_SMALL,
D3D10_MESSAGE_ID_DEVICE_DRAW_SAMPLER_NOT_SET,
D3D10_MESSAGE_ID_DEVICE_DRAW_SHADERRESOURCEVIEW_NOT_SET,
D3D10_MESSAGE_ID_DEVICE_DRAW_VIEW_DIMENSION_MISMATCH,
D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_STRIDE_TOO_SMALL,
D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_TOO_SMALL,
D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_NOT_SET,
D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_FORMAT_INVALID,
D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_TOO_SMALL,
D3D10_MESSAGE_ID_DEVICE_DRAW_GS_INPUT_PRIMITIVE_MISMATCH,
D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_RETURN_TYPE_MISMATCH,
D3D10_MESSAGE_ID_DEVICE_DRAW_POSITION_NOT_PRESENT,
D3D10_MESSAGE_ID_DEVICE_DRAW_OUTPUT_STREAM_NOT_SET,
D3D10_MESSAGE_ID_DEVICE_DRAW_BOUND_RESOURCE_MAPPED,
D3D10_MESSAGE_ID_DEVICE_DRAW_INVALID_PRIMITIVETOPOLOGY,
D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_OFFSET_UNALIGNED,
D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_STRIDE_UNALIGNED,
D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_OFFSET_UNALIGNED,
D3D10_MESSAGE_ID_DEVICE_DRAW_OUTPUT_STREAM_OFFSET_UNALIGNED,
D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_LD_UNSUPPORTED,
D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_SAMPLE_UNSUPPORTED,
D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_SAMPLE_C_UNSUPPORTED,
D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_MULTISAMPLE_UNSUPPORTED,
D3D10_MESSAGE_ID_DEVICE_DRAW_SO_TARGETS_BOUND_WITHOUT_SOURCE,
D3D10_MESSAGE_ID_DEVICE_DRAW_SO_STRIDE_LARGER_THAN_BUFFER,
D3D10_MESSAGE_ID_DEVICE_DRAW_OM_RENDER_TARGET_DOES_NOT_SUPPORT_BLENDING,
D3D10_MESSAGE_ID_DEVICE_DRAW_OM_DUAL_SOURCE_BLENDING_CAN_ONLY_HAVE_RENDER_TARGET_0,
D3D10_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_AT_FAULT,
D3D10_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_POSSIBLY_AT_FAULT,
D3D10_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_NOT_AT_FAULT,
D3D10_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_INVALIDARG_RETURN,
D3D10_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_OUTOFMEMORY_RETURN,
D3D10_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_BADINTERFACE_RETURN,
D3D10_MESSAGE_ID_DEVICE_DRAW_VIEWPORT_NOT_SET,
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_TRAILING_DIGIT_IN_SEMANTIC,
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_TRAILING_DIGIT_IN_SEMANTIC,
D3D10_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_DENORMFLUSH,
D3D10_MESSAGE_ID_OMSETRENDERTARGETS_INVALIDVIEW,
D3D10_MESSAGE_ID_DEVICE_SETTEXTFILTERSIZE_INVALIDDIMENSIONS,
D3D10_MESSAGE_ID_DEVICE_DRAW_SAMPLER_MISMATCH,
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_TYPE_MISMATCH,
D3D10_MESSAGE_ID_BLENDSTATE_GETDESC_LEGACY,
D3D10_MESSAGE_ID_SHADERRESOURCEVIEW_GETDESC_LEGACY,
D3D10_MESSAGE_ID_CREATEQUERY_OUTOFMEMORY_RETURN,
D3D10_MESSAGE_ID_CREATEPREDICATE_OUTOFMEMORY_RETURN,
D3D10_MESSAGE_ID_CREATECOUNTER_OUTOFRANGE_COUNTER,
D3D10_MESSAGE_ID_CREATECOUNTER_SIMULTANEOUS_ACTIVE_COUNTERS_EXHAUSTED,
D3D10_MESSAGE_ID_CREATECOUNTER_UNSUPPORTED_WELLKNOWN_COUNTER,
D3D10_MESSAGE_ID_CREATECOUNTER_OUTOFMEMORY_RETURN,
D3D10_MESSAGE_ID_CREATECOUNTER_NONEXCLUSIVE_RETURN,
D3D10_MESSAGE_ID_CREATECOUNTER_NULLDESC,
D3D10_MESSAGE_ID_CHECKCOUNTER_OUTOFRANGE_COUNTER,
D3D10_MESSAGE_ID_CHECKCOUNTER_UNSUPPORTED_WELLKNOWN_COUNTER,
D3D10_MESSAGE_ID_SETPREDICATION_INVALID_PREDICATE_STATE,
D3D10_MESSAGE_ID_QUERY_BEGIN_UNSUPPORTED,
D3D10_MESSAGE_ID_PREDICATE_BEGIN_DURING_PREDICATION,
D3D10_MESSAGE_ID_QUERY_BEGIN_DUPLICATE,
D3D10_MESSAGE_ID_QUERY_BEGIN_ABANDONING_PREVIOUS_RESULTS,
D3D10_MESSAGE_ID_PREDICATE_END_DURING_PREDICATION,
D3D10_MESSAGE_ID_QUERY_END_ABANDONING_PREVIOUS_RESULTS,
D3D10_MESSAGE_ID_QUERY_END_WITHOUT_BEGIN,
D3D10_MESSAGE_ID_QUERY_GETDATA_INVALID_DATASIZE,
D3D10_MESSAGE_ID_QUERY_GETDATA_INVALID_FLAGS,
D3D10_MESSAGE_ID_QUERY_GETDATA_INVALID_CALL,
D3D10_MESSAGE_ID_DEVICE_DRAW_PS_OUTPUT_TYPE_MISMATCH,
D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_GATHER_UNSUPPORTED,
D3D10_MESSAGE_ID_DEVICE_DRAW_INVALID_USE_OF_CENTER_MULTISAMPLE_PATTERN,
D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_STRIDE_TOO_LARGE,
D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_INVALIDRANGE,
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_EMPTY_LAYOUT,
D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_SAMPLE_COUNT_MISMATCH,
D3D10_MESSAGE_ID_LIVE_OBJECT_SUMMARY,
D3D10_MESSAGE_ID_LIVE_BUFFER,
D3D10_MESSAGE_ID_LIVE_TEXTURE1D,
D3D10_MESSAGE_ID_LIVE_TEXTURE2D,
D3D10_MESSAGE_ID_LIVE_TEXTURE3D,
D3D10_MESSAGE_ID_LIVE_SHADERRESOURCEVIEW,
D3D10_MESSAGE_ID_LIVE_RENDERTARGETVIEW,
D3D10_MESSAGE_ID_LIVE_DEPTHSTENCILVIEW,
D3D10_MESSAGE_ID_LIVE_VERTEXSHADER,
D3D10_MESSAGE_ID_LIVE_GEOMETRYSHADER,
D3D10_MESSAGE_ID_LIVE_PIXELSHADER,
D3D10_MESSAGE_ID_LIVE_INPUTLAYOUT,
D3D10_MESSAGE_ID_LIVE_SAMPLER,
D3D10_MESSAGE_ID_LIVE_BLENDSTATE,
D3D10_MESSAGE_ID_LIVE_DEPTHSTENCILSTATE,
D3D10_MESSAGE_ID_LIVE_RASTERIZERSTATE,
D3D10_MESSAGE_ID_LIVE_QUERY,
D3D10_MESSAGE_ID_LIVE_PREDICATE,
D3D10_MESSAGE_ID_LIVE_COUNTER,
D3D10_MESSAGE_ID_LIVE_DEVICE,
D3D10_MESSAGE_ID_LIVE_SWAPCHAIN,
D3D10_MESSAGE_ID_D3D10_MESSAGES_END,
D3D10_MESSAGE_ID_D3D10L9_MESSAGES_START = 0x00100000,
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_STENCIL_NO_TWO_SIDED,
D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_DepthBiasClamp_NOT_SUPPORTED,
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_NO_COMPARISON_SUPPORT,
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_EXCESSIVE_ANISOTROPY,
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_BORDER_OUT_OF_RANGE,
D3D10_MESSAGE_ID_VSSETSAMPLERS_NOT_SUPPORTED,
D3D10_MESSAGE_ID_VSSETSAMPLERS_TOO_MANY_SAMPLERS,
D3D10_MESSAGE_ID_PSSETSAMPLERS_TOO_MANY_SAMPLERS,
D3D10_MESSAGE_ID_CREATERESOURCE_NO_ARRAYS,
D3D10_MESSAGE_ID_CREATERESOURCE_NO_VB_AND_IB_BIND,
D3D10_MESSAGE_ID_CREATERESOURCE_NO_TEXTURE_1D,
D3D10_MESSAGE_ID_CREATERESOURCE_DIMENSION_OUT_OF_RANGE,
D3D10_MESSAGE_ID_CREATERESOURCE_NOT_BINDABLE_AS_SHADER_RESOURCE,
D3D10_MESSAGE_ID_OMSETRENDERTARGETS_TOO_MANY_RENDER_TARGETS,
D3D10_MESSAGE_ID_OMSETRENDERTARGETS_NO_DIFFERING_BIT_DEPTHS,
D3D10_MESSAGE_ID_IASETVERTEXBUFFERS_BAD_BUFFER_INDEX,
D3D10_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_TOO_MANY_VIEWPORTS,
D3D10_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_ADJACENCY_UNSUPPORTED,
D3D10_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_TOO_MANY_SCISSORS,
D3D10_MESSAGE_ID_COPYRESOURCE_ONLY_TEXTURE_2D_WITHIN_GPU_MEMORY,
D3D10_MESSAGE_ID_COPYRESOURCE_NO_TEXTURE_3D_READBACK,
D3D10_MESSAGE_ID_COPYRESOURCE_NO_TEXTURE_ONLY_READBACK,
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_UNSUPPORTED_FORMAT,
D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_ALPHA_TO_COVERAGE,
D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_DepthClipEnable_MUST_BE_TRUE,
D3D10_MESSAGE_ID_DRAWINDEXED_STARTINDEXLOCATION_MUST_BE_POSITIVE,
D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_MUST_USE_LOWEST_LOD,
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_MINLOD_MUST_NOT_BE_FRACTIONAL,
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_MAXLOD_MUST_BE_FLT_MAX,
D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_FIRSTARRAYSLICE_MUST_BE_ZERO,
D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_CUBES_MUST_HAVE_6_SIDES,
D3D10_MESSAGE_ID_CREATERESOURCE_NOT_BINDABLE_AS_RENDER_TARGET,
D3D10_MESSAGE_ID_CREATERESOURCE_NO_DWORD_INDEX_BUFFER,
D3D10_MESSAGE_ID_CREATERESOURCE_MSAA_PRECLUDES_SHADER_RESOURCE,
D3D10_MESSAGE_ID_CREATERESOURCE_PRESENTATION_PRECLUDES_SHADER_RESOURCE,
D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_INDEPENDENT_BLEND_ENABLE,
D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_INDEPENDENT_WRITE_MASKS,
D3D10_MESSAGE_ID_CREATERESOURCE_NO_STREAM_OUT,
D3D10_MESSAGE_ID_CREATERESOURCE_ONLY_VB_IB_FOR_BUFFERS,
D3D10_MESSAGE_ID_CREATERESOURCE_NO_AUTOGEN_FOR_VOLUMES,
D3D10_MESSAGE_ID_CREATERESOURCE_DXGI_FORMAT_R8G8B8A8_CANNOT_BE_SHARED,
D3D10_MESSAGE_ID_VSSHADERRESOURCES_NOT_SUPPORTED,
D3D10_MESSAGE_ID_GEOMETRY_SHADER_NOT_SUPPORTED,
D3D10_MESSAGE_ID_STREAM_OUT_NOT_SUPPORTED,
D3D10_MESSAGE_ID_TEXT_FILTER_NOT_SUPPORTED,
D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_SEPARATE_ALPHA_BLEND,
D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_MRT_BLEND,
D3D10_MESSAGE_ID_CREATEBLENDSTATE_OPERATION_NOT_SUPPORTED,
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_NO_MIRRORONCE,
D3D10_MESSAGE_ID_DRAWINSTANCED_NOT_SUPPORTED,
D3D10_MESSAGE_ID_DRAWINDEXEDINSTANCED_NOT_SUPPORTED_BELOW_9_3,
D3D10_MESSAGE_ID_DRAWINDEXED_POINTLIST_UNSUPPORTED,
D3D10_MESSAGE_ID_SETBLENDSTATE_SAMPLE_MASK_CANNOT_BE_ZERO,
D3D10_MESSAGE_ID_CREATERESOURCE_DIMENSION_EXCEEDS_FEATURE_LEVEL_DEFINITION,
D3D10_MESSAGE_ID_CREATERESOURCE_ONLY_SINGLE_MIP_LEVEL_DEPTH_STENCIL_SUPPORTED,
D3D10_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_NEGATIVESCISSOR,
D3D10_MESSAGE_ID_SLOT_ZERO_MUST_BE_D3D10_INPUT_PER_VERTEX_DATA,
D3D10_MESSAGE_ID_CREATERESOURCE_NON_POW_2_MIPMAP,
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_BORDER_NOT_SUPPORTED,
D3D10_MESSAGE_ID_OMSETRENDERTARGETS_NO_SRGB_MRT,
D3D10_MESSAGE_ID_COPYRESOURCE_NO_3D_MISMATCHED_UPDATES,
D3D10_MESSAGE_ID_D3D10L9_MESSAGES_END,
} D3D10_MESSAGE_ID;
typedef struct D3D10_MESSAGE
{
D3D10_MESSAGE_CATEGORY Category;
D3D10_MESSAGE_SEVERITY Severity;
D3D10_MESSAGE_ID ID;
const char *pDescription;
SIZE_T DescriptionByteLength;
} D3D10_MESSAGE;
typedef struct D3D10_INFO_QUEUE_FILTER_DESC
{
UINT NumCategories;
D3D10_MESSAGE_CATEGORY *pCategoryList;
UINT NumSeverities;
D3D10_MESSAGE_SEVERITY *pSeverityList;
UINT NumIDs;
D3D10_MESSAGE_ID *pIDList;
} D3D10_INFO_QUEUE_FILTER_DESC;
typedef struct D3D10_INFO_QUEUE_FILTER
{
D3D10_INFO_QUEUE_FILTER_DESC AllowList;
D3D10_INFO_QUEUE_FILTER_DESC DenyList;
} D3D10_INFO_QUEUE_FILTER;
[
local,
object,
uuid(1b940b17-2642-4d1f-ab1f-b99bad0c395f),
pointer_default(unique)
]
interface ID3D10InfoQueue : IUnknown
{
HRESULT SetMessageCountLimit(
[in] UINT64 limit
);
void ClearStoredMessages();
HRESULT GetMessage(
[in] UINT64 message_idx,
[out] D3D10_MESSAGE *message,
[in, out] SIZE_T *message_size
);
UINT64 GetNumMessagesAllowedByStorageFilter();
UINT64 GetNumMessagesDeniedByStorageFilter();
UINT64 GetNumStoredMessages();
UINT64 GetNumStoredMessagesAllowedByRetrievalFilter();
UINT64 GetNumMessagesDiscardedByMessageCountLimit();
UINT64 GetMessageCountLimit();
HRESULT AddStorageFilterEntries(
[in] D3D10_INFO_QUEUE_FILTER *filter
);
HRESULT GetStorageFilter(
[out] D3D10_INFO_QUEUE_FILTER *filter,
[in, out] SIZE_T *filter_size
);
void ClearStorageFilter();
HRESULT PushEmptyStorageFilter();
HRESULT PushCopyOfStorageFilter();
HRESULT PushStorageFilter(
[in] D3D10_INFO_QUEUE_FILTER *filter
);
void PopStorageFilter();
UINT GetStorageFilterStackSize();
HRESULT AddRetrievalFilterEntries(
[in] D3D10_INFO_QUEUE_FILTER *filter
);
HRESULT GetRetrievalFilter(
[out] D3D10_INFO_QUEUE_FILTER *filter,
[in, out] SIZE_T *filterbytelength
);
void ClearRetrievalFilter();
HRESULT PushEmptyRetrievalFilter();
HRESULT PushCopyOfRetrievalFilter();
HRESULT PushRetrievalFilter(
[in] D3D10_INFO_QUEUE_FILTER *filter
);
void PopRetrievalFilter();
UINT GetRetrievalFilterStackSize();
HRESULT AddMessage(
[in] D3D10_MESSAGE_CATEGORY category,
[in] D3D10_MESSAGE_SEVERITY severity,
[in] D3D10_MESSAGE_ID id,
[in] const char *description
);
HRESULT AddApplicationMessage(
[in] D3D10_MESSAGE_SEVERITY severity,
[in] const char *description
);
HRESULT SetBreakOnCategory(
[in] D3D10_MESSAGE_CATEGORY category,
[in] BOOL enable
);
HRESULT SetBreakOnSeverity(
[in] D3D10_MESSAGE_SEVERITY severity,
[in] BOOL enable
);
HRESULT SetBreakOnID(
[in] D3D10_MESSAGE_ID id,
[in] BOOL enable
);
BOOL GetBreakOnCategory(
[in] D3D10_MESSAGE_CATEGORY category
);
BOOL GetBreakOnSeverity(
[in] D3D10_MESSAGE_SEVERITY severity
);
BOOL GetBreakOnID(
[in] D3D10_MESSAGE_ID id
);
void SetMuteDebugOutput(
[in] BOOL mute
);
BOOL GetMuteDebugOutput();
}

View File

@ -1,4 +1,4 @@
/*** Autogenerated by WIDL 4.19 from direct-x/include/d3d11.idl - Do not edit ***/
/*** Autogenerated by WIDL 5.16 from include/d3d11.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__
@ -870,6 +870,60 @@ typedef enum D3D11_VIDEO_PROCESSOR_ROTATION {
D3D11_VIDEO_PROCESSOR_ROTATION_180 = 2,
D3D11_VIDEO_PROCESSOR_ROTATION_270 = 3
} D3D11_VIDEO_PROCESSOR_ROTATION;
typedef enum D3D11_VIDEO_PROCESSOR_DEVICE_CAPS {
D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_LINEAR_SPACE = 0x1,
D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_xvYCC = 0x2,
D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_RGB_RANGE_CONVERSION = 0x4,
D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_YCbCr_MATRIX_CONVERSION = 0x8,
D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_NOMINAL_RANGE = 0x10
} D3D11_VIDEO_PROCESSOR_DEVICE_CAPS;
typedef enum D3D11_VIDEO_PROCESSOR_FEATURE_CAPS {
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ALPHA_FILL = 0x1,
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_CONSTRICTION = 0x2,
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_LUMA_KEY = 0x4,
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ALPHA_PALETTE = 0x8,
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_LEGACY = 0x10,
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_STEREO = 0x20,
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ROTATION = 0x40,
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ALPHA_STREAM = 0x80,
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_PIXEL_ASPECT_RATIO = 0x100,
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_MIRROR = 0x200,
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_SHADER_USAGE = 0x400,
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_METADATA_HDR10 = 0x800
} D3D11_VIDEO_PROCESSOR_FEATURE_CAPS;
typedef enum D3D11_VIDEO_PROCESSOR_FILTER_CAPS {
D3D11_VIDEO_PROCESSOR_FILTER_CAPS_BRIGHTNESS = 0x1,
D3D11_VIDEO_PROCESSOR_FILTER_CAPS_CONTRAST = 0x2,
D3D11_VIDEO_PROCESSOR_FILTER_CAPS_HUE = 0x4,
D3D11_VIDEO_PROCESSOR_FILTER_CAPS_SATURATION = 0x8,
D3D11_VIDEO_PROCESSOR_FILTER_CAPS_NOISE_REDUCTION = 0x10,
D3D11_VIDEO_PROCESSOR_FILTER_CAPS_EDGE_ENHANCEMENT = 0x20,
D3D11_VIDEO_PROCESSOR_FILTER_CAPS_ANAMORPHIC_SCALING = 0x40,
D3D11_VIDEO_PROCESSOR_FILTER_CAPS_STEREO_ADJUSTMENT = 0x80
} D3D11_VIDEO_PROCESSOR_FILTER_CAPS;
typedef enum D3D11_VIDEO_PROCESSOR_FORMAT_CAPS {
D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_RGB_INTERLACED = 0x1,
D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_RGB_PROCAMP = 0x2,
D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_RGB_LUMA_KEY = 0x4,
D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_PALETTE_INTERLACED = 0x8
} D3D11_VIDEO_PROCESSOR_FORMAT_CAPS;
typedef enum D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS {
D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_DENOISE = 0x1,
D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_DERINGING = 0x2,
D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_EDGE_ENHANCEMENT = 0x4,
D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_COLOR_CORRECTION = 0x8,
D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_FLESH_TONE_MAPPING = 0x10,
D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_IMAGE_STABILIZATION = 0x20,
D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_SUPER_RESOLUTION = 0x40,
D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_ANAMORPHIC_SCALING = 0x80
} D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS;
typedef enum D3D11_VIDEO_PROCESSOR_STEREO_CAPS {
D3D11_VIDEO_PROCESSOR_STEREO_CAPS_MONO_OFFSET = 0x1,
D3D11_VIDEO_PROCESSOR_STEREO_CAPS_ROW_INTERLEAVED = 0x2,
D3D11_VIDEO_PROCESSOR_STEREO_CAPS_COLUMN_INTERLEAVED = 0x4,
D3D11_VIDEO_PROCESSOR_STEREO_CAPS_CHECKERBOARD = 0x8,
D3D11_VIDEO_PROCESSOR_STEREO_CAPS_FLIP_MODE = 0x10
} D3D11_VIDEO_PROCESSOR_STEREO_CAPS;
typedef enum D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS {
D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BLEND = 0x1,
D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BOB = 0x2,
@ -1218,7 +1272,25 @@ typedef enum D3D11_FILTER {
D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x91,
D3D11_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = 0x94,
D3D11_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = 0x95,
D3D11_FILTER_COMPARISON_ANISOTROPIC = 0xd5
D3D11_FILTER_COMPARISON_ANISOTROPIC = 0xd5,
D3D11_FILTER_MINIMUM_MIN_MAG_MIP_POINT = 0x100,
D3D11_FILTER_MINIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x101,
D3D11_FILTER_MINIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x104,
D3D11_FILTER_MINIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x105,
D3D11_FILTER_MINIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x110,
D3D11_FILTER_MINIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x111,
D3D11_FILTER_MINIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x114,
D3D11_FILTER_MINIMUM_MIN_MAG_MIP_LINEAR = 0x115,
D3D11_FILTER_MINIMUM_ANISOTROPIC = 0x155,
D3D11_FILTER_MAXIMUM_MIN_MAG_MIP_POINT = 0x180,
D3D11_FILTER_MAXIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x181,
D3D11_FILTER_MAXIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x184,
D3D11_FILTER_MAXIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x185,
D3D11_FILTER_MAXIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x190,
D3D11_FILTER_MAXIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x191,
D3D11_FILTER_MAXIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x194,
D3D11_FILTER_MAXIMUM_MIN_MAG_MIP_LINEAR = 0x195,
D3D11_FILTER_MAXIMUM_ANISOTROPIC = 0x1d5
} D3D11_FILTER;
typedef enum D3D11_DSV_FLAG {
D3D11_DSV_READ_ONLY_DEPTH = 0x1,
@ -1304,7 +1376,10 @@ typedef enum D3D11_RESOURCE_MISC_FLAG {
D3D11_RESOURCE_MISC_RESTRICTED_CONTENT = 0x1000,
D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE = 0x2000,
D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER = 0x4000,
D3D11_RESOURCE_MISC_GUARDED = 0x8000
D3D11_RESOURCE_MISC_GUARDED = 0x8000,
D3D11_RESOURCE_MISC_TILE_POOL = 0x20000,
D3D11_RESOURCE_MISC_TILED = 0x40000,
D3D11_RESOURCE_MISC_HW_PROTECTED = 0x80000
} D3D11_RESOURCE_MISC_FLAG;
typedef struct D3D11_QUERY_DESC {
D3D11_QUERY Query;
@ -10852,6 +10927,10 @@ typedef enum D3D11_CREATE_DEVICE_FLAG {
D3D11_CREATE_DEVICE_DISABLE_GPU_TIMEOUT = 0x100,
D3D11_CREATE_DEVICE_VIDEO_SUPPORT = 0x800
} D3D11_CREATE_DEVICE_FLAG;
typedef enum D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT {
D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_INPUT = 0x1,
D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_OUTPUT = 0x2
} D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT;
#define D3D11_SDK_VERSION (7)
#include <d3d10_1.h>

View File

@ -360,6 +360,72 @@ typedef enum D3D11_VIDEO_PROCESSOR_ROTATION
D3D11_VIDEO_PROCESSOR_ROTATION_270 = 3,
} D3D11_VIDEO_PROCESSOR_ROTATION;
typedef enum D3D11_VIDEO_PROCESSOR_DEVICE_CAPS
{
D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_LINEAR_SPACE = 0x00000001,
D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_xvYCC = 0x00000002,
D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_RGB_RANGE_CONVERSION = 0x00000004,
D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_YCbCr_MATRIX_CONVERSION = 0x00000008,
D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_NOMINAL_RANGE = 0x00000010,
} D3D11_VIDEO_PROCESSOR_DEVICE_CAPS;
typedef enum D3D11_VIDEO_PROCESSOR_FEATURE_CAPS
{
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ALPHA_FILL = 0x00000001,
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_CONSTRICTION = 0x00000002,
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_LUMA_KEY = 0x00000004,
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ALPHA_PALETTE = 0x00000008,
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_LEGACY = 0x00000010,
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_STEREO = 0x00000020,
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ROTATION = 0x00000040,
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ALPHA_STREAM = 0x00000080,
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_PIXEL_ASPECT_RATIO = 0x00000100,
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_MIRROR = 0x00000200,
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_SHADER_USAGE = 0x00000400,
D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_METADATA_HDR10 = 0x00000800,
} D3D11_VIDEO_PROCESSOR_FEATURE_CAPS;
typedef enum D3D11_VIDEO_PROCESSOR_FILTER_CAPS
{
D3D11_VIDEO_PROCESSOR_FILTER_CAPS_BRIGHTNESS = 0x00000001,
D3D11_VIDEO_PROCESSOR_FILTER_CAPS_CONTRAST = 0x00000002,
D3D11_VIDEO_PROCESSOR_FILTER_CAPS_HUE = 0x00000004,
D3D11_VIDEO_PROCESSOR_FILTER_CAPS_SATURATION = 0x00000008,
D3D11_VIDEO_PROCESSOR_FILTER_CAPS_NOISE_REDUCTION = 0x00000010,
D3D11_VIDEO_PROCESSOR_FILTER_CAPS_EDGE_ENHANCEMENT = 0x00000020,
D3D11_VIDEO_PROCESSOR_FILTER_CAPS_ANAMORPHIC_SCALING = 0x00000040,
D3D11_VIDEO_PROCESSOR_FILTER_CAPS_STEREO_ADJUSTMENT = 0x00000080,
} D3D11_VIDEO_PROCESSOR_FILTER_CAPS;
typedef enum D3D11_VIDEO_PROCESSOR_FORMAT_CAPS
{
D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_RGB_INTERLACED = 0x00000001,
D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_RGB_PROCAMP = 0x00000002,
D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_RGB_LUMA_KEY = 0x00000004,
D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_PALETTE_INTERLACED = 0x00000008,
} D3D11_VIDEO_PROCESSOR_FORMAT_CAPS;
typedef enum D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS
{
D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_DENOISE = 0x00000001,
D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_DERINGING = 0x00000002,
D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_EDGE_ENHANCEMENT = 0x00000004,
D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_COLOR_CORRECTION = 0x00000008,
D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_FLESH_TONE_MAPPING = 0x00000010,
D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_IMAGE_STABILIZATION = 0x00000020,
D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_SUPER_RESOLUTION = 0x00000040,
D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_ANAMORPHIC_SCALING = 0x00000080,
} D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS;
typedef enum D3D11_VIDEO_PROCESSOR_STEREO_CAPS
{
D3D11_VIDEO_PROCESSOR_STEREO_CAPS_MONO_OFFSET = 0x00000001,
D3D11_VIDEO_PROCESSOR_STEREO_CAPS_ROW_INTERLEAVED = 0x00000002,
D3D11_VIDEO_PROCESSOR_STEREO_CAPS_COLUMN_INTERLEAVED = 0x00000004,
D3D11_VIDEO_PROCESSOR_STEREO_CAPS_CHECKERBOARD = 0x00000008,
D3D11_VIDEO_PROCESSOR_STEREO_CAPS_FLIP_MODE = 0x00000010,
} D3D11_VIDEO_PROCESSOR_STEREO_CAPS;
typedef enum D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS
{
D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BLEND = 0x01,
@ -809,7 +875,25 @@ typedef enum D3D11_FILTER
D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x91,
D3D11_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = 0x94,
D3D11_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = 0x95,
D3D11_FILTER_COMPARISON_ANISOTROPIC = 0xd5
D3D11_FILTER_COMPARISON_ANISOTROPIC = 0xd5,
D3D11_FILTER_MINIMUM_MIN_MAG_MIP_POINT = 0x100,
D3D11_FILTER_MINIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x101,
D3D11_FILTER_MINIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x104,
D3D11_FILTER_MINIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x105,
D3D11_FILTER_MINIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x110,
D3D11_FILTER_MINIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x111,
D3D11_FILTER_MINIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x114,
D3D11_FILTER_MINIMUM_MIN_MAG_MIP_LINEAR = 0x115,
D3D11_FILTER_MINIMUM_ANISOTROPIC = 0x155,
D3D11_FILTER_MAXIMUM_MIN_MAG_MIP_POINT = 0x180,
D3D11_FILTER_MAXIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x181,
D3D11_FILTER_MAXIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x184,
D3D11_FILTER_MAXIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x185,
D3D11_FILTER_MAXIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x190,
D3D11_FILTER_MAXIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x191,
D3D11_FILTER_MAXIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x194,
D3D11_FILTER_MAXIMUM_MIN_MAG_MIP_LINEAR = 0x195,
D3D11_FILTER_MAXIMUM_ANISOTROPIC = 0x1d5
} D3D11_FILTER;
typedef enum D3D11_DSV_FLAG
@ -921,7 +1005,10 @@ typedef enum D3D11_RESOURCE_MISC_FLAG
D3D11_RESOURCE_MISC_RESTRICTED_CONTENT = 0x00001000L,
D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE = 0x00002000L,
D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER = 0x00004000L,
D3D11_RESOURCE_MISC_GUARDED = 0x00008000L
D3D11_RESOURCE_MISC_GUARDED = 0x00008000L,
D3D11_RESOURCE_MISC_TILE_POOL = 0x00020000L,
D3D11_RESOURCE_MISC_TILED = 0x00040000L,
D3D11_RESOURCE_MISC_HW_PROTECTED = 0x00080000L
} D3D11_RESOURCE_MISC_FLAG;
typedef struct D3D11_QUERY_DESC
@ -3793,6 +3880,12 @@ typedef enum D3D11_CREATE_DEVICE_FLAG {
D3D11_CREATE_DEVICE_VIDEO_SUPPORT = 0x0800
} D3D11_CREATE_DEVICE_FLAG;
typedef enum D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT
{
D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_INPUT = 0x0001,
D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_OUTPUT = 0x0002,
} D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT;
const UINT D3D11_SDK_VERSION = 7;
cpp_quote("#include <d3d10_1.h>")

View File

@ -1,4 +1,4 @@
/*** Autogenerated by WIDL 4.19 from direct-x/include/d3d11_1.idl - Do not edit ***/
/*** Autogenerated by WIDL 5.16 from include/d3d11_1.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__

View File

@ -1,4 +1,4 @@
/*** Autogenerated by WIDL 4.19 from direct-x/include/d3d11_2.idl - Do not edit ***/
/*** Autogenerated by WIDL 5.16 from include/d3d11_2.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__

View File

@ -1,4 +1,4 @@
/*** Autogenerated by WIDL 4.19 from direct-x/include/d3d11_3.idl - Do not edit ***/
/*** Autogenerated by WIDL 5.16 from include/d3d11_3.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__

View File

@ -1,4 +1,4 @@
/*** Autogenerated by WIDL 4.19 from direct-x/include/d3d11_4.idl - Do not edit ***/
/*** Autogenerated by WIDL 5.16 from include/d3d11_4.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__

View File

@ -1,4 +1,4 @@
/*** Autogenerated by WIDL 4.19 from direct-x/include/d3d11sdklayers.idl - Do not edit ***/
/*** Autogenerated by WIDL 5.16 from include/d3d11sdklayers.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__
@ -26,6 +26,14 @@ interface ID3D11Debug;
#endif /* __cplusplus */
#endif
#ifndef __ID3D11SwitchToRef_FWD_DEFINED__
#define __ID3D11SwitchToRef_FWD_DEFINED__
typedef interface ID3D11SwitchToRef ID3D11SwitchToRef;
#ifdef __cplusplus
interface ID3D11SwitchToRef;
#endif /* __cplusplus */
#endif
#ifndef __ID3D11InfoQueue_FWD_DEFINED__
#define __ID3D11InfoQueue_FWD_DEFINED__
typedef interface ID3D11InfoQueue ID3D11InfoQueue;
@ -44,6 +52,20 @@ interface ID3D11InfoQueue;
extern "C" {
#endif
#define D3D11_DEBUG_FEATURE_FLUSH_PER_RENDER_OP (0x1)
#define D3D11_DEBUG_FEATURE_FINISH_PER_RENDER_OP (0x2)
#define D3D11_DEBUG_FEATURE_PRESENT_PER_RENDER_OP (0x4)
#define D3D11_DEBUG_FEATURE_ALWAYS_DISCARD_OFFERED_RESOURCE (0x8)
#define D3D11_DEBUG_FEATURE_NEVER_DISCARD_OFFERED_RESOURCE (0x10)
#define D3D11_DEBUG_FEATURE_AVOID_BEHAVIOR_CHANGING_DEBUG_AIDS (0x40)
#define D3D11_DEBUG_FEATURE_DISABLE_TILED_RESOURCE_MAPPING_TRACKING_AND_VALIDATION (0x80)
typedef enum D3D11_MESSAGE_CATEGORY {
D3D11_MESSAGE_CATEGORY_APPLICATION_DEFINED = 0,
D3D11_MESSAGE_CATEGORY_MISCELLANEOUS = 1,
@ -1389,6 +1411,93 @@ static FORCEINLINE HRESULT ID3D11Debug_ValidateContextForDispatch(ID3D11Debug* T
#endif /* __ID3D11Debug_INTERFACE_DEFINED__ */
/*****************************************************************************
* ID3D11SwitchToRef interface
*/
#ifndef __ID3D11SwitchToRef_INTERFACE_DEFINED__
#define __ID3D11SwitchToRef_INTERFACE_DEFINED__
DEFINE_GUID(IID_ID3D11SwitchToRef, 0x1ef337e3, 0x58e7, 0x4f83, 0xa6,0x92, 0xdb,0x22,0x1f,0x5e,0xd4,0x7e);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("1ef337e3-58e7-4f83-a692-db221f5ed47e")
ID3D11SwitchToRef : public IUnknown
{
virtual WINBOOL STDMETHODCALLTYPE SetUseRef(
WINBOOL useref) = 0;
virtual WINBOOL STDMETHODCALLTYPE GetUseRef(
) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(ID3D11SwitchToRef, 0x1ef337e3, 0x58e7, 0x4f83, 0xa6,0x92, 0xdb,0x22,0x1f,0x5e,0xd4,0x7e)
#endif
#else
typedef struct ID3D11SwitchToRefVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
ID3D11SwitchToRef *This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
ID3D11SwitchToRef *This);
ULONG (STDMETHODCALLTYPE *Release)(
ID3D11SwitchToRef *This);
/*** ID3D11SwitchToRef methods ***/
WINBOOL (STDMETHODCALLTYPE *SetUseRef)(
ID3D11SwitchToRef *This,
WINBOOL useref);
WINBOOL (STDMETHODCALLTYPE *GetUseRef)(
ID3D11SwitchToRef *This);
END_INTERFACE
} ID3D11SwitchToRefVtbl;
interface ID3D11SwitchToRef {
CONST_VTBL ID3D11SwitchToRefVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define ID3D11SwitchToRef_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define ID3D11SwitchToRef_AddRef(This) (This)->lpVtbl->AddRef(This)
#define ID3D11SwitchToRef_Release(This) (This)->lpVtbl->Release(This)
/*** ID3D11SwitchToRef methods ***/
#define ID3D11SwitchToRef_SetUseRef(This,useref) (This)->lpVtbl->SetUseRef(This,useref)
#define ID3D11SwitchToRef_GetUseRef(This) (This)->lpVtbl->GetUseRef(This)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT ID3D11SwitchToRef_QueryInterface(ID3D11SwitchToRef* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG ID3D11SwitchToRef_AddRef(ID3D11SwitchToRef* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG ID3D11SwitchToRef_Release(ID3D11SwitchToRef* This) {
return This->lpVtbl->Release(This);
}
/*** ID3D11SwitchToRef methods ***/
static FORCEINLINE WINBOOL ID3D11SwitchToRef_SetUseRef(ID3D11SwitchToRef* This,WINBOOL useref) {
return This->lpVtbl->SetUseRef(This,useref);
}
static FORCEINLINE WINBOOL ID3D11SwitchToRef_GetUseRef(ID3D11SwitchToRef* This) {
return This->lpVtbl->GetUseRef(This);
}
#endif
#endif
#endif
#endif /* __ID3D11SwitchToRef_INTERFACE_DEFINED__ */
/*****************************************************************************
* ID3D11InfoQueue interface
*/

View File

@ -20,6 +20,14 @@ import "oaidl.idl";
import "ocidl.idl";
import "d3d11.idl";
const UINT D3D11_DEBUG_FEATURE_FLUSH_PER_RENDER_OP = 0x1;
const UINT D3D11_DEBUG_FEATURE_FINISH_PER_RENDER_OP = 0x2;
const UINT D3D11_DEBUG_FEATURE_PRESENT_PER_RENDER_OP = 0x4;
const UINT D3D11_DEBUG_FEATURE_ALWAYS_DISCARD_OFFERED_RESOURCE = 0x8;
const UINT D3D11_DEBUG_FEATURE_NEVER_DISCARD_OFFERED_RESOURCE = 0x10;
const UINT D3D11_DEBUG_FEATURE_AVOID_BEHAVIOR_CHANGING_DEBUG_AIDS = 0x40;
const UINT D3D11_DEBUG_FEATURE_DISABLE_TILED_RESOURCE_MAPPING_TRACKING_AND_VALIDATION = 0x80;
typedef enum D3D11_MESSAGE_CATEGORY {
D3D11_MESSAGE_CATEGORY_APPLICATION_DEFINED,
D3D11_MESSAGE_CATEGORY_MISCELLANEOUS,
@ -1231,6 +1239,19 @@ interface ID3D11Debug : IUnknown {
HRESULT ValidateContextForDispatch(ID3D11DeviceContext *pContext);
}
[
object,
uuid(1ef337e3-58e7-4f83-a692-db221f5ed47e),
local,
pointer_default(unique)
]
interface ID3D11SwitchToRef : IUnknown {
BOOL SetUseRef(
[in] BOOL useref
);
BOOL GetUseRef();
}
[
object,
uuid(6543dbb6-1b48-42f5-ab82-e97ec74326f6),

View File

@ -131,6 +131,9 @@ typedef struct _D3D11_SIGNATURE_PARAMETER_DESC
BYTE Mask;
BYTE ReadWriteMask;
UINT Stream;
#if D3D_COMPILER_VERSION >= 46
D3D_MIN_PRECISION MinPrecision;
#endif
} D3D11_SIGNATURE_PARAMETER_DESC;
DEFINE_GUID(IID_ID3D11ShaderReflectionType, 0x6e6ffa6a, 0x9bae, 0x4613, 0xa5, 0x1e, 0x91, 0x65, 0x2d, 0x50, 0x8c, 0x21);

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,296 @@
/*
* Copyright 2020 Paul Gofman for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
import "oaidl.idl";
import "ocidl.idl";
import "d3dcommon.idl";
typedef struct _D3D12_SHADER_DESC
{
UINT Version;
const char *Creator;
UINT Flags;
UINT ConstantBuffers;
UINT BoundResources;
UINT InputParameters;
UINT OutputParameters;
UINT InstructionCount;
UINT TempRegisterCount;
UINT TempArrayCount;
UINT DefCount;
UINT DclCount;
UINT TextureNormalInstructions;
UINT TextureLoadInstructions;
UINT TextureCompInstructions;
UINT TextureBiasInstructions;
UINT TextureGradientInstructions;
UINT FloatInstructionCount;
UINT IntInstructionCount;
UINT UintInstructionCount;
UINT StaticFlowControlCount;
UINT DynamicFlowControlCount;
UINT MacroInstructionCount;
UINT ArrayInstructionCount;
UINT CutInstructionCount;
UINT EmitInstructionCount;
D3D_PRIMITIVE_TOPOLOGY GSOutputTopology;
UINT GSMaxOutputVertexCount;
D3D_PRIMITIVE InputPrimitive;
UINT PatchConstantParameters;
UINT cGSInstanceCount;
UINT cControlPoints;
D3D_TESSELLATOR_OUTPUT_PRIMITIVE HSOutputPrimitive;
D3D_TESSELLATOR_PARTITIONING HSPartitioning;
D3D_TESSELLATOR_DOMAIN TessellatorDomain;
UINT cBarrierInstructions;
UINT cInterlockedInstructions;
UINT cTextureStoreInstructions;
} D3D12_SHADER_DESC;
typedef struct _D3D12_SHADER_VARIABLE_DESC
{
const char *Name;
UINT StartOffset;
UINT Size;
UINT uFlags;
void *DefaultValue;
UINT StartTexture;
UINT TextureSize;
UINT StartSampler;
UINT SamplerSize;
} D3D12_SHADER_VARIABLE_DESC;
typedef struct _D3D12_SHADER_TYPE_DESC
{
D3D_SHADER_VARIABLE_CLASS Class;
D3D_SHADER_VARIABLE_TYPE Type;
UINT Rows;
UINT Columns;
UINT Elements;
UINT Members;
UINT Offset;
const char *Name;
} D3D12_SHADER_TYPE_DESC;
typedef struct _D3D12_SHADER_BUFFER_DESC
{
const char *Name;
D3D_CBUFFER_TYPE Type;
UINT Variables;
UINT Size;
UINT uFlags;
} D3D12_SHADER_BUFFER_DESC;
typedef struct _D3D12_SHADER_INPUT_BIND_DESC
{
const char *Name;
D3D_SHADER_INPUT_TYPE Type;
UINT BindPoint;
UINT BindCount;
UINT uFlags;
D3D_RESOURCE_RETURN_TYPE ReturnType;
D3D_SRV_DIMENSION Dimension;
UINT NumSamples;
UINT Space;
UINT uID;
} D3D12_SHADER_INPUT_BIND_DESC;
typedef struct _D3D12_SIGNATURE_PARAMETER_DESC
{
const char *SemanticName;
UINT SemanticIndex;
UINT Register;
D3D_NAME SystemValueType;
D3D_REGISTER_COMPONENT_TYPE ComponentType;
BYTE Mask;
BYTE ReadWriteMask;
UINT Stream;
D3D_MIN_PRECISION MinPrecision;
} D3D12_SIGNATURE_PARAMETER_DESC;
typedef struct _D3D12_PARAMETER_DESC
{
const char *Name;
const char *SemanticName;
D3D_SHADER_VARIABLE_TYPE Type;
D3D_SHADER_VARIABLE_CLASS Class;
UINT Rows;
UINT Columns;
D3D_INTERPOLATION_MODE InterpolationMode;
D3D_PARAMETER_FLAGS Flags;
UINT FirstInRegister;
UINT FirstInComponent;
UINT FirstOutRegister;
UINT FirstOutComponent;
} D3D12_PARAMETER_DESC;
typedef struct _D3D12_FUNCTION_DESC
{
UINT Version;
const char *Creator;
UINT Flags;
UINT ConstantBuffers;
UINT BoundResources;
UINT InstructionCount;
UINT TempRegisterCount;
UINT TempArrayCount;
UINT DefCount;
UINT DclCount;
UINT TextureNormalInstructions;
UINT TextureLoadInstructions;
UINT TextureCompInstructions;
UINT TextureBiasInstructions;
UINT TextureGradientInstructions;
UINT FloatInstructionCount;
UINT IntInstructionCount;
UINT UintInstructionCount;
UINT StaticFlowControlCount;
UINT DynamicFlowControlCount;
UINT MacroInstructionCount;
UINT ArrayInstructionCount;
UINT MovInstructionCount;
UINT MovcInstructionCount;
UINT ConversionInstructionCount;
UINT BitwiseInstructionCount;
D3D_FEATURE_LEVEL MinFeatureLevel;
UINT64 RequiredFeatureFlags;
const char *Name;
INT FunctionParameterCount;
BOOL HasReturn;
BOOL Has10Level9VertexShader;
BOOL Has10Level9PixelShader;
} D3D12_FUNCTION_DESC;
typedef struct _D3D12_LIBRARY_DESC
{
const char *Creator;
UINT Flags;
UINT FunctionCount;
} D3D12_LIBRARY_DESC;
interface ID3D12ShaderReflectionConstantBuffer;
[
uuid(e913c351-783d-48ca-a1d1-4f306284ad56),
object,
local,
]
interface ID3D12ShaderReflectionType
{
HRESULT GetDesc(D3D12_SHADER_TYPE_DESC *desc);
ID3D12ShaderReflectionType *GetMemberTypeByIndex(UINT index);
ID3D12ShaderReflectionType *GetMemberTypeByName(const char *name);
const char *GetMemberTypeName(UINT index);
HRESULT IsEqual(ID3D12ShaderReflectionType *type);
ID3D12ShaderReflectionType *GetSubType();
ID3D12ShaderReflectionType *GetBaseClass();
UINT GetNumInterfaces();
ID3D12ShaderReflectionType *GetInterfaceByIndex(UINT index);
HRESULT IsOfType(ID3D12ShaderReflectionType *type);
HRESULT ImplementsInterface(ID3D12ShaderReflectionType *base);
}
[
uuid(8337a8a6-a216-444a-b2f4-314733a73aea),
object,
local,
]
interface ID3D12ShaderReflectionVariable
{
HRESULT GetDesc(D3D12_SHADER_VARIABLE_DESC *desc);
ID3D12ShaderReflectionType *GetType();
ID3D12ShaderReflectionConstantBuffer *GetBuffer();
UINT GetInterfaceSlot(UINT index);
}
[
uuid(c59598b4-48b3-4869-b9b1-b1618b14a8b7),
object,
local,
]
interface ID3D12ShaderReflectionConstantBuffer
{
HRESULT GetDesc(D3D12_SHADER_BUFFER_DESC *desc);
ID3D12ShaderReflectionVariable *GetVariableByIndex(UINT index);
ID3D12ShaderReflectionVariable *GetVariableByName(const char *name);
}
[
uuid(5a58797d-a72c-478d-8ba2-efc6b0efe88e),
object,
local,
]
interface ID3D12ShaderReflection : IUnknown
{
HRESULT GetDesc(D3D12_SHADER_DESC *desc);
ID3D12ShaderReflectionConstantBuffer *GetConstantBufferByIndex(UINT index);
ID3D12ShaderReflectionConstantBuffer *GetConstantBufferByName(const char *name);
HRESULT GetResourceBindingDesc(UINT index, D3D12_SHADER_INPUT_BIND_DESC *desc);
HRESULT GetInputParameterDesc(UINT index, D3D12_SIGNATURE_PARAMETER_DESC *desc);
HRESULT GetOutputParameterDesc(UINT index, D3D12_SIGNATURE_PARAMETER_DESC *desc);
HRESULT GetPatchConstantParameterDesc(UINT index, D3D12_SIGNATURE_PARAMETER_DESC *desc);
ID3D12ShaderReflectionVariable *GetVariableByName(const char *name);
HRESULT GetResourceBindingDescByName(const char *name, D3D12_SHADER_INPUT_BIND_DESC *desc);
UINT GetMovInstructionCount();
UINT GetMovcInstructionCount();
UINT GetConversionInstructionCount();
UINT GetBitwiseInstructionCount();
D3D_PRIMITIVE GetGSInputPrimitive();
BOOL IsSampleFrequencyShader();
UINT GetNumInterfaceSlots();
HRESULT GetMinFeatureLevel(D3D_FEATURE_LEVEL *level);
UINT GetThreadGroupSize(UINT *sizex, UINT *sizey, UINT *sizez);
UINT64 GetRequiresFlags();
}
[
uuid(ec25f42d-7006-4f2b-b33e-02cc3375733f),
object,
local,
]
interface ID3D12FunctionParameterReflection
{
HRESULT GetDesc(D3D12_PARAMETER_DESC *desc);
}
[
uuid(1108795c-2772-4ba9-b2a8-d464dc7e2799),
object,
local,
]
interface ID3D12FunctionReflection
{
HRESULT GetDesc(D3D12_FUNCTION_DESC *desc);
ID3D12ShaderReflectionConstantBuffer *GetConstantBufferByIndex(UINT index);
ID3D12ShaderReflectionConstantBuffer *GetConstantBufferByName(const char *name);
HRESULT GetResourceBindingDesc(UINT index, D3D12_SHADER_INPUT_BIND_DESC *desc);
ID3D12ShaderReflectionVariable *GetVariableByName(const char *name);
HRESULT GetResourceBindingDescByName(const char *name, D3D12_SHADER_INPUT_BIND_DESC *desc);
ID3D12FunctionParameterReflection *GetFunctionParameter(INT index);
}
[
uuid(8e349d19-54db-4a56-9dc9-119d87bdb804),
object,
local,
]
interface ID3D12LibraryReflection : IUnknown
{
HRESULT GetDesc(D3D12_LIBRARY_DESC *desc);
ID3D12FunctionReflection *GetFunctionByIndex(INT index);
}

View File

@ -407,6 +407,49 @@ typedef struct _D3DCAPS9 {
} D3DCAPS9;
#ifndef D3D_DISABLE_9EX
#define D3DOVERLAYCAPS_FULLRANGERGB 0x00000001
#define D3DOVERLAYCAPS_LIMITEDRANGERGB 0x00000002
#define D3DOVERLAYCAPS_YCbCr_BT601 0x00000004
#define D3DOVERLAYCAPS_YCbCr_BT709 0x00000008
#define D3DOVERLAYCAPS_YCbCr_BT601_xvYCC 0x00000010
#define D3DOVERLAYCAPS_YCbCr_BT709_xvYCC 0x00000020
#define D3DOVERLAYCAPS_STRETCHX 0x00000040
#define D3DOVERLAYCAPS_STRETCHY 0x00000080
typedef struct _D3DOVERLAYCAPS {
UINT Caps;
UINT MaxOverlayDisplayWidth;
UINT MaxOverlayDisplayHeight;
} D3DOVERLAYCAPS;
#define D3DCPCAPS_SOFTWARE 0x00000001
#define D3DCPCAPS_HARDWARE 0x00000002
#define D3DCPCAPS_PROTECTIONALWAYSON 0x00000004
#define D3DCPCAPS_PARTIALDECRYPTION 0x00000008
#define D3DCPCAPS_CONTENTKEY 0x00000010
#define D3DCPCAPS_FRESHENSESSIONKEY 0x00000020
#define D3DCPCAPS_ENCRYPTEDREADBACK 0x00000040
#define D3DCPCAPS_ENCRYPTEDREADBACKKEY 0x00000080
#define D3DCPCAPS_SEQUENTIAL_CTR_IV 0x00000100
#define D3DCPCAPS_ENCRYPTSLICEDATAONLY 0x00000200
typedef struct _D3DCONTENTPROTECTIONCAPS {
DWORD Caps;
GUID KeyExchangeType;
UINT BufferAlignmentStart;
UINT BlockAlignmentSize;
ULONGLONG ProtectedMemorySize;
} D3DCONTENTPROTECTIONCAPS;
DEFINE_GUID(D3DCRYPTOTYPE_AES128_CTR, 0x9b6bd711, 0x4f74, 0x41c9, 0x9e, 0x7b, 0xb, 0xe2, 0xd7, 0xd9, 0x3b, 0x4f);
DEFINE_GUID(D3DCRYPTOTYPE_PROPRIETARY, 0xab4e9afd, 0x1d1c, 0x46e6, 0xa7, 0x2f, 0x8, 0x69, 0x91, 0x7b, 0xd, 0xe8);
DEFINE_GUID(D3DKEYEXCHANGE_RSAES_OAEP, 0xc1949895, 0xd72a, 0x4a1d, 0x8e, 0x5d, 0xed, 0x85, 0x7d, 0x17, 0x15, 0x20);
DEFINE_GUID(D3DKEYEXCHANGE_DXVA, 0x43d3775c, 0x38e5, 0x4924, 0x8d, 0x86, 0xd3, 0xfc, 0xcf, 0x15, 0x3e, 0x9b);
#endif
#ifdef __i386__
#include <poppack.h>
#endif

View File

@ -1,4 +1,4 @@
/*** Autogenerated by WIDL 4.19 from direct-x/include/d3dcommon.idl - Do not edit ***/
/*** Autogenerated by WIDL 5.16 from include/d3dcommon.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__
@ -26,6 +26,14 @@ interface ID3D10Blob;
#endif /* __cplusplus */
#endif
#ifndef __ID3DDestructionNotifier_FWD_DEFINED__
#define __ID3DDestructionNotifier_FWD_DEFINED__
typedef interface ID3DDestructionNotifier ID3DDestructionNotifier;
#ifdef __cplusplus
interface ID3DDestructionNotifier;
#endif /* __cplusplus */
#endif
#ifndef __ID3DInclude_FWD_DEFINED__
#define __ID3DInclude_FWD_DEFINED__
typedef interface ID3DInclude ID3DInclude;
@ -138,6 +146,99 @@ typedef ID3D10Blob *LPD3D10BLOB;
typedef ID3D10Blob ID3DBlob;
typedef ID3DBlob *LPD3DBLOB;
#define IID_ID3DBlob IID_ID3D10Blob
typedef void (__stdcall *PFN_DESTRUCTION_CALLBACK)(void *data);
/*****************************************************************************
* ID3DDestructionNotifier interface
*/
#ifndef __ID3DDestructionNotifier_INTERFACE_DEFINED__
#define __ID3DDestructionNotifier_INTERFACE_DEFINED__
DEFINE_GUID(IID_ID3DDestructionNotifier, 0xa06eb39a, 0x50da, 0x425b, 0x8c,0x31, 0x4e,0xec,0xd6,0xc2,0x70,0xf3);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("a06eb39a-50da-425b-8c31-4eecd6c270f3")
ID3DDestructionNotifier : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE RegisterDestructionCallback(
PFN_DESTRUCTION_CALLBACK callback_func,
void *data,
UINT *callback_id) = 0;
virtual HRESULT STDMETHODCALLTYPE UnregisterDestructionCallback(
UINT callback_id) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(ID3DDestructionNotifier, 0xa06eb39a, 0x50da, 0x425b, 0x8c,0x31, 0x4e,0xec,0xd6,0xc2,0x70,0xf3)
#endif
#else
typedef struct ID3DDestructionNotifierVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
ID3DDestructionNotifier *This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
ID3DDestructionNotifier *This);
ULONG (STDMETHODCALLTYPE *Release)(
ID3DDestructionNotifier *This);
/*** ID3DDestructionNotifier methods ***/
HRESULT (STDMETHODCALLTYPE *RegisterDestructionCallback)(
ID3DDestructionNotifier *This,
PFN_DESTRUCTION_CALLBACK callback_func,
void *data,
UINT *callback_id);
HRESULT (STDMETHODCALLTYPE *UnregisterDestructionCallback)(
ID3DDestructionNotifier *This,
UINT callback_id);
END_INTERFACE
} ID3DDestructionNotifierVtbl;
interface ID3DDestructionNotifier {
CONST_VTBL ID3DDestructionNotifierVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define ID3DDestructionNotifier_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define ID3DDestructionNotifier_AddRef(This) (This)->lpVtbl->AddRef(This)
#define ID3DDestructionNotifier_Release(This) (This)->lpVtbl->Release(This)
/*** ID3DDestructionNotifier methods ***/
#define ID3DDestructionNotifier_RegisterDestructionCallback(This,callback_func,data,callback_id) (This)->lpVtbl->RegisterDestructionCallback(This,callback_func,data,callback_id)
#define ID3DDestructionNotifier_UnregisterDestructionCallback(This,callback_id) (This)->lpVtbl->UnregisterDestructionCallback(This,callback_id)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT ID3DDestructionNotifier_QueryInterface(ID3DDestructionNotifier* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG ID3DDestructionNotifier_AddRef(ID3DDestructionNotifier* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG ID3DDestructionNotifier_Release(ID3DDestructionNotifier* This) {
return This->lpVtbl->Release(This);
}
/*** ID3DDestructionNotifier methods ***/
static FORCEINLINE HRESULT ID3DDestructionNotifier_RegisterDestructionCallback(ID3DDestructionNotifier* This,PFN_DESTRUCTION_CALLBACK callback_func,void *data,UINT *callback_id) {
return This->lpVtbl->RegisterDestructionCallback(This,callback_func,data,callback_id);
}
static FORCEINLINE HRESULT ID3DDestructionNotifier_UnregisterDestructionCallback(ID3DDestructionNotifier* This,UINT callback_id) {
return This->lpVtbl->UnregisterDestructionCallback(This,callback_id);
}
#endif
#endif
#endif
#endif /* __ID3DDestructionNotifier_INTERFACE_DEFINED__ */
typedef enum _D3D_INCLUDE_TYPE {
D3D_INCLUDE_LOCAL = 0,
D3D_INCLUDE_SYSTEM = 1,
@ -333,6 +434,12 @@ typedef enum _D3D_SHADER_VARIABLE_TYPE {
D3D_SVT_RWSTRUCTURED_BUFFER = 49,
D3D_SVT_APPEND_STRUCTURED_BUFFER = 50,
D3D_SVT_CONSUME_STRUCTURED_BUFFER = 51,
D3D_SVT_MIN8FLOAT = 52,
D3D_SVT_MIN10FLOAT = 53,
D3D_SVT_MIN16FLOAT = 54,
D3D_SVT_MIN12INT = 55,
D3D_SVT_MIN16INT = 56,
D3D_SVT_MIN16UINT = 57,
D3D10_SVT_VOID = 0,
D3D10_SVT_BOOL = 1,
D3D10_SVT_INT = 2,
@ -615,6 +722,16 @@ typedef enum D3D_TESSELLATOR_OUTPUT_PRIMITIVE {
D3D11_TESSELLATOR_OUTPUT_TRIANGLE_CW = 3,
D3D11_TESSELLATOR_OUTPUT_TRIANGLE_CCW = 4
} D3D_TESSELLATOR_OUTPUT_PRIMITIVE;
typedef enum D3D_MIN_PRECISION {
D3D_MIN_PRECISION_DEFAULT = 0,
D3D_MIN_PRECISION_FLOAT_16 = 1,
D3D_MIN_PRECISION_FLOAT_2_8 = 2,
D3D_MIN_PRECISION_RESERVED = 3,
D3D_MIN_PRECISION_SINT_16 = 4,
D3D_MIN_PRECISION_UINT_16 = 5,
D3D_MIN_PRECISION_ANY_16 = 0xf0,
D3D_MIN_PRECISION_ANY_10 = 0xf1
} D3D_MIN_PRECISION;
typedef enum D3D_CBUFFER_TYPE {
D3D_CT_CBUFFER = 0,
D3D_CT_TBUFFER = 1,
@ -726,6 +843,9 @@ typedef enum D3D_NAME {
D3D_NAME_FINAL_TRI_INSIDE_TESSFACTOR = 14,
D3D_NAME_FINAL_LINE_DETAIL_TESSFACTOR = 15,
D3D_NAME_FINAL_LINE_DENSITY_TESSFACTOR = 16,
D3D_NAME_BARYCENTRICS = 23,
D3D_NAME_SHADINGRATE = 24,
D3D_NAME_CULLPRIMITIVE = 25,
D3D_NAME_TARGET = 64,
D3D_NAME_DEPTH = 65,
D3D_NAME_COVERAGE = 66,
@ -767,6 +887,8 @@ typedef enum _D3D_SHADER_INPUT_TYPE {
D3D_SIT_UAV_APPEND_STRUCTURED = 9,
D3D_SIT_UAV_CONSUME_STRUCTURED = 10,
D3D_SIT_UAV_RWSTRUCTURED_WITH_COUNTER = 11,
D3D_SIT_RTACCELERATIONSTRUCTURE = 12,
D3D_SIT_UAV_FEEDBACKTEXTURE = 13,
D3D10_SIT_CBUFFER = 0,
D3D10_SIT_TBUFFER = 1,
D3D10_SIT_TEXTURE = 2,
@ -785,6 +907,22 @@ typedef enum _D3D_SHADER_CBUFFER_FLAGS {
D3D10_CBF_USERPACKED = D3D_CBF_USERPACKED,
D3D_CBF_FORCE_DWORD = 0x7fffffff
} D3D_SHADER_CBUFFER_FLAGS;
typedef enum _D3D_PARAMETER_FLAGS {
D3D_PF_NONE = 0,
D3D_PF_IN = 1,
D3D_PF_OUT = 2,
D3D_PF_FORCE_DWORD = 0x7fffffff
} D3D_PARAMETER_FLAGS;
typedef enum _D3D_INTERPOLATION_MODE {
D3D_INTERPOLATION_UNDEFINED = 0,
D3D_INTERPOLATION_CONSTANT = 1,
D3D_INTERPOLATION_LINEAR = 2,
D3D_INTERPOLATION_LINEAR_CENTROID = 3,
D3D_INTERPOLATION_LINEAR_NOPERSPECTIVE = 4,
D3D_INTERPOLATION_LINEAR_NOPERSPECTIVE_CENTROID = 5,
D3D_INTERPOLATION_LINEAR_SAMPLE = 6,
D3D_INTERPOLATION_LINEAR_NOPERSPECTIVE_SAMPLE = 7
} D3D_INTERPOLATION_MODE;
DEFINE_GUID(WKPDID_D3DDebugObjectName,0x429b8c22,0x9188,0x4b0c,0x87,0x42,0xac,0xb0,0xbf,0x85,0xc2,0x00);
/* Begin additional prototypes for all interfaces */

View File

@ -1,677 +0,0 @@
/*
* Copyright 2010 Matteo Bruni for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
import "oaidl.idl";
import "ocidl.idl";
typedef struct _D3D_SHADER_MACRO
{
const char *Name;
const char *Definition;
} D3D_SHADER_MACRO;
typedef struct _D3D_SHADER_MACRO* LPD3D_SHADER_MACRO;
[
object,
local,
uuid(8ba5fb08-5195-40e2-ac58-0d989c3a0102)
]
interface ID3D10Blob : IUnknown
{
void *GetBufferPointer();
SIZE_T GetBufferSize();
}
typedef ID3D10Blob* LPD3D10BLOB;
typedef ID3D10Blob ID3DBlob;
typedef ID3DBlob* LPD3DBLOB;
cpp_quote("#define IID_ID3DBlob IID_ID3D10Blob")
typedef enum _D3D_INCLUDE_TYPE
{
D3D_INCLUDE_LOCAL = 0,
D3D_INCLUDE_SYSTEM,
D3D10_INCLUDE_LOCAL = D3D_INCLUDE_LOCAL,
D3D10_INCLUDE_SYSTEM = D3D_INCLUDE_SYSTEM,
D3D_INCLUDE_FORCE_DWORD = 0x7fffffff
} D3D_INCLUDE_TYPE;
[
object,
local,
]
interface ID3DInclude
{
HRESULT Open(D3D_INCLUDE_TYPE include_type,
const char *filename,
const void *parent_data,
const void **data,
UINT *bytes);
HRESULT Close(const void *data);
}
typedef ID3DInclude* LPD3DINCLUDE;
typedef enum D3D_DRIVER_TYPE
{
D3D_DRIVER_TYPE_UNKNOWN,
D3D_DRIVER_TYPE_HARDWARE,
D3D_DRIVER_TYPE_REFERENCE,
D3D_DRIVER_TYPE_NULL,
D3D_DRIVER_TYPE_SOFTWARE,
D3D_DRIVER_TYPE_WARP,
} D3D_DRIVER_TYPE;
typedef enum D3D_FEATURE_LEVEL
{
D3D_FEATURE_LEVEL_9_1 = 0x9100,
D3D_FEATURE_LEVEL_9_2 = 0x9200,
D3D_FEATURE_LEVEL_9_3 = 0x9300,
D3D_FEATURE_LEVEL_10_0 = 0xa000,
D3D_FEATURE_LEVEL_10_1 = 0xa100,
D3D_FEATURE_LEVEL_11_0 = 0xb000,
D3D_FEATURE_LEVEL_11_1 = 0xb100,
D3D_FEATURE_LEVEL_12_0 = 0xc000,
D3D_FEATURE_LEVEL_12_1 = 0xc100,
} D3D_FEATURE_LEVEL;
cpp_quote("#define D3D_FL9_1_REQ_TEXTURE1D_U_DIMENSION 2048")
cpp_quote("#define D3D_FL9_3_REQ_TEXTURE1D_U_DIMENSION 4096")
cpp_quote("#define D3D_FL9_1_REQ_TEXTURE2D_U_OR_V_DIMENSION 2048")
cpp_quote("#define D3D_FL9_3_REQ_TEXTURE2D_U_OR_V_DIMENSION 4096")
cpp_quote("#define D3D_FL9_1_REQ_TEXTURECUBE_DIMENSION 512")
cpp_quote("#define D3D_FL9_3_REQ_TEXTURECUBE_DIMENSION 4096")
cpp_quote("#define D3D_FL9_1_REQ_TEXTURE3D_U_V_OR_W_DIMENSION 256")
cpp_quote("#define D3D_FL9_1_DEFAULT_MAX_ANISOTROPY 2")
cpp_quote("#define D3D_FL9_1_IA_PRIMITIVE_MAX_COUNT 65535")
cpp_quote("#define D3D_FL9_2_IA_PRIMITIVE_MAX_COUNT 1048575")
cpp_quote("#define D3D_FL9_1_SIMULTANEOUS_RENDER_TARGET_COUNT 1")
cpp_quote("#define D3D_FL9_3_SIMULTANEOUS_RENDER_TARGET_COUNT 4")
cpp_quote("#define D3D_FL9_1_MAX_TEXTURE_REPEAT 128")
cpp_quote("#define D3D_FL9_2_MAX_TEXTURE_REPEAT 2048")
cpp_quote("#define D3D_FL9_3_MAX_TEXTURE_REPEAT 8192")
typedef enum _D3D_SHADER_VARIABLE_CLASS
{
D3D_SVC_SCALAR,
D3D_SVC_VECTOR,
D3D_SVC_MATRIX_ROWS,
D3D_SVC_MATRIX_COLUMNS,
D3D_SVC_OBJECT,
D3D_SVC_STRUCT,
D3D_SVC_INTERFACE_CLASS,
D3D_SVC_INTERFACE_POINTER,
D3D10_SVC_SCALAR = 0,
D3D10_SVC_VECTOR,
D3D10_SVC_MATRIX_ROWS,
D3D10_SVC_MATRIX_COLUMNS,
D3D10_SVC_OBJECT,
D3D10_SVC_STRUCT,
D3D11_SVC_INTERFACE_CLASS,
D3D11_SVC_INTERFACE_POINTER,
D3D_SVC_FORCE_DWORD = 0x7fffffff,
} D3D_SHADER_VARIABLE_CLASS;
typedef enum _D3D_SHADER_VARIABLE_FLAGS
{
D3D_SVF_USERPACKED = 0x01,
D3D_SVF_USED = 0x02,
D3D_SVF_INTERFACE_POINTER = 0x04,
D3D_SVF_INTERFACE_PARAMETER = 0x08,
D3D10_SVF_USERPACKED = D3D_SVF_USERPACKED,
D3D10_SVF_USED = D3D_SVF_USED,
D3D11_SVF_INTERFACE_POINTER = D3D_SVF_INTERFACE_POINTER,
D3D11_SVF_INTERFACE_PARAMETER = D3D_SVF_INTERFACE_PARAMETER,
D3D_SVF_FORCE_DWORD = 0x7fffffff
} D3D_SHADER_VARIABLE_FLAGS;
typedef enum _D3D_SHADER_VARIABLE_TYPE
{
D3D_SVT_VOID,
D3D_SVT_BOOL,
D3D_SVT_INT,
D3D_SVT_FLOAT,
D3D_SVT_STRING,
D3D_SVT_TEXTURE,
D3D_SVT_TEXTURE1D,
D3D_SVT_TEXTURE2D,
D3D_SVT_TEXTURE3D,
D3D_SVT_TEXTURECUBE,
D3D_SVT_SAMPLER,
D3D_SVT_SAMPLER1D,
D3D_SVT_SAMPLER2D,
D3D_SVT_SAMPLER3D,
D3D_SVT_SAMPLERCUBE,
D3D_SVT_PIXELSHADER,
D3D_SVT_VERTEXSHADER,
D3D_SVT_PIXELFRAGMENT,
D3D_SVT_VERTEXFRAGMENT,
D3D_SVT_UINT,
D3D_SVT_UINT8,
D3D_SVT_GEOMETRYSHADER,
D3D_SVT_RASTERIZER,
D3D_SVT_DEPTHSTENCIL,
D3D_SVT_BLEND,
D3D_SVT_BUFFER,
D3D_SVT_CBUFFER,
D3D_SVT_TBUFFER,
D3D_SVT_TEXTURE1DARRAY,
D3D_SVT_TEXTURE2DARRAY,
D3D_SVT_RENDERTARGETVIEW,
D3D_SVT_DEPTHSTENCILVIEW,
D3D_SVT_TEXTURE2DMS,
D3D_SVT_TEXTURE2DMSARRAY,
D3D_SVT_TEXTURECUBEARRAY,
D3D_SVT_HULLSHADER,
D3D_SVT_DOMAINSHADER,
D3D_SVT_INTERFACE_POINTER,
D3D_SVT_COMPUTESHADER,
D3D_SVT_DOUBLE,
D3D_SVT_RWTEXTURE1D,
D3D_SVT_RWTEXTURE1DARRAY,
D3D_SVT_RWTEXTURE2D,
D3D_SVT_RWTEXTURE2DARRAY,
D3D_SVT_RWTEXTURE3D,
D3D_SVT_RWBUFFER,
D3D_SVT_BYTEADDRESS_BUFFER,
D3D_SVT_RWBYTEADDRESS_BUFFER,
D3D_SVT_STRUCTURED_BUFFER,
D3D_SVT_RWSTRUCTURED_BUFFER,
D3D_SVT_APPEND_STRUCTURED_BUFFER,
D3D_SVT_CONSUME_STRUCTURED_BUFFER,
D3D10_SVT_VOID = 0,
D3D10_SVT_BOOL,
D3D10_SVT_INT,
D3D10_SVT_FLOAT,
D3D10_SVT_STRING,
D3D10_SVT_TEXTURE,
D3D10_SVT_TEXTURE1D,
D3D10_SVT_TEXTURE2D,
D3D10_SVT_TEXTURE3D,
D3D10_SVT_TEXTURECUBE,
D3D10_SVT_SAMPLER,
D3D10_SVT_SAMPLER1D,
D3D10_SVT_SAMPLER2D,
D3D10_SVT_SAMPLER3D,
D3D10_SVT_SAMPLERCUBE,
D3D10_SVT_PIXELSHADER,
D3D10_SVT_VERTEXSHADER,
D3D10_SVT_PIXELFRAGMENT,
D3D10_SVT_VERTEXFRAGMENT,
D3D10_SVT_UINT,
D3D10_SVT_UINT8,
D3D10_SVT_GEOMETRYSHADER,
D3D10_SVT_RASTERIZER,
D3D10_SVT_DEPTHSTENCIL,
D3D10_SVT_BLEND,
D3D10_SVT_BUFFER,
D3D10_SVT_CBUFFER,
D3D10_SVT_TBUFFER,
D3D10_SVT_TEXTURE1DARRAY,
D3D10_SVT_TEXTURE2DARRAY,
D3D10_SVT_RENDERTARGETVIEW,
D3D10_SVT_DEPTHSTENCILVIEW,
D3D10_SVT_TEXTURE2DMS,
D3D10_SVT_TEXTURE2DMSARRAY,
D3D10_SVT_TEXTURECUBEARRAY,
D3D11_SVT_HULLSHADER,
D3D11_SVT_DOMAINSHADER,
D3D11_SVT_INTERFACE_POINTER,
D3D11_SVT_COMPUTESHADER,
D3D11_SVT_DOUBLE,
D3D11_SVT_RWTEXTURE1D,
D3D11_SVT_RWTEXTURE1DARRAY,
D3D11_SVT_RWTEXTURE2D,
D3D11_SVT_RWTEXTURE2DARRAY,
D3D11_SVT_RWTEXTURE3D,
D3D11_SVT_RWBUFFER,
D3D11_SVT_BYTEADDRESS_BUFFER,
D3D11_SVT_RWBYTEADDRESS_BUFFER,
D3D11_SVT_STRUCTURED_BUFFER,
D3D11_SVT_RWSTRUCTURED_BUFFER,
D3D11_SVT_APPEND_STRUCTURED_BUFFER,
D3D11_SVT_CONSUME_STRUCTURED_BUFFER,
D3D_SVT_FORCE_DWORD = 0x7fffffff,
} D3D_SHADER_VARIABLE_TYPE;
typedef enum _D3D_SHADER_INPUT_FLAGS
{
D3D_SIF_USERPACKED = 0x01,
D3D_SIF_COMPARISON_SAMPLER = 0x02,
D3D_SIF_TEXTURE_COMPONENT_0 = 0x04,
D3D_SIF_TEXTURE_COMPONENT_1 = 0x08,
D3D_SIF_TEXTURE_COMPONENTS = 0x0C,
D3D_SIF_UNUSED = 0x10,
D3D10_SIF_USERPACKED = D3D_SIF_USERPACKED,
D3D10_SIF_COMPARISON_SAMPLER = D3D_SIF_COMPARISON_SAMPLER,
D3D10_SIF_TEXTURE_COMPONENT_0 = D3D_SIF_TEXTURE_COMPONENT_0,
D3D10_SIF_TEXTURE_COMPONENT_1 = D3D_SIF_TEXTURE_COMPONENT_1,
D3D10_SIF_TEXTURE_COMPONENTS = D3D_SIF_TEXTURE_COMPONENTS,
D3D_SIF_FORCE_DWORD = 0x7fffffff
} D3D_SHADER_INPUT_FLAGS;
typedef enum D3D_PRIMITIVE
{
D3D_PRIMITIVE_UNDEFINED,
D3D_PRIMITIVE_POINT,
D3D_PRIMITIVE_LINE,
D3D_PRIMITIVE_TRIANGLE,
D3D_PRIMITIVE_LINE_ADJ = 6,
D3D_PRIMITIVE_TRIANGLE_ADJ,
D3D_PRIMITIVE_1_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_2_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_3_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_4_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_5_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_6_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_7_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_8_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_9_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_10_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_11_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_12_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_13_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_14_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_15_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_16_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_17_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_18_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_19_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_20_CONTROL_POINT_PATCH = 28,
D3D_PRIMITIVE_21_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_22_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_23_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_24_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_25_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_26_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_27_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_28_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_29_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_30_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_31_CONTROL_POINT_PATCH,
D3D_PRIMITIVE_32_CONTROL_POINT_PATCH,
D3D10_PRIMITIVE_UNDEFINED = 0,
D3D10_PRIMITIVE_POINT,
D3D10_PRIMITIVE_LINE,
D3D10_PRIMITIVE_TRIANGLE,
D3D10_PRIMITIVE_LINE_ADJ = 6,
D3D10_PRIMITIVE_TRIANGLE_ADJ,
D3D11_PRIMITIVE_UNDEFINED = 0,
D3D11_PRIMITIVE_POINT,
D3D11_PRIMITIVE_LINE,
D3D11_PRIMITIVE_TRIANGLE,
D3D11_PRIMITIVE_LINE_ADJ = 6,
D3D11_PRIMITIVE_TRIANGLE_ADJ,
D3D11_PRIMITIVE_1_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_2_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_3_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_4_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_5_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_6_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_7_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_8_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_9_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_10_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_11_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_12_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_13_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_14_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_15_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_16_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_17_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_18_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_19_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_20_CONTROL_POINT_PATCH = 28,
D3D11_PRIMITIVE_21_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_22_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_23_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_24_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_25_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_26_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_27_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_28_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_29_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_30_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_31_CONTROL_POINT_PATCH,
D3D11_PRIMITIVE_32_CONTROL_POINT_PATCH,
} D3D_PRIMITIVE;
typedef enum D3D_PRIMITIVE_TOPOLOGY
{
D3D_PRIMITIVE_TOPOLOGY_UNDEFINED,
D3D_PRIMITIVE_TOPOLOGY_POINTLIST,
D3D_PRIMITIVE_TOPOLOGY_LINELIST,
D3D_PRIMITIVE_TOPOLOGY_LINESTRIP,
D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST,
D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP,
D3D_PRIMITIVE_TOPOLOGY_LINELIST_ADJ = 10,
D3D_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ,
D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ,
D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ,
D3D_PRIMITIVE_TOPOLOGY_1_CONTROL_POINT_PATCHLIST = 33,
D3D_PRIMITIVE_TOPOLOGY_2_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_3_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_4_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_5_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_6_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_7_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_8_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_9_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_10_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_11_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_12_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_13_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_14_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_15_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_16_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_17_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_18_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_19_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_20_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_21_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_22_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_23_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_24_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_25_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_26_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_27_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_28_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_29_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_30_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_31_CONTROL_POINT_PATCHLIST,
D3D_PRIMITIVE_TOPOLOGY_32_CONTROL_POINT_PATCHLIST,
D3D10_PRIMITIVE_TOPOLOGY_UNDEFINED = 0,
D3D10_PRIMITIVE_TOPOLOGY_POINTLIST,
D3D10_PRIMITIVE_TOPOLOGY_LINELIST,
D3D10_PRIMITIVE_TOPOLOGY_LINESTRIP,
D3D10_PRIMITIVE_TOPOLOGY_TRIANGLELIST,
D3D10_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP,
D3D10_PRIMITIVE_TOPOLOGY_LINELIST_ADJ = 10,
D3D10_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ,
D3D10_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ,
D3D10_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ,
D3D11_PRIMITIVE_TOPOLOGY_UNDEFINED = 0,
D3D11_PRIMITIVE_TOPOLOGY_POINTLIST,
D3D11_PRIMITIVE_TOPOLOGY_LINELIST,
D3D11_PRIMITIVE_TOPOLOGY_LINESTRIP,
D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST,
D3D11_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP,
D3D11_PRIMITIVE_TOPOLOGY_LINELIST_ADJ = 10,
D3D11_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ,
D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ,
D3D11_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ,
D3D11_PRIMITIVE_TOPOLOGY_1_CONTROL_POINT_PATCHLIST = 33,
D3D11_PRIMITIVE_TOPOLOGY_2_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_3_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_4_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_5_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_6_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_7_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_8_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_9_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_10_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_11_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_12_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_13_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_14_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_15_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_16_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_17_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_18_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_19_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_20_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_21_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_22_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_23_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_24_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_25_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_26_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_27_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_28_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_29_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_30_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_31_CONTROL_POINT_PATCHLIST,
D3D11_PRIMITIVE_TOPOLOGY_32_CONTROL_POINT_PATCHLIST,
} D3D_PRIMITIVE_TOPOLOGY;
typedef enum D3D_TESSELLATOR_DOMAIN
{
D3D_TESSELLATOR_DOMAIN_UNDEFINED,
D3D_TESSELLATOR_DOMAIN_ISOLINE,
D3D_TESSELLATOR_DOMAIN_TRI,
D3D_TESSELLATOR_DOMAIN_QUAD,
D3D11_TESSELLATOR_DOMAIN_UNDEFINED = 0,
D3D11_TESSELLATOR_DOMAIN_ISOLINE,
D3D11_TESSELLATOR_DOMAIN_TRI,
D3D11_TESSELLATOR_DOMAIN_QUAD,
} D3D_TESSELLATOR_DOMAIN;
typedef enum D3D_TESSELLATOR_PARTITIONING
{
D3D_TESSELLATOR_PARTITIONING_UNDEFINED,
D3D_TESSELLATOR_PARTITIONING_INTEGER,
D3D_TESSELLATOR_PARTITIONING_POW2,
D3D_TESSELLATOR_PARTITIONING_FRACTIONAL_ODD,
D3D_TESSELLATOR_PARTITIONING_FRACTIONAL_EVEN,
D3D11_TESSELLATOR_PARTITIONING_UNDEFINED = 0,
D3D11_TESSELLATOR_PARTITIONING_INTEGER,
D3D11_TESSELLATOR_PARTITIONING_POW2,
D3D11_TESSELLATOR_PARTITIONING_FRACTIONAL_ODD,
D3D11_TESSELLATOR_PARTITIONING_FRACTIONAL_EVEN,
} D3D_TESSELLATOR_PARTITIONING;
typedef enum D3D_TESSELLATOR_OUTPUT_PRIMITIVE
{
D3D_TESSELLATOR_OUTPUT_UNDEFINED,
D3D_TESSELLATOR_OUTPUT_POINT,
D3D_TESSELLATOR_OUTPUT_LINE,
D3D_TESSELLATOR_OUTPUT_TRIANGLE_CW,
D3D_TESSELLATOR_OUTPUT_TRIANGLE_CCW,
D3D11_TESSELLATOR_OUTPUT_UNDEFINED = 0,
D3D11_TESSELLATOR_OUTPUT_POINT,
D3D11_TESSELLATOR_OUTPUT_LINE,
D3D11_TESSELLATOR_OUTPUT_TRIANGLE_CW,
D3D11_TESSELLATOR_OUTPUT_TRIANGLE_CCW,
} D3D_TESSELLATOR_OUTPUT_PRIMITIVE;
typedef enum D3D_CBUFFER_TYPE
{
D3D_CT_CBUFFER,
D3D_CT_TBUFFER,
D3D_CT_INTERFACE_POINTERS,
D3D_CT_RESOURCE_BIND_INFO,
D3D10_CT_CBUFFER = 0,
D3D10_CT_TBUFFER,
D3D11_CT_CBUFFER = 0,
D3D11_CT_TBUFFER,
D3D11_CT_INTERFACE_POINTERS,
D3D11_CT_RESOURCE_BIND_INFO,
} D3D_CBUFFER_TYPE;
typedef enum D3D_SRV_DIMENSION
{
D3D_SRV_DIMENSION_UNKNOWN,
D3D_SRV_DIMENSION_BUFFER,
D3D_SRV_DIMENSION_TEXTURE1D,
D3D_SRV_DIMENSION_TEXTURE1DARRAY,
D3D_SRV_DIMENSION_TEXTURE2D,
D3D_SRV_DIMENSION_TEXTURE2DARRAY,
D3D_SRV_DIMENSION_TEXTURE2DMS,
D3D_SRV_DIMENSION_TEXTURE2DMSARRAY,
D3D_SRV_DIMENSION_TEXTURE3D,
D3D_SRV_DIMENSION_TEXTURECUBE,
D3D_SRV_DIMENSION_TEXTURECUBEARRAY,
D3D_SRV_DIMENSION_BUFFEREX,
D3D10_SRV_DIMENSION_UNKNOWN = 0,
D3D10_SRV_DIMENSION_BUFFER,
D3D10_SRV_DIMENSION_TEXTURE1D,
D3D10_SRV_DIMENSION_TEXTURE1DARRAY,
D3D10_SRV_DIMENSION_TEXTURE2D,
D3D10_SRV_DIMENSION_TEXTURE2DARRAY,
D3D10_SRV_DIMENSION_TEXTURE2DMS,
D3D10_SRV_DIMENSION_TEXTURE2DMSARRAY,
D3D10_SRV_DIMENSION_TEXTURE3D,
D3D10_SRV_DIMENSION_TEXTURECUBE,
D3D10_1_SRV_DIMENSION_UNKNOWN = 0,
D3D10_1_SRV_DIMENSION_BUFFER,
D3D10_1_SRV_DIMENSION_TEXTURE1D,
D3D10_1_SRV_DIMENSION_TEXTURE1DARRAY,
D3D10_1_SRV_DIMENSION_TEXTURE2D,
D3D10_1_SRV_DIMENSION_TEXTURE2DARRAY,
D3D10_1_SRV_DIMENSION_TEXTURE2DMS,
D3D10_1_SRV_DIMENSION_TEXTURE2DMSARRAY,
D3D10_1_SRV_DIMENSION_TEXTURE3D,
D3D10_1_SRV_DIMENSION_TEXTURECUBE,
D3D10_1_SRV_DIMENSION_TEXTURECUBEARRAY,
D3D11_SRV_DIMENSION_UNKNOWN = 0,
D3D11_SRV_DIMENSION_BUFFER,
D3D11_SRV_DIMENSION_TEXTURE1D,
D3D11_SRV_DIMENSION_TEXTURE1DARRAY,
D3D11_SRV_DIMENSION_TEXTURE2D,
D3D11_SRV_DIMENSION_TEXTURE2DARRAY,
D3D11_SRV_DIMENSION_TEXTURE2DMS,
D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY,
D3D11_SRV_DIMENSION_TEXTURE3D,
D3D11_SRV_DIMENSION_TEXTURECUBE,
D3D11_SRV_DIMENSION_TEXTURECUBEARRAY,
D3D11_SRV_DIMENSION_BUFFEREX,
} D3D_SRV_DIMENSION;
typedef enum D3D_REGISTER_COMPONENT_TYPE
{
D3D_REGISTER_COMPONENT_UNKNOWN,
D3D_REGISTER_COMPONENT_UINT32,
D3D_REGISTER_COMPONENT_SINT32,
D3D_REGISTER_COMPONENT_FLOAT32,
D3D10_REGISTER_COMPONENT_UNKNOWN = 0,
D3D10_REGISTER_COMPONENT_UINT32,
D3D10_REGISTER_COMPONENT_SINT32,
D3D10_REGISTER_COMPONENT_FLOAT32,
} D3D_REGISTER_COMPONENT_TYPE;
typedef enum D3D_RESOURCE_RETURN_TYPE
{
D3D_RETURN_TYPE_UNORM = 1,
D3D_RETURN_TYPE_SNORM,
D3D_RETURN_TYPE_SINT,
D3D_RETURN_TYPE_UINT,
D3D_RETURN_TYPE_FLOAT,
D3D_RETURN_TYPE_MIXED,
D3D_RETURN_TYPE_DOUBLE,
D3D_RETURN_TYPE_CONTINUED,
D3D10_RETURN_TYPE_UNORM = 1,
D3D10_RETURN_TYPE_SNORM,
D3D10_RETURN_TYPE_SINT,
D3D10_RETURN_TYPE_UINT,
D3D10_RETURN_TYPE_FLOAT,
D3D10_RETURN_TYPE_MIXED,
D3D11_RETURN_TYPE_UNORM = 1,
D3D11_RETURN_TYPE_SNORM,
D3D11_RETURN_TYPE_SINT,
D3D11_RETURN_TYPE_UINT,
D3D11_RETURN_TYPE_FLOAT,
D3D11_RETURN_TYPE_MIXED,
D3D11_RETURN_TYPE_DOUBLE,
D3D11_RETURN_TYPE_CONTINUED,
} D3D_RESOURCE_RETURN_TYPE;
typedef enum D3D_NAME
{
D3D_NAME_UNDEFINED,
D3D_NAME_POSITION,
D3D_NAME_CLIP_DISTANCE,
D3D_NAME_CULL_DISTANCE,
D3D_NAME_RENDER_TARGET_ARRAY_INDEX,
D3D_NAME_VIEWPORT_ARRAY_INDEX,
D3D_NAME_VERTEX_ID,
D3D_NAME_PRIMITIVE_ID,
D3D_NAME_INSTANCE_ID,
D3D_NAME_IS_FRONT_FACE,
D3D_NAME_SAMPLE_INDEX,
D3D_NAME_FINAL_QUAD_EDGE_TESSFACTOR,
D3D_NAME_FINAL_QUAD_INSIDE_TESSFACTOR,
D3D_NAME_FINAL_TRI_EDGE_TESSFACTOR,
D3D_NAME_FINAL_TRI_INSIDE_TESSFACTOR,
D3D_NAME_FINAL_LINE_DETAIL_TESSFACTOR,
D3D_NAME_FINAL_LINE_DENSITY_TESSFACTOR,
D3D_NAME_TARGET = 64,
D3D_NAME_DEPTH,
D3D_NAME_COVERAGE,
D3D_NAME_DEPTH_GREATER_EQUAL,
D3D_NAME_DEPTH_LESS_EQUAL,
D3D10_NAME_UNDEFINED = 0,
D3D10_NAME_POSITION,
D3D10_NAME_CLIP_DISTANCE,
D3D10_NAME_CULL_DISTANCE,
D3D10_NAME_RENDER_TARGET_ARRAY_INDEX,
D3D10_NAME_VIEWPORT_ARRAY_INDEX,
D3D10_NAME_VERTEX_ID,
D3D10_NAME_PRIMITIVE_ID,
D3D10_NAME_INSTANCE_ID,
D3D10_NAME_IS_FRONT_FACE,
D3D10_NAME_SAMPLE_INDEX,
D3D11_NAME_FINAL_QUAD_EDGE_TESSFACTOR,
D3D11_NAME_FINAL_QUAD_INSIDE_TESSFACTOR,
D3D11_NAME_FINAL_TRI_EDGE_TESSFACTOR,
D3D11_NAME_FINAL_TRI_INSIDE_TESSFACTOR,
D3D11_NAME_FINAL_LINE_DETAIL_TESSFACTOR,
D3D11_NAME_FINAL_LINE_DENSITY_TESSFACTOR,
D3D10_NAME_TARGET = 64,
D3D10_NAME_DEPTH,
D3D10_NAME_COVERAGE,
D3D11_NAME_DEPTH_GREATER_EQUAL,
D3D11_NAME_DEPTH_LESS_EQUAL,
} D3D_NAME;
typedef enum _D3D_SHADER_INPUT_TYPE
{
D3D_SIT_CBUFFER,
D3D_SIT_TBUFFER,
D3D_SIT_TEXTURE,
D3D_SIT_SAMPLER,
D3D_SIT_UAV_RWTYPED,
D3D_SIT_STRUCTURED,
D3D_SIT_UAV_RWSTRUCTURED,
D3D_SIT_BYTEADDRESS,
D3D_SIT_UAV_RWBYTEADDRESS,
D3D_SIT_UAV_APPEND_STRUCTURED,
D3D_SIT_UAV_CONSUME_STRUCTURED,
D3D_SIT_UAV_RWSTRUCTURED_WITH_COUNTER,
D3D10_SIT_CBUFFER = 0,
D3D10_SIT_TBUFFER,
D3D10_SIT_TEXTURE,
D3D10_SIT_SAMPLER,
D3D11_SIT_UAV_RWTYPED,
D3D11_SIT_STRUCTURED,
D3D11_SIT_UAV_RWSTRUCTURED,
D3D11_SIT_BYTEADDRESS,
D3D11_SIT_UAV_RWBYTEADDRESS,
D3D11_SIT_UAV_APPEND_STRUCTURED,
D3D11_SIT_UAV_CONSUME_STRUCTURED,
D3D11_SIT_UAV_RWSTRUCTURED_WITH_COUNTER,
} D3D_SHADER_INPUT_TYPE;
typedef enum _D3D_SHADER_CBUFFER_FLAGS
{
D3D_CBF_USERPACKED = 0x01,
D3D10_CBF_USERPACKED = D3D_CBF_USERPACKED,
D3D_CBF_FORCE_DWORD = 0x7fffffff
} D3D_SHADER_CBUFFER_FLAGS;
cpp_quote("DEFINE_GUID(WKPDID_D3DDebugObjectName,0x429b8c22,0x9188,0x4b0c,0x87,0x42,0xac,0xb0,0xbf,0x85,0xc2,0x00);")

View File

@ -21,6 +21,7 @@
#define __D3DCOMPILER_H__
#include "d3d11shader.h"
#include "d3d12shader.h"
#ifdef __cplusplus
extern "C" {
@ -35,6 +36,10 @@ static const WCHAR D3DCOMPILER_DLL_W[] = {'d','3','d','c','o','m','p','i','l','e
#define D3DCOMPILER_DLL_A "d3dcompiler_47.dll"
#define D3DCOMPILER_DLL __MINGW_NAME_AW(D3DCOMPILER_DLL_)
#ifndef D3D_COMPILER_VERSION
#define D3D_COMPILER_VERSION 47
#endif
#define D3DCOMPILE_DEBUG 0x00000001
#define D3DCOMPILE_SKIP_VALIDATION 0x00000002
#define D3DCOMPILE_SKIP_OPTIMIZATION 0x00000004
@ -78,6 +83,8 @@ static const WCHAR D3DCOMPILER_DLL_W[] = {'d','3','d','c','o','m','p','i','l','e
#define D3D_DISASM_INSTRUCTION_ONLY 0x00000040
#define D3D_DISASM_PRINT_HEX_LITERALS 0x00000080
#define D3D_COMPILE_STANDARD_FILE_INCLUDE ((ID3DInclude *)(UINT_PTR)1)
HRESULT WINAPI D3DCompile(const void *data, SIZE_T data_size, const char *filename,
const D3D_SHADER_MACRO *defines, ID3DInclude *include, const char *entrypoint,
const char *target, UINT sflags, UINT eflags, ID3DBlob **shader, ID3DBlob **error_messages);

View File

@ -0,0 +1,258 @@
/*
* d3dnthal.h
*
* Direct3D NT driver interface
*
* Contributors:
* Created by Ge van Geldorp
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* This source code is offered for use in the public domain. You may
* use, modify or distribute it freely.
*
* This code is distributed in the hope that it will be useful but
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
* DISCLAIMED. This includes but is not limited to warranties of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
*/
#ifndef __DDK_D3DNTHAL_H
#define __DDK_D3DNTHAL_H
#include <ddrawint.h>
#include <d3dtypes.h>
#include <d3dcaps.h>
#ifdef __cplusplus
extern "C" {
#endif
DEFINE_GUID(GUID_D3DCallbacks, 0x7BF06990, 0x8794, 0x11D0, 0x91, 0x39, 0x08, 0x00, 0x36, 0xD2, 0xEF, 0x02);
DEFINE_GUID(GUID_D3DCallbacks3, 0xDDF41230, 0xEC0A, 0x11D0, 0xA9, 0xB6, 0x00, 0xAA, 0x00, 0xC0, 0x99, 0x3E);
DEFINE_GUID(GUID_D3DExtendedCaps, 0x7DE41F80, 0x9D93, 0x11D0, 0x89, 0xAB, 0x00, 0xA0, 0xC9, 0x05, 0x41, 0x29);
DEFINE_GUID(GUID_D3DParseUnknownCommandCallback, 0x2E04FFA0, 0x98E4, 0x11D1, 0x8C, 0xE1, 0x00, 0xA0, 0xC9, 0x06, 0x29, 0xA8);
DEFINE_GUID(GUID_ZPixelFormats, 0x93869880, 0x36CF, 0x11D1, 0x9B, 0x1B, 0x00, 0xAA, 0x00, 0xBB, 0xB8, 0xAE);
DEFINE_GUID(GUID_DDStereoMode, 0xF828169C, 0xA8E8, 0x11D2, 0xA1, 0xF2, 0x00, 0xA0, 0xC9, 0x83, 0xEA, 0xF6);
typedef struct _D3DNTHAL_CONTEXTCREATEDATA {
__GNU_EXTENSION union {
PDD_DIRECTDRAW_GLOBAL lpDDGbl;
PDD_DIRECTDRAW_LOCAL lpDDLcl;
};
__GNU_EXTENSION union {
PDD_SURFACE_LOCAL lpDDS;
PDD_SURFACE_LOCAL lpDDSLcl;
};
__GNU_EXTENSION union {
PDD_SURFACE_LOCAL lpDDSZ;
PDD_SURFACE_LOCAL lpDDSZLcl;
};
DWORD dwPID;
ULONG_PTR dwhContext;
HRESULT ddrval;
} D3DNTHAL_CONTEXTCREATEDATA, *LPD3DNTHAL_CONTEXTCREATEDATA;
typedef struct _D3DNTHAL_CONTEXTDESTROYDATA {
ULONG_PTR dwhContext;
HRESULT ddrval;
} D3DNTHAL_CONTEXTDESTROYDATA, *LPD3DNTHAL_CONTEXTDESTROYDATA;
typedef struct _D3DNTHAL_CONTEXTDESTROYALLDATA {
DWORD dwPID;
HRESULT ddrval;
} D3DNTHAL_CONTEXTDESTROYALLDATA, *LPD3DNTHAL_CONTEXTDESTROYALLDATA;
typedef struct _D3DNTHAL_SCENECAPTUREDATA {
ULONG_PTR dwhContext;
DWORD dwFlag;
HRESULT ddrval;
} D3DNTHAL_SCENECAPTUREDATA, *LPD3DNTHAL_SCENECAPTUREDATA;
typedef struct _D3DNTHAL_TEXTURECREATEDATA {
ULONG_PTR dwhContext;
HANDLE hDDS;
ULONG_PTR dwHandle;
HRESULT ddrval;
} D3DNTHAL_TEXTURECREATEDATA, *LPD3DNTHAL_TEXTURECREATEDATA;
typedef struct _D3DNTHAL_TEXTUREDESTROYDATA {
ULONG_PTR dwhContext;
ULONG_PTR dwHandle;
HRESULT ddrval;
} D3DNTHAL_TEXTUREDESTROYDATA, *LPD3DNTHAL_TEXTUREDESTROYDATA;
typedef struct _D3DNTHAL_TEXTURESWAPDATA {
ULONG_PTR dwhContext;
ULONG_PTR dwHandle1;
ULONG_PTR dwHandle2;
HRESULT ddrval;
} D3DNTHAL_TEXTURESWAPDATA, *LPD3DNTHAL_TEXTURESWAPDATA;
typedef struct _D3DNTHAL_TEXTUREGETSURFDATA {
ULONG_PTR dwhContext;
HANDLE hDDS;
ULONG_PTR dwHandle;
HRESULT ddrval;
} D3DNTHAL_TEXTUREGETSURFDATA, *LPD3DNTHAL_TEXTUREGETSURFDATA;
typedef DWORD (APIENTRY *LPD3DNTHAL_CONTEXTCREATECB)(LPD3DNTHAL_CONTEXTCREATEDATA);
typedef DWORD (APIENTRY *LPD3DNTHAL_CONTEXTDESTROYCB)(LPD3DNTHAL_CONTEXTDESTROYDATA);
typedef DWORD (APIENTRY *LPD3DNTHAL_CONTEXTDESTROYALLCB)(LPD3DNTHAL_CONTEXTDESTROYALLDATA);
typedef DWORD (APIENTRY *LPD3DNTHAL_SCENECAPTURECB)(LPD3DNTHAL_SCENECAPTUREDATA);
typedef DWORD (APIENTRY *LPD3DNTHAL_TEXTURECREATECB)(LPD3DNTHAL_TEXTURECREATEDATA);
typedef DWORD (APIENTRY *LPD3DNTHAL_TEXTUREDESTROYCB)(LPD3DNTHAL_TEXTUREDESTROYDATA);
typedef DWORD (APIENTRY *LPD3DNTHAL_TEXTURESWAPCB)(LPD3DNTHAL_TEXTURESWAPDATA);
typedef DWORD (APIENTRY *LPD3DNTHAL_TEXTUREGETSURFCB)(LPD3DNTHAL_TEXTUREGETSURFDATA);
typedef struct _D3DNTHALDeviceDesc_V1 {
DWORD dwSize;
DWORD dwFlags;
D3DCOLORMODEL dcmColorModel;
DWORD dwDevCaps;
D3DTRANSFORMCAPS dtcTransformCaps;
WINBOOL bClipping;
D3DLIGHTINGCAPS dlcLightingCaps;
D3DPRIMCAPS dpcLineCaps;
D3DPRIMCAPS dpcTriCaps;
DWORD dwDeviceRenderBitDepth;
DWORD dwDeviceZBufferBitDepth;
DWORD dwMaxBufferSize;
DWORD dwMaxVertexCount;
} D3DNTHALDEVICEDESC_V1, *LPD3DNTHALDEVICEDESC_V1;
typedef struct _D3DNTHAL_GLOBALDRIVERDATA {
DWORD dwSize;
D3DNTHALDEVICEDESC_V1 hwCaps;
DWORD dwNumVertices;
DWORD dwNumClipVertices;
DWORD dwNumTextureFormats;
LPDDSURFACEDESC lpTextureFormats;
} D3DNTHAL_GLOBALDRIVERDATA, *LPD3DNTHAL_GLOBALDRIVERDATA;
typedef struct _D3DNTHAL_CALLBACKS {
DWORD dwSize;
LPD3DNTHAL_CONTEXTCREATECB ContextCreate;
LPD3DNTHAL_CONTEXTDESTROYCB ContextDestroy;
LPD3DNTHAL_CONTEXTDESTROYALLCB ContextDestroyAll;
LPD3DNTHAL_SCENECAPTURECB SceneCapture;
LPVOID dwReserved10;
LPVOID dwReserved11;
LPVOID dwReserved22;
LPVOID dwReserved23;
ULONG_PTR dwReserved;
LPD3DNTHAL_TEXTURECREATECB TextureCreate;
LPD3DNTHAL_TEXTUREDESTROYCB TextureDestroy;
LPD3DNTHAL_TEXTURESWAPCB TextureSwap;
LPD3DNTHAL_TEXTUREGETSURFCB TextureGetSurf;
LPVOID dwReserved12;
LPVOID dwReserved13;
LPVOID dwReserved14;
LPVOID dwReserved15;
LPVOID dwReserved16;
LPVOID dwReserved17;
LPVOID dwReserved18;
LPVOID dwReserved19;
LPVOID dwReserved20;
LPVOID dwReserved21;
LPVOID dwReserved24;
ULONG_PTR dwReserved0;
ULONG_PTR dwReserved1;
ULONG_PTR dwReserved2;
ULONG_PTR dwReserved3;
ULONG_PTR dwReserved4;
ULONG_PTR dwReserved5;
ULONG_PTR dwReserved6;
ULONG_PTR dwReserved7;
ULONG_PTR dwReserved8;
ULONG_PTR dwReserved9;
} D3DNTHAL_CALLBACKS, *LPD3DNTHAL_CALLBACKS;
typedef struct _D3DNTHAL_SETRENDERTARGETDATA {
ULONG_PTR dwhContext;
PDD_SURFACE_LOCAL lpDDS;
PDD_SURFACE_LOCAL lpDDSZ;
HRESULT ddrval;
} D3DNTHAL_SETRENDERTARGETDATA;
typedef D3DNTHAL_SETRENDERTARGETDATA *LPD3DNTHAL_SETRENDERTARGETDATA;
typedef DWORD (APIENTRY *LPD3DNTHAL_SETRENDERTARGETCB)(LPD3DNTHAL_SETRENDERTARGETDATA);
typedef struct _D3DNTHAL_CALLBACKS2 {
DWORD dwSize;
DWORD dwFlags;
LPD3DNTHAL_SETRENDERTARGETCB SetRenderTarget;
LPVOID dwReserved1;
LPVOID dwReserved2;
LPVOID dwReserved3;
LPVOID dwReserved4;
} D3DNTHAL_CALLBACKS2, *LPD3DNTHAL_CALLBACKS2;
typedef struct _D3DNTHAL_CLEAR2DATA {
ULONG_PTR dwhContext;
DWORD dwFlags;
DWORD dwFillColor;
D3DVALUE dvFillDepth;
DWORD dwFillStencil;
LPD3DRECT lpRects;
DWORD dwNumRects;
HRESULT ddrval;
} D3DNTHAL_CLEAR2DATA;
typedef D3DNTHAL_CLEAR2DATA FAR *LPD3DNTHAL_CLEAR2DATA;
typedef struct _D3DNTHAL_VALIDATETEXTURESTAGESTATEDATA {
ULONG_PTR dwhContext;
DWORD dwFlags;
ULONG_PTR dwReserved;
DWORD dwNumPasses;
HRESULT ddrval;
} D3DNTHAL_VALIDATETEXTURESTAGESTATEDATA, FAR *LPD3DNTHAL_VALIDATETEXTURESTAGESTATEDATA;
typedef struct _D3DNTHAL_DRAWPRIMITIVES2DATA {
ULONG_PTR dwhContext;
DWORD dwFlags;
DWORD dwVertexType;
PDD_SURFACE_LOCAL lpDDCommands;
DWORD dwCommandOffset;
DWORD dwCommandLength;
__GNU_EXTENSION union {
PDD_SURFACE_LOCAL lpDDVertex;
LPVOID lpVertices;
};
DWORD dwVertexOffset;
DWORD dwVertexLength;
DWORD dwReqVertexBufSize;
DWORD dwReqCommandBufSize;
LPDWORD lpdwRStates;
__GNU_EXTENSION union {
DWORD dwVertexSize;
HRESULT ddrval;
};
DWORD dwErrorOffset;
} D3DNTHAL_DRAWPRIMITIVES2DATA, FAR *LPD3DNTHAL_DRAWPRIMITIVES2DATA;
typedef DWORD (APIENTRY *LPD3DNTHAL_CLEAR2CB)(LPD3DNTHAL_CLEAR2DATA);
typedef DWORD (APIENTRY *LPD3DNTHAL_VALIDATETEXTURESTAGESTATECB)(LPD3DNTHAL_VALIDATETEXTURESTAGESTATEDATA);
typedef DWORD (APIENTRY *LPD3DNTHAL_DRAWPRIMITIVES2CB)(LPD3DNTHAL_DRAWPRIMITIVES2DATA);
typedef struct _D3DNTHAL_CALLBACKS3 {
DWORD dwSize;
DWORD dwFlags;
LPD3DNTHAL_CLEAR2CB Clear2;
LPVOID lpvReserved;
LPD3DNTHAL_VALIDATETEXTURESTAGESTATECB ValidateTextureStageState;
LPD3DNTHAL_DRAWPRIMITIVES2CB DrawPrimitives2;
} D3DNTHAL_CALLBACKS3, *LPD3DNTHAL_CALLBACKS3;
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* __DDK_D3DNTHAL_H */

View File

@ -1,37 +1,197 @@
/**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#ifndef __INC_DCOMMON__
#define __INC_DCOMMON__
/*** Autogenerated by WIDL 5.16 from include/dcommon.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif
#include <rpc.h>
#include <rpcndr.h>
#endif
#ifndef COM_NO_WINDOWS_H
#include <windows.h>
#include <ole2.h>
#endif
#ifndef __dcommon_h__
#define __dcommon_h__
/* Forward declarations */
/* Headers for imported files */
#include <dxgiformat.h>
#ifdef __cplusplus
extern "C" {
#endif
#if 0
typedef struct __WIDL_dcommon_generated_name_00000000 {
LONG x;
LONG y;
} POINT;
typedef struct __WIDL_dcommon_generated_name_00000001 {
LONG left;
LONG top;
LONG right;
LONG bottom;
} RECT;
typedef unsigned int UINT32;
#endif
typedef enum DWRITE_MEASURING_MODE {
DWRITE_MEASURING_MODE_NATURAL = 0,
DWRITE_MEASURING_MODE_GDI_CLASSIC,
DWRITE_MEASURING_MODE_GDI_NATURAL
DWRITE_MEASURING_MODE_NATURAL = 0,
DWRITE_MEASURING_MODE_GDI_CLASSIC = 1,
DWRITE_MEASURING_MODE_GDI_NATURAL = 2
} DWRITE_MEASURING_MODE;
enum DWRITE_GLYPH_IMAGE_FORMATS {
DWRITE_GLYPH_IMAGE_FORMATS_NONE = 0x0000,
DWRITE_GLYPH_IMAGE_FORMATS_TRUETYPE = 0x0001,
DWRITE_GLYPH_IMAGE_FORMATS_CFF = 0x0002,
DWRITE_GLYPH_IMAGE_FORMATS_COLR = 0x0004,
DWRITE_GLYPH_IMAGE_FORMATS_SVG = 0x0008,
DWRITE_GLYPH_IMAGE_FORMATS_PNG = 0x0010,
DWRITE_GLYPH_IMAGE_FORMATS_JPEG = 0x0020,
DWRITE_GLYPH_IMAGE_FORMATS_TIFF = 0x0040,
DWRITE_GLYPH_IMAGE_FORMATS_PREMULTIPLIED_B8G8R8A8 = 0x0080,
};
typedef enum DWRITE_GLYPH_IMAGE_FORMATS {
DWRITE_GLYPH_IMAGE_FORMATS_NONE = 0,
DWRITE_GLYPH_IMAGE_FORMATS_TRUETYPE = 1 << 0,
DWRITE_GLYPH_IMAGE_FORMATS_CFF = 1 << 1,
DWRITE_GLYPH_IMAGE_FORMATS_COLR = 1 << 2,
DWRITE_GLYPH_IMAGE_FORMATS_SVG = 1 << 3,
DWRITE_GLYPH_IMAGE_FORMATS_PNG = 1 << 4,
DWRITE_GLYPH_IMAGE_FORMATS_JPEG = 1 << 5,
DWRITE_GLYPH_IMAGE_FORMATS_TIFF = 1 << 6,
DWRITE_GLYPH_IMAGE_FORMATS_PREMULTIPLIED_B8G8R8A8 = 1 << 7
} DWRITE_GLYPH_IMAGE_FORMATS;
typedef enum D2D1_ALPHA_MODE {
D2D1_ALPHA_MODE_UNKNOWN = 0,
D2D1_ALPHA_MODE_PREMULTIPLIED = 1,
D2D1_ALPHA_MODE_STRAIGHT = 2,
D2D1_ALPHA_MODE_IGNORE = 3,
D2D1_ALPHA_MODE_FORCE_DWORD = 0xffffffff
} D2D1_ALPHA_MODE;
typedef struct D2D1_PIXEL_FORMAT {
DXGI_FORMAT format;
D2D1_ALPHA_MODE alphaMode;
} D2D1_PIXEL_FORMAT;
typedef struct D2D_POINT_2F {
float x;
float y;
} D2D_POINT_2F;
typedef struct D2D_POINT_2F D2D1_POINT_2F;
typedef POINT D2D_POINT_2L;
typedef D2D_POINT_2L D2D1_POINT_2L;
struct D2D_SIZE_U {
UINT32 width;
UINT32 height;
};
typedef POINT D2D1_POINT_2L;
typedef struct D2D_VECTOR_2F {
float x;
float y;
} D2D_VECTOR_2F;
typedef struct D2D_VECTOR_3F {
float x;
float y;
float z;
} D2D_VECTOR_3F;
typedef struct D2D_VECTOR_4F {
float x;
float y;
float z;
float w;
} D2D_VECTOR_4F;
typedef RECT D2D_RECT_L;
typedef RECT D2D1_RECT_L;
typedef struct D2D_SIZE_U {
UINT32 width;
UINT32 height;
} D2D_SIZE_U;
typedef struct D2D_SIZE_U D2D1_SIZE_U;
typedef struct D2D_MATRIX_3X2_F {
__C89_NAMELESS union {
__C89_NAMELESS struct {
float m11;
float m12;
float m21;
float m22;
float dx;
float dy;
} __C89_NAMELESSSTRUCTNAME1;
__C89_NAMELESS struct {
float _11;
float _12;
float _21;
float _22;
float _31;
float _32;
} __C89_NAMELESSSTRUCTNAME2;
float m[3][2];
} __C89_NAMELESSUNIONNAME;
} D2D_MATRIX_3X2_F;
typedef struct D2D_MATRIX_4X3_F {
__C89_NAMELESS union {
__C89_NAMELESS struct {
float _11;
float _12;
float _13;
float _21;
float _22;
float _23;
float _31;
float _32;
float _33;
float _41;
float _42;
float _43;
} __C89_NAMELESSSTRUCTNAME;
float m[4][3];
} __C89_NAMELESSUNIONNAME;
} D2D_MATRIX_4X3_F;
typedef struct D2D_MATRIX_4X4_F {
__C89_NAMELESS union {
__C89_NAMELESS struct {
float _11;
float _12;
float _13;
float _14;
float _21;
float _22;
float _23;
float _24;
float _31;
float _32;
float _33;
float _34;
float _41;
float _42;
float _43;
float _44;
} __C89_NAMELESSSTRUCTNAME;
float m[4][4];
} __C89_NAMELESSUNIONNAME;
} D2D_MATRIX_4X4_F;
typedef struct D2D_MATRIX_5X4_F {
__C89_NAMELESS union {
__C89_NAMELESS struct {
float _11;
float _12;
float _13;
float _14;
float _21;
float _22;
float _23;
float _24;
float _31;
float _32;
float _33;
float _34;
float _41;
float _42;
float _43;
float _44;
float _51;
float _52;
float _53;
float _54;
} __C89_NAMELESSSTRUCTNAME;
float m[5][4];
} __C89_NAMELESSUNIONNAME;
} D2D_MATRIX_5X4_F;
/* Begin additional prototypes for all interfaces */
#endif /*#define __INC_DCOMMON__*/
/* End additional prototypes */
#ifdef __cplusplus
}
#endif
#endif /* __dcommon_h__ */

View File

@ -289,6 +289,106 @@ STDAPI DCompositionCreateDevice(IDXGIDevice *dxgiDevice, REFIID iid, void **dcom
STDAPI DCompositionCreateDevice2(IUnknown *renderingDevice, REFIID iid, void **dcompositionDevice);
#undef INTERFACE
#define INTERFACE IDCompositionVisual2
DECLARE_INTERFACE_IID_(IDCompositionVisual2, IDCompositionVisual, "E8DE1639-4331-4B26-BC5F-6A321D347A85")
{
STDMETHOD(SetOpacityMode)(THIS_ DCOMPOSITION_OPACITY_MODE) PURE;
STDMETHOD(SetBackFaceVisibility)(THIS_ DCOMPOSITION_BACKFACE_VISIBILITY) PURE;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IDCompositionVisual2,0xe8de1639,0x4331,0x4b26,0xbc,0x5f,0x6a,0x32,0x1d,0x34,0x7a,0x85);
#endif
#undef INTERFACE
#define INTERFACE IDCompositionSurfaceFactory
DECLARE_INTERFACE_IID_(IDCompositionSurfaceFactory, IUnknown, "E334BC12-3937-4E02-85EB-FCF4EB30D2C8")
{
STDMETHOD(CreateSurface)(THIS_ UINT,UINT, DXGI_FORMAT, DXGI_ALPHA_MODE, IDCompositionSurface**) PURE;
STDMETHOD(CreateVirtualSurface)(THIS_ UINT, UINT, DXGI_FORMAT , DXGI_ALPHA_MODE, IDCompositionVirtualSurface**) PURE;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IDCompositionSurfaceFactory,0xe334bc12,0x3937,0x4e02,0x85,0xeb,0xfc,0xf4,0xeb,0x30,0xd2,0xc8);
#endif
#undef INTERFACE
#define INTERFACE IDCompositionDevice2
DECLARE_INTERFACE_IID_(IDCompositionDevice2, IUnknown, "75F6468D-1B8E-447C-9BC6-75FEA80B5B25")
{
STDMETHOD(Commit)(THIS) PURE;
STDMETHOD(WaitForCommitCompletion)(THIS) PURE;
STDMETHOD(GetFrameStatistics)(THIS_ DCOMPOSITION_FRAME_STATISTICS*) PURE;
STDMETHOD(CreateVisual)(THIS_ IDCompositionVisual2**) PURE;
STDMETHOD(CreateSurfaceFactory)(THIS_ IUnknown*, IDCompositionSurfaceFactory**) PURE;
STDMETHOD(CreateSurface)(THIS_ UINT, UINT, DXGI_FORMAT, DXGI_ALPHA_MODE, IDCompositionSurface**) PURE;
STDMETHOD(CreateVirtualSurface)(THIS_ UINT, UINT, DXGI_FORMAT, DXGI_ALPHA_MODE, IDCompositionVirtualSurface**) PURE;
STDMETHOD(CreateTranslateTransform)(THIS_ IDCompositionTranslateTransform**) PURE;
STDMETHOD(CreateScaleTransform)(THIS_ IDCompositionScaleTransform**) PURE;
STDMETHOD(CreateRotateTransform)(THIS_ IDCompositionRotateTransform**) PURE;
STDMETHOD(CreateSkewTransform)(THIS_ IDCompositionSkewTransform**) PURE;
STDMETHOD(CreateMatrixTransform)(THIS_ IDCompositionMatrixTransform**) PURE;
STDMETHOD(CreateTransformGroup)(THIS_ IDCompositionTransform**, UINT, IDCompositionTransform**) PURE;
STDMETHOD(CreateTranslateTransform3D)(THIS_ IDCompositionTranslateTransform3D**) PURE;
STDMETHOD(CreateScaleTransform3D)(THIS_ IDCompositionScaleTransform3D**) PURE;
STDMETHOD(CreateRotateTransform3D)(THIS_ IDCompositionRotateTransform3D**) PURE;
STDMETHOD(CreateMatrixTransform3D)(THIS_ IDCompositionMatrixTransform3D**) PURE;
STDMETHOD(CreateTransform3DGroup)(THIS_ IDCompositionTransform3D**, UINT, IDCompositionTransform3D**) PURE;
STDMETHOD(CreateEffectGroup)(THIS_ IDCompositionEffectGroup**) PURE;
STDMETHOD(CreateRectangleClip)(THIS_ IDCompositionRectangleClip**) PURE;
STDMETHOD(CreateAnimation)(THIS_ IDCompositionAnimation**) PURE;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IDCompositionDevice2,0x75f6468d,0x1b8e,0x447c,0x9b,0xc6,0x75,0xfe,0xa8,0x0b,0x5b,0x25);
#endif
#undef INTERFACE
#define INTERFACE IDCompositionDesktopDevice
DECLARE_INTERFACE_IID_(IDCompositionDesktopDevice, IDCompositionDevice2, "5F4633FE-1E08-4CB8-8C75-CE24333F5602")
{
STDMETHOD(CreateTargetForHwnd)(THIS_ HWND, BOOL, IDCompositionTarget**) PURE;
STDMETHOD(CreateSurfaceFromHandle)(THIS_ HANDLE, IUnknown**) PURE;
STDMETHOD(CreateSurfaceFromHwnd)(THIS_ HWND, IUnknown**) PURE;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IDCompositionDesktopDevice,0x5f4633fe,0x1e08,0x4cb8,0x8c,0x75,0xce,0x24,0x33,0x3f,0x56,0x02);
#endif
#undef INTERFACE
#define INTERFACE IDCompositionDeviceDebug
DECLARE_INTERFACE_IID_(IDCompositionDeviceDebug, IUnknown, "A1A3C64A-224F-4A81-9773-4F03A89D3C6C")
{
STDMETHOD(EnableDebugCounters)(THIS_) PURE;
STDMETHOD(DisableDebugCounters)(THIS_) PURE;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IDCompositionDeviceDebug,0xa1a3c64a,0x224f,0x4a81,0x97,0x73,0x4f,0x03,0xa8,0x9d,0x3c,0x6c);
#endif
#undef INTERFACE
#define INTERFACE IDCompositionVisualDebug
DECLARE_INTERFACE_IID_(IDCompositionVisualDebug, IDCompositionVisual2, "FED2B808-5EB4-43A0-AEA3-35F65280F91B")
{
STDMETHOD(EnableHeatMap)(THIS_ const D2D1_COLOR_F &color) PURE;
STDMETHOD(DisableHeatMap)(THIS_) PURE;
STDMETHOD(EnableRedrawRegions)(THIS_) PURE;
STDMETHOD(DisableRedrawRegions)(THIS_) PURE;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IDCompositionVisualDebug,0xfed2b808,0x5eb4,0x43a0,0xae,0xa3,0x35,0xf6,0x52,0x80,0xf9,0x1b);
#endif
#endif
#if (_WIN32_WINNT >= 0x0A00)

View File

@ -28,10 +28,35 @@ enum DCOMPOSITION_BORDER_MODE {
enum DCOMPOSITION_COMPOSITE_MODE {
DCOMPOSITION_COMPOSITE_MODE_SOURCE_OVER = 0,
DCOMPOSITION_COMPOSITE_MODE_DESTINATION_INVERT = 1,
#if _WIN32_WINNT >= _WIN32_WINNT_WINBLUE
DCOMPOSITION_COMPOSITE_MODE_MIN_BLEND = 2,
#endif
DCOMPOSITION_COMPOSITE_MODE_INHERIT = 0xffffffff
};
#if _WIN32_WINNT >= _WIN32_WINNT_WINBLUE
enum DCOMPOSITION_BACKFACE_VISIBILITY {
DCOMPOSITION_BACKFACE_VISIBILITY_VISIBLE = 0,
DCOMPOSITION_BACKFACE_VISIBILITY_HIDDEN = 1,
DCOMPOSITION_BACKFACE_VISIBILITY_INHERIT = 0xffffffff
};
enum DCOMPOSITION_OPACITY_MODE {
DCOMPOSITION_OPACITY_MODE_LAYER = 0,
DCOMPOSITION_OPACITY_MODE_MULTIPLY = 1,
DCOMPOSITION_OPACITY_MODE_INHERIT = 0xffffffff
};
#endif
#if _WIN32_WINNT >= _WIN32_WINNT_WINTHRESHOLD
enum DCOMPOSITION_DEPTH_MODE {
DCOMPOSITION_DEPTH_MODE_TREE = 0,
DCOMPOSITION_DEPTH_MODE_SPATIAL = 1,
DCOMPOSITION_DEPTH_MODE_SORTED = 3,
DCOMPOSITION_DEPTH_MODE_INHERIT = 0xffffffff
};
#endif
typedef struct {
LARGE_INTEGER lastFrameTime;
DXGI_RATIONAL currentCompositionRate;
@ -40,5 +65,10 @@ typedef struct {
LARGE_INTEGER nextEstimatedFrameTime;
} DCOMPOSITION_FRAME_STATISTICS;
#endif
#define COMPOSITIONOBJECT_READ 0x01
#define COMPOSITIONOBJECT_WRITE 0x02
#define COMPOSITIONOBJECT_ALL_ACCESS (COMPOSITIONOBJECT_READ | COMPOSITIONOBJECT_WRITE)
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
#endif /* _DCOMPTYPES_H_ */

View File

@ -4254,8 +4254,8 @@ typedef struct _STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE {
ULONG ResponseLevel;
ULONG NumberEntries;
_ANONYMOUS_UNION union {
STORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY Lev1Depends[];
STORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY Lev2Depends[];
STORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY Lev1Depends[0];
STORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY Lev2Depends[0];
} DUMMYUNIONNAME;
} STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE, *PSTORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE;

View File

@ -113,12 +113,15 @@ extern "C" {
#define NOTIFICATION_BUSY_EVENT_NO_EVENT 0x0
#define NOTIFICATION_BUSY_EVENT_NO_CHANGE 0x0
#define NOTIFICATION_BUSY_EVENT_BUSY 0x1
#define NOTIFICATION_BUSY_EVENT_LO_CHANGE 0x2
#define NOTIFICATION_BUSY_STATUS_NO_EVENT 0x0
#define NOTIFICATION_BUSY_STATUS_POWER 0x1
#define NOTIFICATION_BUSY_STATUS_IMMEDIATE 0x2
#define NOTIFICATION_BUSY_STATUS_DEFERRED 0x3
#define SECURITY_PROTOCOL_IEEE1667 0xEE
#define DVD_FORMAT_LEAD_IN 0x00
#define DVD_FORMAT_COPYRIGHT 0x01
#define DVD_FORMAT_DISK_KEY 0x02
@ -292,6 +295,7 @@ extern "C" {
#define SCSIOP_CHANGE_DEFINITION 0x40
#define SCSIOP_WRITE_SAME 0x41
#define SCSIOP_READ_SUB_CHANNEL 0x42
#define SCSIOP_UNMAP 0x42
#define SCSIOP_READ_TOC 0x43
#define SCSIOP_READ_HEADER 0x44
#define SCSIOP_REPORT_DENSITY_SUPPORT 0x44
@ -299,6 +303,7 @@ extern "C" {
#define SCSIOP_GET_CONFIGURATION 0x46
#define SCSIOP_PLAY_AUDIO_MSF 0x47
#define SCSIOP_PLAY_TRACK_INDEX 0x48
#define SCSIOP_SANITIZE 0x48
#define SCSIOP_PLAY_TRACK_RELATIVE 0x49
#define SCSIOP_GET_EVENT_STATUS 0x4A
#define SCSIOP_PAUSE_RESUME 0x4B
@ -330,6 +335,7 @@ extern "C" {
#define SCSIOP_BLANK 0xA1
#define SCSIOP_ATA_PASSTHROUGH12 0xA1
#define SCSIOP_SEND_EVENT 0xA2
#define SCSIOP_SECURITY_PROTOCOL_IN 0xA2
#define SCSIOP_SEND_KEY 0xA3
#define SCSIOP_MAINTENANCE_IN 0xA3
#define SCSIOP_REPORT_KEY 0xA4
@ -355,6 +361,7 @@ extern "C" {
#define SCSIOP_SET_LIMITS12 0xB3
#define SCSIOP_READ_ELEMENT_STATUS_ATTACHED 0xB4
#define SCSIOP_REQUEST_VOL_ELEMENT 0xB5
#define SCSIOP_SECURITY_PROTOCOL_OUT 0xB5
#define SCSIOP_SEND_VOLUME_TAG 0xB6
#define SCSIOP_SET_STREAMING 0xB6
#define SCSIOP_READ_DEFECT_DATA 0xB7
@ -380,11 +387,15 @@ extern "C" {
#define SCSIOP_READ_REVERSE16 0x81
#define SCSIOP_REGENERATE16 0x82
#define SCSIOP_EXTENDED_COPY 0x83
#define SCSIOP_POPULATE_TOKEN 0x83
#define SCSIOP_WRITE_USING_TOKEN 0x83
#define SCSIOP_RECEIVE_COPY_RESULTS 0x84
#define SCSIOP_RECEIVE_ROD_TOKEN_INFORMATION 0x84
#define SCSIOP_ATA_PASSTHROUGH16 0x85
#define SCSIOP_ACCESS_CONTROL_IN 0x86
#define SCSIOP_ACCESS_CONTROL_OUT 0x87
#define SCSIOP_READ16 0x88
#define SCSIOP_COMPARE_AND_WRITE 0x89
#define SCSIOP_WRITE16 0x8A
#define SCSIOP_READ_ATTRIBUTES 0x8C
#define SCSIOP_WRITE_ATTRIBUTES 0x8D
@ -397,10 +408,62 @@ extern "C" {
#define SCSIOP_LOCATE16 0x92
#define SCSIOP_WRITE_SAME16 0x93
#define SCSIOP_ERASE16 0x93
#define SCSIOP_ZBC_OUT 0x94
#define SCSIOP_ZBC_IN 0x95
#define SCSIOP_READ_DATA_BUFF16 0x9B
#define SCSIOP_READ_CAPACITY16 0x9E
#define SCSIOP_GET_LBA_STATUS 0x9E
#define SCSIOP_GET_PHYSICAL_ELEMENT_STATUS 0x9E
#define SCSIOP_REMOVE_ELEMENT_AND_TRUNCATE 0x9E
#define SCSIOP_SERVICE_ACTION_IN16 0x9E
#define SCSIOP_SERVICE_ACTION_OUT16 0x9F
#define SCSIOP_OPERATION32 0x7F
#define SERVICE_ACTION_OVERWRITE 0x01
#define SERVICE_ACTION_BLOCK_ERASE 0x02
#define SERVICE_ACTION_CRYPTO_ERASE 0x03
#define SERVICE_ACTION_EXIT_FAILURE 0x1f
#define SERVICE_ACTION_XDWRITE 0x0004
#define SERVICE_ACTION_XPWRITE 0x0006
#define SERVICE_ACTION_XDWRITEREAD 0x0007
#define SERVICE_ACTION_WRITE 0x000B
#define SERVICE_ACTION_WRITE_VERIFY 0x000C
#define SERVICE_ACTION_WRITE_SAME 0x000D
#define SERVICE_ACTION_ORWRITE 0x000E
#define SERVICE_ACTION_POPULATE_TOKEN 0x10
#define SERVICE_ACTION_WRITE_USING_TOKEN 0x11
#define SERVICE_ACTION_RECEIVE_TOKEN_INFORMATION 0x07
#define SERVICE_ACTION_CLOSE_ZONE 0x01
#define SERVICE_ACTION_FINISH_ZONE 0x02
#define SERVICE_ACTION_OPEN_ZONE 0x03
#define SERVICE_ACTION_RESET_WRITE_POINTER 0x04
#define SERVICE_ACTION_REPORT_ZONES 0x00
#define REPORT_ZONES_OPTION_LIST_ALL_ZONES 0x00
#define REPORT_ZONES_OPTION_LIST_EMPTY_ZONES 0x01
#define REPORT_ZONES_OPTION_LIST_IMPLICITLY_OPENED_ZONES 0x02
#define REPORT_ZONES_OPTION_LIST_EXPLICITLY_OPENED_ZONES 0x03
#define REPORT_ZONES_OPTION_LIST_CLOSED_ZONES 0x04
#define REPORT_ZONES_OPTION_LIST_FULL_ZONES 0x05
#define REPORT_ZONES_OPTION_LIST_READ_ONLY_ZONES 0x06
#define REPORT_ZONES_OPTION_LIST_OFFLINE_ZONES 0x07
#define REPORT_ZONES_OPTION_LIST_RWP_ZONES 0x10
#define REPORT_ZONES_OPTION_LIST_NON_SEQUENTIAL_WRITE_RESOURCES_ACTIVE_ZONES 0x11
#define REPORT_ZONES_OPTION_LIST_NOT_WRITE_POINTER_ZONES 0x3F
#define SERVICE_ACTION_READ_CAPACITY16 0x10
#define SERVICE_ACTION_GET_LBA_STATUS 0x12
#define SERVICE_ACTION_GET_PHYSICAL_ELEMENT_STATUS 0x17
#define SERVICE_ACTION_REMOVE_ELEMENT_AND_TRUNCATE 0x18
#define SERVICE_ACTION_REPORT_TIMESTAMP 0x0F
#define SERVICE_ACTION_SET_TIMESTAMP 0x0F
#define CDB_RETURN_ON_COMPLETION 0
#define CDB_RETURN_IMMEDIATE 1
@ -454,6 +517,9 @@ extern "C" {
#define START_UNIT_CODE 0x01
#define STOP_UNIT_CODE 0x00
#define OFFSET_VER_DESCRIPTOR_ONE (FIELD_OFFSET(INQUIRYDATA, VersionDescriptors[0]))
#define OFFSET_VER_DESCRIPTOR_EIGHT (FIELD_OFFSET(INQUIRYDATA, VersionDescriptors[8]))
/* INQUIRYDATA.DeviceType constants */
#define DIRECT_ACCESS_DEVICE 0x00
#define SEQUENTIAL_ACCESS_DEVICE 0x01
@ -471,6 +537,8 @@ extern "C" {
#define OPTICAL_CARD_READER_WRITER_DEVICE 0x0F
#define BRIDGE_CONTROLLER_DEVICE 0x10
#define OBJECT_BASED_STORAGE_DEVICE 0x11
#define HOST_MANAGED_ZONED_BLOCK_DEVICE 0x14
#define UNKNOWN_OR_NO_DEVICE 0x1F
#define LOGICAL_UNIT_NOT_PRESENT_DEVICE 0x7F
#define DEVICE_QUALIFIER_ACTIVE 0x00
@ -785,6 +853,26 @@ typedef union _CDB {
UCHAR VerificationLength[3];
UCHAR Control;
} CDB6VERIFY;
struct _RECEIVE_DIAGNOSTIC {
UCHAR OperationCode;
UCHAR PageCodeValid:1;
UCHAR Reserved:7;
UCHAR PageCode;
UCHAR AllocationLength[2];
UCHAR Control;
} RECEIVE_DIAGNOSTIC;
struct _SEND_DIAGNOSTIC {
UCHAR OperationCode;
UCHAR UnitOffline:1;
UCHAR DeviceOffline:1;
UCHAR SelfTest:1;
UCHAR Reserved1:1;
UCHAR PageFormat:1;
UCHAR SelfTestCode:3;
UCHAR Reserved2;
UCHAR ParameterListLength[2];
UCHAR Control;
} SEND_DIAGNOSTIC;
struct _CDB6FORMAT {
UCHAR OperationCode;
UCHAR FormatControl:5;
@ -833,6 +921,66 @@ typedef union _CDB {
UCHAR Reserved2;
UCHAR Control;
} CDB16;
struct _READ_BUFFER_10 {
UCHAR OperationCode;
UCHAR Mode:5;
UCHAR ModeSpecific:3;
UCHAR BufferId;
UCHAR BufferOffset[3];
UCHAR AllocationLength[3];
UCHAR Control;
} READ_BUFFER_10;
struct _READ_BUFFER_16 {
UCHAR OperationCode;
UCHAR Mode:5;
UCHAR ModeSpecific:3;
UCHAR BufferOffset[8];
UCHAR AllocationLength[4];
UCHAR BufferId;
UCHAR Control;
} READ_BUFFER_16;
struct _SECURITY_PROTOCOL_IN {
UCHAR OperationCode;
UCHAR SecurityProtocol;
UCHAR SecurityProtocolSpecific[2];
UCHAR Reserved1:7;
UCHAR INC_512:1;
UCHAR Reserved2;
UCHAR AllocationLength[4];
UCHAR Reserved3;
UCHAR Control;
} SECURITY_PROTOCOL_IN;
struct _SECURITY_PROTOCOL_OUT {
UCHAR OperationCode;
UCHAR SecurityProtocol;
UCHAR SecurityProtocolSpecific[2];
UCHAR Reserved1:7;
UCHAR INC_512:1;
UCHAR Reserved2;
UCHAR AllocationLength[4];
UCHAR Reserved3;
UCHAR Control;
} SECURITY_PROTOCOL_OUT;
struct _UNMAP {
UCHAR OperationCode;
UCHAR Anchor:1;
UCHAR Reserved1:7;
UCHAR Reserved2[4];
UCHAR GroupNumber:5;
UCHAR Reserved3:3;
UCHAR AllocationLength[2];
UCHAR Control;
} UNMAP;
struct _SANITIZE {
UCHAR OperationCode;
UCHAR ServiceAction:5;
UCHAR AUSE:1;
UCHAR Reserved1:1;
UCHAR Immediate:1;
UCHAR Reserved2[5];
UCHAR ParameterListLength[2];
UCHAR Control;
} SANITIZE;
struct _PAUSE_RESUME {
UCHAR OperationCode;
UCHAR Reserved1:5;
@ -865,9 +1013,8 @@ typedef union _CDB {
} READ_DISK_INFORMATION;
struct _READ_TRACK_INFORMATION {
UCHAR OperationCode;
UCHAR Track:1;
UCHAR Reserved1:3;
UCHAR Reserved2:1;
UCHAR Track:2;
UCHAR Reserved4:3;
UCHAR Lun:3;
UCHAR BlockAddress[4];
UCHAR Reserved3;
@ -975,24 +1122,22 @@ typedef union _CDB {
UCHAR CMSF:1;
UCHAR ExpectedSectorType:3;
UCHAR Lun:3;
struct _LBA {
UCHAR StartingBlockAddress[4];
UCHAR PlayLength[4];
};
struct _MSF {
UCHAR Reserved1;
UCHAR StartingM;
UCHAR StartingS;
UCHAR StartingF;
UCHAR EndingM;
UCHAR EndingS;
UCHAR EndingF;
UCHAR Reserved2;
};
_ANONYMOUS_UNION union {
struct _LBA LBA;
struct _MSF MSF;
} DUMMYUNIONNAME;
struct {
UCHAR StartingBlockAddress[4];
UCHAR PlayLength[4];
} LBA;
struct {
UCHAR Reserved1;
UCHAR StartingM;
UCHAR StartingS;
UCHAR StartingF;
UCHAR EndingM;
UCHAR EndingS;
UCHAR EndingF;
UCHAR Reserved2;
} MSF;
};
UCHAR Audio:1;
UCHAR Composite:1;
UCHAR Port1:1;
@ -1105,7 +1250,33 @@ typedef union _CDB {
UCHAR TransferBlockByte1;
UCHAR Control;
} NEC_READ_CDDA;
#if NTDDI_VERSION >= NTDDI_WIN8
struct _MODE_SENSE {
UCHAR OperationCode;
UCHAR Reserved1:3;
UCHAR Dbd:1;
UCHAR Reserved2:4;
UCHAR PageCode:6;
UCHAR Pc:2;
UCHAR SubPageCode;
UCHAR AllocationLength;
UCHAR Control;
} MODE_SENSE;
struct _MODE_SENSE10 {
UCHAR OperationCode;
UCHAR Reserved1:3;
UCHAR Dbd:1;
UCHAR LongLBAAccepted:1;
UCHAR Reserved2:3;
UCHAR PageCode:6;
UCHAR Pc:2;
UCHAR SubPageCode;
UCHAR Reserved3[3];
UCHAR AllocationLength[2];
UCHAR Control;
} MODE_SENSE10;
#else
struct _MODE_SENSE {
UCHAR OperationCode;
UCHAR Reserved1:3;
UCHAR Dbd:1;
@ -1129,6 +1300,7 @@ typedef union _CDB {
UCHAR AllocationLength[2];
UCHAR Control;
} MODE_SENSE10;
#endif /* NTDDI_VERSION >= NTDDI_WIN8 */
struct _MODE_SELECT {
UCHAR OperationCode;
UCHAR SPBit:1;
@ -1170,7 +1342,10 @@ typedef union _CDB {
UCHAR LogicalUnitNumber:3;
UCHAR PageCode:6;
UCHAR PCBit:2;
UCHAR Reserved2;
_ANONYMOUS_UNION union {
UCHAR SubPageCode;
UCHAR Reserved2;
};
UCHAR Reserved3;
UCHAR ParameterPointer[2];
UCHAR AllocationLength[2];
@ -1548,10 +1723,28 @@ typedef union _CDB {
UCHAR ParameterListLength[2];
UCHAR Control;
} PERSISTENT_RESERVE_OUT;
struct _REPORT_TIMESTAMP {
UCHAR OperationCode;
UCHAR ServiceAction:5;
UCHAR Reserved1:3;
UCHAR Reserved2[4];
UCHAR AllocationLength[4];
UCHAR Reserved3;
UCHAR Control;
} REPORT_TIMESTAMP;
struct _SET_TIMESTAMP {
UCHAR OperationCode;
UCHAR ServiceAction:5;
UCHAR Reserved1:3;
UCHAR Reserved2[4];
UCHAR ParameterListLength[4];
UCHAR Reserved3;
UCHAR Control;
} SET_TIMESTAMP;
struct _GET_CONFIGURATION {
UCHAR OperationCode;
UCHAR RequestType:1;
UCHAR Reserved1:7;
UCHAR RequestType:2;
UCHAR Reserved1:6;
UCHAR StartingFeature[2];
UCHAR Reserved2[3];
UCHAR AllocationLength[2];
@ -1598,6 +1791,27 @@ typedef union _CDB {
UCHAR Streaming:1;
UCHAR Control;
} WRITE12;
struct _ATA_PASSTHROUGH12 {
UCHAR OperationCode;
UCHAR Reserved1:1;
UCHAR Protocol:4;
UCHAR MultipleCount:3;
UCHAR TLength:2;
UCHAR ByteBlock:1;
UCHAR TDir:1;
UCHAR Reserved2:1;
UCHAR CkCond:1;
UCHAR Offline:2;
UCHAR Features;
UCHAR SectorCount;
UCHAR LbaLow;
UCHAR LbaMid;
UCHAR LbaHigh;
UCHAR Device;
UCHAR Command;
UCHAR Reserved3;
UCHAR Control;
} ATA_PASSTHROUGH12;
struct _READ16 {
UCHAR OperationCode;
UCHAR Reserved1:3;
@ -1656,6 +1870,142 @@ typedef union _CDB {
UCHAR Reserved2:7;
UCHAR Control;
} READ_CAPACITY16;
struct _ATA_PASSTHROUGH16 {
UCHAR OperationCode;
UCHAR Extend:1;
UCHAR Protocol:4;
UCHAR MultipleCount:3;
UCHAR TLength:2;
UCHAR ByteBlock:1;
UCHAR TDir:1;
UCHAR Reserved1:1;
UCHAR CkCond:1;
UCHAR Offline:2;
UCHAR Features15_8;
UCHAR Features7_0;
UCHAR SectorCount15_8;
UCHAR SectorCount7_0;
UCHAR LbaLow15_8;
UCHAR LbaLow7_0;
UCHAR LbaMid15_8;
UCHAR LbaMid7_0;
UCHAR LbaHigh15_8;
UCHAR LbaHigh7_0;
UCHAR Device;
UCHAR Command;
UCHAR Control;
} ATA_PASSTHROUGH16;
struct _GET_LBA_STATUS {
UCHAR OperationCode;
UCHAR ServiceAction:5;
UCHAR Reserved1:3;
UCHAR StartingLBA[8];
UCHAR AllocationLength[4];
UCHAR Reserved2;
UCHAR Control;
} GET_LBA_STATUS;
struct _TOKEN_OPERATION {
UCHAR OperationCode;
UCHAR ServiceAction:5;
UCHAR Reserved1:3;
UCHAR Reserved2[4];
UCHAR ListIdentifier[4];
UCHAR ParameterListLength[4];
UCHAR GroupNumber: 5;
UCHAR Reserved3: 3;
UCHAR Control;
} TOKEN_OPERATION;
struct _RECEIVE_TOKEN_INFORMATION {
UCHAR OperationCode;
UCHAR ServiceAction:5;
UCHAR Reserved1:3;
UCHAR ListIdentifier[4];
UCHAR Reserved2[4];
UCHAR AllocationLength[4];
UCHAR Reserved3;
UCHAR Control;
} RECEIVE_TOKEN_INFORMATION;
struct _WRITE_BUFFER {
UCHAR OperationCode;
UCHAR Mode:5;
UCHAR ModeSpecific:3;
UCHAR BufferID;
UCHAR BufferOffset[3];
UCHAR ParameterListLength[3];
UCHAR Control;
} WRITE_BUFFER;
struct _CLOSE_ZONE {
UCHAR OperationCode;
UCHAR ServiceAction:5;
UCHAR Reserved1:3;
UCHAR ZoneId[8];
UCHAR Reserved2[4];
UCHAR All:1;
UCHAR Reserved3:7;
UCHAR Control;
} CLOSE_ZONE;
struct _FINISH_ZONE {
UCHAR OperationCode;
UCHAR ServiceAction:5;
UCHAR Reserved1:3;
UCHAR ZoneId[8];
UCHAR Reserved2[4];
UCHAR All:1;
UCHAR Reserved3:7;
UCHAR Control;
} FINISH_ZONE;
struct _OPEN_ZONE {
UCHAR OperationCode;
UCHAR ServiceAction:5;
UCHAR Reserved1:3;
UCHAR ZoneId[8];
UCHAR Reserved2[4];
UCHAR All:1;
UCHAR Reserved3:7;
UCHAR Control;
} OPEN_ZONE;
struct _RESET_WRITE_POINTER {
UCHAR OperationCode;
UCHAR ServiceAction:5;
UCHAR Reserved1:3;
UCHAR ZoneId[8];
UCHAR Reserved2[4];
UCHAR All:1;
UCHAR Reserved3:7;
UCHAR Control;
} RESET_WRITE_POINTER;
struct _REPORT_ZONES {
UCHAR OperationCode;
UCHAR ServiceAction:5;
UCHAR Reserved1:3;
UCHAR ZoneStartLBA[8];
UCHAR AllocationLength[4];
UCHAR ReportingOptions:6;
UCHAR Reserved3:1;
UCHAR Partial:1;
UCHAR Control;
} REPORT_ZONES;
struct _GET_PHYSICAL_ELEMENT_STATUS {
UCHAR OperationCode;
UCHAR ServiceAction:5;
UCHAR Reserved1:3;
UCHAR Reserved2[4];
UCHAR StartingElement[4];
UCHAR AllocationLength[4];
UCHAR ReportType:4;
UCHAR Reserved3:2;
UCHAR Filter:2;
UCHAR Control;
} GET_PHYSICAL_ELEMENT_STATUS;
struct _REMOVE_ELEMENT_AND_TRUNCATE {
UCHAR OperationCode;
UCHAR ServiceAction:5;
UCHAR Reserved1:3;
UCHAR RequestedCapacity[8];
UCHAR ElementIdentifier[4];
UCHAR Reserved2;
UCHAR Control;
} REMOVE_ELEMENT_AND_TRUNCATE;
ULONG AsUlong[4];
UCHAR AsByte[16];
} CDB, *PCDB;
@ -1726,6 +2076,12 @@ typedef struct _NOTIFICATION_BUSY_STATUS {
UCHAR Time[2];
} NOTIFICATION_BUSY_STATUS, *PNOTIFICATION_BUSY_STATUS;
typedef struct _SUPPORTED_SECURITY_PROTOCOLS_PARAMETER_DATA {
UCHAR Reserved1[6];
UCHAR SupportedSecurityListLength[2];
UCHAR SupportedSecurityProtocol[0];
} SUPPORTED_SECURITY_PROTOCOLS_PARAMETER_DATA, *PSUPPORTED_SECURITY_PROTOCOLS_PARAMETER_DATA;
typedef struct _READ_DVD_STRUCTURES_HEADER {
UCHAR Length[2];
UCHAR Reserved[2];

View File

@ -1366,9 +1366,8 @@ typedef enum _LOCK_OPERATION {
#define KTIMER_ACTUAL_LENGTH (FIELD_OFFSET(KTIMER, Period) + sizeof(LONG))
typedef BOOLEAN
(NTAPI *PKSYNCHRONIZE_ROUTINE)(
IN PVOID SynchronizeContext);
typedef BOOLEAN (NTAPI KSYNCHRONIZE_ROUTINE)(PVOID SynchronizeContext);
typedef KSYNCHRONIZE_ROUTINE *PKSYNCHRONIZE_ROUTINE;
typedef enum _POOL_TYPE {
NonPagedPool,
@ -2666,6 +2665,56 @@ NTSTATUS
IN OUT PVOID Context OPTIONAL);
typedef POWER_SETTING_CALLBACK *PPOWER_SETTING_CALLBACK;
DECLARE_HANDLE(POHANDLE);
#define PO_FX_VERSION_V1 1
#define PO_FX_VERSION_V2 2
#define PO_FX_VERSION PO_FX_VERSION_V2
typedef void (NTAPI PO_FX_COMPONENT_ACTIVE_CONDITION_CALLBACK)(void *context, ULONG component);
typedef PO_FX_COMPONENT_ACTIVE_CONDITION_CALLBACK *PPO_FX_COMPONENT_ACTIVE_CONDITION_CALLBACK;
typedef void (NTAPI PO_FX_COMPONENT_IDLE_CONDITION_CALLBACK)(void *context, ULONG component);
typedef PO_FX_COMPONENT_IDLE_CONDITION_CALLBACK *PPO_FX_COMPONENT_IDLE_CONDITION_CALLBACK;
typedef void (NTAPI PO_FX_COMPONENT_IDLE_STATE_CALLBACK)(void *context, ULONG component, ULONG state);
typedef PO_FX_COMPONENT_IDLE_STATE_CALLBACK *PPO_FX_COMPONENT_IDLE_STATE_CALLBACK;
typedef NTSTATUS (NTAPI PO_FX_POWER_CONTROL_CALLBACK)(void *context, const GUID *code, void *in, SIZE_T in_size, void *out, SIZE_T out_size, SIZE_T *ret_size);
typedef PO_FX_POWER_CONTROL_CALLBACK *PPO_FX_POWER_CONTROL_CALLBACK;
typedef struct _PO_FX_COMPONENT_IDLE_STATE
{
ULONGLONG TransitionLatency;
ULONGLONG ResidencyRequirement;
ULONG NominalPower;
} PO_FX_COMPONENT_IDLE_STATE, *PPO_FX_COMPONENT_IDLE_STATE;
typedef struct _PO_FX_COMPONENT_V1
{
GUID Id;
ULONG IdleStateCount;
ULONG DeepestWakeableIdleState;
PO_FX_COMPONENT_IDLE_STATE *IdleStates;
} PO_FX_COMPONENT_V1, *PPO_FX_COMPONENT_V1;
typedef struct _PO_FX_COMPONENT_V2
{
GUID Id;
ULONGLONG Flags;
ULONG DeepestWakeableIdleState;
ULONG IdleStateCount;
PO_FX_COMPONENT_IDLE_STATE *IdleStates;
ULONG ProviderCount;
ULONG *Providers;
} PO_FX_COMPONENT_V2, *PPO_FX_COMPONENT_V2;
#if PO_FX_VERSION == PO_FX_VERSION_V1
typedef PO_FX_COMPONENT_V1 PO_FX_COMPONENT, *PPO_FX_COMPONENT;
#else
typedef PO_FX_COMPONENT_V2 PO_FX_COMPONENT, *PPO_FX_COMPONENT;
#endif
/******************************************************************************
* Configuration Manager Types *
******************************************************************************/
@ -5771,6 +5820,14 @@ typedef struct _DMA_ADAPTER {
struct _DMA_OPERATIONS* DmaOperations;
} DMA_ADAPTER, *PDMA_ADAPTER;
typedef enum
{
DmaComplete,
DmaAborted,
DmaError,
DmaCancelled,
} DMA_COMPLETION_STATUS;
typedef VOID
(NTAPI *PPUT_DMA_ADAPTER)(
IN PDMA_ADAPTER DmaAdapter);
@ -13396,8 +13453,26 @@ ExInitializeFastMutex(
return;
}
typedef void *PEXT_CANCEL_PARAMETERS;
typedef void (NTAPI EXT_DELETE_CALLBACK)(void *context);
typedef EXT_DELETE_CALLBACK *PEXT_DELETE_CALLBACK;
typedef struct _EXT_DELETE_PARAMETERS
{
ULONG Version;
ULONG Reserved;
PEXT_DELETE_CALLBACK DeleteCallback;
void *DeleteContext;
} EXT_DELETE_PARAMETERS, *PEXT_DELETE_PARAMETERS;
#if (NTDDI_VERSION >= NTDDI_WIN2K)
typedef struct _EX_TIMER *PEX_TIMER;
typedef void (NTAPI EXT_CALLBACK)(PEX_TIMER, PVOID);
typedef EXT_CALLBACK *PEXT_CALLBACK;
NTKERNELAPI
VOID
FASTCALL
@ -14013,6 +14088,13 @@ ExFreeToLookasideListEx(
#if (NTDDI_VERSION >= NTDDI_WIN7)
typedef struct _EXT_SET_PARAMETERS_V0
{
ULONG Version;
ULONG Reserved;
LONGLONG NoWakeTolerance;
} EXT_SET_PARAMETERS, *PEXT_SET_PARAMETERS, KT2_SET_PARAMETERS, *PKT2_SET_PARAMETERS;
NTKERNELAPI
VOID
NTAPI
@ -14025,6 +14107,30 @@ ExSetResourceOwnerPointerEx(
#endif /* (NTDDI_VERSION >= NTDDI_WIN7) */
#if NTDDI_VERSION >= NTDDI_WINBLUE
#define EX_TIMER_HIGH_RESOLUTION 4
#define EX_TIMER_NO_WAKE 8
#define EX_TIMER_UNLIMITED_TOLERANCE ((LONGLONG)-1)
#define EX_TIMER_NOTIFICATION (1ul << 31)
NTKERNELAPI PEX_TIMER NTAPI ExAllocateTimer(PEXT_CALLBACK callback, void *context, ULONG attr);
NTKERNELAPI BOOLEAN NTAPI ExCancelTimer(PEX_TIMER timer, PEXT_CANCEL_PARAMETERS params);
NTKERNELAPI BOOLEAN NTAPI ExDeleteTimer(PEX_TIMER timer, BOOLEAN cancel, BOOLEAN wait, PEXT_DELETE_PARAMETERS params);
NTKERNELAPI BOOLEAN NTAPI ExSetTimer(PEX_TIMER timer, LONGLONG due, LONGLONG period, EXT_SET_PARAMETERS *params);
FORCEINLINE void KeInitializeTimer2SetParameters(KT2_SET_PARAMETERS *params)
{
memset(params, 0, sizeof(*params));
}
FORCEINLINE void ExInitializeSetTimerParameters(EXT_SET_PARAMETERS *params)
{
KeInitializeTimer2SetParameters(params);
}
#endif
static __inline PVOID
ExAllocateFromNPagedLookasideList(
IN OUT PNPAGED_LOOKASIDE_LIST Lookaside)

View File

@ -0,0 +1,63 @@
/**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#ifndef _WDMSEC_H_
#define _WDMSEC_H_
#ifdef __cplusplus
extern "C" {
#endif
extern const UNICODE_STRING SDDL_DEVOBJ_KERNEL_ONLY;
#define SDDL_DEVOBJ_INF_SUPPLIED SDDL_DEVOBJ_KERNEL_ONLY
extern const UNICODE_STRING SDDL_DEVOBJ_SYS_ALL;
extern const UNICODE_STRING SDDL_DEVOBJ_SYS_ALL_ADM_ALL;
extern const UNICODE_STRING SDDL_DEVOBJ_SYS_ALL_ADM_RX;
extern const UNICODE_STRING SDDL_DEVOBJ_SYS_ALL_ADM_RWX_WORLD_R;
extern const UNICODE_STRING SDDL_DEVOBJ_SYS_ALL_ADM_RWX_WORLD_R_RES_R;
extern const UNICODE_STRING SDDL_DEVOBJ_SYS_ALL_ADM_RWX_WORLD_RW_RES_R;
extern const UNICODE_STRING SDDL_DEVOBJ_SYS_ALL_ADM_RWX_WORLD_RWX_RES_RWX;
#undef IoCreateDeviceSecure
#define IoCreateDeviceSecure WdmlibIoCreateDeviceSecure
NTSTATUS
WdmlibIoCreateDeviceSecure(
PDRIVER_OBJECT DriverObject,
ULONG DeviceExtensionSize,
PUNICODE_STRING DeviceName,
DEVICE_TYPE DeviceType,
ULONG DeviceCharacteristics,
BOOLEAN Exclusive,
PCUNICODE_STRING DefaultSDDLString,
LPCGUID DeviceClassGuid,
PDEVICE_OBJECT *DeviceObject
);
#undef RtlInitUnicodeStringEx
#define RtlInitUnicodeStringEx WdmlibRtlInitUnicodeStringEx
NTSTATUS
WdmlibRtlInitUnicodeStringEx(
PUNICODE_STRING DestinationString,
PCWSTR SourceString
);
#undef IoValidateDeviceIoControlAccess
#define IoValidateDeviceIoControlAccess WdmlibIoValidateDeviceIoControlAccess
NTSTATUS
WdmlibIoValidateDeviceIoControlAccess(
PIRP Irp,
ULONG RequiredAccess
);
#ifdef __cplusplus
}
#endif
#endif /* _WDMSEC_H_ */

View File

@ -0,0 +1,97 @@
/* $Id$
*
* COPYRIGHT: This file is in the public domain.
* PROJECT: ReactOS kernel
* FILE:
* PURPOSE: Directx headers
* PROGRAMMER: Magnus Olsen (greatlrd)
*
*/
#ifndef __DDKM_INCLUDED__
#define __DDKM_INCLUDED__
#ifdef __cplusplus
extern "C" {
#endif
#if defined (_WIN32) && !defined (_NO_COM)
DEFINE_GUID (IID_IDirectDrawKernel, 0x8D56C120,0x6A08,0x11D0,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8);
DEFINE_GUID (IID_IDirectDrawSurfaceKernel, 0x60755DA0,0x6A40,0x11D0,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8);
#endif
typedef struct _DDKERNELCAPS {
DWORD dwSize;
DWORD dwCaps;
DWORD dwIRQCaps;
} DDKERNELCAPS, *LPDDKERNELCAPS;
#define DDKERNELCAPS_SKIPFIELDS 0x00000001
#define DDKERNELCAPS_AUTOFLIP 0x00000002
#define DDKERNELCAPS_SETSTATE 0x00000004
#define DDKERNELCAPS_LOCK 0x00000008
#define DDKERNELCAPS_FLIPVIDEOPORT 0x00000010
#define DDKERNELCAPS_FLIPOVERLAY 0x00000020
#define DDKERNELCAPS_CAPTURE_SYSMEM 0x00000040
#define DDKERNELCAPS_CAPTURE_NONLOCALVIDMEM 0x00000080
#define DDKERNELCAPS_FIELDPOLARITY 0x00000100
#define DDKERNELCAPS_CAPTURE_INVERTED 0x00000200
#define DDIRQ_DISPLAY_VSYNC 0x00000001
#define DDIRQ_RESERVED1 0x00000002
#define DDIRQ_VPORT0_VSYNC 0x00000004
#define DDIRQ_VPORT0_LINE 0x00000008
#define DDIRQ_VPORT1_VSYNC 0x00000010
#define DDIRQ_VPORT1_LINE 0x00000020
#define DDIRQ_VPORT2_VSYNC 0x00000040
#define DDIRQ_VPORT2_LINE 0x00000080
#define DDIRQ_VPORT3_VSYNC 0x00000100
#define DDIRQ_VPORT3_LINE 0x00000200
#define DDIRQ_VPORT4_VSYNC 0x00000400
#define DDIRQ_VPORT4_LINE 0x00000800
#define DDIRQ_VPORT5_VSYNC 0x00001000
#define DDIRQ_VPORT5_LINE 0x00002000
#define DDIRQ_VPORT6_VSYNC 0x00004000
#define DDIRQ_VPORT6_LINE 0x00008000
#define DDIRQ_VPORT7_VSYNC 0x00010000
#define DDIRQ_VPORT7_LINE 0x00020000
#define DDIRQ_VPORT8_VSYNC 0x00040000
#define DDIRQ_VPORT8_LINE 0x00080000
#define DDIRQ_VPORT9_VSYNC 0x00010000
#define DDIRQ_VPORT9_LINE 0x00020000
typedef struct IDirectDrawKernel* LPDIRECTDRAWKERNEL;
typedef struct IDirectDrawSurfaceKernel* LPDIRECTDRAWSURFACEKERNEL;
#if defined(_WIN32) && !defined(_NO_COM)
#undef INTERFACE
#define INTERFACE IDirectDrawKernel
DECLARE_INTERFACE_ (IDirectDrawKernel, IUnknown)
{
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID* ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
STDMETHOD(GetKernelHandle) (THIS_ ULONG*) PURE;
STDMETHOD(ReleaseKernelHandle) (THIS) PURE;
};
#undef INTERFACE
#define INTERFACE IDirectDrawSurfaceKernel
DECLARE_INTERFACE_ (IDirectDrawSurfaceKernel, IUnknown)
{
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID* ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
STDMETHOD(GetKernelHandle) (THIS_ ULONG*) PURE;
STDMETHOD(ReleaseKernelHandle) (THIS) PURE;
};
#undef INTERFACE
#endif /* defined(_WIN32) && !defined(_NO_COM) */
#ifdef __cplusplus
}
#endif
#endif

View File

@ -0,0 +1,307 @@
/*
* ddkmapi.h
*
* DirectDraw support for DxApi function
*
* Contributors:
* Created by Magnus Olsen
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* This source code is offered for use in the public domain. You may
* use, modify or distribute it freely.
*
* This code is distributed in the hope that it will be useful but
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
* DISCLAIMED. This includes but is not limited to warranties of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
*/
#ifndef __DDKMAPI_INCLUDED__
#define __DDKMAPI_INCLUDED__
#if defined(_DXAPI_)
#define DXAPI
#else
#define DXAPI DECLSPEC_IMPORT
#endif
#define DXAPI_MAJORVERSION 1
#define DXAPI_MINORVERSION 0
#define DD_FIRST_DXAPI 0x500
#define DD_DXAPI_GETVERSIONNUMBER (DD_FIRST_DXAPI)
#define DD_DXAPI_CLOSEHANDLE (DD_FIRST_DXAPI+1)
#define DD_DXAPI_OPENDIRECTDRAW (DD_FIRST_DXAPI+2)
#define DD_DXAPI_OPENSURFACE (DD_FIRST_DXAPI+3)
#define DD_DXAPI_OPENVIDEOPORT (DD_FIRST_DXAPI+4)
#define DD_DXAPI_GETKERNELCAPS (DD_FIRST_DXAPI+5)
#define DD_DXAPI_GET_VP_FIELD_NUMBER (DD_FIRST_DXAPI+6)
#define DD_DXAPI_SET_VP_FIELD_NUMBER (DD_FIRST_DXAPI+7)
#define DD_DXAPI_SET_VP_SKIP_FIELD (DD_FIRST_DXAPI+8)
#define DD_DXAPI_GET_SURFACE_STATE (DD_FIRST_DXAPI+9)
#define DD_DXAPI_SET_SURFACE_STATE (DD_FIRST_DXAPI+10)
#define DD_DXAPI_LOCK (DD_FIRST_DXAPI+11)
#define DD_DXAPI_FLIP_OVERLAY (DD_FIRST_DXAPI+12)
#define DD_DXAPI_FLIP_VP (DD_FIRST_DXAPI+13)
#define DD_DXAPI_GET_CURRENT_VP_AUTOFLIP_SURFACE (DD_FIRST_DXAPI+14)
#define DD_DXAPI_GET_LAST_VP_AUTOFLIP_SURFACE (DD_FIRST_DXAPI+15)
#define DD_DXAPI_REGISTER_CALLBACK (DD_FIRST_DXAPI+16)
#define DD_DXAPI_UNREGISTER_CALLBACK (DD_FIRST_DXAPI+17)
#define DD_DXAPI_GET_POLARITY (DD_FIRST_DXAPI+18)
#define DD_DXAPI_OPENVPCAPTUREDEVICE (DD_FIRST_DXAPI+19)
#define DD_DXAPI_ADDVPCAPTUREBUFFER (DD_FIRST_DXAPI+20)
#define DD_DXAPI_FLUSHVPCAPTUREBUFFERS (DD_FIRST_DXAPI+21)
/* DDOPENVPCAPTUREDEVICEIN.dwFlags constants */
#define DDOPENCAPTURE_VIDEO 0x0001
#define DDOPENCAPTURE_VBI 0x0002
/* DDADDVPCAPTUREBUFF.dwFlags constants */
#define DDADDBUFF_SYSTEMMEMORY 0x0001
#define DDADDBUFF_NONLOCALVIDMEM 0x0002
#define DDADDBUFF_INVERT 0x0004
/* DDGETSURFACESTATEOUT.dwStateCaps/dwStateStatus constants */
#define DDSTATE_BOB 0x0001
#define DDSTATE_WEAVE 0x0002
#define DDSTATE_EXPLICITLY_SET 0x0004
#define DDSTATE_SOFTWARE_AUTOFLIP 0x0008
#define DDSTATE_SKIPEVENFIELDS 0x0010
/* DDREGISTERCALLBACK.dwEvents constants */
#define DDEVENT_DISPLAY_VSYNC 0x0001
#define DDEVENT_VP_VSYNC 0x0002
#define DDEVENT_VP_LINE 0x0004
#define DDEVENT_PRERESCHANGE 0x0008
#define DDEVENT_POSTRESCHANGE 0x0010
#define DDEVENT_PREDOSBOX 0x0020
#define DDEVENT_POSTDOSBOX 0x0040
/* LPDD_NOTIFYCALLBACK.dwFlags constants */
#define DDNOTIFY_DISPLAY_VSYNC 0x0001
#define DDNOTIFY_VP_VSYNC 0x0002
#define DDNOTIFY_VP_LINE 0x0004
#define DDNOTIFY_PRERESCHANGE 0x0008
#define DDNOTIFY_POSTRESCHANGE 0x0010
#define DDNOTIFY_PREDOSBOX 0x0020
#define DDNOTIFY_POSTDOSBOX 0x0040
#define DDNOTIFY_CLOSEDIRECTDRAW 0x0080
#define DDNOTIFY_CLOSESURFACE 0x0100
#define DDNOTIFY_CLOSEVIDEOPORT 0x0200
#define DDNOTIFY_CLOSECAPTURE 0x0400
typedef DWORD (PASCAL *LPDXAPI)(DWORD dwFunctionNum, LPVOID lpvInBuffer, DWORD cbInBuffer, LPVOID lpvOutBuffer, DWORD cbOutBuffer);
typedef ULONG (PASCAL *LPDD_NOTIFYCALLBACK) (DWORD dwFlags, PVOID pContext, DWORD dwParam1, DWORD dwParam2);
typedef struct _DDCAPBUFFINFO {
DWORD dwFieldNumber;
DWORD bPolarity;
LARGE_INTEGER liTimeStamp;
DWORD ddRVal;
} DDCAPBUFFINFO, * LPDDCAPBUFFINFO;
typedef struct _DDADDVPCAPTUREBUFF {
HANDLE hCapture;
DWORD dwFlags;
PMDL pMDL;
PKEVENT pKEvent;
LPDDCAPBUFFINFO lpBuffInfo;
} DDADDVPCAPTUREBUFF, * LPDDADDVPCAPTUREBUFF;
typedef struct _DDCLOSEHANDLE {
HANDLE hHandle;
} DDCLOSEHANDLE, *LPDDCLOSEHANDLE;
typedef struct _DDFLIPOVERLAY {
HANDLE hDirectDraw;
HANDLE hCurrentSurface;
HANDLE hTargetSurface;
DWORD dwFlags;
} DDFLIPOVERLAY, *LPDDFLIPOVERLAY;
typedef struct _DDFLIPVIDEOPORT {
HANDLE hDirectDraw;
HANDLE hVideoPort;
HANDLE hCurrentSurface;
HANDLE hTargetSurface;
DWORD dwFlags;
} DDFLIPVIDEOPORT, *LPDDFLIPVIDEOPORT;
typedef struct _DDGETAUTOFLIPIN {
HANDLE hDirectDraw;
HANDLE hVideoPort;
} DDGETAUTOFLIPIN, *LPDDGETAUTOFLIPIN;
typedef struct _DDGETAUTOFLIPOUT {
DWORD ddRVal;
HANDLE hVideoSurface;
HANDLE hVBISurface;
WINBOOL bPolarity;
} DDGETAUTOFLIPOUT, *LPDDGETAUTOFLIPOUT;
typedef struct _DDGETPOLARITYIN {
HANDLE hDirectDraw;
HANDLE hVideoPort;
} DDGETPOLARITYIN, *LPDDGETPOLARITYIN;
typedef struct _DDGETPOLARITYOUT {
DWORD ddRVal;
WINBOOL bPolarity;
} DDGETPOLARITYOUT, *LPDDGETPOLARITYOUT;
typedef struct _DDGETSURFACESTATEIN {
HANDLE hDirectDraw;
HANDLE hSurface;
} DDGETSURFACESTATEIN, *LPDDGETSURFACESTATEIN;
typedef struct _DDGETSURFACESTATEOUT {
DWORD ddRVal;
DWORD dwStateCaps;
DWORD dwStateStatus;
} DDGETSURFACESTATEOUT, *LPDDGETSURFACESTATEOUT;
typedef struct _DDGETFIELDNUMIN {
HANDLE hDirectDraw;
HANDLE hVideoPort;
} DDGETFIELDNUMIN, *LPDDGETFIELDNUMIN;
typedef struct _DDGETFIELDNUMOUT {
DWORD ddRVal;
DWORD dwFieldNum;
} DDGETFIELDNUMOUT, *LPDDGETFIELDNUMOUT;
typedef struct _DDGETKERNELCAPSOUT {
DWORD ddRVal;
DWORD dwCaps;
DWORD dwIRQCaps;
} DDGETKERNELCAPSOUT, *LPDDGETKERNELCAPSOUT;
typedef struct _DDGETVERSIONNUMBER {
DWORD ddRVal;
DWORD dwMajorVersion;
DWORD dwMinorVersion;
} DDGETVERSIONNUMBER, *LPDDGETVERSIONNUMBER;
typedef struct _DDLOCKIN {
HANDLE hDirectDraw;
HANDLE hSurface;
} DDLOCKIN, *LPDDLOCKIN;
typedef struct _DDLOCKOUT {
DWORD ddRVal;
DWORD dwSurfHeight;
DWORD dwSurfWidth;
LONG lSurfPitch;
PVOID lpSurface;
DWORD SurfaceCaps;
DWORD dwFormatFlags;
DWORD dwFormatFourCC;
DWORD dwFormatBitCount;
__GNU_EXTENSION union {
DWORD dwRBitMask;
DWORD dwYBitMask;
};
__GNU_EXTENSION union {
DWORD dwGBitMask;
DWORD dwUBitMask;
};
__GNU_EXTENSION union {
DWORD dwBBitMask;
DWORD dwVBitMask;
};
} DDLOCKOUT, *LPDDLOCKOUT;
typedef struct _DDOPENDIRECTDRAWIN {
ULONG_PTR dwDirectDrawHandle;
LPDD_NOTIFYCALLBACK pfnDirectDrawClose;
PVOID pContext;
} DDOPENDIRECTDRAWIN, *LPDDOPENDIRECTDRAWIN;
typedef struct _DDOPENDIRECTDRAWOUT {
DWORD ddRVal;
HANDLE hDirectDraw;
} DDOPENDIRECTDRAWOUT, *LPDDOPENDIRECTDRAWOUT;
typedef struct _DDOPENSURFACEIN {
HANDLE hDirectDraw;
ULONG_PTR dwSurfaceHandle;
LPDD_NOTIFYCALLBACK pfnSurfaceClose;
PVOID pContext;
} DDOPENSURFACEIN, *LPDDOPENSURFACEIN;
typedef struct _DDOPENSURFACEOUT {
DWORD ddRVal;
HANDLE hSurface;
} DDOPENSURFACEOUT, *LPDDOPENSURFACEOUT;
typedef struct _DDOPENVIDEOPORTIN {
HANDLE hDirectDraw;
ULONG dwVideoPortHandle;
LPDD_NOTIFYCALLBACK pfnVideoPortClose;
PVOID pContext;
} DDOPENVIDEOPORTIN, *LPDDOPENVIDEOPORTIN;
typedef struct _DDOPENVIDEOPORTOUT {
DWORD ddRVal;
HANDLE hVideoPort;
} DDOPENVIDEOPORTOUT, *LPDDOPENVIDEOPORTOUT;
typedef struct _DDOPENVPCAPTUREDEVICEIN {
HANDLE hDirectDraw;
HANDLE hVideoPort;
DWORD dwStartLine;
DWORD dwEndLine;
DWORD dwCaptureEveryNFields;
LPDD_NOTIFYCALLBACK pfnCaptureClose;
PVOID pContext;
DWORD dwFlags;
} DDOPENVPCAPTUREDEVICEIN, *LPDDOPENVPCAPTUREDEVICEIN;
typedef struct _DDOPENVPCAPTUREDEVICEOUT {
DWORD ddRVal;
HANDLE hCapture;
} DDOPENVPCAPTUREDEVICEOUT, *LPDDOPENVPCAPTUREDEVICEOUT;
typedef struct _DDREGISTERCALLBACK {
HANDLE hDirectDraw;
ULONG dwEvents;
LPDD_NOTIFYCALLBACK pfnCallback;
ULONG_PTR dwParam1;
ULONG_PTR dwParam2;
PVOID pContext;
} DDREGISTERCALLBACK, *LPDDREGISTERCALLBACK;
typedef struct _DDSETSURFACETATE {
HANDLE hDirectDraw;
HANDLE hSurface;
DWORD dwState;
DWORD dwStartField;
} DDSETSURFACESTATE, *LPDDSETSURFACESTATE;
typedef struct _DDSETFIELDNUM {
HANDLE hDirectDraw;
HANDLE hVideoPort;
DWORD dwFieldNum;
} DDSETFIELDNUM, *LPDDSETFIELDNUM;
typedef struct _DDSETSKIPFIELD {
HANDLE hDirectDraw;
HANDLE hVideoPort;
DWORD dwStartField;
} DDSETSKIPFIELD, *LPDDSETSKIPFIELD;
DXAPI
DWORD PASCAL
DxApi(IN DWORD dwFunctionNum,
IN LPVOID lpvInBuffer,
IN DWORD cbInBuffer,
OUT LPVOID lpvOutBuffer,
OUT DWORD cbOutBuffer);
#endif /* __DDKMAPI_INCLUDED__ */

View File

@ -253,12 +253,12 @@ typedef struct IDirectDrawGammaControl *LPDIRECTDRAWGAMMACONTROL;
#define DDGBS_ISBLTDONE 0x00000002
/* dwFlags for IDirectDrawSurface7::GetFlipStatus */
#define DDGFS_CANFLIP 1L
#define DDGFS_ISFLIPDONE 2L
#define DDGFS_CANFLIP __MSABI_LONG(1)
#define DDGFS_ISFLIPDONE __MSABI_LONG(2)
/* dwFlags for IDirectDrawSurface7::SetPrivateData */
#define DDSPD_IUNKNOWNPOINTER 1L
#define DDSPD_VOLATILE 2L
#define DDSPD_IUNKNOWNPOINTER __MSABI_LONG(1)
#define DDSPD_VOLATILE __MSABI_LONG(2)
/* DDSCAPS.dwCaps */
/* reserved1, was 3d capable */
@ -1088,8 +1088,8 @@ typedef struct {
WORD blue[256];
} DDGAMMARAMP,*LPDDGAMMARAMP;
typedef BOOL (CALLBACK *LPDDENUMCALLBACKA)(GUID *, LPSTR, LPSTR, LPVOID);
typedef BOOL (CALLBACK *LPDDENUMCALLBACKW)(GUID *, LPWSTR, LPWSTR, LPVOID);
typedef WINBOOL (CALLBACK *LPDDENUMCALLBACKA)(GUID *, LPSTR, LPSTR, LPVOID);
typedef WINBOOL (CALLBACK *LPDDENUMCALLBACKW)(GUID *, LPWSTR, LPWSTR, LPVOID);
DECL_WINELIB_TYPE_AW(LPDDENUMCALLBACK)
typedef HRESULT (CALLBACK *LPDDENUMMODESCALLBACK)(LPDDSURFACEDESC, LPVOID);
@ -1098,8 +1098,8 @@ typedef HRESULT (CALLBACK *LPDDENUMSURFACESCALLBACK)(LPDIRECTDRAWSURFACE, LPDDSU
typedef HRESULT (CALLBACK *LPDDENUMSURFACESCALLBACK2)(LPDIRECTDRAWSURFACE4, LPDDSURFACEDESC2, LPVOID);
typedef HRESULT (CALLBACK *LPDDENUMSURFACESCALLBACK7)(LPDIRECTDRAWSURFACE7, LPDDSURFACEDESC2, LPVOID);
typedef BOOL (CALLBACK *LPDDENUMCALLBACKEXA)(GUID *, LPSTR, LPSTR, LPVOID, HMONITOR);
typedef BOOL (CALLBACK *LPDDENUMCALLBACKEXW)(GUID *, LPWSTR, LPWSTR, LPVOID, HMONITOR);
typedef WINBOOL (CALLBACK *LPDDENUMCALLBACKEXA)(GUID *, LPSTR, LPSTR, LPVOID, HMONITOR);
typedef WINBOOL (CALLBACK *LPDDENUMCALLBACKEXW)(GUID *, LPWSTR, LPWSTR, LPVOID, HMONITOR);
DECL_WINELIB_TYPE_AW(LPDDENUMCALLBACKEX)
HRESULT WINAPI DirectDrawEnumerateA(LPDDENUMCALLBACKA,LPVOID);
@ -1120,8 +1120,8 @@ DECL_WINELIB_TYPE_AW(LPDIRECTDRAWENUMERATEEX)
#define DDENUM_NONDISPLAYDEVICES 0x00000004
/* flags for DirectDrawCreate or IDirectDraw::Initialize */
#define DDCREATE_HARDWAREONLY 1L
#define DDCREATE_EMULATIONONLY 2L
#define DDCREATE_HARDWAREONLY __MSABI_LONG(1)
#define DDCREATE_EMULATIONONLY __MSABI_LONG(2)
typedef struct _DDBLTFX
{
@ -1301,7 +1301,7 @@ DECLARE_INTERFACE_(IDirectDrawClipper,IUnknown)
STDMETHOD(GetClipList)(THIS_ LPRECT lpRect, LPRGNDATA lpClipList, LPDWORD lpdwSize) PURE;
STDMETHOD(GetHWnd)(THIS_ HWND *lphWnd) PURE;
STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW lpDD, DWORD dwFlags) PURE;
STDMETHOD(IsClipListChanged)(THIS_ BOOL *lpbChanged) PURE;
STDMETHOD(IsClipListChanged)(THIS_ WINBOOL *lpbChanged) PURE;
STDMETHOD(SetClipList)(THIS_ LPRGNDATA lpClipList, DWORD dwFlags) PURE;
STDMETHOD(SetHWnd)(THIS_ DWORD dwFlags, HWND hWnd) PURE;
};
@ -1359,7 +1359,7 @@ DECLARE_INTERFACE_(IDirectDraw,IUnknown)
STDMETHOD(GetGDISurface)(THIS_ LPDIRECTDRAWSURFACE *lplpGDIDDSurface) PURE;
STDMETHOD(GetMonitorFrequency)(THIS_ LPDWORD lpdwFrequency) PURE;
STDMETHOD(GetScanLine)(THIS_ LPDWORD lpdwScanLine) PURE;
STDMETHOD(GetVerticalBlankStatus)(THIS_ BOOL *lpbIsInVB) PURE;
STDMETHOD(GetVerticalBlankStatus)(THIS_ WINBOOL *lpbIsInVB) PURE;
STDMETHOD(Initialize)(THIS_ GUID *lpGUID) PURE;
STDMETHOD(RestoreDisplayMode)(THIS) PURE;
STDMETHOD(SetCooperativeLevel)(THIS_ HWND hWnd, DWORD dwFlags) PURE;
@ -1424,18 +1424,18 @@ DECLARE_INTERFACE_(IDirectDraw,IUnknown)
/* flags for Lock() */
#define DDLOCK_SURFACEMEMORYPTR 0x00000000
#define DDLOCK_WAIT 0x00000001
#define DDLOCK_EVENT 0x00000002
#define DDLOCK_READONLY 0x00000010
#define DDLOCK_WRITEONLY 0x00000020
#define DDLOCK_NOSYSLOCK 0x00000800
#define DDLOCK_NOOVERWRITE 0x00001000
#define DDLOCK_DISCARDCONTENTS 0x00002000
#define DDLOCK_OKTOSWAP 0x00002000
#define DDLOCK_DONOTWAIT 0x00004000
#define DDLOCK_HASVOLUMETEXTUREBOXRECT 0x00008000
#define DDLOCK_NODIRTYUPDATE 0x00010000
#define DDLOCK_SURFACEMEMORYPTR __MSABI_LONG(0x00000000)
#define DDLOCK_WAIT __MSABI_LONG(0x00000001)
#define DDLOCK_EVENT __MSABI_LONG(0x00000002)
#define DDLOCK_READONLY __MSABI_LONG(0x00000010)
#define DDLOCK_WRITEONLY __MSABI_LONG(0x00000020)
#define DDLOCK_NOSYSLOCK __MSABI_LONG(0x00000800)
#define DDLOCK_NOOVERWRITE __MSABI_LONG(0x00001000)
#define DDLOCK_DISCARDCONTENTS __MSABI_LONG(0x00002000)
#define DDLOCK_OKTOSWAP __MSABI_LONG(0x00002000)
#define DDLOCK_DONOTWAIT __MSABI_LONG(0x00004000)
#define DDLOCK_HASVOLUMETEXTUREBOXRECT __MSABI_LONG(0x00008000)
#define DDLOCK_NODIRTYUPDATE __MSABI_LONG(0x00010000)
/*****************************************************************************
@ -1466,7 +1466,7 @@ DECLARE_INTERFACE_(IDirectDraw2,IUnknown)
/*38*/ STDMETHOD(GetGDISurface)(THIS_ LPDIRECTDRAWSURFACE *lplpGDIDDSurface) PURE;
/*3c*/ STDMETHOD(GetMonitorFrequency)(THIS_ LPDWORD lpdwFrequency) PURE;
/*40*/ STDMETHOD(GetScanLine)(THIS_ LPDWORD lpdwScanLine) PURE;
/*44*/ STDMETHOD(GetVerticalBlankStatus)(THIS_ BOOL *lpbIsInVB) PURE;
/*44*/ STDMETHOD(GetVerticalBlankStatus)(THIS_ WINBOOL *lpbIsInVB) PURE;
/*48*/ STDMETHOD(Initialize)(THIS_ GUID *lpGUID) PURE;
/*4c*/ STDMETHOD(RestoreDisplayMode)(THIS) PURE;
/*50*/ STDMETHOD(SetCooperativeLevel)(THIS_ HWND hWnd, DWORD dwFlags) PURE;
@ -1561,7 +1561,7 @@ DECLARE_INTERFACE_(IDirectDraw3,IUnknown)
/*38*/ STDMETHOD(GetGDISurface)(THIS_ LPDIRECTDRAWSURFACE *lplpGDIDDSurface) PURE;
/*3c*/ STDMETHOD(GetMonitorFrequency)(THIS_ LPDWORD lpdwFrequency) PURE;
/*40*/ STDMETHOD(GetScanLine)(THIS_ LPDWORD lpdwScanLine) PURE;
/*44*/ STDMETHOD(GetVerticalBlankStatus)(THIS_ BOOL *lpbIsInVB) PURE;
/*44*/ STDMETHOD(GetVerticalBlankStatus)(THIS_ WINBOOL *lpbIsInVB) PURE;
/*48*/ STDMETHOD(Initialize)(THIS_ GUID *lpGUID) PURE;
/*4c*/ STDMETHOD(RestoreDisplayMode)(THIS) PURE;
/*50*/ STDMETHOD(SetCooperativeLevel)(THIS_ HWND hWnd, DWORD dwFlags) PURE;
@ -1662,7 +1662,7 @@ DECLARE_INTERFACE_(IDirectDraw4,IUnknown)
/*38*/ STDMETHOD(GetGDISurface)(THIS_ LPDIRECTDRAWSURFACE4 *lplpGDIDDSurface) PURE;
/*3c*/ STDMETHOD(GetMonitorFrequency)(THIS_ LPDWORD lpdwFrequency) PURE;
/*40*/ STDMETHOD(GetScanLine)(THIS_ LPDWORD lpdwScanLine) PURE;
/*44*/ STDMETHOD(GetVerticalBlankStatus)(THIS_ BOOL *lpbIsInVB) PURE;
/*44*/ STDMETHOD(GetVerticalBlankStatus)(THIS_ WINBOOL *lpbIsInVB) PURE;
/*48*/ STDMETHOD(Initialize)(THIS_ GUID *lpGUID) PURE;
/*4c*/ STDMETHOD(RestoreDisplayMode)(THIS) PURE;
/*50*/ STDMETHOD(SetCooperativeLevel)(THIS_ HWND hWnd, DWORD dwFlags) PURE;
@ -1775,7 +1775,7 @@ DECLARE_INTERFACE_(IDirectDraw7,IUnknown)
/*38*/ STDMETHOD(GetGDISurface)(THIS_ LPDIRECTDRAWSURFACE7 *lplpGDIDDSurface) PURE;
/*3c*/ STDMETHOD(GetMonitorFrequency)(THIS_ LPDWORD lpdwFrequency) PURE;
/*40*/ STDMETHOD(GetScanLine)(THIS_ LPDWORD lpdwScanLine) PURE;
/*44*/ STDMETHOD(GetVerticalBlankStatus)(THIS_ BOOL *lpbIsInVB) PURE;
/*44*/ STDMETHOD(GetVerticalBlankStatus)(THIS_ WINBOOL *lpbIsInVB) PURE;
/*48*/ STDMETHOD(Initialize)(THIS_ GUID *lpGUID) PURE;
/*4c*/ STDMETHOD(RestoreDisplayMode)(THIS) PURE;
/*50*/ STDMETHOD(SetCooperativeLevel)(THIS_ HWND hWnd, DWORD dwFlags) PURE;

View File

@ -7,7 +7,6 @@
#ifndef _DDRAWGDI_H_
#define _DDRAWGDI_H_
#if defined(MINGW_HAS_DDRAW_H) && defined(MINGW_DDRAW_VERSION) && (MINGW_DDRAW_VERSION + 0) >= 7
#include <ddraw.h>
#define DdCreateDirectDrawObject GdiEntry1
@ -53,6 +52,4 @@ HANDLE WINAPI DdGetDxHandle(LPDDRAWI_DIRECTDRAW_LCL pDDraw,LPDDRAWI_DDRAWSURFACE
WINBOOL WINAPI DdSetGammaRamp(LPDDRAWI_DIRECTDRAW_LCL pDDraw,HDC hdc,LPVOID lpGammaRamp);
DWORD WINAPI DdSwapTextureHandles(LPDDRAWI_DIRECTDRAW_LCL pDDraw,LPDDRAWI_DDRAWSURFACE_LCL pDDSLcl1,LPDDRAWI_DDRAWSURFACE_LCL pDDSLcl2);
#endif /* defined(MINGW_HAS_DDRAW_H) && defined(MINGW_DDRAW_VERSION) && MINGW_DDRAW_VERSION > 7 */
#endif /* _DDRAWGDI_H_ */

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
/*** Autogenerated by WIDL 4.19 from direct-x/include/ddstream.idl - Do not edit ***/
/*** Autogenerated by WIDL 5.16 from include/ddstream.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__

View File

@ -15,6 +15,7 @@ extern "C" {
#endif
#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP)
WINBASEAPI VOID WINAPI DebugBreak (VOID);
WINBASEAPI WINBOOL WINAPI IsDebuggerPresent (VOID);
WINBASEAPI VOID WINAPI OutputDebugStringA (LPCSTR lpOutputString);
WINBASEAPI VOID WINAPI OutputDebugStringW (LPCWSTR lpOutputString);
@ -23,9 +24,11 @@ extern "C" {
#endif
#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
WINBASEAPI VOID WINAPI DebugBreak (VOID);
WINBASEAPI WINBOOL APIENTRY ContinueDebugEvent (DWORD dwProcessId, DWORD dwThreadId, DWORD dwContinueStatus);
WINBASEAPI WINBOOL APIENTRY WaitForDebugEvent (LPDEBUG_EVENT lpDebugEvent, DWORD dwMilliseconds);
#if WINVER >= _WIN32_WINNT_WIN10
WINBASEAPI WINBOOL APIENTRY WaitForDebugEventEx (LPDEBUG_EVENT lpDebugEvent, DWORD dwMilliseconds);
#endif
WINBASEAPI WINBOOL APIENTRY DebugActiveProcess (DWORD dwProcessId);
WINBASEAPI WINBOOL APIENTRY DebugActiveProcessStop (DWORD dwProcessId);
WINBASEAPI WINBOOL WINAPI CheckRemoteDebuggerPresent (HANDLE hProcess, PBOOL pbDebuggerPresent);

View File

@ -3,6 +3,11 @@
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#include <winapifamily.h>
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
DEFINE_GUID(GUID_DEVCLASS_1394,0x6bdd1fc1,0x810f,0x11d0,0xbe,0xc7,0x08,0x00,0x2b,0xe2,0x09,0x2f);
DEFINE_GUID(GUID_DEVCLASS_1394DEBUG,0x66f250d6,0x7801,0x4a64,0xb1,0x39,0xee,0xa8,0x0a,0x45,0x0b,0x24);
DEFINE_GUID(GUID_DEVCLASS_61883,0x7ebefbc0,0x3200,0x11d2,0xb4,0xc2,0x00,0xa0,0xc9,0x69,0x7d,0x07);
@ -12,19 +17,25 @@ DEFINE_GUID(GUID_DEVCLASS_AVC,0xc06ff265,0xae09,0x48f0,0x81,0x2c,0x16,0x75,0x3d,
DEFINE_GUID(GUID_DEVCLASS_BATTERY,0x72631e54,0x78a4,0x11d0,0xbc,0xf7,0x00,0xaa,0x00,0xb7,0xb3,0x2a);
DEFINE_GUID(GUID_DEVCLASS_BIOMETRIC,0x53d29ef7,0x377c,0x4d14,0x86,0x4b,0xeb,0x3a,0x85,0x76,0x93,0x59);
DEFINE_GUID(GUID_DEVCLASS_BLUETOOTH,0xe0cbf06c,0xcd8b,0x4647,0xbb,0x8a,0x26,0x3b,0x43,0xf0,0xf9,0x74);
DEFINE_GUID(GUID_DEVCLASS_CAMERA,0xca3e7ab9,0xb4c3,0x4ae6,0x82,0x51,0x57,0x9e,0xf9,0x33,0x89,0x0f);
DEFINE_GUID(GUID_DEVCLASS_CDROM,0x4d36e965,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);
DEFINE_GUID(GUID_DEVCLASS_COMPUTEACCELERATOR,0xf01a9d53,0x3ff6,0x48d2,0x9f,0x97,0xc8,0xa7,0x00,0x4b,0xe1,0x0c);
DEFINE_GUID(GUID_DEVCLASS_COMPUTER,0x4d36e966,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);
DEFINE_GUID(GUID_DEVCLASS_DECODER,0x6bdd1fc2,0x810f,0x11d0,0xbe,0xc7,0x08,0x00,0x2b,0xe2,0x09,0x2f);
DEFINE_GUID(GUID_DEVCLASS_DISKDRIVE,0x4d36e967,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);
DEFINE_GUID(GUID_DEVCLASS_DISPLAY,0x4d36e968,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);
DEFINE_GUID(GUID_DEVCLASS_DOT4,0x48721b56,0x6795,0x11d2,0xb1,0xa8,0x00,0x80,0xc7,0x2e,0x74,0xa2);
DEFINE_GUID(GUID_DEVCLASS_DOT4PRINT,0x49ce6ac8,0x6f86,0x11d2,0xb1,0xe5,0x00,0x80,0xc7,0x2e,0x74,0xa2);
DEFINE_GUID(GUID_DEVCLASS_EHSTORAGESILO,0x9da2b80f,0xf89f,0x4a49,0xa5,0xc2,0x51,0x1b,0x08,0x5b,0x9e,0x8a);
DEFINE_GUID(GUID_DEVCLASS_ENUM1394,0xc459df55,0xdb08,0x11d1,0xb0,0x09,0x00,0xa0,0xc9,0x08,0x1f,0xf6);
DEFINE_GUID(GUID_DEVCLASS_EXTENSION,0xe2f84ce7,0x8efa,0x411c,0xaa,0x69,0x97,0x45,0x4c,0xa4,0xcb,0x57);
DEFINE_GUID(GUID_DEVCLASS_FDC,0x4d36e969,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);
DEFINE_GUID(GUID_DEVCLASS_FIRMWARE,0xf2e7dd72,0x6468,0x4e36,0xb6,0xf1,0x64,0x88,0xf4,0x2c,0x1b,0x52);
DEFINE_GUID(GUID_DEVCLASS_FLOPPYDISK,0x4d36e980,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);
DEFINE_GUID(GUID_DEVCLASS_GPS,0x6bdd1fc3,0x810f,0x11d0,0xbe,0xc7,0x08,0x00,0x2b,0xe2,0x09,0x2f);
DEFINE_GUID(GUID_DEVCLASS_HDC,0x4d36e96a,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);
DEFINE_GUID(GUID_DEVCLASS_HIDCLASS,0x745a17a0,0x74d3,0x11d0,0xb6,0xfe,0x00,0xa0,0xc9,0x0f,0x57,0xda);
DEFINE_GUID(GUID_DEVCLASS_HOLOGRAPHIC,0xd612553d,0x06b1,0x49ca,0x89,0x38,0xe3,0x9e,0xf8,0x0e,0xb1,0x6f);
DEFINE_GUID(GUID_DEVCLASS_IMAGE,0x6bdd1fc6,0x810f,0x11d0,0xbe,0xc7,0x08,0x00,0x2b,0xe2,0x09,0x2f);
DEFINE_GUID(GUID_DEVCLASS_INFINIBAND,0x30ef7132,0xd858,0x4a0c,0xac,0x24,0xb9,0x02,0x8a,0x5c,0xca,0x3f);
DEFINE_GUID(GUID_DEVCLASS_INFRARED,0x6bdd1fc5,0x810f,0x11d0,0xbe,0xc7,0x08,0x00,0x2b,0xe2,0x09,0x2f);
@ -32,6 +43,7 @@ DEFINE_GUID(GUID_DEVCLASS_KEYBOARD,0x4d36e96b,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,
DEFINE_GUID(GUID_DEVCLASS_LEGACYDRIVER,0x8ecc055d,0x047f,0x11d1,0xa5,0x37,0x00,0x00,0xf8,0x75,0x3e,0xd1);
DEFINE_GUID(GUID_DEVCLASS_MEDIA,0x4d36e96c,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);
DEFINE_GUID(GUID_DEVCLASS_MEDIUM_CHANGER,0xce5939ae,0xebde,0x11d0,0xb1,0x81,0x00,0x00,0xf8,0x75,0x3e,0xc4);
DEFINE_GUID(GUID_DEVCLASS_MEMORY,0x5099944a,0xf6b9,0x4057,0xa0,0x56,0x8c,0x55,0x02,0x28,0x54,0x4c);
DEFINE_GUID(GUID_DEVCLASS_MODEM,0x4d36e96d,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);
DEFINE_GUID(GUID_DEVCLASS_MONITOR,0x4d36e96e,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);
DEFINE_GUID(GUID_DEVCLASS_MOUSE,0x4d36e96f,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);
@ -40,6 +52,7 @@ DEFINE_GUID(GUID_DEVCLASS_MULTIFUNCTION,0x4d36e971,0xe325,0x11ce,0xbf,0xc1,0x08,
DEFINE_GUID(GUID_DEVCLASS_MULTIPORTSERIAL,0x50906cb8,0xba12,0x11d1,0xbf,0x5d,0x00,0x00,0xf8,0x05,0xf5,0x30);
DEFINE_GUID(GUID_DEVCLASS_NET,0x4d36e972,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);
DEFINE_GUID(GUID_DEVCLASS_NETCLIENT,0x4d36e973,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);
DEFINE_GUID(GUID_DEVCLASS_NETDRIVER,0x87ef9ad1,0x8f70,0x49ee,0xb2,0x15,0xab,0x1f,0xca,0xdc,0xbe,0x3c);
DEFINE_GUID(GUID_DEVCLASS_NETSERVICE,0x4d36e974,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);
DEFINE_GUID(GUID_DEVCLASS_NETTRANS,0x4d36e975,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);
DEFINE_GUID(GUID_DEVCLASS_NODRIVER,0x4d36e976,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);
@ -48,19 +61,30 @@ DEFINE_GUID(GUID_DEVCLASS_PNPPRINTERS,0x4658ee7e,0xf050,0x11d1,0xb6,0xbd,0x00,0x
DEFINE_GUID(GUID_DEVCLASS_PORTS,0x4d36e978,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);
DEFINE_GUID(GUID_DEVCLASS_PRINTER,0x4d36e979,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);
DEFINE_GUID(GUID_DEVCLASS_PRINTERUPGRADE,0x4d36e97a,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);
DEFINE_GUID(GUID_DEVCLASS_PRINTQUEUE,0x1ed2bbf9,0x11f0,0x4084,0xb2,0x1f,0xad,0x83,0xa8,0xe6,0xdc,0xdc);
DEFINE_GUID(GUID_DEVCLASS_PROCESSOR,0x50127dc3,0x0f36,0x415e,0xa6,0xcc,0x4c,0xb3,0xbe,0x91,0x0B,0x65);
DEFINE_GUID(GUID_DEVCLASS_SBP2,0xd48179be,0xec20,0x11d1,0xb6,0xb8,0x00,0xc0,0x4f,0xa3,0x72,0xa7);
DEFINE_GUID(GUID_DEVCLASS_SCMDISK,0x53966cb1,0x4d46,0x4166,0xbf,0x23,0xc5,0x22,0x40,0x3c,0xd4,0x95);
DEFINE_GUID(GUID_DEVCLASS_SCMVOLUME,0x53ccb149,0xe543,0x4c84,0xb6,0xe0,0xbc,0xe4,0xf6,0xb7,0xe8,0x06);
DEFINE_GUID(GUID_DEVCLASS_SCSIADAPTER,0x4d36e97b,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);
DEFINE_GUID(GUID_DEVCLASS_SECURITYACCELERATOR,0x268c95a1,0xedfe,0x11d3,0x95,0xc3,0x00,0x10,0xdc,0x40,0x50,0xa5);
DEFINE_GUID(GUID_DEVCLASS_SENSOR,0x5175d334,0xc371,0x4806,0xb3,0xba,0x71,0xfd,0x53,0xc9,0x25,0x8d);
DEFINE_GUID(GUID_DEVCLASS_SIDESHOW,0x997b5d8d,0xc442,0x4f2e,0xba,0xf3,0x9c,0x8e,0x67,0x1e,0x9e,0x21);
DEFINE_GUID(GUID_DEVCLASS_SMARTCARDREADER,0x50dd5230,0xba8a,0x11d1,0xbf,0x5d,0x00,0x00,0xf8,0x05,0xf5,0x30);
DEFINE_GUID(GUID_DEVCLASS_SMRDISK,0x53487c23,0x680f,0x4585,0xac,0xc3,0x1f,0x10,0xd6,0x77,0x7e,0x82);
DEFINE_GUID(GUID_DEVCLASS_SMRVOLUME,0x53b3cf03,0x8f5a,0x4788,0x91,0xb6,0xd1,0x9e,0xd9,0xfc,0xcc,0xbf);
DEFINE_GUID(GUID_DEVCLASS_SOFTWARECOMPONENT,0x5c4c3332,0x344d,0x483c,0x87,0x39,0x25,0x9e,0x93,0x4c,0x9c,0xc8);
DEFINE_GUID(GUID_DEVCLASS_SOUND,0x4d36e97c,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);
DEFINE_GUID(GUID_DEVCLASS_SYSTEM,0x4d36e97d,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);
DEFINE_GUID(GUID_DEVCLASS_TAPEDRIVE,0x6d807884,0x7d21,0x11cf,0x80,0x1c,0x08,0x00,0x2b,0xe1,0x03,0x18);
DEFINE_GUID(GUID_DEVCLASS_UNKNOWN,0x4d36e97e,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);
DEFINE_GUID(GUID_DEVCLASS_UCM,0xe6f1aa1c,0x7f3b,0x4473,0xb2,0xe8,0xc9,0x7d,0x8a,0xc7,0x1d,0x53);
DEFINE_GUID(GUID_DEVCLASS_USB,0x36fc9e60,0xc465,0x11cf,0x80,0x56,0x44,0x45,0x53,0x54,0x00,0x00);
DEFINE_GUID(GUID_DEVCLASS_VOLUME,0x71a27cdd,0x812a,0x11d0,0xbe,0xc7,0x08,0x00,0x2b,0xe2,0x09,0x2f);
DEFINE_GUID(GUID_DEVCLASS_VOLUMESNAPSHOT,0x533c5b84,0xec70,0x11d2,0x95,0x05,0x00,0xc0,0x4f,0x79,0xde,0xaf);
DEFINE_GUID(GUID_DEVCLASS_WCEUSBS,0x25dbce51,0x6c8f,0x4a72,0x8a,0x6d,0xb5,0x4c,0x2b,0x4f,0xc8,0x35);
DEFINE_GUID(GUID_DEVCLASS_WPD,0xeec5ad98,0x8080,0x425f,0x92,0x2a,0xda,0xbf,0x3d,0xe3,0xf6,0x9a);
DEFINE_GUID(GUID_DEVCLASS_FSFILTER_TOP,0xb369baf4,0x5568,0x4e82,0xa8,0x7e,0xa9,0x3e,0xb1,0x6b,0xca,0x87);
DEFINE_GUID(GUID_DEVCLASS_FSFILTER_ACTIVITYMONITOR,0xb86dff51,0xa31e,0x4bac,0xb3,0xcf,0xe8,0xcf,0xe7,0x5c,0x9f,0xc2);
DEFINE_GUID(GUID_DEVCLASS_FSFILTER_UNDELETE,0xfe8f1572,0xc67a,0x48c0,0xbb,0xac,0x0b,0x5c,0x6d,0x66,0xca,0xfb);
DEFINE_GUID(GUID_DEVCLASS_FSFILTER_ANTIVIRUS,0xb1d1a169,0xc54f,0x4379,0x81,0xdb,0xbe,0xe7,0xd8,0x8d,0x74,0x54);
@ -73,9 +97,13 @@ DEFINE_GUID(GUID_DEVCLASS_FSFILTER_CFSMETADATASERVER,0xcdcf0939,0xb75b,0x4630,0x
DEFINE_GUID(GUID_DEVCLASS_FSFILTER_HSM,0xd546500a,0x2aeb,0x45f6,0x94,0x82,0xf4,0xb1,0x79,0x9c,0x31,0x77);
DEFINE_GUID(GUID_DEVCLASS_FSFILTER_COMPRESSION,0xf3586baf,0xb5aa,0x49b5,0x8d,0x6c,0x05,0x69,0x28,0x4c,0x63,0x9f);
DEFINE_GUID(GUID_DEVCLASS_FSFILTER_ENCRYPTION,0xa0a701c0,0xa511,0x42ff,0xaa,0x6c,0x06,0xdc,0x03,0x95,0x57,0x6f);
DEFINE_GUID(GUID_DEVCLASS_FSFILTER_VIRTUALIZATION,0xf75a86c0,0x10d8,0x4c3a,0xb2,0x33,0xed,0x60,0xe4,0xcd,0xfa,0xac);
DEFINE_GUID(GUID_DEVCLASS_FSFILTER_PHYSICALQUOTAMANAGEMENT,0x6a0a8e78,0xbba6,0x4fc4,0xa7,0x09,0x1e,0x33,0xcd,0x09,0xd6,0x7e);
DEFINE_GUID(GUID_DEVCLASS_FSFILTER_OPENFILEBACKUP,0xf8ecafa6,0x66d1,0x41a5,0x89,0x9b,0x66,0x58,0x5d,0x72,0x16,0xb7);
DEFINE_GUID(GUID_DEVCLASS_FSFILTER_SECURITYENHANCER,0xd02bc3da,0x0c8e,0x4945,0x9b,0xd5,0xf1,0x88,0x3c,0x22,0x6c,0x8c);
DEFINE_GUID(GUID_DEVCLASS_FSFILTER_COPYPROTECTION,0x89786ff1,0x9c12,0x402f,0x9c,0x9e,0x17,0x75,0x3c,0x7f,0x43,0x75);
DEFINE_GUID(GUID_DEVCLASS_FSFILTER_BOTTOM,0x37765ea0,0x5958,0x4fc9,0xb0,0x4b,0x2f,0xdf,0xef,0x97,0xe5,0x9e);
DEFINE_GUID(GUID_DEVCLASS_FSFILTER_SYSTEM,0x5d1b9aaa,0x01e2,0x46af,0x84,0x9f,0x27,0x2b,0x3f,0x32,0x4c,0x46);
DEFINE_GUID(GUID_DEVCLASS_FSFILTER_INFRASTRUCTURE,0xe55fa6f9,0x128c,0x4d04,0xab,0xab,0x63,0x0c,0x74,0xb1,0x45,0x3a);
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */

View File

@ -1,4 +1,4 @@
/*** Autogenerated by WIDL 4.19 from include/devicetopology.idl - Do not edit ***/
/*** Autogenerated by WIDL 5.16 from include/devicetopology.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__

View File

@ -1,7 +1,230 @@
#include <portabledeviceconnectapi.h>
/*
* Copyright (C) 2010 Maarten Lankhorst for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <devpropdef.h>
DEFINE_DEVPROPKEY(DEVPKEY_NAME, 0xb725f130,0x47ef,0x101a,0xa5,0xf1,0x02,0x60,0x8c,0x9e,0xeb,0xac, 10);
DEFINE_DEVPROPKEY(DEVPKEY_Device_DeviceDesc, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 2);
DEFINE_DEVPROPKEY(DEVPKEY_Device_HardwareIds, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 3);
DEFINE_DEVPROPKEY(DEVPKEY_Device_CompatibleIds, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 4);
DEFINE_DEVPROPKEY(DEVPKEY_Device_Service, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 6);
DEFINE_DEVPROPKEY(DEVPKEY_Device_Class, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 9);
DEFINE_DEVPROPKEY(DEVPKEY_Device_ClassGuid, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 10);
DEFINE_DEVPROPKEY(DEVPKEY_Device_Driver, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 11);
DEFINE_DEVPROPKEY(DEVPKEY_Device_ConfigFlags, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 12);
DEFINE_DEVPROPKEY(DEVPKEY_Device_Manufacturer, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 13);
DEFINE_DEVPROPKEY(DEVPKEY_Device_FriendlyName, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 14);
DEFINE_DEVPROPKEY(DEVPKEY_Device_LocationInfo, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 15);
DEFINE_DEVPROPKEY(DEVPKEY_Device_PDOName, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 16);
DEFINE_DEVPROPKEY(DEVPKEY_Device_Capabilities, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 17);
DEFINE_DEVPROPKEY(DEVPKEY_Device_UINumber, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 18);
DEFINE_DEVPROPKEY(DEVPKEY_Device_UpperFilters, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 19);
DEFINE_DEVPROPKEY(DEVPKEY_Device_LowerFilters, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 20);
DEFINE_DEVPROPKEY(DEVPKEY_Device_BusTypeGuid, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 21);
DEFINE_DEVPROPKEY(DEVPKEY_Device_LegacyBusType, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 22);
DEFINE_DEVPROPKEY(DEVPKEY_Device_BusNumber, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 23);
DEFINE_DEVPROPKEY(DEVPKEY_Device_EnumeratorName, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 24);
DEFINE_DEVPROPKEY(DEVPKEY_Device_Security, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 25);
DEFINE_DEVPROPKEY(DEVPKEY_Device_SecuritySDS, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 26);
DEFINE_DEVPROPKEY(DEVPKEY_Device_DevType, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 27);
DEFINE_DEVPROPKEY(DEVPKEY_Device_Exclusive, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 28);
DEFINE_DEVPROPKEY(DEVPKEY_Device_Characteristics, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 29);
DEFINE_DEVPROPKEY(DEVPKEY_Device_Address, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 30);
DEFINE_DEVPROPKEY(DEVPKEY_Device_UINumberDescFormat, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 31);
DEFINE_DEVPROPKEY(DEVPKEY_Device_PowerData, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 32);
DEFINE_DEVPROPKEY(DEVPKEY_Device_RemovalPolicy, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 33);
DEFINE_DEVPROPKEY(DEVPKEY_Device_RemovalPolicyDefault, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 34);
DEFINE_DEVPROPKEY(DEVPKEY_Device_RemovalPolicyOverride, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 35);
DEFINE_DEVPROPKEY(DEVPKEY_Device_InstallState, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 36);
DEFINE_DEVPROPKEY(DEVPKEY_Device_LocationPaths, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 37);
DEFINE_DEVPROPKEY(DEVPKEY_Device_BaseContainerId, 0xa45c254e,0xdf1c,0x4efd,0x80,0x20,0x67,0xd1,0x46,0xa8,0x50,0xe0, 38);
DEFINE_DEVPROPKEY(DEVPKEY_Device_InstanceId, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 256);
DEFINE_DEVPROPKEY(DEVPKEY_Device_DevNodeStatus, 0x4340a6c5,0x93fa,0x4706,0x97,0x2c,0x7b,0x64,0x80,0x08,0xa5,0xa7, 2);
DEFINE_DEVPROPKEY(DEVPKEY_Device_ProblemCode, 0x4340a6c5,0x93fa,0x4706,0x97,0x2c,0x7b,0x64,0x80,0x08,0xa5,0xa7, 3);
DEFINE_DEVPROPKEY(DEVPKEY_Device_EjectionRelations, 0x4340a6c5,0x93fa,0x4706,0x97,0x2c,0x7b,0x64,0x80,0x08,0xa5,0xa7, 4);
DEFINE_DEVPROPKEY(DEVPKEY_Device_RemovalRelations, 0x4340a6c5,0x93fa,0x4706,0x97,0x2c,0x7b,0x64,0x80,0x08,0xa5,0xa7, 5);
DEFINE_DEVPROPKEY(DEVPKEY_Device_PowerRelations, 0x4340a6c5,0x93fa,0x4706,0x97,0x2c,0x7b,0x64,0x80,0x08,0xa5,0xa7, 6);
DEFINE_DEVPROPKEY(DEVPKEY_Device_BusRelations, 0x4340a6c5,0x93fa,0x4706,0x97,0x2c,0x7b,0x64,0x80,0x08,0xa5,0xa7, 7);
DEFINE_DEVPROPKEY(DEVPKEY_Device_Parent, 0x4340a6c5,0x93fa,0x4706,0x97,0x2c,0x7b,0x64,0x80,0x08,0xa5,0xa7, 8);
DEFINE_DEVPROPKEY(DEVPKEY_Device_Children, 0x4340a6c5,0x93fa,0x4706,0x97,0x2c,0x7b,0x64,0x80,0x08,0xa5,0xa7, 9);
DEFINE_DEVPROPKEY(DEVPKEY_Device_Siblings, 0x4340a6c5,0x93fa,0x4706,0x97,0x2c,0x7b,0x64,0x80,0x08,0xa5,0xa7, 10);
DEFINE_DEVPROPKEY(DEVPKEY_Device_TransportRelations, 0x4340a6c5,0x93fa,0x4706,0x97,0x2c,0x7b,0x64,0x80,0x08,0xa5,0xa7, 11);
DEFINE_DEVPROPKEY(DEVPKEY_Device_ProblemStatus, 0x4340a6c5,0x93fa,0x4706,0x97,0x2c,0x7b,0x64,0x80,0x08,0xa5,0xa7, 12);
DEFINE_DEVPROPKEY(DEVPKEY_Device_Reported, 0x80497100,0x8c73,0x48b9,0xaa,0xd9,0xce,0x38,0x7e,0x19,0xc5,0x6e, 2);
DEFINE_DEVPROPKEY(DEVPKEY_Device_Legacy, 0x80497100,0x8c73,0x48b9,0xaa,0xd9,0xce,0x38,0x7e,0x19,0xc5,0x6e, 3);
DEFINE_DEVPROPKEY(DEVPKEY_Device_ContainerId, 0x8c7ed206,0x3f8a,0x4827,0xb3,0xab,0xae,0x9e,0x1f,0xae,0xfc,0x6c, 2);
DEFINE_DEVPROPKEY(DEVPKEY_Device_InLocalMachineContainer, 0x8c7ed206,0x3f8a,0x4827,0xb3,0xab,0xae,0x9e,0x1f,0xae,0xfc,0x6c, 4);
DEFINE_DEVPROPKEY(DEVPKEY_Device_Model, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 39);
DEFINE_DEVPROPKEY(DEVPKEY_Device_ModelId, 0x80d81ea6,0x7473,0x4b0c,0x82,0x16,0xef,0xc1,0x1a,0x2c,0x4c,0x8b, 2);
DEFINE_DEVPROPKEY(DEVPKEY_Device_FriendlyNameAttributes, 0x80d81ea6,0x7473,0x4b0c,0x82,0x16,0xef,0xc1,0x1a,0x2c,0x4c,0x8b, 3);
DEFINE_DEVPROPKEY(DEVPKEY_Device_ManufacturerAttributes, 0x80d81ea6,0x7473,0x4b0c,0x82,0x16,0xef,0xc1,0x1a,0x2c,0x4c,0x8b, 4);
DEFINE_DEVPROPKEY(DEVPKEY_Device_PresenceNotForDevice, 0x80d81ea6,0x7473,0x4b0c,0x82,0x16,0xef,0xc1,0x1a,0x2c,0x4c,0x8b, 5);
DEFINE_DEVPROPKEY(DEVPKEY_Device_SignalStrength, 0x80d81ea6,0x7473,0x4b0c,0x82,0x16,0xef,0xc1,0x1a,0x2c,0x4c,0x8b, 6);
DEFINE_DEVPROPKEY(DEVPKEY_Device_IsAssociateableByUserAction, 0x80d81ea6,0x7473,0x4b0c,0x82,0x16,0xef,0xc1,0x1a,0x2c,0x4c,0x8b, 7);
DEFINE_DEVPROPKEY(DEVPKEY_Device_ShowInUninstallUI, 0x80d81ea6,0x7473,0x4b0c,0x82,0x16,0xef,0xc1,0x1a,0x2c,0x4c,0x8b, 8);
DEFINE_DEVPROPKEY(DEVPKEY_Device_Numa_Proximity_Domain, 0x540b947e,0x8b40,0x45bc,0xa8,0xa2,0x6a,0x0b,0x89,0x4c,0xbd,0xa2, 1);
DEFINE_DEVPROPKEY(DEVPKEY_Device_DHP_Rebalance_Policy, 0x540b947e,0x8b40,0x45bc,0xa8,0xa2,0x6a,0x0b,0x89,0x4c,0xbd,0xa2, 2);
DEFINE_DEVPROPKEY(DEVPKEY_Device_Numa_Node, 0x540b947e,0x8b40,0x45bc,0xa8,0xa2,0x6a,0x0b,0x89,0x4c,0xbd,0xa2, 3);
DEFINE_DEVPROPKEY(DEVPKEY_Device_BusReportedDeviceDesc, 0x540b947e,0x8b40,0x45bc,0xa8,0xa2,0x6a,0x0b,0x89,0x4c,0xbd,0xa2, 4);
DEFINE_DEVPROPKEY(DEVPKEY_Device_IsPresent, 0x540b947e,0x8b40,0x45bc,0xa8,0xa2,0x6a,0x0b,0x89,0x4c,0xbd,0xa2, 5);
DEFINE_DEVPROPKEY(DEVPKEY_Device_HasProblem, 0x540b947e,0x8b40,0x45bc,0xa8,0xa2,0x6a,0x0b,0x89,0x4c,0xbd,0xa2, 6);
DEFINE_DEVPROPKEY(DEVPKEY_Device_ConfigurationId, 0x540b947e,0x8b40,0x45bc,0xa8,0xa2,0x6a,0x0b,0x89,0x4c,0xbd,0xa2, 7);
DEFINE_DEVPROPKEY(DEVPKEY_Device_ReportedDeviceIdsHash, 0x540b947e,0x8b40,0x45bc,0xa8,0xa2,0x6a,0x0b,0x89,0x4c,0xbd,0xa2, 8);
DEFINE_DEVPROPKEY(DEVPKEY_Device_PhysicalDeviceLocation, 0x540b947e,0x8b40,0x45bc,0xa8,0xa2,0x6a,0x0b,0x89,0x4c,0xbd,0xa2, 9);
DEFINE_DEVPROPKEY(DEVPKEY_Device_BiosDeviceName, 0x540b947e,0x8b40,0x45bc,0xa8,0xa2,0x6a,0x0b,0x89,0x4c,0xbd,0xa2, 10);
DEFINE_DEVPROPKEY(DEVPKEY_Device_DriverProblemDesc, 0x540b947e,0x8b40,0x45bc,0xa8,0xa2,0x6a,0x0b,0x89,0x4c,0xbd,0xa2, 11);
DEFINE_DEVPROPKEY(DEVPKEY_Device_DebuggerSafe, 0x540b947e,0x8b40,0x45bc,0xa8,0xa2,0x6a,0x0b,0x89,0x4c,0xbd,0xa2, 12);
DEFINE_DEVPROPKEY(DEVPKEY_Device_PostInstallInProgress, 0x540b947e,0x8b40,0x45bc,0xa8,0xa2,0x6a,0x0b,0x89,0x4c,0xbd,0xa2, 13);
DEFINE_DEVPROPKEY(DEVPKEY_Device_Stack, 0x540b947e,0x8b40,0x45bc,0xa8,0xa2,0x6a,0x0b,0x89,0x4c,0xbd,0xa2, 14);
DEFINE_DEVPROPKEY(DEVPKEY_Device_ExtendedConfigurationIds, 0x540b947e,0x8b40,0x45bc,0xa8,0xa2,0x6a,0x0b,0x89,0x4c,0xbd,0xa2, 15);
DEFINE_DEVPROPKEY(DEVPKEY_Device_IsRebootRequired, 0x540b947e,0x8b40,0x45bc,0xa8,0xa2,0x6a,0x0b,0x89,0x4c,0xbd,0xa2, 16);
DEFINE_DEVPROPKEY(DEVPKEY_Device_FirmwareDate, 0x540b947e,0x8b40,0x45bc,0xa8,0xa2,0x6a,0x0b,0x89,0x4c,0xbd,0xa2, 17);
DEFINE_DEVPROPKEY(DEVPKEY_Device_FirmwareVersion, 0x540b947e,0x8b40,0x45bc,0xa8,0xa2,0x6a,0x0b,0x89,0x4c,0xbd,0xa2, 18);
DEFINE_DEVPROPKEY(DEVPKEY_Device_FirmwareRevision, 0x540b947e,0x8b40,0x45bc,0xa8,0xa2,0x6a,0x0b,0x89,0x4c,0xbd,0xa2, 19);
DEFINE_DEVPROPKEY(DEVPKEY_Device_DependencyProviders, 0x540b947e,0x8b40,0x45bc,0xa8,0xa2,0x6a,0x0b,0x89,0x4c,0xbd,0xa2, 20);
DEFINE_DEVPROPKEY(DEVPKEY_Device_DependencyDependents, 0x540b947e,0x8b40,0x45bc,0xa8,0xa2,0x6a,0x0b,0x89,0x4c,0xbd,0xa2, 21);
DEFINE_DEVPROPKEY(DEVPKEY_Device_SoftRestartSupported, 0x540b947e,0x8b40,0x45bc,0xa8,0xa2,0x6a,0x0b,0x89,0x4c,0xbd,0xa2, 22);
DEFINE_DEVPROPKEY(DEVPKEY_Device_ExtendedAddress, 0x540b947e,0x8b40,0x45bc,0xa8,0xa2,0x6a,0x0b,0x89,0x4c,0xbd,0xa2, 23);
DEFINE_DEVPROPKEY(DEVPKEY_Device_SessionId, 0x83da6326,0x97a6,0x4088,0x94,0x53,0xa1,0x92,0x3f,0x57,0x3b,0x29, 6);
DEFINE_DEVPROPKEY(DEVPKEY_Device_InstallDate, 0x83da6326,0x97a6,0x4088,0x94,0x53,0xa1,0x92,0x3f,0x57,0x3b,0x29, 100);
DEFINE_DEVPROPKEY(DEVPKEY_Device_FirstInstallDate, 0x83da6326,0x97a6,0x4088,0x94,0x53,0xa1,0x92,0x3f,0x57,0x3b,0x29, 101);
DEFINE_DEVPROPKEY(DEVPKEY_Device_LastArrivalDate, 0x83da6326,0x97a6,0x4088,0x94,0x53,0xa1,0x92,0x3f,0x57,0x3b,0x29, 102);
DEFINE_DEVPROPKEY(DEVPKEY_Device_LastRemovalDate, 0x83da6326,0x97a6,0x4088,0x94,0x53,0xa1,0x92,0x3f,0x57,0x3b,0x29, 103);
DEFINE_DEVPROPKEY(DEVPKEY_Device_DriverDate, 0xa8b865dd,0x2e3d,0x4094,0xad,0x97,0xe5,0x93,0xa7,0xc,0x75,0xd6, 2);
DEFINE_DEVPROPKEY(DEVPKEY_Device_DriverVersion, 0xa8b865dd,0x2e3d,0x4094,0xad,0x97,0xe5,0x93,0xa7,0xc,0x75,0xd6, 3);
DEFINE_DEVPROPKEY(DEVPKEY_Device_DriverDesc, 0xa8b865dd,0x2e3d,0x4094,0xad,0x97,0xe5,0x93,0xa7,0xc,0x75,0xd6, 4);
DEFINE_DEVPROPKEY(DEVPKEY_Device_DriverInfPath, 0xa8b865dd,0x2e3d,0x4094,0xad,0x97,0xe5,0x93,0xa7,0xc,0x75,0xd6, 5);
DEFINE_DEVPROPKEY(DEVPKEY_Device_DriverInfSection, 0xa8b865dd,0x2e3d,0x4094,0xad,0x97,0xe5,0x93,0xa7,0xc,0x75,0xd6, 6);
DEFINE_DEVPROPKEY(DEVPKEY_Device_DriverInfSectionExt, 0xa8b865dd,0x2e3d,0x4094,0xad,0x97,0xe5,0x93,0xa7,0xc,0x75,0xd6, 7);
DEFINE_DEVPROPKEY(DEVPKEY_Device_MatchingDeviceId, 0xa8b865dd,0x2e3d,0x4094,0xad,0x97,0xe5,0x93,0xa7,0xc,0x75,0xd6, 8);
DEFINE_DEVPROPKEY(DEVPKEY_Device_DriverProvider, 0xa8b865dd,0x2e3d,0x4094,0xad,0x97,0xe5,0x93,0xa7,0xc,0x75,0xd6, 9);
DEFINE_DEVPROPKEY(DEVPKEY_Device_DriverPropPageProvider, 0xa8b865dd,0x2e3d,0x4094,0xad,0x97,0xe5,0x93,0xa7,0xc,0x75,0xd6, 10);
DEFINE_DEVPROPKEY(DEVPKEY_Device_DriverCoInstallers, 0xa8b865dd,0x2e3d,0x4094,0xad,0x97,0xe5,0x93,0xa7,0xc,0x75,0xd6, 11);
DEFINE_DEVPROPKEY(DEVPKEY_Device_ResourcePickerTags, 0xa8b865dd,0x2e3d,0x4094,0xad,0x97,0xe5,0x93,0xa7,0xc,0x75,0xd6, 12);
DEFINE_DEVPROPKEY(DEVPKEY_Device_ResourcePickerExceptions, 0xa8b865dd,0x2e3d,0x4094,0xad,0x97,0xe5,0x93,0xa7,0xc,0x75,0xd6, 13);
DEFINE_DEVPROPKEY(DEVPKEY_Device_DriverRank, 0xa8b865dd,0x2e3d,0x4094,0xad,0x97,0xe5,0x93,0xa7,0xc,0x75,0xd6, 14);
DEFINE_DEVPROPKEY(DEVPKEY_Device_DriverLogoLevel, 0xa8b865dd,0x2e3d,0x4094,0xad,0x97,0xe5,0x93,0xa7,0xc,0x75,0xd6, 15);
DEFINE_DEVPROPKEY(DEVPKEY_Device_NoConnectSound, 0xa8b865dd,0x2e3d,0x4094,0xad,0x97,0xe5,0x93,0xa7,0xc,0x75,0xd6, 17);
DEFINE_DEVPROPKEY(DEVPKEY_Device_GenericDriverInstalled, 0xa8b865dd,0x2e3d,0x4094,0xad,0x97,0xe5,0x93,0xa7,0xc,0x75,0xd6, 18);
DEFINE_DEVPROPKEY(DEVPKEY_Device_AdditionalSoftwareRequested, 0xa8b865dd,0x2e3d,0x4094,0xad,0x97,0xe5,0x93,0xa7,0xc,0x75,0xd6, 19);
DEFINE_DEVPROPKEY(DEVPKEY_Device_SafeRemovalRequired, 0xafd97640,0x86a3,0x4210,0xb6,0x7c,0x28,0x9c,0x41,0xaa,0xbe,0x55, 2);
DEFINE_DEVPROPKEY(DEVPKEY_Device_SafeRemovalRequiredOverride, 0xafd97640,0x86a3,0x4210,0xb6,0x7c,0x28,0x9c,0x41,0xaa,0xbe,0x55, 3);
DEFINE_DEVPROPKEY(DEVPKEY_DrvPkg_Model, 0xcf73bb51,0x3abf,0x44a2,0x85,0xe0,0x9a,0x3d,0xc7,0xa1,0x21,0x32, 2);
DEFINE_DEVPROPKEY(DEVPKEY_DrvPkg_VendorWebSite, 0xcf73bb51,0x3abf,0x44a2,0x85,0xe0,0x9a,0x3d,0xc7,0xa1,0x21,0x32, 3);
DEFINE_DEVPROPKEY(DEVPKEY_DrvPkg_DetailedDescription, 0xcf73bb51,0x3abf,0x44a2,0x85,0xe0,0x9a,0x3d,0xc7,0xa1,0x21,0x32, 4);
DEFINE_DEVPROPKEY(DEVPKEY_DrvPkg_DocumentationLink, 0xcf73bb51,0x3abf,0x44a2,0x85,0xe0,0x9a,0x3d,0xc7,0xa1,0x21,0x32, 5);
DEFINE_DEVPROPKEY(DEVPKEY_DrvPkg_Icon, 0xcf73bb51,0x3abf,0x44a2,0x85,0xe0,0x9a,0x3d,0xc7,0xa1,0x21,0x32, 6);
DEFINE_DEVPROPKEY(DEVPKEY_DrvPkg_BrandingIcon, 0xcf73bb51,0x3abf,0x44a2,0x85,0xe0,0x9a,0x3d,0xc7,0xa1,0x21,0x32, 7);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceClass_UpperFilters, 0x4321918b,0xf69e,0x470d,0xa5,0xde,0x4d,0x88,0xc7,0x5a,0xd2,0x4b, 19);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceClass_LowerFilters, 0x4321918b,0xf69e,0x470d,0xa5,0xde,0x4d,0x88,0xc7,0x5a,0xd2,0x4b, 20);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceClass_Security, 0x4321918b,0xf69e,0x470d,0xa5,0xde,0x4d,0x88,0xc7,0x5a,0xd2,0x4b, 25);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceClass_SecuritySDS, 0x4321918b,0xf69e,0x470d,0xa5,0xde,0x4d,0x88,0xc7,0x5a,0xd2,0x4b, 26);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceClass_DevType, 0x4321918b,0xf69e,0x470d,0xa5,0xde,0x4d,0x88,0xc7,0x5a,0xd2,0x4b, 27);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceClass_Exclusive, 0x4321918b,0xf69e,0x470d,0xa5,0xde,0x4d,0x88,0xc7,0x5a,0xd2,0x4b, 28);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceClass_Characteristics, 0x4321918b,0xf69e,0x470d,0xa5,0xde,0x4d,0x88,0xc7,0x5a,0xd2,0x4b, 29);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceClass_Name, 0x259abffc,0x50a7,0x47ce,0xaf,0x8,0x68,0xc9,0xa7,0xd7,0x33,0x66, 2);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceClass_ClassName, 0x259abffc,0x50a7,0x47ce,0xaf,0x8,0x68,0xc9,0xa7,0xd7,0x33,0x66, 3);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceClass_Icon, 0x259abffc,0x50a7,0x47ce,0xaf,0x8,0x68,0xc9,0xa7,0xd7,0x33,0x66, 4);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceClass_ClassInstaller, 0x259abffc,0x50a7,0x47ce,0xaf,0x8,0x68,0xc9,0xa7,0xd7,0x33,0x66, 5);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceClass_PropPageProvider, 0x259abffc,0x50a7,0x47ce,0xaf,0x8,0x68,0xc9,0xa7,0xd7,0x33,0x66, 6);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceClass_NoInstallClass, 0x259abffc,0x50a7,0x47ce,0xaf,0x8,0x68,0xc9,0xa7,0xd7,0x33,0x66, 7);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceClass_NoDisplayClass, 0x259abffc,0x50a7,0x47ce,0xaf,0x8,0x68,0xc9,0xa7,0xd7,0x33,0x66, 8);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceClass_SilentInstall, 0x259abffc,0x50a7,0x47ce,0xaf,0x8,0x68,0xc9,0xa7,0xd7,0x33,0x66, 9);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceClass_NoUseClass, 0x259abffc,0x50a7,0x47ce,0xaf,0x8,0x68,0xc9,0xa7,0xd7,0x33,0x66, 10);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceClass_DefaultService, 0x259abffc,0x50a7,0x47ce,0xaf,0x8,0x68,0xc9,0xa7,0xd7,0x33,0x66, 11);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceClass_IconPath, 0x259abffc,0x50a7,0x47ce,0xaf,0x8,0x68,0xc9,0xa7,0xd7,0x33,0x66, 12);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceClass_DHPRebalanceOptOut, 0xd14d3ef3,0x66cf,0x4ba2,0x9d,0x38,0x0d,0xdb,0x37,0xab,0x47,0x01, 2);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceClass_ClassCoInstallers, 0x713d1703,0xa2e2,0x49f5,0x92,0x14,0x56,0x47,0x2e,0xf3,0xda,0x5c, 2);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceInterface_FriendlyName, 0x026e516e,0xb814,0x414b,0x83,0xcd,0x85,0x6d,0x6f,0xef,0x48,0x22, 2);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceInterface_Enabled, 0x026e516e,0xb814,0x414b,0x83,0xcd,0x85,0x6d,0x6f,0xef,0x48,0x22, 3);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceInterface_ClassGuid, 0x026e516e,0xb814,0x414b,0x83,0xcd,0x85,0x6d,0x6f,0xef,0x48,0x22, 4);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceInterface_ReferenceString, 0x026e516e,0xb814,0x414b,0x83,0xcd,0x85,0x6d,0x6f,0xef,0x48,0x22, 5);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceInterface_Restricted, 0x026e516e,0xb814,0x414b,0x83,0xcd,0x85,0x6d,0x6f,0xef,0x48,0x22, 6);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceInterface_UnrestrictedAppCapabilities, 0x026e516e,0xb814,0x414b,0x83,0xcd,0x85,0x6d,0x6f,0xef,0x48,0x22, 8);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceInterface_SchematicName, 0x026e516e,0xb814,0x414b,0x83,0xcd,0x85,0x6d,0x6f,0xef,0x48,0x22, 9);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceInterfaceClass_DefaultInterface, 0x14c83a99,0x0b3f,0x44b7,0xbe,0x4c,0xa1,0x78,0xd3,0x99,0x05,0x64, 2);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceInterfaceClass_Name, 0x14c83a99,0x0b3f,0x44b7,0xbe,0x4c,0xa1,0x78,0xd3,0x99,0x05,0x64, 3);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_Address, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 51);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_DiscoveryMethod, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 52);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_IsEncrypted, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 53);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_IsAuthenticated, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 54);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_IsConnected, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 55);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_IsPaired, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 56);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_Icon, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 57);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_Version, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 65);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_Last_Seen, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 66);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_Last_Connected, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 67);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_IsShowInDisconnectedState, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 68);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_IsLocalMachine, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 70);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_MetadataPath, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 71);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_IsMetadataSearchInProgress, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 72);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_MetadataChecksum, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 73);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_IsNotInterestingForDisplay, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 74);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_LaunchDeviceStageOnDeviceConnect, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 76);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_LaunchDeviceStageFromExplorer, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 77);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_BaselineExperienceId, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 78);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_IsDeviceUniquelyIdentifiable, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 79);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_AssociationArray, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 80);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_DeviceDescription1, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 81);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_DeviceDescription2, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 82);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_HasProblem, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 83);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_IsSharedDevice, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 84);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_IsNetworkDevice, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 85);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_IsDefaultDevice, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 86);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_MetadataCabinet, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 87);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_RequiresPairingElevation, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 88);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_ExperienceId, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 89);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_Category, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 90);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_Category_Desc_Singular, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 91);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_Category_Desc_Plural, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 92);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_Category_Icon, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 93);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_CategoryGroup_Desc, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 94);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_CategoryGroup_Icon, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 95);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_PrimaryCategory, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 97);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_UnpairUninstall, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 98);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_RequiresUninstallElevation, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 99);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_DeviceFunctionSubRank, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 100);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_AlwaysShowDeviceAsConnected, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 101);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_ConfigFlags, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 105);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_PrivilegedPackageFamilyNames, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 106);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_CustomPrivilegedPackageFamilyNames, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 107);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_IsRebootRequired, 0x78c34fc8,0x104a,0x4aca,0x9e,0xa4,0x52,0x4d,0x52,0x99,0x6e,0x57, 108);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_FriendlyName, 0x656A3BB3,0xECC0,0x43FD,0x84,0x77,0x4A,0xE0,0x40,0x4A,0x96,0xCD, 12288);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_Manufacturer, 0x656A3BB3,0xECC0,0x43FD,0x84,0x77,0x4A,0xE0,0x40,0x4A,0x96,0xCD, 8192);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_ModelName, 0x656A3BB3,0xECC0,0x43FD,0x84,0x77,0x4A,0xE0,0x40,0x4A,0x96,0xCD, 8194);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_ModelNumber, 0x656A3BB3,0xECC0,0x43FD,0x84,0x77,0x4A,0xE0,0x40,0x4A,0x96,0xCD, 8195);
DEFINE_DEVPROPKEY(DEVPKEY_DeviceContainer_InstallInProgress, 0x83da6326,0x97a6,0x4088,0x94,0x53,0xa1,0x92,0x3f,0x57,0x3b,0x29, 9);
DEFINE_DEVPROPKEY(DEVPKEY_DevQuery_ObjectType, 0x13673f42,0xa3d6,0x49f6,0xb4,0xda,0xae,0x46,0xe0,0xc5,0x23,0x7c, 2);
#define DEVPKEY_Numa_Proximity_Domain DEVPKEY_Device_Numa_Proximity_Domain
#define DEVPKEY_DeviceDisplay_DiscoveryMethod DEVPKEY_DeviceContainer_DiscoveryMethod
#define DEVPKEY_DeviceDisplay_IsShowInDisconnectedState DEVPKEY_DeviceContainer_IsShowInDisconnectedState
#define DEVPKEY_DeviceDisplay_IsNotInterestingForDisplay DEVPKEY_DeviceContainer_IsNotInterestingForDisplay
#define DEVPKEY_DeviceDisplay_IsNetworkDevice DEVPKEY_DeviceContainer_IsNetworkDevice
#define DEVPKEY_DeviceDisplay_Category DEVPKEY_DeviceContainer_Category
#define DEVPKEY_DeviceDisplay_UnpairUninstall DEVPKEY_DeviceContainer_UnpairUninstall
#define DEVPKEY_DeviceDisplay_RequiresUninstallElevation DEVPKEY_DeviceContainer_RequiresUninstallElevation
#define DEVPKEY_DeviceDisplay_AlwaysShowDeviceAsConnected DEVPKEY_DeviceContainer_AlwaysShowDeviceAsConnected

File diff suppressed because it is too large Load Diff

View File

@ -31,6 +31,7 @@ extern "C" {
_CRTIMP int __cdecl _chdir(const char *_Path);
_CRTIMP int __cdecl _mkdir(const char *_Path);
_CRTIMP int __cdecl _rmdir(const char *_Path);
#ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
_CRTIMP int __cdecl _chdrive(int _Drive);
_CRTIMP int __cdecl _getdrive(void);
_CRTIMP unsigned long __cdecl _getdrives(void);
@ -39,6 +40,7 @@ extern "C" {
#define _GETDISKFREE_DEFINED
_CRTIMP unsigned __cdecl _getdiskfree(unsigned _Drive,struct _diskfree_t *_DiskFree);
#endif
#endif /* _CRT_USE_WINAPI_FAMILY_DESKTOP_APP */
#ifndef _WDIRECT_DEFINED
#define _WDIRECT_DEFINED

View File

@ -1,45 +1,93 @@
/**
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER within this package.
/* $Id: $
*
* COPYRIGHT: This file is in the public domain.
* PROJECT: ReactOS kernel
* FILE:
* PURPOSE: Directx headers
* PROGRAMMER: Magnus Olsen (greatlrd)
*
*/
#ifndef __DMEMMGR_INCLUDED__
#define __DMEMMGR_INCLUDED__
#include <winapifamily.h>
#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
#define VMEMHEAP_LINEAR __MSABI_LONG(0x1)
#define VMEMHEAP_RECTANGULAR __MSABI_LONG(0x2)
#define VMEMHEAP_ALIGNMENT __MSABI_LONG(0x4)
#define SURFACEALIGN_DISCARDABLE __MSABI_LONG(0x1)
#ifdef __cplusplus
extern "C" {
#endif
typedef ULONG_PTR FLATPTR;
#ifndef __NTDDKCOMP__
typedef struct _SURFACEALIGNMENT {
__C89_NAMELESS union {
struct {
DWORD dwStartAlignment;
DWORD dwPitchAlignment;
DWORD dwFlags;
DWORD dwReserved2;
} Linear;
struct {
DWORD dwXAlignment;
DWORD dwYAlignment;
DWORD dwFlags;
DWORD dwReserved2;
} Rectangular;
};
} SURFACEALIGNMENT;
#ifndef FLATPTR_DEFINED
typedef ULONG_PTR FLATPTR;
#define FLATPTR_DEFINED
#endif
typedef struct _HEAPALIGNMENT {
typedef struct _VIDMEM *LPVIDMEM;
#else /* __NTDDKCOMP__ */
#ifndef FLATPTR_DEFINED
typedef ULONG_PTR FLATPTR;
#define FLATPTR_DEFINED
#endif
typedef struct _VIDEOMEMORY *LPVIDMEM;
#endif /* __NTDDKCOMP__ */
#define SURFACEALIGN_DISCARDABLE 0x00000001
#define VMEMHEAP_LINEAR 0x00000001
#define VMEMHEAP_RECTANGULAR 0x00000002
#define VMEMHEAP_ALIGNMENT 0x00000004
typedef struct _VMEML
{
struct _VMEML *next;
FLATPTR ptr;
DWORD size;
WINBOOL bDiscardable;
} VMEML, *LPVMEML, *LPLPVMEML;
typedef struct _VMEMR
{
struct _VMEMR *next;
struct _VMEMR *prev;
struct _VMEMR *pUp;
struct _VMEMR *pDown;
struct _VMEMR *pLeft;
struct _VMEMR *pRight;
FLATPTR ptr;
DWORD size;
DWORD x;
DWORD y;
DWORD cx;
DWORD cy;
DWORD flags;
FLATPTR pBits;
WINBOOL bDiscardable;
} VMEMR, *LPVMEMR, *LPLPVMEMR;
typedef struct _SURFACEALIGNMENT
{
__GNU_EXTENSION union {
struct {
DWORD dwStartAlignment;
DWORD dwPitchAlignment;
DWORD dwFlags;
DWORD dwReserved2;
} Linear;
struct {
DWORD dwXAlignment;
DWORD dwYAlignment;
DWORD dwFlags;
DWORD dwReserved2;
} Rectangular;
};
} SURFACEALIGNMENT, *LPSURFACEALIGNMENT;
typedef struct _HEAPALIGNMENT
{
DWORD dwSize;
DDSCAPS ddsCaps;
DWORD dwReserved;
@ -50,42 +98,10 @@ extern "C" {
SURFACEALIGNMENT AlphaBuffer;
SURFACEALIGNMENT Offscreen;
SURFACEALIGNMENT FlipTarget;
} HEAPALIGNMENT;
} HEAPALIGNMENT, *LPHEAPALIGNMENT;
typedef struct _DD_GETHEAPALIGNMENTDATA {
ULONG_PTR dwInstance;
DWORD dwHeap;
HRESULT ddRVal;
VOID *GetHeapAlignment;
HEAPALIGNMENT Alignment;
} DD_GETHEAPALIGNMENTDATA;
typedef struct _VMEML {
struct _VMEML *next;
FLATPTR ptr;
DWORD size;
WINBOOL bDiscardable;
} VMEML,*LPVMEML,**LPLPVMEML;
typedef struct _VMEMR {
struct _VMEMR *next;
struct _VMEMR *prev;
struct _VMEMR *pUp;
struct _VMEMR *pDown;
struct _VMEMR *pLeft;
struct _VMEMR *pRight;
FLATPTR ptr;
DWORD size;
DWORD x;
DWORD y;
DWORD cx;
DWORD cy;
DWORD flags;
FLATPTR pBits;
WINBOOL bDiscardable;
} VMEMR,*LPVMEMR,**LPLPVMEMR;
typedef struct _VMEMHEAP {
typedef struct _VMEMHEAP
{
DWORD dwFlags;
DWORD stride;
LPVOID freeList;
@ -103,32 +119,38 @@ extern "C" {
#endif
HANDLE hdevAGP;
LPVOID pvPhysRsrv;
#if NTDDI_VERSION >= 0x05010000
BYTE *pAgpCommitMask;
BYTE* pAgpCommitMask;
DWORD dwAgpCommitMaskSize;
#endif
} VMEMHEAP;
} VMEMHEAP, *LPVMEMHEAP;
#ifndef __NTDDKCOMP__
typedef struct _VIDMEM *LPVIDMEM;
#else
typedef struct _VIDEOMEMORY *LPVIDMEM;
typedef struct _DD_GETHEAPALIGNMENTDATA
{
ULONG_PTR dwInstance;
DWORD dwHeap;
HRESULT ddRVal;
VOID* GetHeapAlignment;
HEAPALIGNMENT Alignment;
} DD_GETHEAPALIGNMENTDATA;
#ifndef DD_GETHEAPALIGNMENTDATA_DECLARED
typedef DD_GETHEAPALIGNMENTDATA *PDD_GETHEAPALIGNMENTDATA;
#define DD_GETHEAPALIGNMENTDATA_DECLARED
#endif
typedef struct _SURFACEALIGNMENT *LPSURFACEALIGNMENT;
typedef struct _HEAPALIGNMENT *LPHEAPALIGNMENT;
typedef struct _DD_GETHEAPALIGNMENTDATA *PDD_GETHEAPALIGNMENTDATA;
typedef VMEMHEAP *LPVMEMHEAP;
extern void WINAPI VidMemFree (LPVMEMHEAP pvmh, FLATPTR ptr);
extern FLATPTR WINAPI VidMemAlloc (LPVMEMHEAP pvmh, DWORD width, DWORD height);
#ifndef __NTDDKCOMP__
extern FLATPTR WINAPI VidMemAlloc (LPVMEMHEAP pvmh, DWORD width, DWORD height);
#endif
extern FLATPTR WINAPI HeapVidMemAllocAligned (LPVIDMEM lpVidMem, DWORD dwWidth, DWORD dwHeight, LPSURFACEALIGNMENT lpAlignment, LPLONG lpNewPitch);
extern void WINAPI VidMemFree (LPVMEMHEAP pvmh, FLATPTR ptr);
extern FLATPTR WINAPI
HeapVidMemAllocAligned(
LPVIDMEM lpVidMem,
DWORD dwWidth,
DWORD dwHeight,
LPSURFACEALIGNMENT lpAlignment,
LPLONG lpNewPitch );
#ifdef __cplusplus
};
}
#endif
#endif
#endif
#endif /* __DMEMMGR_INCLUDED__ */

View File

@ -320,11 +320,6 @@ extern "C" {
/*****************************************************************************
* Enumerations
*/
/* typedef definitions */
typedef enum enumDMUS_VARIATIONT_TYPES DMUS_VARIATIONT_TYPES;
typedef enum enumDMUS_EMBELLISHT_TYPES DMUS_EMBELLISHT_TYPES;
typedef enum enumDMUS_PATTERNT_TYPES DMUS_PATTERNT_TYPES;
/* actual enumerations */
enum enumDMUS_VARIATIONT_TYPES {
DMUS_VARIATIONT_SEQUENTIAL = 0x0,
@ -353,6 +348,10 @@ enum enumDMUS_PATTERNT_TYPES {
DMUS_PATTERNT_RANDOM_ROW = 0x5
};
typedef enum enumDMUS_VARIATIONT_TYPES DMUS_VARIATIONT_TYPES;
typedef enum enumDMUS_EMBELLISHT_TYPES DMUS_EMBELLISHT_TYPES;
typedef enum enumDMUS_PATTERNT_TYPES DMUS_PATTERNT_TYPES;
/*****************************************************************************
* Structures

View File

@ -1,11 +1,12 @@
/*** Autogenerated by WIDL 1.6 from include/docobjectservice.idl - Do not edit ***/
/*** Autogenerated by WIDL 4.19 from include/docobjectservice.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif
#include <rpc.h>
#include <rpcndr.h>
#endif
#ifndef COM_NO_WINDOWS_H
#include <windows.h>
@ -20,6 +21,9 @@
#ifndef __IDocObjectService_FWD_DEFINED__
#define __IDocObjectService_FWD_DEFINED__
typedef interface IDocObjectService IDocObjectService;
#ifdef __cplusplus
interface IDocObjectService;
#endif /* __cplusplus */
#endif
/* Headers for imported files */
@ -41,6 +45,9 @@ extern "C" {
#ifndef __IDocObjectService_FWD_DEFINED__
#define __IDocObjectService_FWD_DEFINED__
typedef interface IDocObjectService IDocObjectService;
#ifdef __cplusplus
interface IDocObjectService;
#endif /* __cplusplus */
#endif
@ -107,19 +114,19 @@ typedef struct IDocObjectServiceVtbl {
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
IDocObjectService* This,
IDocObjectService *This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
IDocObjectService* This);
IDocObjectService *This);
ULONG (STDMETHODCALLTYPE *Release)(
IDocObjectService* This);
IDocObjectService *This);
/*** IDocObjectService methods ***/
HRESULT (STDMETHODCALLTYPE *FireBeforeNavigate2)(
IDocObjectService* This,
IDocObjectService *This,
IDispatch *pDispatch,
LPCWSTR lpszUrl,
DWORD dwFlags,
@ -131,44 +138,45 @@ typedef struct IDocObjectServiceVtbl {
WINBOOL *pfCancel);
HRESULT (STDMETHODCALLTYPE *FireNavigateComplete2)(
IDocObjectService* This,
IDocObjectService *This,
IHTMLWindow2 *pHTMLWindow2,
DWORD dwFlags);
HRESULT (STDMETHODCALLTYPE *FireDownloadBegin)(
IDocObjectService* This);
IDocObjectService *This);
HRESULT (STDMETHODCALLTYPE *FireDownloadComplete)(
IDocObjectService* This);
IDocObjectService *This);
HRESULT (STDMETHODCALLTYPE *FireDocumentComplete)(
IDocObjectService* This,
IDocObjectService *This,
IHTMLWindow2 *pHTMLWindow,
DWORD dwFlags);
HRESULT (STDMETHODCALLTYPE *UpdateDesktopComponent)(
IDocObjectService* This,
IDocObjectService *This,
IHTMLWindow2 *pHTMLWindow);
HRESULT (STDMETHODCALLTYPE *GetPendingUrl)(
IDocObjectService* This,
IDocObjectService *This,
BSTR *pbstrPendingUrl);
HRESULT (STDMETHODCALLTYPE *ActiveElementChanged)(
IDocObjectService* This,
IDocObjectService *This,
IHTMLElement *pHTMLElement);
HRESULT (STDMETHODCALLTYPE *GetUrlSearchComponent)(
IDocObjectService* This,
IDocObjectService *This,
BSTR *pbstrSearch);
HRESULT (STDMETHODCALLTYPE *IsErrorUrl)(
IDocObjectService* This,
IDocObjectService *This,
LPCWSTR lpszUrl,
WINBOOL *pfIsError);
END_INTERFACE
} IDocObjectServiceVtbl;
interface IDocObjectService {
CONST_VTBL IDocObjectServiceVtbl* lpVtbl;
};
@ -237,95 +245,6 @@ static FORCEINLINE HRESULT IDocObjectService_IsErrorUrl(IDocObjectService* This,
#endif
HRESULT STDMETHODCALLTYPE IDocObjectService_FireBeforeNavigate2_Proxy(
IDocObjectService* This,
IDispatch *pDispatch,
LPCWSTR lpszUrl,
DWORD dwFlags,
LPCWSTR lpszFrameName,
BYTE *pPostData,
DWORD cbPostData,
LPCWSTR lpszHeaders,
WINBOOL fPlayNavSound,
WINBOOL *pfCancel);
void __RPC_STUB IDocObjectService_FireBeforeNavigate2_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IDocObjectService_FireNavigateComplete2_Proxy(
IDocObjectService* This,
IHTMLWindow2 *pHTMLWindow2,
DWORD dwFlags);
void __RPC_STUB IDocObjectService_FireNavigateComplete2_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IDocObjectService_FireDownloadBegin_Proxy(
IDocObjectService* This);
void __RPC_STUB IDocObjectService_FireDownloadBegin_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IDocObjectService_FireDownloadComplete_Proxy(
IDocObjectService* This);
void __RPC_STUB IDocObjectService_FireDownloadComplete_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IDocObjectService_FireDocumentComplete_Proxy(
IDocObjectService* This,
IHTMLWindow2 *pHTMLWindow,
DWORD dwFlags);
void __RPC_STUB IDocObjectService_FireDocumentComplete_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IDocObjectService_UpdateDesktopComponent_Proxy(
IDocObjectService* This,
IHTMLWindow2 *pHTMLWindow);
void __RPC_STUB IDocObjectService_UpdateDesktopComponent_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IDocObjectService_GetPendingUrl_Proxy(
IDocObjectService* This,
BSTR *pbstrPendingUrl);
void __RPC_STUB IDocObjectService_GetPendingUrl_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IDocObjectService_ActiveElementChanged_Proxy(
IDocObjectService* This,
IHTMLElement *pHTMLElement);
void __RPC_STUB IDocObjectService_ActiveElementChanged_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IDocObjectService_GetUrlSearchComponent_Proxy(
IDocObjectService* This,
BSTR *pbstrSearch);
void __RPC_STUB IDocObjectService_GetUrlSearchComponent_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IDocObjectService_IsErrorUrl_Proxy(
IDocObjectService* This,
LPCWSTR lpszUrl,
WINBOOL *pfIsError);
void __RPC_STUB IDocObjectService_IsErrorUrl_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
#endif /* __IDocObjectService_INTERFACE_DEFINED__ */

View File

@ -15,6 +15,7 @@
extern "C" {
#endif
#ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
#ifndef _DISKFREE_T_DEFINED
#define _DISKFREE_T_DEFINED
@ -38,6 +39,7 @@ extern "C" {
#define _GETDISKFREE_DEFINED
_CRTIMP unsigned __cdecl _getdiskfree(unsigned _Drive,struct _diskfree_t *_DiskFree);
#endif
#endif /* _CRT_USE_WINAPI_FAMILY_DESKTOP_APP */
#if (defined(_X86_) && !defined(__x86_64))
void __cdecl _disable(void);

View File

@ -1,4 +1,4 @@
/*** Autogenerated by WIDL 4.19 from include/downloadmgr.idl - Do not edit ***/
/*** Autogenerated by WIDL 5.16 from include/downloadmgr.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__

View File

@ -333,6 +333,19 @@ typedef struct tagDPSECURITYDESC
typedef const DPSECURITYDESC *LPCDPSECURITYDESC;
typedef struct
{
DWORD dwSize;
DWORD dwFlags;
union
{
LPWSTR lpszAccountID;
LPSTR lpszAccountIDA;
} DUMMYUNIONNAME;
} DPACCOUNTDESC, *LPDPACCOUNTDESC;
typedef const DPACCOUNTDESC *LPCDPACCOUNTDESC;
typedef struct tagDPCREDENTIALS
{
DWORD dwSize; /* Size of structure */

View File

@ -10,21 +10,40 @@
#define DRIVERSPECS_H
#include <specstrings.h>
#include <concurrencysal.h>
#define __drv_dispatchType(x)
#define __drv_dispatchType_other
#define _IRQL_raises_(x)
#define _IRQL_requires_(x)
#define _IRQL_requires_max_(x)
#define _IRQL_requires_min_(x)
#define _IRQL_requires_same_
#define _IRQL_restores_
#define _IRQL_saves_
#define __drv_aliasesMem
#define __drv_allocatesMem(kind)
#define __drv_freesMem(kind)
#define __drv_arg(x,y)
#define __drv_at(x,y)
#define __drv_deref(x)
#define __drv_dispatchType(x)
#define __drv_dispatchType_other
#define __drv_formatString(x)
#define __drv_freesMem(kind)
#define __drv_in(x)
#define __drv_in_deref(x)
#define __drv_maxIRQL(x)
#define __drv_nonConstant
#define __drv_out(x)
#define __drv_out_deref(x)
#define __drv_raisesIRQL(x)
#define __drv_requiresIRQL(x)
#define __drv_restoresIRQL
#define __drv_restoresIRQLGlobal(x,y)
#define __drv_savesIRQL
#define __drv_savesIRQLGlobal(x,y)
#define __drv_setsIRQL(x)
#define __drv_useCancelIRQL
#define __drv_valueIs(x)
#define __drv_when(x,y)
#define __internal_kernel_driver

View File

@ -1,4 +1,4 @@
/*** Autogenerated by WIDL 4.19 from include/drmexternals.idl - Do not edit ***/
/*** Autogenerated by WIDL 5.16 from include/drmexternals.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__

View File

@ -18,7 +18,6 @@
#ifndef __WINE_DSCONF_H
#define __WINE_DSCONF_H
#define __DSCONF_INCLUDED__
#ifdef __cplusplus
extern "C" {
@ -131,9 +130,9 @@ typedef struct _DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_W_DATA
#define PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_DATA PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_A_DATA
#endif
typedef BOOL (CALLBACK *LPFNDIRECTSOUNDDEVICEENUMERATECALLBACK1)(PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_1_DATA, LPVOID);
typedef BOOL (CALLBACK *LPFNDIRECTSOUNDDEVICEENUMERATECALLBACKA)(PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_A_DATA, LPVOID);
typedef BOOL (CALLBACK *LPFNDIRECTSOUNDDEVICEENUMERATECALLBACKW)(PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_W_DATA, LPVOID);
typedef WINBOOL (CALLBACK *LPFNDIRECTSOUNDDEVICEENUMERATECALLBACK1)(PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_1_DATA, LPVOID);
typedef WINBOOL (CALLBACK *LPFNDIRECTSOUNDDEVICEENUMERATECALLBACKA)(PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_A_DATA, LPVOID);
typedef WINBOOL (CALLBACK *LPFNDIRECTSOUNDDEVICEENUMERATECALLBACKW)(PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_W_DATA, LPVOID);
typedef struct _DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_1_DATA
{

View File

@ -1,5 +1,3 @@
#include <_mingw_unicode.h>
#undef INTERFACE
/*
* Copyright (C) the Wine project
*
@ -18,6 +16,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <_mingw_unicode.h>
#undef INTERFACE
#ifndef __DSOUND_INCLUDED__
#define __DSOUND_INCLUDED__
@ -116,6 +117,11 @@ DEFINE_GUID(DSDEVID_DefaultCapture, 0xDEF00001,0x9C6D,0x47Ed,0xAA,0xF1,0x4D
DEFINE_GUID(DSDEVID_DefaultVoicePlayback,0xDEF00002,0x9C6D,0x47Ed,0xAA,0xF1,0x4D,0xDA,0x8F,0x2B,0x5C,0x03);
DEFINE_GUID(DSDEVID_DefaultVoiceCapture, 0xDEF00003,0x9C6D,0x47ED,0xAA,0xF1,0x4D,0xDA,0x8F,0x2B,0x5C,0x03);
#define DS3DALG_DEFAULT GUID_NULL
DEFINE_GUID(DS3DALG_NO_VIRTUALIZATION, 0xc241333f,0x1c1b,0x11d2,0x94,0xf5,0x00,0xc0,0x4f,0xc2,0x8a,0xca);
DEFINE_GUID(DS3DALG_HRTF_FULL, 0xc2413340,0x1c1b,0x11d2,0x94,0xf5,0x00,0xc0,0x4f,0xc2,0x8a,0xca);
DEFINE_GUID(DS3DALG_HRTF_LIGHT, 0xc2413342,0x1c1b,0x11d2,0x94,0xf5,0x00,0xc0,0x4f,0xc2,0x8a,0xca);
DEFINE_GUID(GUID_DSFX_STANDARD_GARGLE, 0xDAFD8210,0x5711,0x4B91,0x9F,0xE3,0xF7,0x5B,0x7A,0xE2,0x79,0xBF);
DEFINE_GUID(GUID_DSFX_STANDARD_CHORUS, 0xEFE6629C,0x81F7,0x4281,0xBD,0x91,0xC9,0xD6,0x04,0xA9,0x5A,0xF6);
DEFINE_GUID(GUID_DSFX_STANDARD_FLANGER, 0xEFCA3D92,0xDFD8,0x4672,0xA6,0x03,0x74,0x20,0x89,0x4B,0xAD,0x98);
@ -395,8 +401,6 @@ typedef const DSBPOSITIONNOTIFY *LPCDSBPOSITIONNOTIFY;
#define DS_CERTIFIED 0x00000000
#define DS_UNCERTIFIED 0x00000001
#define DS3DALG_DEFAULT GUID_NULL
typedef struct _DSCEFFECTDESC
{
DWORD dwSize;
@ -1780,6 +1784,92 @@ DECLARE_INTERFACE_(IDirectSoundFXWavesReverb,IUnknown)
#define IDirectSoundFXWavesReverb_GetAllParameters(p,a) (p)->GetAllParameters(a)
#endif
enum
{
DSFX_I3DL2_MATERIAL_PRESET_SINGLEWINDOW,
DSFX_I3DL2_MATERIAL_PRESET_DOUBLEWINDOW,
DSFX_I3DL2_MATERIAL_PRESET_THINDOOR,
DSFX_I3DL2_MATERIAL_PRESET_THICKDOOR,
DSFX_I3DL2_MATERIAL_PRESET_WOODWALL,
DSFX_I3DL2_MATERIAL_PRESET_BRICKWALL,
DSFX_I3DL2_MATERIAL_PRESET_STONEWALL,
DSFX_I3DL2_MATERIAL_PRESET_CURTAIN
};
#define I3DL2_MATERIAL_PRESET_SINGLEWINDOW -2800,0.71f
#define I3DL2_MATERIAL_PRESET_DOUBLEWINDOW -5000,0.40f
#define I3DL2_MATERIAL_PRESET_THINDOOR -1800,0.66f
#define I3DL2_MATERIAL_PRESET_THICKDOOR -4400,0.64f
#define I3DL2_MATERIAL_PRESET_WOODWALL -4000,0.50f
#define I3DL2_MATERIAL_PRESET_BRICKWALL -5000,0.60f
#define I3DL2_MATERIAL_PRESET_STONEWALL -6000,0.68f
#define I3DL2_MATERIAL_PRESET_CURTAIN -1200,0.15f
enum
{
DSFX_I3DL2_ENVIRONMENT_PRESET_DEFAULT,
DSFX_I3DL2_ENVIRONMENT_PRESET_GENERIC,
DSFX_I3DL2_ENVIRONMENT_PRESET_PADDEDCELL,
DSFX_I3DL2_ENVIRONMENT_PRESET_ROOM,
DSFX_I3DL2_ENVIRONMENT_PRESET_BATHROOM,
DSFX_I3DL2_ENVIRONMENT_PRESET_LIVINGROOM,
DSFX_I3DL2_ENVIRONMENT_PRESET_STONEROOM,
DSFX_I3DL2_ENVIRONMENT_PRESET_AUDITORIUM,
DSFX_I3DL2_ENVIRONMENT_PRESET_CONCERTHALL,
DSFX_I3DL2_ENVIRONMENT_PRESET_CAVE,
DSFX_I3DL2_ENVIRONMENT_PRESET_ARENA,
DSFX_I3DL2_ENVIRONMENT_PRESET_HANGAR,
DSFX_I3DL2_ENVIRONMENT_PRESET_CARPETEDHALLWAY,
DSFX_I3DL2_ENVIRONMENT_PRESET_HALLWAY,
DSFX_I3DL2_ENVIRONMENT_PRESET_STONECORRIDOR,
DSFX_I3DL2_ENVIRONMENT_PRESET_ALLEY,
DSFX_I3DL2_ENVIRONMENT_PRESET_FOREST,
DSFX_I3DL2_ENVIRONMENT_PRESET_CITY,
DSFX_I3DL2_ENVIRONMENT_PRESET_MOUNTAINS,
DSFX_I3DL2_ENVIRONMENT_PRESET_QUARRY,
DSFX_I3DL2_ENVIRONMENT_PRESET_PLAIN,
DSFX_I3DL2_ENVIRONMENT_PRESET_PARKINGLOT,
DSFX_I3DL2_ENVIRONMENT_PRESET_SEWERPIPE,
DSFX_I3DL2_ENVIRONMENT_PRESET_UNDERWATER,
DSFX_I3DL2_ENVIRONMENT_PRESET_SMALLROOM,
DSFX_I3DL2_ENVIRONMENT_PRESET_MEDIUMROOM,
DSFX_I3DL2_ENVIRONMENT_PRESET_LARGEROOM,
DSFX_I3DL2_ENVIRONMENT_PRESET_MEDIUMHALL,
DSFX_I3DL2_ENVIRONMENT_PRESET_LARGEHALL,
DSFX_I3DL2_ENVIRONMENT_PRESET_PLATE
};
#define I3DL2_ENVIRONMENT_PRESET_DEFAULT -1000,-100,0.0f,1.49f,0.83f,-2602,0.007f,200,0.011f,100.0f,100.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_GENERIC -1000,-100,0.0f,1.49f,0.83f,-2602,0.007f,200,0.011f,100.0f,100.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_PADDEDCELL -1000,-6000,0.0f,0.17f,0.10f,-1204,0.001f,207,0.002f,100.0f,100.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_ROOM -1000,-454,0.0f,0.40f,0.83f,-1646,0.002f,53,0.003f,100.0f,100.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_BATHROOM -1000,-1200,0.0f,1.49f,0.54f,-370,0.007f,1030,0.011f,100.0f,60.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_LIVINGROOM -1000,-6000,0.0f,0.50f,0.10f,-1376,0.003f,-1104,0.004f,100.0f,100.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_STONEROOM -1000,-300,0.0f,2.31f,0.64f,-711,0.012f,83,0.017f,100.0f,100.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_AUDITORIUM -1000,-476,0.0f,4.32f,0.59f,-789,0.020f,-289,0.030f,100.0f,100.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_CONCERTHALL -1000,-500,0.0f,3.92f,0.70f,-1230,0.020f,-2,0.029f,100.0f,100.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_CAVE -1000,0,0.0f,2.91f,1.30f,-602,0.015f,-302,0.022f,100.0f,100.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_ARENA -1000,-698,0.0f,7.24f,0.33f,-1166,0.020f,16,0.030f,100.0f,100.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_HANGAR -1000,-1000,0.0f,10.05f,0.23f,-602,0.020f,198,0.030f,100.0f,100.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_CARPETEDHALLWAY -1000,-4000,0.0f,0.30f,0.10f,-1831,0.002f,-1630,0.030f,100.0f,100.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_HALLWAY -1000,-300,0.0f,1.49f,0.59f,-1219,0.007f,441,0.011f,100.0f,100.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_STONECORRIDOR -1000,-237,0.0f,2.70f,0.79f,-1214,0.013f,395,0.020f,100.0f,100.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_ALLEY -1000,-270,0.0f,1.49f,0.86f,-1204,0.007f,-4,0.011f,100.0f,100.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_FOREST -1000,-3300,0.0f,1.49f,0.54f,-2560,0.162f,-613,0.088f,79.0f,100.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_CITY -1000,-800,0.0f,1.49f,0.67f,-2273,0.007f,2217,0.011f,50.0f,100.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_MOUNTAINS -1000,-2500,0.0f,1.49f,0.21f,-2780,0.300f,-2014,0.100f,27.0f,100.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_QUARRY -1000,-1000,0.0f,1.49f,0.83f,-10000,0.061f,500,0.025f,100.0f,100.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_PLAIN -1000,-2000,0.0f,1.49f,0.50f,-2466,0.179f,-2514,0.100f,21.0f,100.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_PARKINGLOT -1000,0,0.0f,1.65f,1.50f,-1363,0.008f,-1153,0.012f,100.0f,100.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_SEWERPIPE -1000,-1000,0.0f,2.81f,0.14f,429,0.014f,648,0.011f,80.0f,60.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_UNDERWATER -1000,-4000,0.0f,1.49f,0.10f,-449,0.007f,1700,0.011f,100.0f,100.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_SMALLROOM -1000,-600,0.0f,1.10f,0.83f,-400,0.005f,500,0.010f,100.0f,100.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_MEDIUMROOM -1000,-600,0.0f,1.30f,0.83f,-1000,0.010f,-200,0.020f,100.0f,100.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_LARGEROOM -1000,-600,0.0f,1.50f,0.83f,-1600,0.020f,-1000,0.040f,100.0f,100.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_MEDIUMHALL -1000,-600,0.0f,1.80f,0.70f,-1300,0.015f,-800,0.030f,100.0f,100.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_LARGEHALL -1000,-600,0.0f,1.80f,0.70f,-2000,0.030f,-1400,0.060f,100.0f,100.0f,5000.0f
#define I3DL2_ENVIRONMENT_PRESET_PLATE -1000,-200,0.0f,1.30f,0.90f,0,0.002f,0,0.010f,100.0f,75.0f,5000.0f
#ifdef __cplusplus
} /* extern "C" */
#endif /* defined(__cplusplus) */

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,376 @@
/* $Id$
*
* COPYRIGHT: This file is in the public domain.
* PROJECT: ReactOS kernel
* FILE:
* PURPOSE: Directx headers
* PROGRAMMER: Magnus Olsen (greatlrd)
*
*/
#ifndef __DVP_INCLUDED__
#define __DVP_INCLUDED__
#if defined( _WIN32 ) && !defined( _NO_COM )
DEFINE_GUID(IID_IDDVideoPortContainer, 0x6C142760,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60);
DEFINE_GUID(IID_IDirectDrawVideoPort, 0xB36D93E0,0x2B43,0x11CF,0xA2,0xDE,0x00,0xAA,0x00,0xB9,0x33,0x56);
DEFINE_GUID(IID_IDirectDrawVideoPortNotify, 0xA655FB94,0x0589,0x4E57,0xB3,0x33,0x56,0x7A,0x89,0x46,0x8C,0x88);
DEFINE_GUID(DDVPTYPE_E_HREFH_VREFH, 0x54F39980L,0xDA60,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8);
DEFINE_GUID(DDVPTYPE_E_HREFH_VREFL, 0x92783220L,0xDA60,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8);
DEFINE_GUID(DDVPTYPE_E_HREFL_VREFH, 0xA07A02E0L,0xDA60,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8);
DEFINE_GUID(DDVPTYPE_E_HREFL_VREFL, 0xE09C77E0L,0xDA60,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8);
DEFINE_GUID(DDVPTYPE_CCIR656, 0xFCA326A0L,0xDA60,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8);
DEFINE_GUID(DDVPTYPE_BROOKTREE, 0x1352A560L,0xDA61,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8);
DEFINE_GUID(DDVPTYPE_PHILIPS, 0x332CF160L,0xDA61,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8);
#endif
#ifndef GUID_DEFS_ONLY
#if defined(_WIN32) && !defined(_NO_COM)
#define COM_NO_WINDOWS_H
#include <objbase.h>
#else
#define IUnknown void
#endif /* _WIN32 && !_NO_COM */
#ifndef MAXULONG_PTR
#define ULONG_PTR DWORD
#endif
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _DDVIDEOPORTCONNECT
{
DWORD dwSize;
DWORD dwPortWidth;
GUID guidTypeID;
DWORD dwFlags;
ULONG_PTR dwReserved1;
} DDVIDEOPORTCONNECT, *LPDDVIDEOPORTCONNECT;
typedef struct _DDVIDEOPORTDESC
{
DWORD dwSize;
DWORD dwFieldWidth;
DWORD dwVBIWidth;
DWORD dwFieldHeight;
DWORD dwMicrosecondsPerField;
DWORD dwMaxPixelsPerSecond;
DWORD dwVideoPortID;
DWORD dwReserved1;
DDVIDEOPORTCONNECT VideoPortType;
ULONG_PTR dwReserved2;
ULONG_PTR dwReserved3;
} DDVIDEOPORTDESC, *LPDDVIDEOPORTDESC;
typedef struct _DDVIDEOPORTBANDWIDTH
{
DWORD dwSize;
DWORD dwOverlay;
DWORD dwColorkey;
DWORD dwYInterpolate;
DWORD dwYInterpAndColorkey;
ULONG_PTR dwReserved1;
ULONG_PTR dwReserved2;
} DDVIDEOPORTBANDWIDTH, *LPDDVIDEOPORTBANDWIDTH;
typedef struct _DDVIDEOPORTCAPS
{
DWORD dwSize;
DWORD dwFlags;
DWORD dwMaxWidth;
DWORD dwMaxVBIWidth;
DWORD dwMaxHeight;
DWORD dwVideoPortID;
DWORD dwCaps;
DWORD dwFX;
DWORD dwNumAutoFlipSurfaces;
DWORD dwAlignVideoPortBoundary;
DWORD dwAlignVideoPortPrescaleWidth;
DWORD dwAlignVideoPortCropBoundary;
DWORD dwAlignVideoPortCropWidth;
DWORD dwPreshrinkXStep;
DWORD dwPreshrinkYStep;
DWORD dwNumVBIAutoFlipSurfaces;
DWORD dwNumPreferredAutoflip;
WORD wNumFilterTapsX;
WORD wNumFilterTapsY;
} DDVIDEOPORTCAPS, *LPDDVIDEOPORTCAPS;
typedef struct _DDVIDEOPORTINFO
{
DWORD dwSize;
DWORD dwOriginX;
DWORD dwOriginY;
DWORD dwVPFlags;
RECT rCrop;
DWORD dwPrescaleWidth;
DWORD dwPrescaleHeight;
LPDDPIXELFORMAT lpddpfInputFormat;
LPDDPIXELFORMAT lpddpfVBIInputFormat;
LPDDPIXELFORMAT lpddpfVBIOutputFormat;
DWORD dwVBIHeight;
ULONG_PTR dwReserved1;
ULONG_PTR dwReserved2;
} DDVIDEOPORTINFO, *LPDDVIDEOPORTINFO;
typedef struct _DDVIDEOPORTSTATUS
{
DWORD dwSize;
WINBOOL bInUse;
DWORD dwFlags;
DWORD dwReserved1;
DDVIDEOPORTCONNECT VideoPortType;
ULONG_PTR dwReserved2;
ULONG_PTR dwReserved3;
} DDVIDEOPORTSTATUS, *LPDDVIDEOPORTSTATUS;
typedef struct _DDVIDEOPORTNOTIFY
{
LARGE_INTEGER ApproximateTimeStamp;
LONG lField;
UINT dwSurfaceIndex;
LONG lDone;
} DDVIDEOPORTNOTIFY, *LPDDVIDEOPORTNOTIFY;
#define DDVPD_WIDTH 0x00000001
#define DDVPD_HEIGHT 0x00000002
#define DDVPD_ID 0x00000004
#define DDVPD_CAPS 0x00000008
#define DDVPD_FX 0x00000010
#define DDVPD_AUTOFLIP 0x00000020
#define DDVPD_ALIGN 0x00000040
#define DDVPD_PREFERREDAUTOFLIP 0x00000080
#define DDVPD_FILTERQUALITY 0x00000100
#define DDVPCONNECT_DOUBLECLOCK 0x00000001
#define DDVPCONNECT_VACT 0x00000002
#define DDVPCONNECT_INVERTPOLARITY 0x00000004
#define DDVPCONNECT_DISCARDSVREFDATA 0x00000008
#define DDVPCONNECT_HALFLINE 0x00000010
#define DDVPCONNECT_INTERLACED 0x00000020
#define DDVPCONNECT_SHAREEVEN 0x00000040
#define DDVPCONNECT_SHAREODD 0x00000080
#define DDVPCAPS_AUTOFLIP 0x00000001
#define DDVPCAPS_INTERLACED 0x00000002
#define DDVPCAPS_NONINTERLACED 0x00000004
#define DDVPCAPS_READBACKFIELD 0x00000008
#define DDVPCAPS_READBACKLINE 0x00000010
#define DDVPCAPS_SHAREABLE 0x00000020
#define DDVPCAPS_SKIPEVENFIELDS 0x00000040
#define DDVPCAPS_SKIPODDFIELDS 0x00000080
#define DDVPCAPS_SYNCMASTER 0x00000100
#define DDVPCAPS_VBISURFACE 0x00000200
#define DDVPCAPS_COLORCONTROL 0x00000400
#define DDVPCAPS_OVERSAMPLEDVBI 0x00000800
#define DDVPCAPS_SYSTEMMEMORY 0x00001000
#define DDVPCAPS_VBIANDVIDEOINDEPENDENT 0x00002000
#define DDVPCAPS_HARDWAREDEINTERLACE 0x00004000
#define DDVPFX_CROPTOPDATA 0x00000001
#define DDVPFX_CROPX 0x00000002
#define DDVPFX_CROPY 0x00000004
#define DDVPFX_INTERLEAVE 0x00000008
#define DDVPFX_MIRRORLEFTRIGHT 0x00000010
#define DDVPFX_MIRRORUPDOWN 0x00000020
#define DDVPFX_PRESHRINKX 0x00000040
#define DDVPFX_PRESHRINKY 0x00000080
#define DDVPFX_PRESHRINKXB 0x00000100
#define DDVPFX_PRESHRINKYB 0x00000200
#define DDVPFX_PRESHRINKXS 0x00000400
#define DDVPFX_PRESHRINKYS 0x00000800
#define DDVPFX_PRESTRETCHX 0x00001000
#define DDVPFX_PRESTRETCHY 0x00002000
#define DDVPFX_PRESTRETCHXN 0x00004000
#define DDVPFX_PRESTRETCHYN 0x00008000
#define DDVPFX_VBICONVERT 0x00010000
#define DDVPFX_VBINOSCALE 0x00020000
#define DDVPFX_IGNOREVBIXCROP 0x00040000
#define DDVPFX_VBINOINTERLEAVE 0x00080000
#define DDVP_AUTOFLIP 0x00000001
#define DDVP_CONVERT 0x00000002
#define DDVP_CROP 0x00000004
#define DDVP_INTERLEAVE 0x00000008
#define DDVP_MIRRORLEFTRIGHT 0x00000010
#define DDVP_MIRRORUPDOWN 0x00000020
#define DDVP_PRESCALE 0x00000040
#define DDVP_SKIPEVENFIELDS 0x00000080
#define DDVP_SKIPODDFIELDS 0x00000100
#define DDVP_SYNCMASTER 0x00000200
#define DDVP_VBICONVERT 0x00000400
#define DDVP_VBINOSCALE 0x00000800
#define DDVP_OVERRIDEBOBWEAVE 0x00001000
#define DDVP_IGNOREVBIXCROP 0x00002000
#define DDVP_VBINOINTERLEAVE 0x00004000
#define DDVP_HARDWAREDEINTERLACE 0x00008000
#define DDVPFORMAT_VIDEO 0x00000001
#define DDVPFORMAT_VBI 0x00000002
#define DDVPTARGET_VIDEO 0x00000001
#define DDVPTARGET_VBI 0x00000002
#define DDVPWAIT_BEGIN 0x00000001
#define DDVPWAIT_END 0x00000002
#define DDVPWAIT_LINE 0x00000003
#define DDVPFLIP_VIDEO 0x00000001
#define DDVPFLIP_VBI 0x00000002
#define DDVPSQ_NOSIGNAL 0x00000001
#define DDVPSQ_SIGNALOK 0x00000002
#define DDVPB_VIDEOPORT 0x00000001
#define DDVPB_OVERLAY 0x00000002
#define DDVPB_TYPE 0x00000004
#define DDVPBCAPS_SOURCE 0x00000001
#define DDVPBCAPS_DESTINATION 0x00000002
#define DDVPCREATE_VBIONLY 0x00000001
#define DDVPCREATE_VIDEOONLY 0x00000002
#define DDVPSTATUS_VBIONLY 0x00000001
#define DDVPSTATUS_VIDEOONLY 0x00000002
struct IDirectDraw;
struct IDirectDrawSurface;
struct IDirectDrawPalette;
struct IDirectDrawClipper;
typedef struct IDirectDrawVideoPort *LPDIRECTDRAWVIDEOPORT;
typedef struct IDDVideoPortContainer *LPDDVIDEOPORTCONTAINER;
typedef struct IDirectDrawVideoPortNotify *LPDIRECTDRAWVIDEOPORTNOTIFY;
typedef struct IDDVideoPortContainerVtbl DDVIDEOPORTCONTAINERCALLBACKS;
typedef struct IDirectDrawVideoPortVtbl DIRECTDRAWVIDEOPORTCALLBACKS;
typedef struct IDirectDrawVideoPortNotifyVtbl DIRECTDRAWVIDEOPORTNOTIFYCALLBACKS;
typedef HRESULT (*LPDDENUMVIDEOCALLBACK)(LPDDVIDEOPORTCAPS, LPVOID);
#if defined( _WIN32 ) && !defined( _NO_COM )
#undef INTERFACE
#define INTERFACE IDDVideoPortContainer
DECLARE_INTERFACE_( IDDVideoPortContainer, IUnknown )
{
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID *ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
STDMETHOD(CreateVideoPort)(THIS_ DWORD, LPDDVIDEOPORTDESC, LPDIRECTDRAWVIDEOPORT *, IUnknown *) PURE;
STDMETHOD(EnumVideoPorts)(THIS_ DWORD, LPDDVIDEOPORTCAPS, LPVOID,LPDDENUMVIDEOCALLBACK ) PURE;
STDMETHOD(GetVideoPortConnectInfo)(THIS_ DWORD, LPDWORD, LPDDVIDEOPORTCONNECT ) PURE;
STDMETHOD(QueryVideoPortStatus)(THIS_ DWORD, LPDDVIDEOPORTSTATUS ) PURE;
};
#if !defined(__cplusplus) || defined(CINTERFACE)
# define IVideoPortContainer_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b)
# define IVideoPortContainer_AddRef(p) (p)->lpVtbl->AddRef(p)
# define IVideoPortContainer_Release(p) (p)->lpVtbl->Release(p)
# define IVideoPortContainer_CreateVideoPort(p, a, b, c, d) (p)->lpVtbl->CreateVideoPort(p, a, b, c, d)
# define IVideoPortContainer_EnumVideoPorts(p, a, b, c, d) (p)->lpVtbl->EnumVideoPorts(p, a, b, c, d)
# define IVideoPortContainer_GetVideoPortConnectInfo(p, a, b, c) (p)->lpVtbl->GetVideoPortConnectInfo(p, a, b, c)
# define IVideoPortContainer_QueryVideoPortStatus(p, a, b) (p)->lpVtbl->QueryVideoPortStatus(p, a, b)
#else
# define IVideoPortContainer_QueryInterface(p, a, b) (p)->QueryInterface(a, b)
# define IVideoPortContainer_AddRef(p) (p)->AddRef()
# define IVideoPortContainer_Release(p) (p)->Release()
# define IVideoPortContainer_CreateVideoPort(p, a, b, c, d) (p)->CreateVideoPort(a, b, c, d)
# define IVideoPortContainer_EnumVideoPorts(p, a, b, c, d) (p)->EnumVideoPorts(a, b, c, d)
# define IVideoPortContainer_GetVideoPortConnectInfo(p, a, b, c) (p)->GetVideoPortConnectInfo(a, b, c)
# define IVideoPortContainer_QueryVideoPortStatus(p, a, b) (p)->QueryVideoPortStatus(a, b)
#endif /* !__cplusplus || defined(CINTERFACE) */
#endif /* defined( _WIN32 ) && !defined( _NO_COM ) */
#if defined( _WIN32 ) && !defined( _NO_COM )
#undef INTERFACE
#define INTERFACE IDirectDrawVideoPort
DECLARE_INTERFACE_( IDirectDrawVideoPort, IUnknown )
{
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE, DWORD) PURE;
STDMETHOD(GetBandwidthInfo)(THIS_ LPDDPIXELFORMAT, DWORD, DWORD, DWORD, LPDDVIDEOPORTBANDWIDTH) PURE;
STDMETHOD(GetColorControls)(THIS_ LPDDCOLORCONTROL) PURE;
STDMETHOD(GetInputFormats)(THIS_ LPDWORD, LPDDPIXELFORMAT, DWORD) PURE;
STDMETHOD(GetOutputFormats)(THIS_ LPDDPIXELFORMAT, LPDWORD, LPDDPIXELFORMAT, DWORD) PURE;
STDMETHOD(GetFieldPolarity)(THIS_ LPBOOL) PURE;
STDMETHOD(GetVideoLine)(THIS_ LPDWORD) PURE;
STDMETHOD(GetVideoSignalStatus)(THIS_ LPDWORD) PURE;
STDMETHOD(SetColorControls)(THIS_ LPDDCOLORCONTROL) PURE;
STDMETHOD(SetTargetSurface)(THIS_ LPDIRECTDRAWSURFACE, DWORD) PURE;
STDMETHOD(StartVideo)(THIS_ LPDDVIDEOPORTINFO) PURE;
STDMETHOD(StopVideo)(THIS) PURE;
STDMETHOD(UpdateVideo)(THIS_ LPDDVIDEOPORTINFO) PURE;
STDMETHOD(WaitForSync)(THIS_ DWORD, DWORD, DWORD) PURE;
};
#if !defined(__cplusplus) || defined(CINTERFACE)
# define IVideoPort_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
# define IVideoPort_AddRef(p) (p)->lpVtbl->AddRef(p)
# define IVideoPort_Release(p) (p)->lpVtbl->Release(p)
# define IVideoPort_SetTargetSurface(p,a,b) (p)->lpVtbl->SetTargetSurface(p,a,b)
# define IVideoPort_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b)
# define IVideoPort_GetBandwidthInfo(p,a,b,c,d,e) (p)->lpVtbl->GetBandwidthInfo(p,a,b,c,d,e)
# define IVideoPort_GetColorControls(p,a) (p)->lpVtbl->GetColorControls(p,a)
# define IVideoPort_GetInputFormats(p,a,b,c) (p)->lpVtbl->GetInputFormats(p,a,b,c)
# define IVideoPort_GetOutputFormats(p,a,b,c,d) (p)->lpVtbl->GetOutputFormats(p,a,b,c,d)
# define IVideoPort_GetFieldPolarity(p,a) (p)->lpVtbl->GetFieldPolarity(p,a)
# define IVideoPort_GetVideoLine(p,a) (p)->lpVtbl->GetVideoLine(p,a)
# define IVideoPort_GetVideoSignalStatus(p,a) (p)->lpVtbl->GetVideoSignalStatus(p,a)
# define IVideoPort_SetColorControls(p,a) (p)->lpVtbl->SetColorControls(p,a)
# define IVideoPort_StartVideo(p,a) (p)->lpVtbl->StartVideo(p,a)
# define IVideoPort_StopVideo(p) (p)->lpVtbl->StopVideo(p)
# define IVideoPort_UpdateVideo(p,a) (p)->lpVtbl->UpdateVideo(p,a)
# define IVideoPort_WaitForSync(p,a,b,c) (p)->lpVtbl->WaitForSync(p,a,b,c)
#else
# define IVideoPort_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
# define IVideoPort_AddRef(p) (p)->AddRef()
# define IVideoPort_Release(p) (p)->Release()
# define IVideoPort_SetTargetSurface(p,a,b) (p)->SetTargetSurface(a,b)
# define IVideoPort_Flip(p,a,b) (p)->Flip(a,b)
# define IVideoPort_GetBandwidthInfo(p,a,b,c,d,e) (p)->GetBandwidthInfo(a,b,c,d,e)
# define IVideoPort_GetColorControls(p,a) (p)->GetColorControls(a)
# define IVideoPort_GetInputFormats(p,a,b,c) (p)->GetInputFormats(a,b,c)
# define IVideoPort_GetOutputFormats(p,a,b,c,d) (p)->GetOutputFormats(a,b,c,d)
# define IVideoPort_GetFieldPolarity(p,a) (p)->GetFieldPolarity(a)
# define IVideoPort_GetVideoLine(p,a) (p)->GetVideoLine(a)
# define IVideoPort_GetVideoSignalStatus(p,a) (p)->GetVideoSignalStatus(a)
# define IVideoPort_SetColorControls(p,a) (p)->SetColorControls(a)
# define IVideoPort_StartVideo(p,a) (p)->StartVideo(a)
# define IVideoPort_StopVideo(p) (p)->StopVideo()
# define IVideoPort_UpdateVideo(p,a) (p)->UpdateVideo(a)
# define IVideoPort_WaitForSync(p,a,b,c) (p)->WaitForSync(a,b,c)
#endif /* !__cplusplus || defined(CINTERFACE) */
#endif /* defined( _WIN32 ) && !defined( _NO_COM ) */
#if defined( _WIN32 ) && !defined( _NO_COM )
#undef INTERFACE
#define INTERFACE IDirectDrawVideoPortNotify
DECLARE_INTERFACE_( IDirectDrawVideoPortNotify, IUnknown )
{
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
STDMETHOD(AcquireNotification)(THIS_ HANDLE *, LPDDVIDEOPORTNOTIFY) PURE;
STDMETHOD(ReleaseNotification)(THIS_ HANDLE) PURE;
};
#if !defined(__cplusplus) || defined(CINTERFACE)
# define IVideoPortNotify_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
# define IVideoPortNotify_AddRef(p) (p)->lpVtbl->AddRef(p)
# define IVideoPortNotify_Release(p) (p)->lpVtbl->Release(p)
# define IVideoPortNotify_AcquireNotification(p,a,b) (p)->lpVtbl->AcquireNotification(p,a,b)
# define IVideoPortNotify_ReleaseNotification(p,a) (p)->lpVtbl->ReleaseNotification(p,a)
#else
# define IVideoPortNotify_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
# define IVideoPortNotify_AddRef(p) (p)->AddRef()
# define IVideoPortNotify_Release(p) (p)->Release()
# define IVideoPortNotify_AcquireNotification(p,a,b) (p)->lpVtbl->AcquireNotification(a,b)
# define IVideoPortNotify_ReleaseNotification(p,a) (p)->lpVtbl->ReleaseNotification(a)
#endif /* !__cplusplus || defined(CINTERFACE) */
#endif /* defined( _WIN32 ) && !defined( _NO_COM ) */
#ifdef __cplusplus
}
#endif
#endif /* ! GUID_DEFS_ONLY */
#endif /* __DVP_INCLUDED__ */

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
/*** Autogenerated by WIDL 4.19 from direct-x/include/dxgi.idl - Do not edit ***/
/*** Autogenerated by WIDL 5.16 from include/dxgi.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__
@ -152,6 +152,16 @@ typedef struct _LUID {
} LUID;
typedef struct _LUID *PLUID;
#endif
#define DXGI_CPU_ACCESS_NONE (0)
#define DXGI_CPU_ACCESS_DYNAMIC (1)
#define DXGI_CPU_ACCESS_READ_WRITE (2)
#define DXGI_CPU_ACCESS_SCRATCH (3)
#define DXGI_CPU_ACCESS_FIELD (15)
typedef UINT DXGI_USAGE;
#define DXGI_USAGE_SHADER_INPUT (0x10)
@ -237,7 +247,7 @@ typedef enum DXGI_SWAP_CHAIN_FLAG {
DXGI_SWAP_CHAIN_FLAG_NONPREROTATED = 0x1,
DXGI_SWAP_CHAIN_FLAG_ALLOW_MODE_SWITCH = 0x2,
DXGI_SWAP_CHAIN_FLAG_GDI_COMPATIBLE = 0x4,
DXGI_SWAP_CHAIN_FLAG_RESTRICTED_CONTEXT = 0x8,
DXGI_SWAP_CHAIN_FLAG_RESTRICTED_CONTENT = 0x8,
DXGI_SWAP_CHAIN_FLAG_RESTRICT_SHARED_RESOURCE_DRIVER = 0x10,
DXGI_SWAP_CHAIN_FLAG_DISPLAY_ONLY = 0x20,
DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT = 0x40,
@ -2139,6 +2149,7 @@ static FORCEINLINE HRESULT IDXGIDevice_GetGPUThreadPriority(IDXGIDevice* This,IN
typedef enum DXGI_ADAPTER_FLAG {
DXGI_ADAPTER_FLAG_NONE = 0,
DXGI_ADAPTER_FLAG_REMOTE = 1,
DXGI_ADAPTER_FLAG_SOFTWARE = 2,
DXGI_ADAPTER_FLAG_FORCE_DWORD = 0xffffffff
} DXGI_ADAPTER_FLAG;
typedef struct DXGI_ADAPTER_DESC1 {
@ -2153,6 +2164,10 @@ typedef struct DXGI_ADAPTER_DESC1 {
LUID AdapterLuid;
UINT Flags;
} DXGI_ADAPTER_DESC1;
typedef struct DXGI_DISPLAY_COLOR_SPACE {
FLOAT PrimaryCoordinates[8][2];
FLOAT WhitePoints[16][2];
} DXGI_DISPLAY_COLOR_SPACE;
/*****************************************************************************
* IDXGIAdapter1 interface
*/

View File

@ -33,6 +33,12 @@ typedef struct _LUID {
} LUID, *PLUID;
cpp_quote("#endif")
const UINT DXGI_CPU_ACCESS_NONE = 0;
const UINT DXGI_CPU_ACCESS_DYNAMIC = 1;
const UINT DXGI_CPU_ACCESS_READ_WRITE = 2;
const UINT DXGI_CPU_ACCESS_SCRATCH = 3;
const UINT DXGI_CPU_ACCESS_FIELD = 15;
typedef UINT DXGI_USAGE;
const DXGI_USAGE DXGI_USAGE_SHADER_INPUT = 0x10L;
const DXGI_USAGE DXGI_USAGE_RENDER_TARGET_OUTPUT = 0x20L;
@ -113,7 +119,7 @@ typedef enum DXGI_SWAP_CHAIN_FLAG
DXGI_SWAP_CHAIN_FLAG_NONPREROTATED = 0x0001,
DXGI_SWAP_CHAIN_FLAG_ALLOW_MODE_SWITCH = 0x0002,
DXGI_SWAP_CHAIN_FLAG_GDI_COMPATIBLE = 0x0004,
DXGI_SWAP_CHAIN_FLAG_RESTRICTED_CONTEXT = 0x0008,
DXGI_SWAP_CHAIN_FLAG_RESTRICTED_CONTENT = 0x0008,
DXGI_SWAP_CHAIN_FLAG_RESTRICT_SHARED_RESOURCE_DRIVER = 0x0010,
DXGI_SWAP_CHAIN_FLAG_DISPLAY_ONLY = 0x0020,
DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT = 0x0040,
@ -439,6 +445,7 @@ interface IDXGIDevice : IDXGIObject
typedef enum DXGI_ADAPTER_FLAG {
DXGI_ADAPTER_FLAG_NONE = 0,
DXGI_ADAPTER_FLAG_REMOTE = 1,
DXGI_ADAPTER_FLAG_SOFTWARE = 2,
DXGI_ADAPTER_FLAG_FORCE_DWORD = 0xFFFFFFFF
} DXGI_ADAPTER_FLAG;
@ -455,6 +462,11 @@ typedef struct DXGI_ADAPTER_DESC1 {
UINT Flags;
} DXGI_ADAPTER_DESC1;
typedef struct DXGI_DISPLAY_COLOR_SPACE {
FLOAT PrimaryCoordinates[8][2];
FLOAT WhitePoints[16][2];
} DXGI_DISPLAY_COLOR_SPACE;
[
object,
uuid(29038f61-3839-4626-91fd-086879011a05),

View File

@ -1,4 +1,4 @@
/*** Autogenerated by WIDL 4.19 from direct-x/include/dxgi1_2.idl - Do not edit ***/
/*** Autogenerated by WIDL 5.16 from include/dxgi1_2.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__
@ -1043,7 +1043,8 @@ static FORCEINLINE HRESULT IDXGIDevice2_EnqueueSetEvent(IDXGIDevice2* This,HANDL
typedef enum DXGI_SCALING {
DXGI_SCALING_STRETCH = 0,
DXGI_SCALING_NONE = 1
DXGI_SCALING_NONE = 1,
DXGI_SCALING_ASPECT_RATIO_STRETCH = 2
} DXGI_SCALING;
typedef struct DXGI_SWAP_CHAIN_DESC1 {
UINT Width;
@ -1440,7 +1441,7 @@ IDXGIFactory2 : public IDXGIFactory1
HANDLE hResource,
LUID *pLuid) = 0;
virtual HRESULT STDMETHODCALLTYPE RegisterOcclusionStatusWindow(
virtual HRESULT STDMETHODCALLTYPE RegisterStereoStatusWindow(
HWND WindowHandle,
UINT wMsg,
DWORD *pdwCookie) = 0;
@ -1452,7 +1453,7 @@ IDXGIFactory2 : public IDXGIFactory1
virtual void STDMETHODCALLTYPE UnregisterStereoStatus(
DWORD dwCookie) = 0;
virtual HRESULT STDMETHODCALLTYPE RegisterStereoStatusWindow(
virtual HRESULT STDMETHODCALLTYPE RegisterOcclusionStatusWindow(
HWND WindowHandle,
UINT wMsg,
DWORD *pdwCookie) = 0;
@ -1574,7 +1575,7 @@ typedef struct IDXGIFactory2Vtbl {
HANDLE hResource,
LUID *pLuid);
HRESULT (STDMETHODCALLTYPE *RegisterOcclusionStatusWindow)(
HRESULT (STDMETHODCALLTYPE *RegisterStereoStatusWindow)(
IDXGIFactory2 *This,
HWND WindowHandle,
UINT wMsg,
@ -1589,7 +1590,7 @@ typedef struct IDXGIFactory2Vtbl {
IDXGIFactory2 *This,
DWORD dwCookie);
HRESULT (STDMETHODCALLTYPE *RegisterStereoStatusWindow)(
HRESULT (STDMETHODCALLTYPE *RegisterOcclusionStatusWindow)(
IDXGIFactory2 *This,
HWND WindowHandle,
UINT wMsg,
@ -1643,10 +1644,10 @@ interface IDXGIFactory2 {
#define IDXGIFactory2_CreateSwapChainForHwnd(This,pDevice,hWnd,pDesc,pFullscreenDesc,pRestrictToOutput,ppSwapChain) (This)->lpVtbl->CreateSwapChainForHwnd(This,pDevice,hWnd,pDesc,pFullscreenDesc,pRestrictToOutput,ppSwapChain)
#define IDXGIFactory2_CreateSwapChainForCoreWindow(This,pDevice,pWindow,pDesc,pRestrictToOutput,ppSwapChain) (This)->lpVtbl->CreateSwapChainForCoreWindow(This,pDevice,pWindow,pDesc,pRestrictToOutput,ppSwapChain)
#define IDXGIFactory2_GetSharedResourceAdapterLuid(This,hResource,pLuid) (This)->lpVtbl->GetSharedResourceAdapterLuid(This,hResource,pLuid)
#define IDXGIFactory2_RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie) (This)->lpVtbl->RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie)
#define IDXGIFactory2_RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie) (This)->lpVtbl->RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie)
#define IDXGIFactory2_RegisterStereoStatusEvent(This,hEvent,pdwCookie) (This)->lpVtbl->RegisterStereoStatusEvent(This,hEvent,pdwCookie)
#define IDXGIFactory2_UnregisterStereoStatus(This,dwCookie) (This)->lpVtbl->UnregisterStereoStatus(This,dwCookie)
#define IDXGIFactory2_RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie) (This)->lpVtbl->RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie)
#define IDXGIFactory2_RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie) (This)->lpVtbl->RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie)
#define IDXGIFactory2_RegisterOcclusionStatusEvent(This,hEvent,pdwCookie) (This)->lpVtbl->RegisterOcclusionStatusEvent(This,hEvent,pdwCookie)
#define IDXGIFactory2_UnregisterOcclusionStatus(This,dwCookie) (This)->lpVtbl->UnregisterOcclusionStatus(This,dwCookie)
#define IDXGIFactory2_CreateSwapChainForComposition(This,pDevice,pDesc,pRestrictToOutput,ppSwapChain) (This)->lpVtbl->CreateSwapChainForComposition(This,pDevice,pDesc,pRestrictToOutput,ppSwapChain)
@ -1710,8 +1711,8 @@ static FORCEINLINE HRESULT IDXGIFactory2_CreateSwapChainForCoreWindow(IDXGIFacto
static FORCEINLINE HRESULT IDXGIFactory2_GetSharedResourceAdapterLuid(IDXGIFactory2* This,HANDLE hResource,LUID *pLuid) {
return This->lpVtbl->GetSharedResourceAdapterLuid(This,hResource,pLuid);
}
static FORCEINLINE HRESULT IDXGIFactory2_RegisterOcclusionStatusWindow(IDXGIFactory2* This,HWND WindowHandle,UINT wMsg,DWORD *pdwCookie) {
return This->lpVtbl->RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie);
static FORCEINLINE HRESULT IDXGIFactory2_RegisterStereoStatusWindow(IDXGIFactory2* This,HWND WindowHandle,UINT wMsg,DWORD *pdwCookie) {
return This->lpVtbl->RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie);
}
static FORCEINLINE HRESULT IDXGIFactory2_RegisterStereoStatusEvent(IDXGIFactory2* This,HANDLE hEvent,DWORD *pdwCookie) {
return This->lpVtbl->RegisterStereoStatusEvent(This,hEvent,pdwCookie);
@ -1719,8 +1720,8 @@ static FORCEINLINE HRESULT IDXGIFactory2_RegisterStereoStatusEvent(IDXGIFactory2
static FORCEINLINE void IDXGIFactory2_UnregisterStereoStatus(IDXGIFactory2* This,DWORD dwCookie) {
This->lpVtbl->UnregisterStereoStatus(This,dwCookie);
}
static FORCEINLINE HRESULT IDXGIFactory2_RegisterStereoStatusWindow(IDXGIFactory2* This,HWND WindowHandle,UINT wMsg,DWORD *pdwCookie) {
return This->lpVtbl->RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie);
static FORCEINLINE HRESULT IDXGIFactory2_RegisterOcclusionStatusWindow(IDXGIFactory2* This,HWND WindowHandle,UINT wMsg,DWORD *pdwCookie) {
return This->lpVtbl->RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie);
}
static FORCEINLINE HRESULT IDXGIFactory2_RegisterOcclusionStatusEvent(IDXGIFactory2* This,HANDLE hEvent,DWORD *pdwCookie) {
return This->lpVtbl->RegisterOcclusionStatusEvent(This,hEvent,pdwCookie);

View File

@ -213,7 +213,8 @@ interface IDXGIDevice2 : IDXGIDevice1
typedef enum DXGI_SCALING {
DXGI_SCALING_STRETCH = 0,
DXGI_SCALING_NONE = 1
DXGI_SCALING_NONE = 1,
DXGI_SCALING_ASPECT_RATIO_STRETCH = 2,
} DXGI_SCALING;
typedef struct DXGI_SWAP_CHAIN_DESC1 {
@ -317,7 +318,7 @@ interface IDXGIFactory2 : IDXGIFactory1
[in] HANDLE hResource,
[out] LUID *pLuid);
HRESULT RegisterOcclusionStatusWindow(
HRESULT RegisterStereoStatusWindow(
[in] HWND WindowHandle,
[in] UINT wMsg,
[out] DWORD *pdwCookie);
@ -329,7 +330,7 @@ interface IDXGIFactory2 : IDXGIFactory1
void UnregisterStereoStatus(
[in] DWORD dwCookie);
HRESULT RegisterStereoStatusWindow(
HRESULT RegisterOcclusionStatusWindow(
[in] HWND WindowHandle,
[in] UINT wMsg,
[out] DWORD *pdwCookie);

View File

@ -1,4 +1,4 @@
/*** Autogenerated by WIDL 4.19 from direct-x/include/dxgi1_3.idl - Do not edit ***/
/*** Autogenerated by WIDL 5.16 from include/dxgi1_3.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__
@ -1104,7 +1104,7 @@ typedef struct IDXGIFactory3Vtbl {
HANDLE hResource,
LUID *pLuid);
HRESULT (STDMETHODCALLTYPE *RegisterOcclusionStatusWindow)(
HRESULT (STDMETHODCALLTYPE *RegisterStereoStatusWindow)(
IDXGIFactory3 *This,
HWND WindowHandle,
UINT wMsg,
@ -1119,7 +1119,7 @@ typedef struct IDXGIFactory3Vtbl {
IDXGIFactory3 *This,
DWORD dwCookie);
HRESULT (STDMETHODCALLTYPE *RegisterStereoStatusWindow)(
HRESULT (STDMETHODCALLTYPE *RegisterOcclusionStatusWindow)(
IDXGIFactory3 *This,
HWND WindowHandle,
UINT wMsg,
@ -1177,10 +1177,10 @@ interface IDXGIFactory3 {
#define IDXGIFactory3_CreateSwapChainForHwnd(This,pDevice,hWnd,pDesc,pFullscreenDesc,pRestrictToOutput,ppSwapChain) (This)->lpVtbl->CreateSwapChainForHwnd(This,pDevice,hWnd,pDesc,pFullscreenDesc,pRestrictToOutput,ppSwapChain)
#define IDXGIFactory3_CreateSwapChainForCoreWindow(This,pDevice,pWindow,pDesc,pRestrictToOutput,ppSwapChain) (This)->lpVtbl->CreateSwapChainForCoreWindow(This,pDevice,pWindow,pDesc,pRestrictToOutput,ppSwapChain)
#define IDXGIFactory3_GetSharedResourceAdapterLuid(This,hResource,pLuid) (This)->lpVtbl->GetSharedResourceAdapterLuid(This,hResource,pLuid)
#define IDXGIFactory3_RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie) (This)->lpVtbl->RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie)
#define IDXGIFactory3_RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie) (This)->lpVtbl->RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie)
#define IDXGIFactory3_RegisterStereoStatusEvent(This,hEvent,pdwCookie) (This)->lpVtbl->RegisterStereoStatusEvent(This,hEvent,pdwCookie)
#define IDXGIFactory3_UnregisterStereoStatus(This,dwCookie) (This)->lpVtbl->UnregisterStereoStatus(This,dwCookie)
#define IDXGIFactory3_RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie) (This)->lpVtbl->RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie)
#define IDXGIFactory3_RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie) (This)->lpVtbl->RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie)
#define IDXGIFactory3_RegisterOcclusionStatusEvent(This,hEvent,pdwCookie) (This)->lpVtbl->RegisterOcclusionStatusEvent(This,hEvent,pdwCookie)
#define IDXGIFactory3_UnregisterOcclusionStatus(This,dwCookie) (This)->lpVtbl->UnregisterOcclusionStatus(This,dwCookie)
#define IDXGIFactory3_CreateSwapChainForComposition(This,pDevice,pDesc,pRestrictToOutput,ppSwapChain) (This)->lpVtbl->CreateSwapChainForComposition(This,pDevice,pDesc,pRestrictToOutput,ppSwapChain)
@ -1246,8 +1246,8 @@ static FORCEINLINE HRESULT IDXGIFactory3_CreateSwapChainForCoreWindow(IDXGIFacto
static FORCEINLINE HRESULT IDXGIFactory3_GetSharedResourceAdapterLuid(IDXGIFactory3* This,HANDLE hResource,LUID *pLuid) {
return This->lpVtbl->GetSharedResourceAdapterLuid(This,hResource,pLuid);
}
static FORCEINLINE HRESULT IDXGIFactory3_RegisterOcclusionStatusWindow(IDXGIFactory3* This,HWND WindowHandle,UINT wMsg,DWORD *pdwCookie) {
return This->lpVtbl->RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie);
static FORCEINLINE HRESULT IDXGIFactory3_RegisterStereoStatusWindow(IDXGIFactory3* This,HWND WindowHandle,UINT wMsg,DWORD *pdwCookie) {
return This->lpVtbl->RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie);
}
static FORCEINLINE HRESULT IDXGIFactory3_RegisterStereoStatusEvent(IDXGIFactory3* This,HANDLE hEvent,DWORD *pdwCookie) {
return This->lpVtbl->RegisterStereoStatusEvent(This,hEvent,pdwCookie);
@ -1255,8 +1255,8 @@ static FORCEINLINE HRESULT IDXGIFactory3_RegisterStereoStatusEvent(IDXGIFactory3
static FORCEINLINE void IDXGIFactory3_UnregisterStereoStatus(IDXGIFactory3* This,DWORD dwCookie) {
This->lpVtbl->UnregisterStereoStatus(This,dwCookie);
}
static FORCEINLINE HRESULT IDXGIFactory3_RegisterStereoStatusWindow(IDXGIFactory3* This,HWND WindowHandle,UINT wMsg,DWORD *pdwCookie) {
return This->lpVtbl->RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie);
static FORCEINLINE HRESULT IDXGIFactory3_RegisterOcclusionStatusWindow(IDXGIFactory3* This,HWND WindowHandle,UINT wMsg,DWORD *pdwCookie) {
return This->lpVtbl->RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie);
}
static FORCEINLINE HRESULT IDXGIFactory3_RegisterOcclusionStatusEvent(IDXGIFactory3* This,HANDLE hEvent,DWORD *pdwCookie) {
return This->lpVtbl->RegisterOcclusionStatusEvent(This,hEvent,pdwCookie);

View File

@ -1,4 +1,4 @@
/*** Autogenerated by WIDL 4.19 from direct-x/include/dxgi1_4.idl - Do not edit ***/
/*** Autogenerated by WIDL 5.16 from include/dxgi1_4.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__
@ -911,7 +911,7 @@ typedef struct IDXGIFactory4Vtbl {
HANDLE hResource,
LUID *pLuid);
HRESULT (STDMETHODCALLTYPE *RegisterOcclusionStatusWindow)(
HRESULT (STDMETHODCALLTYPE *RegisterStereoStatusWindow)(
IDXGIFactory4 *This,
HWND WindowHandle,
UINT wMsg,
@ -926,7 +926,7 @@ typedef struct IDXGIFactory4Vtbl {
IDXGIFactory4 *This,
DWORD dwCookie);
HRESULT (STDMETHODCALLTYPE *RegisterStereoStatusWindow)(
HRESULT (STDMETHODCALLTYPE *RegisterOcclusionStatusWindow)(
IDXGIFactory4 *This,
HWND WindowHandle,
UINT wMsg,
@ -996,10 +996,10 @@ interface IDXGIFactory4 {
#define IDXGIFactory4_CreateSwapChainForHwnd(This,pDevice,hWnd,pDesc,pFullscreenDesc,pRestrictToOutput,ppSwapChain) (This)->lpVtbl->CreateSwapChainForHwnd(This,pDevice,hWnd,pDesc,pFullscreenDesc,pRestrictToOutput,ppSwapChain)
#define IDXGIFactory4_CreateSwapChainForCoreWindow(This,pDevice,pWindow,pDesc,pRestrictToOutput,ppSwapChain) (This)->lpVtbl->CreateSwapChainForCoreWindow(This,pDevice,pWindow,pDesc,pRestrictToOutput,ppSwapChain)
#define IDXGIFactory4_GetSharedResourceAdapterLuid(This,hResource,pLuid) (This)->lpVtbl->GetSharedResourceAdapterLuid(This,hResource,pLuid)
#define IDXGIFactory4_RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie) (This)->lpVtbl->RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie)
#define IDXGIFactory4_RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie) (This)->lpVtbl->RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie)
#define IDXGIFactory4_RegisterStereoStatusEvent(This,hEvent,pdwCookie) (This)->lpVtbl->RegisterStereoStatusEvent(This,hEvent,pdwCookie)
#define IDXGIFactory4_UnregisterStereoStatus(This,dwCookie) (This)->lpVtbl->UnregisterStereoStatus(This,dwCookie)
#define IDXGIFactory4_RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie) (This)->lpVtbl->RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie)
#define IDXGIFactory4_RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie) (This)->lpVtbl->RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie)
#define IDXGIFactory4_RegisterOcclusionStatusEvent(This,hEvent,pdwCookie) (This)->lpVtbl->RegisterOcclusionStatusEvent(This,hEvent,pdwCookie)
#define IDXGIFactory4_UnregisterOcclusionStatus(This,dwCookie) (This)->lpVtbl->UnregisterOcclusionStatus(This,dwCookie)
#define IDXGIFactory4_CreateSwapChainForComposition(This,pDevice,pDesc,pRestrictToOutput,ppSwapChain) (This)->lpVtbl->CreateSwapChainForComposition(This,pDevice,pDesc,pRestrictToOutput,ppSwapChain)
@ -1068,8 +1068,8 @@ static FORCEINLINE HRESULT IDXGIFactory4_CreateSwapChainForCoreWindow(IDXGIFacto
static FORCEINLINE HRESULT IDXGIFactory4_GetSharedResourceAdapterLuid(IDXGIFactory4* This,HANDLE hResource,LUID *pLuid) {
return This->lpVtbl->GetSharedResourceAdapterLuid(This,hResource,pLuid);
}
static FORCEINLINE HRESULT IDXGIFactory4_RegisterOcclusionStatusWindow(IDXGIFactory4* This,HWND WindowHandle,UINT wMsg,DWORD *pdwCookie) {
return This->lpVtbl->RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie);
static FORCEINLINE HRESULT IDXGIFactory4_RegisterStereoStatusWindow(IDXGIFactory4* This,HWND WindowHandle,UINT wMsg,DWORD *pdwCookie) {
return This->lpVtbl->RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie);
}
static FORCEINLINE HRESULT IDXGIFactory4_RegisterStereoStatusEvent(IDXGIFactory4* This,HANDLE hEvent,DWORD *pdwCookie) {
return This->lpVtbl->RegisterStereoStatusEvent(This,hEvent,pdwCookie);
@ -1077,8 +1077,8 @@ static FORCEINLINE HRESULT IDXGIFactory4_RegisterStereoStatusEvent(IDXGIFactory4
static FORCEINLINE void IDXGIFactory4_UnregisterStereoStatus(IDXGIFactory4* This,DWORD dwCookie) {
This->lpVtbl->UnregisterStereoStatus(This,dwCookie);
}
static FORCEINLINE HRESULT IDXGIFactory4_RegisterStereoStatusWindow(IDXGIFactory4* This,HWND WindowHandle,UINT wMsg,DWORD *pdwCookie) {
return This->lpVtbl->RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie);
static FORCEINLINE HRESULT IDXGIFactory4_RegisterOcclusionStatusWindow(IDXGIFactory4* This,HWND WindowHandle,UINT wMsg,DWORD *pdwCookie) {
return This->lpVtbl->RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie);
}
static FORCEINLINE HRESULT IDXGIFactory4_RegisterOcclusionStatusEvent(IDXGIFactory4* This,HANDLE hEvent,DWORD *pdwCookie) {
return This->lpVtbl->RegisterOcclusionStatusEvent(This,hEvent,pdwCookie);

View File

@ -1,4 +1,4 @@
/*** Autogenerated by WIDL 4.19 from direct-x/include/dxgi1_5.idl - Do not edit ***/
/*** Autogenerated by WIDL 5.16 from include/dxgi1_5.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__
@ -63,7 +63,8 @@ typedef enum DXGI_OUTDUPL_FLAG {
} DXGI_OUTDUPL_FLAG;
typedef enum DXGI_HDR_METADATA_TYPE {
DXGI_HDR_METADATA_TYPE_NONE = 0x0,
DXGI_HDR_METADATA_TYPE_HDR10 = 0x1
DXGI_HDR_METADATA_TYPE_HDR10 = 0x1,
DXGI_HDR_METADATA_TYPE_HDR10PLUS = 0x2
} DXGI_HDR_METADATA_TYPE;
typedef enum _DXGI_OFFER_RESOURCE_FLAGS {
DXGI_OFFER_RESOURCE_FLAG_ALLOW_DECOMMIT = 0x1
@ -86,6 +87,9 @@ typedef struct DXGI_HDR_METADATA_HDR10 {
UINT16 MaxContentLightLevel;
UINT16 MaxFrameAverageLightLevel;
} DXGI_HDR_METADATA_HDR10;
typedef struct DXGI_HDR_METADATA_HDR10PLUS {
BYTE Data[72];
} DXGI_HDR_METADATA_HDR10PLUS;
/*****************************************************************************
* IDXGIOutput5 interface
*/
@ -1181,7 +1185,7 @@ typedef struct IDXGIFactory5Vtbl {
HANDLE hResource,
LUID *pLuid);
HRESULT (STDMETHODCALLTYPE *RegisterOcclusionStatusWindow)(
HRESULT (STDMETHODCALLTYPE *RegisterStereoStatusWindow)(
IDXGIFactory5 *This,
HWND WindowHandle,
UINT wMsg,
@ -1196,7 +1200,7 @@ typedef struct IDXGIFactory5Vtbl {
IDXGIFactory5 *This,
DWORD dwCookie);
HRESULT (STDMETHODCALLTYPE *RegisterStereoStatusWindow)(
HRESULT (STDMETHODCALLTYPE *RegisterOcclusionStatusWindow)(
IDXGIFactory5 *This,
HWND WindowHandle,
UINT wMsg,
@ -1273,10 +1277,10 @@ interface IDXGIFactory5 {
#define IDXGIFactory5_CreateSwapChainForHwnd(This,pDevice,hWnd,pDesc,pFullscreenDesc,pRestrictToOutput,ppSwapChain) (This)->lpVtbl->CreateSwapChainForHwnd(This,pDevice,hWnd,pDesc,pFullscreenDesc,pRestrictToOutput,ppSwapChain)
#define IDXGIFactory5_CreateSwapChainForCoreWindow(This,pDevice,pWindow,pDesc,pRestrictToOutput,ppSwapChain) (This)->lpVtbl->CreateSwapChainForCoreWindow(This,pDevice,pWindow,pDesc,pRestrictToOutput,ppSwapChain)
#define IDXGIFactory5_GetSharedResourceAdapterLuid(This,hResource,pLuid) (This)->lpVtbl->GetSharedResourceAdapterLuid(This,hResource,pLuid)
#define IDXGIFactory5_RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie) (This)->lpVtbl->RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie)
#define IDXGIFactory5_RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie) (This)->lpVtbl->RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie)
#define IDXGIFactory5_RegisterStereoStatusEvent(This,hEvent,pdwCookie) (This)->lpVtbl->RegisterStereoStatusEvent(This,hEvent,pdwCookie)
#define IDXGIFactory5_UnregisterStereoStatus(This,dwCookie) (This)->lpVtbl->UnregisterStereoStatus(This,dwCookie)
#define IDXGIFactory5_RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie) (This)->lpVtbl->RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie)
#define IDXGIFactory5_RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie) (This)->lpVtbl->RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie)
#define IDXGIFactory5_RegisterOcclusionStatusEvent(This,hEvent,pdwCookie) (This)->lpVtbl->RegisterOcclusionStatusEvent(This,hEvent,pdwCookie)
#define IDXGIFactory5_UnregisterOcclusionStatus(This,dwCookie) (This)->lpVtbl->UnregisterOcclusionStatus(This,dwCookie)
#define IDXGIFactory5_CreateSwapChainForComposition(This,pDevice,pDesc,pRestrictToOutput,ppSwapChain) (This)->lpVtbl->CreateSwapChainForComposition(This,pDevice,pDesc,pRestrictToOutput,ppSwapChain)
@ -1347,8 +1351,8 @@ static FORCEINLINE HRESULT IDXGIFactory5_CreateSwapChainForCoreWindow(IDXGIFacto
static FORCEINLINE HRESULT IDXGIFactory5_GetSharedResourceAdapterLuid(IDXGIFactory5* This,HANDLE hResource,LUID *pLuid) {
return This->lpVtbl->GetSharedResourceAdapterLuid(This,hResource,pLuid);
}
static FORCEINLINE HRESULT IDXGIFactory5_RegisterOcclusionStatusWindow(IDXGIFactory5* This,HWND WindowHandle,UINT wMsg,DWORD *pdwCookie) {
return This->lpVtbl->RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie);
static FORCEINLINE HRESULT IDXGIFactory5_RegisterStereoStatusWindow(IDXGIFactory5* This,HWND WindowHandle,UINT wMsg,DWORD *pdwCookie) {
return This->lpVtbl->RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie);
}
static FORCEINLINE HRESULT IDXGIFactory5_RegisterStereoStatusEvent(IDXGIFactory5* This,HANDLE hEvent,DWORD *pdwCookie) {
return This->lpVtbl->RegisterStereoStatusEvent(This,hEvent,pdwCookie);
@ -1356,8 +1360,8 @@ static FORCEINLINE HRESULT IDXGIFactory5_RegisterStereoStatusEvent(IDXGIFactory5
static FORCEINLINE void IDXGIFactory5_UnregisterStereoStatus(IDXGIFactory5* This,DWORD dwCookie) {
This->lpVtbl->UnregisterStereoStatus(This,dwCookie);
}
static FORCEINLINE HRESULT IDXGIFactory5_RegisterStereoStatusWindow(IDXGIFactory5* This,HWND WindowHandle,UINT wMsg,DWORD *pdwCookie) {
return This->lpVtbl->RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie);
static FORCEINLINE HRESULT IDXGIFactory5_RegisterOcclusionStatusWindow(IDXGIFactory5* This,HWND WindowHandle,UINT wMsg,DWORD *pdwCookie) {
return This->lpVtbl->RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie);
}
static FORCEINLINE HRESULT IDXGIFactory5_RegisterOcclusionStatusEvent(IDXGIFactory5* This,HANDLE hEvent,DWORD *pdwCookie) {
return This->lpVtbl->RegisterOcclusionStatusEvent(This,hEvent,pdwCookie);

View File

@ -27,6 +27,7 @@ typedef enum DXGI_HDR_METADATA_TYPE
{
DXGI_HDR_METADATA_TYPE_NONE = 0x0,
DXGI_HDR_METADATA_TYPE_HDR10 = 0x1,
DXGI_HDR_METADATA_TYPE_HDR10PLUS = 0x2,
} DXGI_HDR_METADATA_TYPE;
typedef enum _DXGI_OFFER_RESOURCE_FLAGS
@ -58,6 +59,11 @@ typedef struct DXGI_HDR_METADATA_HDR10
UINT16 MaxFrameAverageLightLevel;
} DXGI_HDR_METADATA_HDR10;
typedef struct DXGI_HDR_METADATA_HDR10PLUS
{
BYTE Data[72];
} DXGI_HDR_METADATA_HDR10PLUS;
[
object,
uuid(80a07424-ab52-42eb-833c-0c42fd282d98),

View File

@ -1,4 +1,4 @@
/*** Autogenerated by WIDL 4.19 from direct-x/include/dxgi1_6.idl - Do not edit ***/
/*** Autogenerated by WIDL 5.16 from include/dxgi1_6.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__
@ -34,6 +34,22 @@ interface IDXGIOutput6;
#endif /* __cplusplus */
#endif
#ifndef __IDXGIFactory6_FWD_DEFINED__
#define __IDXGIFactory6_FWD_DEFINED__
typedef interface IDXGIFactory6 IDXGIFactory6;
#ifdef __cplusplus
interface IDXGIFactory6;
#endif /* __cplusplus */
#endif
#ifndef __IDXGIFactory7_FWD_DEFINED__
#define __IDXGIFactory7_FWD_DEFINED__
typedef interface IDXGIFactory7 IDXGIFactory7;
#ifdef __cplusplus
interface IDXGIFactory7;
#endif /* __cplusplus */
#endif
/* Headers for imported files */
#include <dxgi1_5.h>
@ -47,6 +63,9 @@ typedef enum DXGI_ADAPTER_FLAG3 {
DXGI_ADAPTER_FLAG3_REMOTE = 0x1,
DXGI_ADAPTER_FLAG3_SOFTWARE = 0x2,
DXGI_ADAPTER_FLAG3_ACG_COMPATIBLE = 0x4,
DXGI_ADAPTER_FLAG3_SUPPORT_MONITORED_FENCES = 0x8,
DXGI_ADAPTER_FLAG3_SUPPORT_NON_MONITORED_FENCES = 0x10,
DXGI_ADAPTER_FLAG3_KEYED_MUTEX_CONFORMANCE = 0x20,
DXGI_ADAPTER_FLAG3_FORCE_DWORD = 0xffffffff
} DXGI_ADAPTER_FLAG3;
typedef enum DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAGS {
@ -54,6 +73,11 @@ typedef enum DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAGS {
DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAG_WINDOWED = 0x2,
DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAG_CURSOR_STRETCHED = 0x4
} DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAGS;
typedef enum DXGI_GPU_PREFERENCE {
DXGI_GPU_PREFERENCE_UNSPECIFIED = 0x0,
DXGI_GPU_PREFERENCE_MINIMUM_POWER = 0x1,
DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE = 0x2
} DXGI_GPU_PREFERENCE;
typedef struct DXGI_ADAPTER_DESC3 {
WCHAR Description[128];
UINT VendorId;
@ -635,6 +659,717 @@ static FORCEINLINE HRESULT IDXGIOutput6_CheckHardwareCompositionSupport(IDXGIOut
#endif /* __IDXGIOutput6_INTERFACE_DEFINED__ */
/*****************************************************************************
* IDXGIFactory6 interface
*/
#ifndef __IDXGIFactory6_INTERFACE_DEFINED__
#define __IDXGIFactory6_INTERFACE_DEFINED__
DEFINE_GUID(IID_IDXGIFactory6, 0xc1b6694f, 0xff09, 0x44a9, 0xb0,0x3c, 0x77,0x90,0x0a,0x0a,0x1d,0x17);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("c1b6694f-ff09-44a9-b03c-77900a0a1d17")
IDXGIFactory6 : public IDXGIFactory5
{
virtual HRESULT STDMETHODCALLTYPE EnumAdapterByGpuPreference(
UINT adapter_idx,
DXGI_GPU_PREFERENCE gpu_preference,
REFIID iid,
void **adapter) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IDXGIFactory6, 0xc1b6694f, 0xff09, 0x44a9, 0xb0,0x3c, 0x77,0x90,0x0a,0x0a,0x1d,0x17)
#endif
#else
typedef struct IDXGIFactory6Vtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
IDXGIFactory6 *This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
IDXGIFactory6 *This);
ULONG (STDMETHODCALLTYPE *Release)(
IDXGIFactory6 *This);
/*** IDXGIObject methods ***/
HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
IDXGIFactory6 *This,
REFGUID guid,
UINT data_size,
const void *data);
HRESULT (STDMETHODCALLTYPE *SetPrivateDataInterface)(
IDXGIFactory6 *This,
REFGUID guid,
const IUnknown *object);
HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
IDXGIFactory6 *This,
REFGUID guid,
UINT *data_size,
void *data);
HRESULT (STDMETHODCALLTYPE *GetParent)(
IDXGIFactory6 *This,
REFIID riid,
void **parent);
/*** IDXGIFactory methods ***/
HRESULT (STDMETHODCALLTYPE *EnumAdapters)(
IDXGIFactory6 *This,
UINT adapter_idx,
IDXGIAdapter **adapter);
HRESULT (STDMETHODCALLTYPE *MakeWindowAssociation)(
IDXGIFactory6 *This,
HWND window,
UINT flags);
HRESULT (STDMETHODCALLTYPE *GetWindowAssociation)(
IDXGIFactory6 *This,
HWND *window);
HRESULT (STDMETHODCALLTYPE *CreateSwapChain)(
IDXGIFactory6 *This,
IUnknown *device,
DXGI_SWAP_CHAIN_DESC *desc,
IDXGISwapChain **swapchain);
HRESULT (STDMETHODCALLTYPE *CreateSoftwareAdapter)(
IDXGIFactory6 *This,
HMODULE swrast,
IDXGIAdapter **adapter);
/*** IDXGIFactory1 methods ***/
HRESULT (STDMETHODCALLTYPE *EnumAdapters1)(
IDXGIFactory6 *This,
UINT Adapter,
IDXGIAdapter1 **ppAdapter);
WINBOOL (STDMETHODCALLTYPE *IsCurrent)(
IDXGIFactory6 *This);
/*** IDXGIFactory2 methods ***/
WINBOOL (STDMETHODCALLTYPE *IsWindowedStereoEnabled)(
IDXGIFactory6 *This);
HRESULT (STDMETHODCALLTYPE *CreateSwapChainForHwnd)(
IDXGIFactory6 *This,
IUnknown *pDevice,
HWND hWnd,
const DXGI_SWAP_CHAIN_DESC1 *pDesc,
const DXGI_SWAP_CHAIN_FULLSCREEN_DESC *pFullscreenDesc,
IDXGIOutput *pRestrictToOutput,
IDXGISwapChain1 **ppSwapChain);
HRESULT (STDMETHODCALLTYPE *CreateSwapChainForCoreWindow)(
IDXGIFactory6 *This,
IUnknown *pDevice,
IUnknown *pWindow,
const DXGI_SWAP_CHAIN_DESC1 *pDesc,
IDXGIOutput *pRestrictToOutput,
IDXGISwapChain1 **ppSwapChain);
HRESULT (STDMETHODCALLTYPE *GetSharedResourceAdapterLuid)(
IDXGIFactory6 *This,
HANDLE hResource,
LUID *pLuid);
HRESULT (STDMETHODCALLTYPE *RegisterStereoStatusWindow)(
IDXGIFactory6 *This,
HWND WindowHandle,
UINT wMsg,
DWORD *pdwCookie);
HRESULT (STDMETHODCALLTYPE *RegisterStereoStatusEvent)(
IDXGIFactory6 *This,
HANDLE hEvent,
DWORD *pdwCookie);
void (STDMETHODCALLTYPE *UnregisterStereoStatus)(
IDXGIFactory6 *This,
DWORD dwCookie);
HRESULT (STDMETHODCALLTYPE *RegisterOcclusionStatusWindow)(
IDXGIFactory6 *This,
HWND WindowHandle,
UINT wMsg,
DWORD *pdwCookie);
HRESULT (STDMETHODCALLTYPE *RegisterOcclusionStatusEvent)(
IDXGIFactory6 *This,
HANDLE hEvent,
DWORD *pdwCookie);
void (STDMETHODCALLTYPE *UnregisterOcclusionStatus)(
IDXGIFactory6 *This,
DWORD dwCookie);
HRESULT (STDMETHODCALLTYPE *CreateSwapChainForComposition)(
IDXGIFactory6 *This,
IUnknown *pDevice,
const DXGI_SWAP_CHAIN_DESC1 *pDesc,
IDXGIOutput *pRestrictToOutput,
IDXGISwapChain1 **ppSwapChain);
/*** IDXGIFactory3 methods ***/
UINT (STDMETHODCALLTYPE *GetCreationFlags)(
IDXGIFactory6 *This);
/*** IDXGIFactory4 methods ***/
HRESULT (STDMETHODCALLTYPE *EnumAdapterByLuid)(
IDXGIFactory6 *This,
LUID luid,
REFIID iid,
void **adapter);
HRESULT (STDMETHODCALLTYPE *EnumWarpAdapter)(
IDXGIFactory6 *This,
REFIID iid,
void **adapter);
/*** IDXGIFactory5 methods ***/
HRESULT (STDMETHODCALLTYPE *CheckFeatureSupport)(
IDXGIFactory6 *This,
DXGI_FEATURE feature,
void *support_data,
UINT support_data_size);
/*** IDXGIFactory6 methods ***/
HRESULT (STDMETHODCALLTYPE *EnumAdapterByGpuPreference)(
IDXGIFactory6 *This,
UINT adapter_idx,
DXGI_GPU_PREFERENCE gpu_preference,
REFIID iid,
void **adapter);
END_INTERFACE
} IDXGIFactory6Vtbl;
interface IDXGIFactory6 {
CONST_VTBL IDXGIFactory6Vtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define IDXGIFactory6_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IDXGIFactory6_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IDXGIFactory6_Release(This) (This)->lpVtbl->Release(This)
/*** IDXGIObject methods ***/
#define IDXGIFactory6_SetPrivateData(This,guid,data_size,data) (This)->lpVtbl->SetPrivateData(This,guid,data_size,data)
#define IDXGIFactory6_SetPrivateDataInterface(This,guid,object) (This)->lpVtbl->SetPrivateDataInterface(This,guid,object)
#define IDXGIFactory6_GetPrivateData(This,guid,data_size,data) (This)->lpVtbl->GetPrivateData(This,guid,data_size,data)
#define IDXGIFactory6_GetParent(This,riid,parent) (This)->lpVtbl->GetParent(This,riid,parent)
/*** IDXGIFactory methods ***/
#define IDXGIFactory6_EnumAdapters(This,adapter_idx,adapter) (This)->lpVtbl->EnumAdapters(This,adapter_idx,adapter)
#define IDXGIFactory6_MakeWindowAssociation(This,window,flags) (This)->lpVtbl->MakeWindowAssociation(This,window,flags)
#define IDXGIFactory6_GetWindowAssociation(This,window) (This)->lpVtbl->GetWindowAssociation(This,window)
#define IDXGIFactory6_CreateSwapChain(This,device,desc,swapchain) (This)->lpVtbl->CreateSwapChain(This,device,desc,swapchain)
#define IDXGIFactory6_CreateSoftwareAdapter(This,swrast,adapter) (This)->lpVtbl->CreateSoftwareAdapter(This,swrast,adapter)
/*** IDXGIFactory1 methods ***/
#define IDXGIFactory6_EnumAdapters1(This,Adapter,ppAdapter) (This)->lpVtbl->EnumAdapters1(This,Adapter,ppAdapter)
#define IDXGIFactory6_IsCurrent(This) (This)->lpVtbl->IsCurrent(This)
/*** IDXGIFactory2 methods ***/
#define IDXGIFactory6_IsWindowedStereoEnabled(This) (This)->lpVtbl->IsWindowedStereoEnabled(This)
#define IDXGIFactory6_CreateSwapChainForHwnd(This,pDevice,hWnd,pDesc,pFullscreenDesc,pRestrictToOutput,ppSwapChain) (This)->lpVtbl->CreateSwapChainForHwnd(This,pDevice,hWnd,pDesc,pFullscreenDesc,pRestrictToOutput,ppSwapChain)
#define IDXGIFactory6_CreateSwapChainForCoreWindow(This,pDevice,pWindow,pDesc,pRestrictToOutput,ppSwapChain) (This)->lpVtbl->CreateSwapChainForCoreWindow(This,pDevice,pWindow,pDesc,pRestrictToOutput,ppSwapChain)
#define IDXGIFactory6_GetSharedResourceAdapterLuid(This,hResource,pLuid) (This)->lpVtbl->GetSharedResourceAdapterLuid(This,hResource,pLuid)
#define IDXGIFactory6_RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie) (This)->lpVtbl->RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie)
#define IDXGIFactory6_RegisterStereoStatusEvent(This,hEvent,pdwCookie) (This)->lpVtbl->RegisterStereoStatusEvent(This,hEvent,pdwCookie)
#define IDXGIFactory6_UnregisterStereoStatus(This,dwCookie) (This)->lpVtbl->UnregisterStereoStatus(This,dwCookie)
#define IDXGIFactory6_RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie) (This)->lpVtbl->RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie)
#define IDXGIFactory6_RegisterOcclusionStatusEvent(This,hEvent,pdwCookie) (This)->lpVtbl->RegisterOcclusionStatusEvent(This,hEvent,pdwCookie)
#define IDXGIFactory6_UnregisterOcclusionStatus(This,dwCookie) (This)->lpVtbl->UnregisterOcclusionStatus(This,dwCookie)
#define IDXGIFactory6_CreateSwapChainForComposition(This,pDevice,pDesc,pRestrictToOutput,ppSwapChain) (This)->lpVtbl->CreateSwapChainForComposition(This,pDevice,pDesc,pRestrictToOutput,ppSwapChain)
/*** IDXGIFactory3 methods ***/
#define IDXGIFactory6_GetCreationFlags(This) (This)->lpVtbl->GetCreationFlags(This)
/*** IDXGIFactory4 methods ***/
#define IDXGIFactory6_EnumAdapterByLuid(This,luid,iid,adapter) (This)->lpVtbl->EnumAdapterByLuid(This,luid,iid,adapter)
#define IDXGIFactory6_EnumWarpAdapter(This,iid,adapter) (This)->lpVtbl->EnumWarpAdapter(This,iid,adapter)
/*** IDXGIFactory5 methods ***/
#define IDXGIFactory6_CheckFeatureSupport(This,feature,support_data,support_data_size) (This)->lpVtbl->CheckFeatureSupport(This,feature,support_data,support_data_size)
/*** IDXGIFactory6 methods ***/
#define IDXGIFactory6_EnumAdapterByGpuPreference(This,adapter_idx,gpu_preference,iid,adapter) (This)->lpVtbl->EnumAdapterByGpuPreference(This,adapter_idx,gpu_preference,iid,adapter)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT IDXGIFactory6_QueryInterface(IDXGIFactory6* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG IDXGIFactory6_AddRef(IDXGIFactory6* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG IDXGIFactory6_Release(IDXGIFactory6* This) {
return This->lpVtbl->Release(This);
}
/*** IDXGIObject methods ***/
static FORCEINLINE HRESULT IDXGIFactory6_SetPrivateData(IDXGIFactory6* This,REFGUID guid,UINT data_size,const void *data) {
return This->lpVtbl->SetPrivateData(This,guid,data_size,data);
}
static FORCEINLINE HRESULT IDXGIFactory6_SetPrivateDataInterface(IDXGIFactory6* This,REFGUID guid,const IUnknown *object) {
return This->lpVtbl->SetPrivateDataInterface(This,guid,object);
}
static FORCEINLINE HRESULT IDXGIFactory6_GetPrivateData(IDXGIFactory6* This,REFGUID guid,UINT *data_size,void *data) {
return This->lpVtbl->GetPrivateData(This,guid,data_size,data);
}
static FORCEINLINE HRESULT IDXGIFactory6_GetParent(IDXGIFactory6* This,REFIID riid,void **parent) {
return This->lpVtbl->GetParent(This,riid,parent);
}
/*** IDXGIFactory methods ***/
static FORCEINLINE HRESULT IDXGIFactory6_EnumAdapters(IDXGIFactory6* This,UINT adapter_idx,IDXGIAdapter **adapter) {
return This->lpVtbl->EnumAdapters(This,adapter_idx,adapter);
}
static FORCEINLINE HRESULT IDXGIFactory6_MakeWindowAssociation(IDXGIFactory6* This,HWND window,UINT flags) {
return This->lpVtbl->MakeWindowAssociation(This,window,flags);
}
static FORCEINLINE HRESULT IDXGIFactory6_GetWindowAssociation(IDXGIFactory6* This,HWND *window) {
return This->lpVtbl->GetWindowAssociation(This,window);
}
static FORCEINLINE HRESULT IDXGIFactory6_CreateSwapChain(IDXGIFactory6* This,IUnknown *device,DXGI_SWAP_CHAIN_DESC *desc,IDXGISwapChain **swapchain) {
return This->lpVtbl->CreateSwapChain(This,device,desc,swapchain);
}
static FORCEINLINE HRESULT IDXGIFactory6_CreateSoftwareAdapter(IDXGIFactory6* This,HMODULE swrast,IDXGIAdapter **adapter) {
return This->lpVtbl->CreateSoftwareAdapter(This,swrast,adapter);
}
/*** IDXGIFactory1 methods ***/
static FORCEINLINE HRESULT IDXGIFactory6_EnumAdapters1(IDXGIFactory6* This,UINT Adapter,IDXGIAdapter1 **ppAdapter) {
return This->lpVtbl->EnumAdapters1(This,Adapter,ppAdapter);
}
static FORCEINLINE WINBOOL IDXGIFactory6_IsCurrent(IDXGIFactory6* This) {
return This->lpVtbl->IsCurrent(This);
}
/*** IDXGIFactory2 methods ***/
static FORCEINLINE WINBOOL IDXGIFactory6_IsWindowedStereoEnabled(IDXGIFactory6* This) {
return This->lpVtbl->IsWindowedStereoEnabled(This);
}
static FORCEINLINE HRESULT IDXGIFactory6_CreateSwapChainForHwnd(IDXGIFactory6* This,IUnknown *pDevice,HWND hWnd,const DXGI_SWAP_CHAIN_DESC1 *pDesc,const DXGI_SWAP_CHAIN_FULLSCREEN_DESC *pFullscreenDesc,IDXGIOutput *pRestrictToOutput,IDXGISwapChain1 **ppSwapChain) {
return This->lpVtbl->CreateSwapChainForHwnd(This,pDevice,hWnd,pDesc,pFullscreenDesc,pRestrictToOutput,ppSwapChain);
}
static FORCEINLINE HRESULT IDXGIFactory6_CreateSwapChainForCoreWindow(IDXGIFactory6* This,IUnknown *pDevice,IUnknown *pWindow,const DXGI_SWAP_CHAIN_DESC1 *pDesc,IDXGIOutput *pRestrictToOutput,IDXGISwapChain1 **ppSwapChain) {
return This->lpVtbl->CreateSwapChainForCoreWindow(This,pDevice,pWindow,pDesc,pRestrictToOutput,ppSwapChain);
}
static FORCEINLINE HRESULT IDXGIFactory6_GetSharedResourceAdapterLuid(IDXGIFactory6* This,HANDLE hResource,LUID *pLuid) {
return This->lpVtbl->GetSharedResourceAdapterLuid(This,hResource,pLuid);
}
static FORCEINLINE HRESULT IDXGIFactory6_RegisterStereoStatusWindow(IDXGIFactory6* This,HWND WindowHandle,UINT wMsg,DWORD *pdwCookie) {
return This->lpVtbl->RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie);
}
static FORCEINLINE HRESULT IDXGIFactory6_RegisterStereoStatusEvent(IDXGIFactory6* This,HANDLE hEvent,DWORD *pdwCookie) {
return This->lpVtbl->RegisterStereoStatusEvent(This,hEvent,pdwCookie);
}
static FORCEINLINE void IDXGIFactory6_UnregisterStereoStatus(IDXGIFactory6* This,DWORD dwCookie) {
This->lpVtbl->UnregisterStereoStatus(This,dwCookie);
}
static FORCEINLINE HRESULT IDXGIFactory6_RegisterOcclusionStatusWindow(IDXGIFactory6* This,HWND WindowHandle,UINT wMsg,DWORD *pdwCookie) {
return This->lpVtbl->RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie);
}
static FORCEINLINE HRESULT IDXGIFactory6_RegisterOcclusionStatusEvent(IDXGIFactory6* This,HANDLE hEvent,DWORD *pdwCookie) {
return This->lpVtbl->RegisterOcclusionStatusEvent(This,hEvent,pdwCookie);
}
static FORCEINLINE void IDXGIFactory6_UnregisterOcclusionStatus(IDXGIFactory6* This,DWORD dwCookie) {
This->lpVtbl->UnregisterOcclusionStatus(This,dwCookie);
}
static FORCEINLINE HRESULT IDXGIFactory6_CreateSwapChainForComposition(IDXGIFactory6* This,IUnknown *pDevice,const DXGI_SWAP_CHAIN_DESC1 *pDesc,IDXGIOutput *pRestrictToOutput,IDXGISwapChain1 **ppSwapChain) {
return This->lpVtbl->CreateSwapChainForComposition(This,pDevice,pDesc,pRestrictToOutput,ppSwapChain);
}
/*** IDXGIFactory3 methods ***/
static FORCEINLINE UINT IDXGIFactory6_GetCreationFlags(IDXGIFactory6* This) {
return This->lpVtbl->GetCreationFlags(This);
}
/*** IDXGIFactory4 methods ***/
static FORCEINLINE HRESULT IDXGIFactory6_EnumAdapterByLuid(IDXGIFactory6* This,LUID luid,REFIID iid,void **adapter) {
return This->lpVtbl->EnumAdapterByLuid(This,luid,iid,adapter);
}
static FORCEINLINE HRESULT IDXGIFactory6_EnumWarpAdapter(IDXGIFactory6* This,REFIID iid,void **adapter) {
return This->lpVtbl->EnumWarpAdapter(This,iid,adapter);
}
/*** IDXGIFactory5 methods ***/
static FORCEINLINE HRESULT IDXGIFactory6_CheckFeatureSupport(IDXGIFactory6* This,DXGI_FEATURE feature,void *support_data,UINT support_data_size) {
return This->lpVtbl->CheckFeatureSupport(This,feature,support_data,support_data_size);
}
/*** IDXGIFactory6 methods ***/
static FORCEINLINE HRESULT IDXGIFactory6_EnumAdapterByGpuPreference(IDXGIFactory6* This,UINT adapter_idx,DXGI_GPU_PREFERENCE gpu_preference,REFIID iid,void **adapter) {
return This->lpVtbl->EnumAdapterByGpuPreference(This,adapter_idx,gpu_preference,iid,adapter);
}
#endif
#endif
#endif
#endif /* __IDXGIFactory6_INTERFACE_DEFINED__ */
/*****************************************************************************
* IDXGIFactory7 interface
*/
#ifndef __IDXGIFactory7_INTERFACE_DEFINED__
#define __IDXGIFactory7_INTERFACE_DEFINED__
DEFINE_GUID(IID_IDXGIFactory7, 0xa4966eed, 0x76db, 0x44da, 0x84,0xc1, 0xee,0x9a,0x7a,0xfb,0x20,0xa8);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("a4966eed-76db-44da-84c1-ee9a7afb20a8")
IDXGIFactory7 : public IDXGIFactory6
{
virtual HRESULT STDMETHODCALLTYPE RegisterAdaptersChangedEvent(
HANDLE event,
DWORD *cookie) = 0;
virtual HRESULT STDMETHODCALLTYPE UnregisterAdaptersChangedEvent(
DWORD cookie) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IDXGIFactory7, 0xa4966eed, 0x76db, 0x44da, 0x84,0xc1, 0xee,0x9a,0x7a,0xfb,0x20,0xa8)
#endif
#else
typedef struct IDXGIFactory7Vtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
IDXGIFactory7 *This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
IDXGIFactory7 *This);
ULONG (STDMETHODCALLTYPE *Release)(
IDXGIFactory7 *This);
/*** IDXGIObject methods ***/
HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
IDXGIFactory7 *This,
REFGUID guid,
UINT data_size,
const void *data);
HRESULT (STDMETHODCALLTYPE *SetPrivateDataInterface)(
IDXGIFactory7 *This,
REFGUID guid,
const IUnknown *object);
HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
IDXGIFactory7 *This,
REFGUID guid,
UINT *data_size,
void *data);
HRESULT (STDMETHODCALLTYPE *GetParent)(
IDXGIFactory7 *This,
REFIID riid,
void **parent);
/*** IDXGIFactory methods ***/
HRESULT (STDMETHODCALLTYPE *EnumAdapters)(
IDXGIFactory7 *This,
UINT adapter_idx,
IDXGIAdapter **adapter);
HRESULT (STDMETHODCALLTYPE *MakeWindowAssociation)(
IDXGIFactory7 *This,
HWND window,
UINT flags);
HRESULT (STDMETHODCALLTYPE *GetWindowAssociation)(
IDXGIFactory7 *This,
HWND *window);
HRESULT (STDMETHODCALLTYPE *CreateSwapChain)(
IDXGIFactory7 *This,
IUnknown *device,
DXGI_SWAP_CHAIN_DESC *desc,
IDXGISwapChain **swapchain);
HRESULT (STDMETHODCALLTYPE *CreateSoftwareAdapter)(
IDXGIFactory7 *This,
HMODULE swrast,
IDXGIAdapter **adapter);
/*** IDXGIFactory1 methods ***/
HRESULT (STDMETHODCALLTYPE *EnumAdapters1)(
IDXGIFactory7 *This,
UINT Adapter,
IDXGIAdapter1 **ppAdapter);
WINBOOL (STDMETHODCALLTYPE *IsCurrent)(
IDXGIFactory7 *This);
/*** IDXGIFactory2 methods ***/
WINBOOL (STDMETHODCALLTYPE *IsWindowedStereoEnabled)(
IDXGIFactory7 *This);
HRESULT (STDMETHODCALLTYPE *CreateSwapChainForHwnd)(
IDXGIFactory7 *This,
IUnknown *pDevice,
HWND hWnd,
const DXGI_SWAP_CHAIN_DESC1 *pDesc,
const DXGI_SWAP_CHAIN_FULLSCREEN_DESC *pFullscreenDesc,
IDXGIOutput *pRestrictToOutput,
IDXGISwapChain1 **ppSwapChain);
HRESULT (STDMETHODCALLTYPE *CreateSwapChainForCoreWindow)(
IDXGIFactory7 *This,
IUnknown *pDevice,
IUnknown *pWindow,
const DXGI_SWAP_CHAIN_DESC1 *pDesc,
IDXGIOutput *pRestrictToOutput,
IDXGISwapChain1 **ppSwapChain);
HRESULT (STDMETHODCALLTYPE *GetSharedResourceAdapterLuid)(
IDXGIFactory7 *This,
HANDLE hResource,
LUID *pLuid);
HRESULT (STDMETHODCALLTYPE *RegisterStereoStatusWindow)(
IDXGIFactory7 *This,
HWND WindowHandle,
UINT wMsg,
DWORD *pdwCookie);
HRESULT (STDMETHODCALLTYPE *RegisterStereoStatusEvent)(
IDXGIFactory7 *This,
HANDLE hEvent,
DWORD *pdwCookie);
void (STDMETHODCALLTYPE *UnregisterStereoStatus)(
IDXGIFactory7 *This,
DWORD dwCookie);
HRESULT (STDMETHODCALLTYPE *RegisterOcclusionStatusWindow)(
IDXGIFactory7 *This,
HWND WindowHandle,
UINT wMsg,
DWORD *pdwCookie);
HRESULT (STDMETHODCALLTYPE *RegisterOcclusionStatusEvent)(
IDXGIFactory7 *This,
HANDLE hEvent,
DWORD *pdwCookie);
void (STDMETHODCALLTYPE *UnregisterOcclusionStatus)(
IDXGIFactory7 *This,
DWORD dwCookie);
HRESULT (STDMETHODCALLTYPE *CreateSwapChainForComposition)(
IDXGIFactory7 *This,
IUnknown *pDevice,
const DXGI_SWAP_CHAIN_DESC1 *pDesc,
IDXGIOutput *pRestrictToOutput,
IDXGISwapChain1 **ppSwapChain);
/*** IDXGIFactory3 methods ***/
UINT (STDMETHODCALLTYPE *GetCreationFlags)(
IDXGIFactory7 *This);
/*** IDXGIFactory4 methods ***/
HRESULT (STDMETHODCALLTYPE *EnumAdapterByLuid)(
IDXGIFactory7 *This,
LUID luid,
REFIID iid,
void **adapter);
HRESULT (STDMETHODCALLTYPE *EnumWarpAdapter)(
IDXGIFactory7 *This,
REFIID iid,
void **adapter);
/*** IDXGIFactory5 methods ***/
HRESULT (STDMETHODCALLTYPE *CheckFeatureSupport)(
IDXGIFactory7 *This,
DXGI_FEATURE feature,
void *support_data,
UINT support_data_size);
/*** IDXGIFactory6 methods ***/
HRESULT (STDMETHODCALLTYPE *EnumAdapterByGpuPreference)(
IDXGIFactory7 *This,
UINT adapter_idx,
DXGI_GPU_PREFERENCE gpu_preference,
REFIID iid,
void **adapter);
/*** IDXGIFactory7 methods ***/
HRESULT (STDMETHODCALLTYPE *RegisterAdaptersChangedEvent)(
IDXGIFactory7 *This,
HANDLE event,
DWORD *cookie);
HRESULT (STDMETHODCALLTYPE *UnregisterAdaptersChangedEvent)(
IDXGIFactory7 *This,
DWORD cookie);
END_INTERFACE
} IDXGIFactory7Vtbl;
interface IDXGIFactory7 {
CONST_VTBL IDXGIFactory7Vtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define IDXGIFactory7_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IDXGIFactory7_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IDXGIFactory7_Release(This) (This)->lpVtbl->Release(This)
/*** IDXGIObject methods ***/
#define IDXGIFactory7_SetPrivateData(This,guid,data_size,data) (This)->lpVtbl->SetPrivateData(This,guid,data_size,data)
#define IDXGIFactory7_SetPrivateDataInterface(This,guid,object) (This)->lpVtbl->SetPrivateDataInterface(This,guid,object)
#define IDXGIFactory7_GetPrivateData(This,guid,data_size,data) (This)->lpVtbl->GetPrivateData(This,guid,data_size,data)
#define IDXGIFactory7_GetParent(This,riid,parent) (This)->lpVtbl->GetParent(This,riid,parent)
/*** IDXGIFactory methods ***/
#define IDXGIFactory7_EnumAdapters(This,adapter_idx,adapter) (This)->lpVtbl->EnumAdapters(This,adapter_idx,adapter)
#define IDXGIFactory7_MakeWindowAssociation(This,window,flags) (This)->lpVtbl->MakeWindowAssociation(This,window,flags)
#define IDXGIFactory7_GetWindowAssociation(This,window) (This)->lpVtbl->GetWindowAssociation(This,window)
#define IDXGIFactory7_CreateSwapChain(This,device,desc,swapchain) (This)->lpVtbl->CreateSwapChain(This,device,desc,swapchain)
#define IDXGIFactory7_CreateSoftwareAdapter(This,swrast,adapter) (This)->lpVtbl->CreateSoftwareAdapter(This,swrast,adapter)
/*** IDXGIFactory1 methods ***/
#define IDXGIFactory7_EnumAdapters1(This,Adapter,ppAdapter) (This)->lpVtbl->EnumAdapters1(This,Adapter,ppAdapter)
#define IDXGIFactory7_IsCurrent(This) (This)->lpVtbl->IsCurrent(This)
/*** IDXGIFactory2 methods ***/
#define IDXGIFactory7_IsWindowedStereoEnabled(This) (This)->lpVtbl->IsWindowedStereoEnabled(This)
#define IDXGIFactory7_CreateSwapChainForHwnd(This,pDevice,hWnd,pDesc,pFullscreenDesc,pRestrictToOutput,ppSwapChain) (This)->lpVtbl->CreateSwapChainForHwnd(This,pDevice,hWnd,pDesc,pFullscreenDesc,pRestrictToOutput,ppSwapChain)
#define IDXGIFactory7_CreateSwapChainForCoreWindow(This,pDevice,pWindow,pDesc,pRestrictToOutput,ppSwapChain) (This)->lpVtbl->CreateSwapChainForCoreWindow(This,pDevice,pWindow,pDesc,pRestrictToOutput,ppSwapChain)
#define IDXGIFactory7_GetSharedResourceAdapterLuid(This,hResource,pLuid) (This)->lpVtbl->GetSharedResourceAdapterLuid(This,hResource,pLuid)
#define IDXGIFactory7_RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie) (This)->lpVtbl->RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie)
#define IDXGIFactory7_RegisterStereoStatusEvent(This,hEvent,pdwCookie) (This)->lpVtbl->RegisterStereoStatusEvent(This,hEvent,pdwCookie)
#define IDXGIFactory7_UnregisterStereoStatus(This,dwCookie) (This)->lpVtbl->UnregisterStereoStatus(This,dwCookie)
#define IDXGIFactory7_RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie) (This)->lpVtbl->RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie)
#define IDXGIFactory7_RegisterOcclusionStatusEvent(This,hEvent,pdwCookie) (This)->lpVtbl->RegisterOcclusionStatusEvent(This,hEvent,pdwCookie)
#define IDXGIFactory7_UnregisterOcclusionStatus(This,dwCookie) (This)->lpVtbl->UnregisterOcclusionStatus(This,dwCookie)
#define IDXGIFactory7_CreateSwapChainForComposition(This,pDevice,pDesc,pRestrictToOutput,ppSwapChain) (This)->lpVtbl->CreateSwapChainForComposition(This,pDevice,pDesc,pRestrictToOutput,ppSwapChain)
/*** IDXGIFactory3 methods ***/
#define IDXGIFactory7_GetCreationFlags(This) (This)->lpVtbl->GetCreationFlags(This)
/*** IDXGIFactory4 methods ***/
#define IDXGIFactory7_EnumAdapterByLuid(This,luid,iid,adapter) (This)->lpVtbl->EnumAdapterByLuid(This,luid,iid,adapter)
#define IDXGIFactory7_EnumWarpAdapter(This,iid,adapter) (This)->lpVtbl->EnumWarpAdapter(This,iid,adapter)
/*** IDXGIFactory5 methods ***/
#define IDXGIFactory7_CheckFeatureSupport(This,feature,support_data,support_data_size) (This)->lpVtbl->CheckFeatureSupport(This,feature,support_data,support_data_size)
/*** IDXGIFactory6 methods ***/
#define IDXGIFactory7_EnumAdapterByGpuPreference(This,adapter_idx,gpu_preference,iid,adapter) (This)->lpVtbl->EnumAdapterByGpuPreference(This,adapter_idx,gpu_preference,iid,adapter)
/*** IDXGIFactory7 methods ***/
#define IDXGIFactory7_RegisterAdaptersChangedEvent(This,event,cookie) (This)->lpVtbl->RegisterAdaptersChangedEvent(This,event,cookie)
#define IDXGIFactory7_UnregisterAdaptersChangedEvent(This,cookie) (This)->lpVtbl->UnregisterAdaptersChangedEvent(This,cookie)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT IDXGIFactory7_QueryInterface(IDXGIFactory7* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG IDXGIFactory7_AddRef(IDXGIFactory7* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG IDXGIFactory7_Release(IDXGIFactory7* This) {
return This->lpVtbl->Release(This);
}
/*** IDXGIObject methods ***/
static FORCEINLINE HRESULT IDXGIFactory7_SetPrivateData(IDXGIFactory7* This,REFGUID guid,UINT data_size,const void *data) {
return This->lpVtbl->SetPrivateData(This,guid,data_size,data);
}
static FORCEINLINE HRESULT IDXGIFactory7_SetPrivateDataInterface(IDXGIFactory7* This,REFGUID guid,const IUnknown *object) {
return This->lpVtbl->SetPrivateDataInterface(This,guid,object);
}
static FORCEINLINE HRESULT IDXGIFactory7_GetPrivateData(IDXGIFactory7* This,REFGUID guid,UINT *data_size,void *data) {
return This->lpVtbl->GetPrivateData(This,guid,data_size,data);
}
static FORCEINLINE HRESULT IDXGIFactory7_GetParent(IDXGIFactory7* This,REFIID riid,void **parent) {
return This->lpVtbl->GetParent(This,riid,parent);
}
/*** IDXGIFactory methods ***/
static FORCEINLINE HRESULT IDXGIFactory7_EnumAdapters(IDXGIFactory7* This,UINT adapter_idx,IDXGIAdapter **adapter) {
return This->lpVtbl->EnumAdapters(This,adapter_idx,adapter);
}
static FORCEINLINE HRESULT IDXGIFactory7_MakeWindowAssociation(IDXGIFactory7* This,HWND window,UINT flags) {
return This->lpVtbl->MakeWindowAssociation(This,window,flags);
}
static FORCEINLINE HRESULT IDXGIFactory7_GetWindowAssociation(IDXGIFactory7* This,HWND *window) {
return This->lpVtbl->GetWindowAssociation(This,window);
}
static FORCEINLINE HRESULT IDXGIFactory7_CreateSwapChain(IDXGIFactory7* This,IUnknown *device,DXGI_SWAP_CHAIN_DESC *desc,IDXGISwapChain **swapchain) {
return This->lpVtbl->CreateSwapChain(This,device,desc,swapchain);
}
static FORCEINLINE HRESULT IDXGIFactory7_CreateSoftwareAdapter(IDXGIFactory7* This,HMODULE swrast,IDXGIAdapter **adapter) {
return This->lpVtbl->CreateSoftwareAdapter(This,swrast,adapter);
}
/*** IDXGIFactory1 methods ***/
static FORCEINLINE HRESULT IDXGIFactory7_EnumAdapters1(IDXGIFactory7* This,UINT Adapter,IDXGIAdapter1 **ppAdapter) {
return This->lpVtbl->EnumAdapters1(This,Adapter,ppAdapter);
}
static FORCEINLINE WINBOOL IDXGIFactory7_IsCurrent(IDXGIFactory7* This) {
return This->lpVtbl->IsCurrent(This);
}
/*** IDXGIFactory2 methods ***/
static FORCEINLINE WINBOOL IDXGIFactory7_IsWindowedStereoEnabled(IDXGIFactory7* This) {
return This->lpVtbl->IsWindowedStereoEnabled(This);
}
static FORCEINLINE HRESULT IDXGIFactory7_CreateSwapChainForHwnd(IDXGIFactory7* This,IUnknown *pDevice,HWND hWnd,const DXGI_SWAP_CHAIN_DESC1 *pDesc,const DXGI_SWAP_CHAIN_FULLSCREEN_DESC *pFullscreenDesc,IDXGIOutput *pRestrictToOutput,IDXGISwapChain1 **ppSwapChain) {
return This->lpVtbl->CreateSwapChainForHwnd(This,pDevice,hWnd,pDesc,pFullscreenDesc,pRestrictToOutput,ppSwapChain);
}
static FORCEINLINE HRESULT IDXGIFactory7_CreateSwapChainForCoreWindow(IDXGIFactory7* This,IUnknown *pDevice,IUnknown *pWindow,const DXGI_SWAP_CHAIN_DESC1 *pDesc,IDXGIOutput *pRestrictToOutput,IDXGISwapChain1 **ppSwapChain) {
return This->lpVtbl->CreateSwapChainForCoreWindow(This,pDevice,pWindow,pDesc,pRestrictToOutput,ppSwapChain);
}
static FORCEINLINE HRESULT IDXGIFactory7_GetSharedResourceAdapterLuid(IDXGIFactory7* This,HANDLE hResource,LUID *pLuid) {
return This->lpVtbl->GetSharedResourceAdapterLuid(This,hResource,pLuid);
}
static FORCEINLINE HRESULT IDXGIFactory7_RegisterStereoStatusWindow(IDXGIFactory7* This,HWND WindowHandle,UINT wMsg,DWORD *pdwCookie) {
return This->lpVtbl->RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie);
}
static FORCEINLINE HRESULT IDXGIFactory7_RegisterStereoStatusEvent(IDXGIFactory7* This,HANDLE hEvent,DWORD *pdwCookie) {
return This->lpVtbl->RegisterStereoStatusEvent(This,hEvent,pdwCookie);
}
static FORCEINLINE void IDXGIFactory7_UnregisterStereoStatus(IDXGIFactory7* This,DWORD dwCookie) {
This->lpVtbl->UnregisterStereoStatus(This,dwCookie);
}
static FORCEINLINE HRESULT IDXGIFactory7_RegisterOcclusionStatusWindow(IDXGIFactory7* This,HWND WindowHandle,UINT wMsg,DWORD *pdwCookie) {
return This->lpVtbl->RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie);
}
static FORCEINLINE HRESULT IDXGIFactory7_RegisterOcclusionStatusEvent(IDXGIFactory7* This,HANDLE hEvent,DWORD *pdwCookie) {
return This->lpVtbl->RegisterOcclusionStatusEvent(This,hEvent,pdwCookie);
}
static FORCEINLINE void IDXGIFactory7_UnregisterOcclusionStatus(IDXGIFactory7* This,DWORD dwCookie) {
This->lpVtbl->UnregisterOcclusionStatus(This,dwCookie);
}
static FORCEINLINE HRESULT IDXGIFactory7_CreateSwapChainForComposition(IDXGIFactory7* This,IUnknown *pDevice,const DXGI_SWAP_CHAIN_DESC1 *pDesc,IDXGIOutput *pRestrictToOutput,IDXGISwapChain1 **ppSwapChain) {
return This->lpVtbl->CreateSwapChainForComposition(This,pDevice,pDesc,pRestrictToOutput,ppSwapChain);
}
/*** IDXGIFactory3 methods ***/
static FORCEINLINE UINT IDXGIFactory7_GetCreationFlags(IDXGIFactory7* This) {
return This->lpVtbl->GetCreationFlags(This);
}
/*** IDXGIFactory4 methods ***/
static FORCEINLINE HRESULT IDXGIFactory7_EnumAdapterByLuid(IDXGIFactory7* This,LUID luid,REFIID iid,void **adapter) {
return This->lpVtbl->EnumAdapterByLuid(This,luid,iid,adapter);
}
static FORCEINLINE HRESULT IDXGIFactory7_EnumWarpAdapter(IDXGIFactory7* This,REFIID iid,void **adapter) {
return This->lpVtbl->EnumWarpAdapter(This,iid,adapter);
}
/*** IDXGIFactory5 methods ***/
static FORCEINLINE HRESULT IDXGIFactory7_CheckFeatureSupport(IDXGIFactory7* This,DXGI_FEATURE feature,void *support_data,UINT support_data_size) {
return This->lpVtbl->CheckFeatureSupport(This,feature,support_data,support_data_size);
}
/*** IDXGIFactory6 methods ***/
static FORCEINLINE HRESULT IDXGIFactory7_EnumAdapterByGpuPreference(IDXGIFactory7* This,UINT adapter_idx,DXGI_GPU_PREFERENCE gpu_preference,REFIID iid,void **adapter) {
return This->lpVtbl->EnumAdapterByGpuPreference(This,adapter_idx,gpu_preference,iid,adapter);
}
/*** IDXGIFactory7 methods ***/
static FORCEINLINE HRESULT IDXGIFactory7_RegisterAdaptersChangedEvent(IDXGIFactory7* This,HANDLE event,DWORD *cookie) {
return This->lpVtbl->RegisterAdaptersChangedEvent(This,event,cookie);
}
static FORCEINLINE HRESULT IDXGIFactory7_UnregisterAdaptersChangedEvent(IDXGIFactory7* This,DWORD cookie) {
return This->lpVtbl->UnregisterAdaptersChangedEvent(This,cookie);
}
#endif
#endif
#endif
#endif /* __IDXGIFactory7_INTERFACE_DEFINED__ */
/* Begin additional prototypes for all interfaces */

View File

@ -24,6 +24,9 @@ typedef enum DXGI_ADAPTER_FLAG3
DXGI_ADAPTER_FLAG3_REMOTE = 0x1,
DXGI_ADAPTER_FLAG3_SOFTWARE = 0x2,
DXGI_ADAPTER_FLAG3_ACG_COMPATIBLE = 0x4,
DXGI_ADAPTER_FLAG3_SUPPORT_MONITORED_FENCES = 0x8,
DXGI_ADAPTER_FLAG3_SUPPORT_NON_MONITORED_FENCES = 0x10,
DXGI_ADAPTER_FLAG3_KEYED_MUTEX_CONFORMANCE = 0x20,
DXGI_ADAPTER_FLAG3_FORCE_DWORD = 0xffffffff,
} DXGI_ADAPTER_FLAG3;
@ -34,6 +37,13 @@ typedef enum DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAGS
DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAG_CURSOR_STRETCHED = 0x4,
} DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAGS;
typedef enum DXGI_GPU_PREFERENCE
{
DXGI_GPU_PREFERENCE_UNSPECIFIED = 0x0,
DXGI_GPU_PREFERENCE_MINIMUM_POWER = 0x1,
DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE = 0x2,
} DXGI_GPU_PREFERENCE;
typedef struct DXGI_ADAPTER_DESC3
{
WCHAR Description[128];
@ -96,3 +106,36 @@ interface IDXGIOutput6 : IDXGIOutput5
[out] UINT *flags
);
}
[
object,
uuid(c1b6694f-ff09-44a9-b03c-77900a0a1d17),
local,
pointer_default(unique)
]
interface IDXGIFactory6 : IDXGIFactory5
{
HRESULT EnumAdapterByGpuPreference(
[in] UINT adapter_idx,
[in] DXGI_GPU_PREFERENCE gpu_preference,
[in] REFIID iid,
[out] void **adapter
);
}
[
object,
uuid(a4966eed-76db-44da-84c1-ee9a7afb20a8),
local,
pointer_default(unique)
]
interface IDXGIFactory7 : IDXGIFactory6
{
HRESULT RegisterAdaptersChangedEvent(
[in] HANDLE event,
[out] DWORD *cookie
);
HRESULT UnregisterAdaptersChangedEvent(
[in] DWORD cookie
);
}

View File

@ -1,4 +1,4 @@
/*** Autogenerated by WIDL 4.19 from direct-x/include/dxgicommon.idl - Do not edit ***/
/*** Autogenerated by WIDL 5.16 from include/dxgicommon.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__

View File

@ -0,0 +1,135 @@
/*** Autogenerated by WIDL 5.16 from include/dxgidebug.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif
#include <rpc.h>
#include <rpcndr.h>
#endif
#ifndef COM_NO_WINDOWS_H
#include <windows.h>
#include <ole2.h>
#endif
#ifndef __dxgidebug_h__
#define __dxgidebug_h__
/* Forward declarations */
#ifndef __IDXGIDebug_FWD_DEFINED__
#define __IDXGIDebug_FWD_DEFINED__
typedef interface IDXGIDebug IDXGIDebug;
#ifdef __cplusplus
interface IDXGIDebug;
#endif /* __cplusplus */
#endif
/* Headers for imported files */
#include <oaidl.h>
#ifdef __cplusplus
extern "C" {
#endif
DEFINE_GUID(DXGI_DEBUG_ALL, 0xe48ae283, 0xda80, 0x490b,0x87, 0xe6, 0x43, 0xe9, 0xa9, 0xcf, 0xda, 0x08);
DEFINE_GUID(DXGI_DEBUG_DX, 0x35cdd7fc, 0x13b2, 0x421d,0xa5, 0xd7, 0x7e, 0x44, 0x51, 0x28, 0x7d, 0x64);
DEFINE_GUID(DXGI_DEBUG_DXGI, 0x25cddaa4, 0xb1c6, 0x47e1,0xac, 0x3e, 0x98, 0x87, 0x5b, 0x5a, 0x2e, 0x2a);
DEFINE_GUID(DXGI_DEBUG_APP, 0x06cd6e01, 0x4219, 0x4ebd,0x87, 0x90, 0x27, 0xed, 0x23, 0x36, 0x0c, 0x62);
typedef enum DXGI_DEBUG_RLO_FLAGS {
DXGI_DEBUG_RLO_SUMMARY = 0x1,
DXGI_DEBUG_RLO_DETAIL = 0x2,
DXGI_DEBUG_RLO_IGNORE_INTERNAL = 0x4,
DXGI_DEBUG_RLO_ALL = 0x7
} DXGI_DEBUG_RLO_FLAGS;
/*****************************************************************************
* IDXGIDebug interface
*/
#ifndef __IDXGIDebug_INTERFACE_DEFINED__
#define __IDXGIDebug_INTERFACE_DEFINED__
DEFINE_GUID(IID_IDXGIDebug, 0x119e7452, 0xde9e, 0x40fe, 0x88,0x06, 0x88,0xf9,0x0c,0x12,0xb4,0x41);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("119e7452-de9e-40fe-8806-88f90c12b441")
IDXGIDebug : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE ReportLiveObjects(
GUID apiid,
DXGI_DEBUG_RLO_FLAGS flags) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IDXGIDebug, 0x119e7452, 0xde9e, 0x40fe, 0x88,0x06, 0x88,0xf9,0x0c,0x12,0xb4,0x41)
#endif
#else
typedef struct IDXGIDebugVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
IDXGIDebug *This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
IDXGIDebug *This);
ULONG (STDMETHODCALLTYPE *Release)(
IDXGIDebug *This);
/*** IDXGIDebug methods ***/
HRESULT (STDMETHODCALLTYPE *ReportLiveObjects)(
IDXGIDebug *This,
GUID apiid,
DXGI_DEBUG_RLO_FLAGS flags);
END_INTERFACE
} IDXGIDebugVtbl;
interface IDXGIDebug {
CONST_VTBL IDXGIDebugVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define IDXGIDebug_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IDXGIDebug_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IDXGIDebug_Release(This) (This)->lpVtbl->Release(This)
/*** IDXGIDebug methods ***/
#define IDXGIDebug_ReportLiveObjects(This,apiid,flags) (This)->lpVtbl->ReportLiveObjects(This,apiid,flags)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT IDXGIDebug_QueryInterface(IDXGIDebug* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG IDXGIDebug_AddRef(IDXGIDebug* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG IDXGIDebug_Release(IDXGIDebug* This) {
return This->lpVtbl->Release(This);
}
/*** IDXGIDebug methods ***/
static FORCEINLINE HRESULT IDXGIDebug_ReportLiveObjects(IDXGIDebug* This,GUID apiid,DXGI_DEBUG_RLO_FLAGS flags) {
return This->lpVtbl->ReportLiveObjects(This,apiid,flags);
}
#endif
#endif
#endif
#endif /* __IDXGIDebug_INTERFACE_DEFINED__ */
/* Begin additional prototypes for all interfaces */
/* End additional prototypes */
#ifdef __cplusplus
}
#endif
#endif /* __dxgidebug_h__ */

View File

@ -1,4 +1,4 @@
/*** Autogenerated by WIDL 4.19 from direct-x/include/dxgiformat.idl - Do not edit ***/
/*** Autogenerated by WIDL 5.16 from include/dxgiformat.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__

View File

@ -1,4 +1,4 @@
/*** Autogenerated by WIDL 4.19 from direct-x/include/dxgitype.idl - Do not edit ***/
/*** Autogenerated by WIDL 5.16 from include/dxgitype.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__

View File

@ -1,32 +1,51 @@
/**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
/*
* Copyright 2015 Michael Müller
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef _INC_DXVA
#define _INC_DXVA
#include <objbase.h>
#include <guiddef.h>
#ifndef __WINE_DXVA_H
#define __WINE_DXVA_H
#ifdef __cplusplus
extern "C" {
#endif
DEFINE_GUID(DXVA_NoEncrypt, 0x1b81bed0, 0xa0c7,0x11d3, 0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);
/* DXVA H264 */
typedef struct {
__C89_NAMELESS union {
__C89_NAMELESS struct {
#define DXVA_USUAL_BLOCK_WIDTH 8
#define DXVA_USUAL_BLOCK_HEIGHT 8
#define DXVA_USUAL_BLOCK_SIZE (DXVA_USUAL_BLOCK_WIDTH * DXVA_USUAL_BLOCK_HEIGHT)
#include <pshpack1.h>
typedef struct _DXVA_PicEntry_H264
{
union
{
struct
{
UCHAR Index7Bits : 7;
UCHAR AssociatedFlag : 1;
};
} DUMMYSTRUCTNAME;
UCHAR bPicEntry;
};
} DXVA_PicEntry_H264;
} DUMMYUNIONNAME;
} DXVA_PicEntry_H264, *LPDXVA_PicEntry_H264;
#pragma pack(push, 1)
typedef struct {
typedef struct _DXVA_FilmGrainCharacteristics
{
USHORT wFrameWidthInMbsMinus1;
USHORT wFrameHeightInMbsMinus1;
DXVA_PicEntry_H264 InPic;
@ -50,188 +69,197 @@ typedef struct {
UCHAR intensity_interval_lower_bound[3][16];
UCHAR intensity_interval_upper_bound[3][16];
SHORT comp_model_value[3][16][8];
} DXVA_FilmGrainChar_H264;
#pragma pack(pop)
} DXVA_FilmGrainChar_H264, *LPDXVA_FilmGrainChar_H264;
/* DXVA MPEG-I/II and VC-1 */
typedef struct _DXVA_PictureParameters {
USHORT wDecodedPictureIndex;
USHORT wDeblockedPictureIndex;
USHORT wForwardRefPictureIndex;
USHORT wBackwardRefPictureIndex;
USHORT wPicWidthInMBminus1;
USHORT wPicHeightInMBminus1;
UCHAR bMacroblockWidthMinus1;
UCHAR bMacroblockHeightMinus1;
UCHAR bBlockWidthMinus1;
UCHAR bBlockHeightMinus1;
UCHAR bBPPminus1;
UCHAR bPicStructure;
UCHAR bSecondField;
UCHAR bPicIntra;
UCHAR bPicBackwardPrediction;
UCHAR bBidirectionalAveragingMode;
UCHAR bMVprecisionAndChromaRelation;
UCHAR bChromaFormat;
UCHAR bPicScanFixed;
UCHAR bPicScanMethod;
UCHAR bPicReadbackRequests;
UCHAR bRcontrol;
UCHAR bPicSpatialResid8;
UCHAR bPicOverflowBlocks;
UCHAR bPicExtrapolation;
UCHAR bPicDeblocked;
UCHAR bPicDeblockConfined;
UCHAR bPic4MVallowed;
UCHAR bPicOBMC;
UCHAR bPicBinPB;
UCHAR bMV_RPS;
UCHAR bReservedBits;
USHORT wBitstreamFcodes;
USHORT wBitstreamPCEelements;
UCHAR bBitstreamConcealmentNeed;
UCHAR bBitstreamConcealmentMethod;
typedef struct _DXVA_PictureParameters
{
WORD wDecodedPictureIndex;
WORD wDeblockedPictureIndex;
WORD wForwardRefPictureIndex;
WORD wBackwardRefPictureIndex;
WORD wPicWidthInMBminus1;
WORD wPicHeightInMBminus1;
BYTE bMacroblockWidthMinus1;
BYTE bMacroblockHeightMinus1;
BYTE bBlockWidthMinus1;
BYTE bBlockHeightMinus1;
BYTE bBPPminus1;
BYTE bPicStructure;
BYTE bSecondField;
BYTE bPicIntra;
BYTE bPicBackwardPrediction;
BYTE bBidirectionalAveragingMode;
BYTE bMVprecisionAndChromaRelation;
BYTE bChromaFormat;
BYTE bPicScanFixed;
BYTE bPicScanMethod;
BYTE bPicReadbackRequests;
BYTE bRcontrol;
BYTE bPicSpatialResid8;
BYTE bPicOverflowBlocks;
BYTE bPicExtrapolation;
BYTE bPicDeblocked;
BYTE bPicDeblockConfined;
BYTE bPic4MVallowed;
BYTE bPicOBMC;
BYTE bPicBinPB;
BYTE bMV_RPS;
BYTE bReservedBits;
WORD wBitstreamFcodes;
WORD wBitstreamPCEelements;
BYTE bBitstreamConcealmentNeed;
BYTE bBitstreamConcealmentMethod;
} DXVA_PictureParameters, *LPDXVA_PictureParameters;
typedef struct _DXVA_QmatrixData {
BYTE bNewQmatrix[4];
WORD Qmatrix[4][8 * 8];
typedef struct _DXVA_SliceInfo
{
WORD wHorizontalPosition;
WORD wVerticalPosition;
DWORD dwSliceBitsInBuffer;
DWORD dwSliceDataLocation;
BYTE bStartCodeBitOffset;
BYTE bReservedBits;
WORD wMBbitOffset;
WORD wNumberMBsInSlice;
WORD wQuantizerScaleCode;
WORD wBadSliceChopping;
} DXVA_SliceInfo, *LPDXVA_SliceInfo;
typedef struct _DXVA_QmatrixData
{
BYTE bNewQmatrix[4];
WORD Qmatrix[4][DXVA_USUAL_BLOCK_WIDTH * DXVA_USUAL_BLOCK_HEIGHT];
} DXVA_QmatrixData, *LPDXVA_QmatrixData;
#pragma pack(push, 1)
typedef struct _DXVA_SliceInfo {
USHORT wHorizontalPosition;
USHORT wVerticalPosition;
UINT dwSliceBitsInBuffer;
UINT dwSliceDataLocation;
UCHAR bStartCodeBitOffset;
UCHAR bReservedBits;
USHORT wMBbitOffset;
USHORT wNumberMBsInSlice;
USHORT wQuantizerScaleCode;
USHORT wBadSliceChopping;
} DXVA_SliceInfo, *LPDXVA_SliceInfo;
#pragma pack(pop)
typedef struct {
typedef struct _DXVA_PicParams_H264
{
USHORT wFrameWidthInMbsMinus1;
USHORT wFrameHeightInMbsMinus1;
DXVA_PicEntry_H264 CurrPic;
UCHAR num_ref_frames;
__C89_NAMELESS union {
__C89_NAMELESS struct {
USHORT field_pic_flag : 1;
USHORT MbaffFrameFlag : 1;
USHORT residual_colour_transform_flag : 1;
USHORT sp_for_switch_flag : 1;
USHORT chroma_format_idc : 2;
USHORT RefPicFlag : 1;
USHORT constrained_intra_pred_flag : 1;
USHORT weighted_pred_flag : 1;
USHORT weighted_bipred_idc : 2;
USHORT MbsConsecutiveFlag : 1;
USHORT frame_mbs_only_flag : 1;
USHORT transform_8x8_mode_flag : 1;
USHORT MinLumaBipredSize8x8Flag : 1;
USHORT IntraPicFlag : 1;
};
UCHAR num_ref_frames;
union
{
struct
{
USHORT field_pic_flag : 1;
USHORT MbaffFrameFlag : 1;
USHORT residual_colour_transform_flag : 1;
USHORT sp_for_switch_flag : 1;
USHORT chroma_format_idc : 2;
USHORT RefPicFlag : 1;
USHORT constrained_intra_pred_flag : 1;
USHORT weighted_pred_flag : 1;
USHORT weighted_bipred_idc : 2;
USHORT MbsConsecutiveFlag : 1;
USHORT frame_mbs_only_flag : 1;
USHORT transform_8x8_mode_flag : 1;
USHORT MinLumaBipredSize8x8Flag : 1;
USHORT IntraPicFlag : 1;
} DUMMYSTRUCTNAME;
USHORT wBitFields;
};
UCHAR bit_depth_luma_minus8;
UCHAR bit_depth_chroma_minus8;
USHORT Reserved16Bits;
UINT StatusReportFeedbackNumber;
} DUMMYUNIONNAME;
UCHAR bit_depth_luma_minus8;
UCHAR bit_depth_chroma_minus8;
USHORT Reserved16Bits;
UINT StatusReportFeedbackNumber;
DXVA_PicEntry_H264 RefFrameList[16];
INT CurrFieldOrderCnt[2];
INT FieldOrderCntList[16][2];
CHAR pic_init_qs_minus26;
CHAR chroma_qp_index_offset;
CHAR second_chroma_qp_index_offset;
UCHAR ContinuationFlag;
CHAR pic_init_qp_minus26;
UCHAR num_ref_idx_l0_active_minus1;
UCHAR num_ref_idx_l1_active_minus1;
UCHAR Reserved8BitsA;
USHORT FrameNumList[16];
UINT UsedForReferenceFlags;
USHORT NonExistingFrameFlags;
USHORT frame_num;
UCHAR log2_max_frame_num_minus4;
UCHAR pic_order_cnt_type;
UCHAR log2_max_pic_order_cnt_lsb_minus4;
UCHAR delta_pic_order_always_zero_flag;
UCHAR direct_8x8_inference_flag;
UCHAR entropy_coding_mode_flag;
UCHAR pic_order_present_flag;
UCHAR num_slice_groups_minus1;
UCHAR slice_group_map_type;
UCHAR deblocking_filter_control_present_flag;
UCHAR redundant_pic_cnt_present_flag;
UCHAR Reserved8BitsB;
USHORT slice_group_change_rate_minus1;
UCHAR SliceGroupMap[810];
} DXVA_PicParams_H264;
INT CurrFieldOrderCnt[2];
INT FieldOrderCntList[16][2];
CHAR pic_init_qs_minus26;
CHAR chroma_qp_index_offset;
CHAR second_chroma_qp_index_offset;
UCHAR ContinuationFlag;
CHAR pic_init_qp_minus26;
UCHAR num_ref_idx_l0_active_minus1;
UCHAR num_ref_idx_l1_active_minus1;
UCHAR Reserved8BitsA;
USHORT FrameNumList[16];
typedef struct {
UCHAR bScalingLists4x4[6][16];
UCHAR bScalingLists8x8[2][64];
} DXVA_Qmatrix_H264;
UINT UsedForReferenceFlags;
USHORT NonExistingFrameFlags;
USHORT frame_num;
UCHAR log2_max_frame_num_minus4;
UCHAR pic_order_cnt_type;
UCHAR log2_max_pic_order_cnt_lsb_minus4;
UCHAR delta_pic_order_always_zero_flag;
UCHAR direct_8x8_inference_flag;
UCHAR entropy_coding_mode_flag;
UCHAR pic_order_present_flag;
UCHAR num_slice_groups_minus1;
UCHAR slice_group_map_type;
UCHAR deblocking_filter_control_present_flag;
UCHAR redundant_pic_cnt_present_flag;
UCHAR Reserved8BitsB;
USHORT slice_group_change_rate_minus1;
UCHAR SliceGroupMap[810];
} DXVA_PicParams_H264, *LPDXVA_PicParams_H264;
typedef struct {
UINT BSNALunitDataLocation;
UINT SliceBytesInBuffer;
USHORT wBadSliceChopping;
USHORT first_mb_in_slice;
USHORT NumMbsForSlice;
USHORT BitOffsetToSliceData;
UCHAR slice_type;
UCHAR luma_log2_weight_denom;
UCHAR chroma_log2_weight_denom;
UCHAR num_ref_idx_l0_active_minus1;
UCHAR num_ref_idx_l1_active_minus1;
CHAR slice_alpha_c0_offset_div2;
CHAR slice_beta_offset_div2;
UCHAR Reserved8Bits;
typedef struct _DXVA_Qmatrix_H264
{
UCHAR bScalingLists4x4[6][16];
UCHAR bScalingLists8x8[2][64];
} DXVA_Qmatrix_H264, *LPDXVA_Qmatrix_H264;
typedef struct _DXVA_Slice_H264_Long
{
UINT BSNALunitDataLocation;
UINT SliceBytesInBuffer;
USHORT wBadSliceChopping;
USHORT first_mb_in_slice;
USHORT NumMbsForSlice;
USHORT BitOffsetToSliceData;
UCHAR slice_type;
UCHAR luma_log2_weight_denom;
UCHAR chroma_log2_weight_denom;
UCHAR num_ref_idx_l0_active_minus1;
UCHAR num_ref_idx_l1_active_minus1;
CHAR slice_alpha_c0_offset_div2;
CHAR slice_beta_offset_div2;
UCHAR Reserved8Bits;
DXVA_PicEntry_H264 RefPicList[2][32];
SHORT Weights[2][32][3][2];
CHAR slice_qs_delta;
CHAR slice_qp_delta;
UCHAR redundant_pic_cnt;
UCHAR direct_spatial_mv_pred_flag;
UCHAR cabac_init_idc;
UCHAR disable_deblocking_filter_idc;
USHORT slice_id;
} DXVA_Slice_H264_Long;
SHORT Weights[2][32][3][2];
CHAR slice_qs_delta;
CHAR slice_qp_delta;
UCHAR redundant_pic_cnt;
UCHAR direct_spatial_mv_pred_flag;
UCHAR cabac_init_idc;
UCHAR disable_deblocking_filter_idc;
USHORT slice_id;
} DXVA_Slice_H264_Long, *LPDXVA_Slice_H264_Long;
#pragma pack(push, 1)
typedef struct {
UINT BSNALunitDataLocation;
UINT SliceBytesInBuffer;
USHORT wBadSliceChopping;
} DXVA_Slice_H264_Short;
#pragma pack(pop)
typedef struct _DXVA_Slice_H264_Short
{
UINT BSNALunitDataLocation;
UINT SliceBytesInBuffer;
USHORT wBadSliceChopping;
} DXVA_Slice_H264_Short, *LPDXVA_Slice_H264_Short;
/* HEVC Picture Entry structure */
typedef struct {
__C89_NAMELESS union {
__C89_NAMELESS struct {
UCHAR Index7Bits : 7;
UCHAR AssociatedFlag : 1;
};
UCHAR bPicEntry;
};
typedef struct _DXVA_PicEntry_HEVC
{
union
{
struct
{
UCHAR Index7Bits : 7;
UCHAR AssociatedFlag : 1;
};
UCHAR bPicEntry;
};
} DXVA_PicEntry_HEVC, *LPDXVA_PicEntry_HEVC;
/* HEVC Picture Parameter structure */
#pragma pack(push, 1)
typedef struct _DXVA_PicParams_HEVC {
typedef struct _DXVA_PicParams_HEVC
{
USHORT PicWidthInMinCbsY;
USHORT PicHeightInMinCbsY;
__C89_NAMELESS union {
__C89_NAMELESS struct {
union
{
struct
{
USHORT chroma_format_idc : 2;
USHORT separate_colour_plane_flag : 1;
USHORT bit_depth_luma_minus8 : 3;
USHORT bit_depth_luma_minus8 : 3;
USHORT bit_depth_chroma_minus8 : 3;
USHORT log2_max_pic_order_cnt_lsb_minus4 : 4;
USHORT NoPicReorderingFlag : 1;
@ -257,8 +285,10 @@ typedef struct _DXVA_PicParams_HEVC {
USHORT wNumBitsForShortTermRPSInSlice;
USHORT ReservedBits2;
__C89_NAMELESS union {
__C89_NAMELESS struct {
union
{
struct
{
UINT32 scaling_list_enabled_flag : 1;
UINT32 amp_enabled_flag : 1;
UINT32 sample_adaptive_offset_enabled_flag : 1;
@ -281,8 +311,10 @@ typedef struct _DXVA_PicParams_HEVC {
UINT32 dwCodingParamToolFlags;
};
__C89_NAMELESS union {
__C89_NAMELESS struct {
union
{
struct
{
UINT32 constrained_intra_pred_flag : 1;
UINT32 transform_skip_enabled_flag : 1;
UINT32 cu_qp_delta_enabled_flag : 1;
@ -328,28 +360,29 @@ typedef struct _DXVA_PicParams_HEVC {
UINT StatusReportFeedbackNumber;
} DXVA_PicParams_HEVC, *LPDXVA_PicParams_HEVC;
/* HEVC Quantizatiuon Matrix structure */
typedef struct _DXVA_Qmatrix_HEVC {
UCHAR ucScalingLists0[6][16];
UCHAR ucScalingLists1[6][64];
UCHAR ucScalingLists2[6][64];
UCHAR ucScalingLists3[2][64];
typedef struct _DXVA_Qmatrix_HEVC
{
UCHAR ucScalingLists0[6][16];
UCHAR ucScalingLists1[6][64];
UCHAR ucScalingLists2[6][64];
UCHAR ucScalingLists3[2][64];
UCHAR ucScalingListDCCoefSizeID2[6];
UCHAR ucScalingListDCCoefSizeID3[2];
} DXVA_Qmatrix_HEVC, *LPDXVA_Qmatrix_HEVC;
/* HEVC Slice Control Structure */
typedef struct _DXVA_Slice_HEVC_Short {
UINT BSNALunitDataLocation;
UINT SliceBytesInBuffer;
USHORT wBadSliceChopping;
typedef struct _DXVA_Slice_HEVC_Short
{
UINT BSNALunitDataLocation;
UINT SliceBytesInBuffer;
USHORT wBadSliceChopping;
} DXVA_Slice_HEVC_Short, *LPDXVA_Slice_HEVC_Short;
/* VPx picture entry data structure */
typedef struct _DXVA_PicEntry_VPx {
__C89_NAMELESS union {
__C89_NAMELESS struct {
typedef struct _DXVA_PicEntry_VPx
{
union
{
struct
{
UCHAR Index7Bits : 7;
UCHAR AssociatedFlag : 1;
};
@ -357,10 +390,12 @@ typedef struct _DXVA_PicEntry_VPx {
};
} DXVA_PicEntry_VPx, *LPDXVA_PicEntry_VPx;
/* VP9 segmentation structure */
typedef struct _segmentation_VP9 {
__C89_NAMELESS union {
__C89_NAMELESS struct {
typedef struct _segmentation_VP9
{
union
{
struct
{
UCHAR enabled : 1;
UCHAR update_map : 1;
UCHAR temporal_update : 1;
@ -375,12 +410,14 @@ typedef struct _segmentation_VP9 {
UCHAR feature_mask[8];
} DXVA_segmentation_VP9;
/* VP9 picture parameters structure */
typedef struct _DXVA_PicParams_VP9 {
typedef struct _DXVA_PicParams_VP9
{
DXVA_PicEntry_VPx CurrPic;
UCHAR profile;
__C89_NAMELESS union {
__C89_NAMELESS struct {
union
{
struct
{
USHORT frame_type : 1;
USHORT show_frame : 1;
USHORT error_resilient_mode : 1;
@ -410,8 +447,10 @@ typedef struct _DXVA_PicParams_VP9 {
CHAR ref_frame_sign_bias[4];
CHAR filter_level;
CHAR sharpness_level;
__C89_NAMELESS union {
__C89_NAMELESS struct {
union
{
struct
{
UCHAR mode_ref_delta_enabled : 1;
UCHAR mode_ref_delta_update : 1;
UCHAR use_prev_in_find_mv_refs : 1;
@ -435,10 +474,12 @@ typedef struct _DXVA_PicParams_VP9 {
UINT StatusReportFeedbackNumber;
} DXVA_PicParams_VP9, *LPDXVA_PicParams_VP9;
/* VP8 segmentation structure */
typedef struct _segmentation_VP8 {
__C89_NAMELESS union {
__C89_NAMELESS struct {
typedef struct _segmentation_VP8
{
union
{
struct
{
UCHAR segmentation_enabled : 1;
UCHAR update_mb_segmentation_map : 1;
UCHAR update_mb_segmentation_data : 1;
@ -451,14 +492,16 @@ typedef struct _segmentation_VP8 {
UCHAR mb_segment_tree_probs[3];
} DXVA_segmentation_VP8;
/* VP8 picture parameters structure */
typedef struct _DXVA_PicParams_VP8 {
typedef struct _DXVA_PicParams_VP8
{
UINT first_part_size;
UINT width;
UINT height;
DXVA_PicEntry_VPx CurrPic;
__C89_NAMELESS union {
__C89_NAMELESS struct {
union
{
struct
{
UCHAR frame_type : 1;
UCHAR version : 3;
UCHAR show_frame : 1;
@ -503,15 +546,15 @@ typedef struct _DXVA_PicParams_VP8 {
UINT StatusReportFeedbackNumber;
} DXVA_PicParams_VP8, *LPDXVA_PicParams_VP8;
/* VPx slice control data structure - short form */
typedef struct _DXVA_Slice_VPx_Short {
typedef struct _DXVA_Slice_VPx_Short
{
UINT BSNALunitDataLocation;
UINT SliceBytesInBuffer;
USHORT wBadSliceChopping;
} DXVA_Slice_VPx_Short, *LPDXVA_Slice_VPx_Short;
/* VPx status reporting data structure */
typedef struct _DXVA_Status_VPx {
typedef struct _DXVA_Status_VPx
{
UINT StatusReportFeedbackNumber;
DXVA_PicEntry_VPx CurrPic;
UCHAR bBufType;
@ -520,10 +563,10 @@ typedef struct _DXVA_Status_VPx {
USHORT wNumMbsAffected;
} DXVA_Status_VPx, *LPDXVA_Status_VPx;
#pragma pack(pop)
#include <poppack.h>
#ifdef __cplusplus
}
#endif
#endif /*_INC_DXVA */
#endif /* __WINE_DXVA_H */

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More