DxgkDdiMiracastQueryCaps routine

Queries the Miracast capabilities of the current display adapter. The operating system calls this function only when the display adapter is first started and then stores the capabilities that are returned.

Note  The capabilities of the display adapter must not change while it is connected.

Syntax


DXGKDDI_MIRACAST_QUERY_CAPS DxgkDdiMiracastQueryCaps;

NTSTATUS* DxgkDdiMiracastQueryCaps(
  _In_   PVOID DriverContext,
  _In_   ULONG MiracastCapsSize,
  _Out_  DXGK_MIRACAST_CAPS *MiracastCaps
)
{ ... }

Parameters

DriverContext [in]

A handle to a context block that is associated with a display adapter. The display miniport driver's DxgkDdiAddDevice function previously provided this handle to the DirectX graphics kernel subsystem.

MiracastCapsSize [in]

The size, supplied by the operating system, of the DXGK_MIRACAST_CAPS structure pointed to by the MiracastCaps parameter.

The driver should check this value before it fills the structure.

MiracastCaps [out]

A pointer to an operating system-provided buffer that holds a DXGK_MIRACAST_CAPS structure that the driver fills with Miracast device capabilities.

Return value

Returns STATUS_SUCCESS if it succeeds. Otherwise, it returns one of the error codes that are defined in Ntstatus.h.

Remarks

Synchronization

The operating system guarantees that this function follows the third-level synchronization mode as defined in Threading and Synchronization Third Level.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Header

Dispmprt.h (include Dispmprt.h)

IRQL

PASSIVE_LEVEL

See also

DXGK_MIRACAST_CAPS
DxgkDdiAddDevice

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft