PFN_STOP_MIRACAST_SESSION - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// netdispumdddi.h

PFN_STOP_MIRACAST_SESSION PfnStopMiracastSession;

VOID PfnStopMiracastSession(
  [in] PVOID pMiracastContext
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-netdispumdddi-pfn_stop_miracast_session)

PFN_STOP_MIRACAST_SESSION callback function

Description

Called by the operating system to start a Miracast connected session that had earlier been started by a call to the StartMiracastSession function.

Parameters

pMiracastContext [in]

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.

Remarks

When this function is called, the Miracast user-mode driver should follow these procedures:

  1. 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.
  2. It should return as quickly as possible to avoid blocking system plug and play (PnP) or power operations.
  3. 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.

Also, after this function is called, the Miracast user-mode driver might still receive stream data that the display miniport driver generated. The user-mode driver should drop the stream.

Thread Safety

The operating system guarantees that only one of the CreateMiracastContext, DestroyMiracastContext, StartMiracastSession, and StopMiracastSession functions is called at a time.

See also

CreateMiracastContext

DestroyMiracastContext

StartMiracastSession