OnError event

Called when a critical error occurs in the session.

Syntax

void OnError(
  [in] VARIANT ErrorInfo
);

Parameters

ErrorInfo [in]

An HRESULT value of the critical error that occurred. The variant type is VT_I4 and the lVal member of the VARIANT contains the HRESULT value.

Return value

This event does not return a value.

Remarks

If you receive this notification, you should consider the session terminated and should destroy the RDPSession object.

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