PFN_DATARATE_NOTIFICATION callback function

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(
  PVOID context,
  MIRACAST_DATARATE_STATS *pDataRateStats
)
{...}

Parameters

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.

*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

Does not return a value.

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

   
Windows version Windows 8.1 Windows Server 2012 R2
Target Platform Desktop
Header netdispumdddi.h (include Netdispumdddi.h)

See Also

DxgkDdiAddDevice

MIRACAST_DATARATE_STATS

RegisterForDataRateNotifications