// dispmprt.h
typedef struct _DXGK_MIRACAST_INTERFACE {
USHORT Size;
USHORT Version;
PVOID Context;
PINTERFACE_REFERENCE InterfaceReference;
PINTERFACE_DEREFERENCE InterfaceDereference;
DXGKDDI_MIRACAST_QUERY_CAPS DxgkDdiMiracastQueryCaps;
DXGKDDI_MIRACAST_CREATE_CONTEXT DxgkDdiMiracastCreateContext;
DXGKDDI_MIRACAST_HANDLE_IO_CONTROL DxgkDdiMiracastIoControl;
DXGKDDI_MIRACAST_DESTROY_CONTEXT DxgkDdiMiracastDestroyContext;
} DXGK_MIRACAST_DISPLAY_INTERFACE, *PDXGK_MIRACAST_DISPLAY_INTERFACE;
View the official Windows Driver Kit DDI referenceNo description available.
Contains pointers to functions in the Wireless display (Miracast) interface that the display miniport driver implements to create, destroy, query, and control Miracast device resources.
SizeThe size, in bytes, of this structure.
VersionThe version number of the Miracast interface. Version number constants are defined in Dispmprt.h (for example, DXGK_MIRACAST_DISPLAY_INTERFACE_VERSION_1).
ContextA pointer to a context that is provided by the display miniport driver.
InterfaceReferenceA pointer to an interface reference function that is implemented by the display miniport driver.
InterfaceDereferenceA pointer to an interface dereference function that is implemented by the display miniport driver.
DxgkDdiMiracastQueryCapsA pointer to the display miniport driver's DxgkDdiMiracastQueryCaps function.
DxgkDdiMiracastCreateContextA pointer to the display miniport driver's DxgkDdiMiracastCreateContext function.
DxgkDdiMiracastIoControlA pointer to the display miniport driver's DxgkDdiMiracastIoControl function.
DxgkDdiMiracastDestroyContextA pointer to the display miniport driver's DxgkDdiMiracastDestroyContext function.
When the graphics adapter is started, the Microsoft DirectX graphics kernel subsystem calls the display miniport driver's DxgkDdiQueryInterface function to retrieve the interface.
If the driver does not support Miracast displays, it should fail the query for this interface.
If the driver supports Miracast displays, then it must also support High-bandwidth Digital Content Protection (HDCP).
For more info on how to use the Miracast interface, see WDDM display miniport driver tasks to support Miracast wireless displays.