PFN_DATARATE_NOTIFICATION callback function (netdispumdddi.h)

Called by the operating system to notify the Miracast user-mode driver that the bit rate of the Miracast network link has changed. This function is registered with the operating system when the RegisterForDataRateNotifications function is called.

Syntax

PFN_DATARATE_NOTIFICATION PfnDatarateNotification;

void PfnDatarateNotification(
  [in]           PVOID context,
  [in, optional] MIRACAST_DATARATE_STATS *pDataRateStats
)
{...}

Parameters

[in] context

A pointer to a context block associated with a display adapter.

The context value is the value the driver passed in its call to the RegisterForDataRateNotifications function when it registered the pfnDataRateNotify function.

[in, optional] pDataRateStats

An optional pointer to a MIRACAST_DATARATE_STATS structure that contains info on the audio/video encoder bit rate and failed or retried Wi-Fi frames.

Can be NULL if the network has an error. For more info, see Remarks.

Return value

None

Remarks

If data on the quality of service (QoS) of the network connection becomes unavailable, the pDataRateStats parameter will be set to NULL, and this function will not be called again.

Requirements

Requirement Value
Minimum supported client Windows 8.1
Minimum supported server Windows Server 2012 R2
Target Platform Desktop
Header netdispumdddi.h (include Netdispumdddi.h)

See also

DxgkDdiAddDevice

MIRACAST_DATARATE_STATS

RegisterForDataRateNotifications