PFN_STOP_MIRACAST_SESSION callback function (netdispumdddi.h)
Called by the operating system to start a Miracast connected session that had earlier been started by a call to the StartMiracastSession function.
Syntax
PFN_STOP_MIRACAST_SESSION PfnStopMiracastSession;
void PfnStopMiracastSession(
[in] PVOID pMiracastContext
)
{...}
Parameters
[in] pMiracastContext
A pointer to a context associated with a display adapter.
The operating system obtained the context when it called the Miracast user-mode driver's CreateMiracastContext function.
Return value
None
Remarks
When this function is called, the Miracast user-mode driver should follow these procedures:
- It should not notify the display miniport driver to remove the Miracast monitor unless it knows that the monitor has been physically removed from the remote side.
- It should return as quickly as possible to avoid blocking system plug and play (PnP) or power operations.
- It should stop all communications and close all sockets that it created, but it should not close the Real-Time Streaming Protocol (RTSP) socket that was passed by the operating system.
Thread Safety
The operating system guarantees that only one of the CreateMiracastContext, DestroyMiracastContext, StartMiracastSession, and StopMiracastSession functions is called at a time.
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) |