Checks whether the system supports a device interface for a graphics component.
public:
HRESULT CheckInterfaceSupport(
REFGUID InterfaceName,
LARGE_INTEGER *pUMDVersion
)
InterfaceName
Type: REFGUID
[in] The GUID of the interface of the device version for which support is being checked. For example, __uuidof(ID3D10Device).
pUMDVersion
Type: LARGE_INTEGER *
[out] The user mode driver version of InterfaceName. This is returned only if the interface is supported. This parameter can be NULL.
Type: HRESULT
S_OK indicates that the interface is supported, otherwise DXGI_ERROR_UNSUPPORTED is returned (For more information, see DXGI_ERROR).
Note
You can use CheckInterfaceSupport only to check whether a Direct3D 10.x interface is supported, and only on Windows Vista SP1 and later versions of the operating system. If you try to use CheckInterfaceSupport to check whether a Direct3D 11.x and later version interface is supported, CheckInterfaceSupport returns DXGI_ERROR_UNSUPPORTED. Therefore, do not use CheckInterfaceSupport. Instead, to verify whether the operating system supports a particular interface, try to create the interface. For example, if you call the ID3D11Device::CreateBlendState method and it fails, the operating system does not support the ID3D11BlendState interface.
Header: Declared in d3d11_x.h (dxgi.h on other Windows platforms).
Library: Use d3d11_x.lib (dxgi.lib on other Windows platforms).