OnApplicationClose event

Called when an application closes.

Syntax

void OnApplicationClose(
  [in] IDispatch *pApplication
);

Parameters

pApplication [in]

The application that was closed. Query the IDispatch interface for the IRDPSRAPIApplication interface that you use to retrieve information about the application.

Return value

This event does not return a value.

Remarks

An Application object is considered destroyed when its last sharable top-level window is destroyed. Note that this event is sent after the OnWindowClose event is sent.

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