OnWindowClose event

Called when a sharable top-level window is closed.

Syntax

void OnWindowClose(
  [in] IDispatch *pWindow
);

Parameters

pWindow [in]

The sharable top-level window that closed. Query the IDispatch interface for the IRDPSRAPIWindow interface that you use to retrieve information about the window.

Return value

This event does not return a value.

Remarks

If this is the last window corresponding to the application, then this event is immediately followed by the OnApplicationClose event.

Requirements

Minimum supported client
Windows Vista [desktop apps | UWP apps]
Minimum supported server
Windows Server 2008 [desktop apps | UWP apps]
Header
RdpEncomAPI.h
IDL
RdpEncomAPI.idl
Type library
RdpEncomAPI.tlb
DLL
RdpEncom.dll

See also

_IRDPSessionEvents