WFDDisplaySinkCloseSession function

Cleans up the state for the session being opened, or the currently open session.

Syntax


DWORD WINAPI WFDCloseDisplaySinkSession(
  _In_ HANDLE hSessionHandle
);

Parameters

hSessionHandle [in]

The handle received via the most recent WFD_DISPLAY_SINK_NOTIFICATION_CALLBACK invocation that included one.

Return value

If the function succeeds, the return value is ERROR_SUCCESS.

Remarks

Your app can call this function to terminate the Miracast session for any reason. Your app is not required to call it when it receives the DisconnectedNotification type in its callback.

Requirements

Minimum supported client

Windows 8.1 [desktop apps only]

Minimum supported server

Windows Server 2012 R2 [desktop apps only]

End of client support

Windows 10

End of server support

Windows Server 2016

Header

Wfdsink.h

Library

Wifidisplay.lib

DLL

Wifidisplay.dll

See also

WFD_DISPLAY_SINK_NOTIFICATION_CALLBACK

 

 

Show: