IWRdsGraphicsChannelEvents::OnChannelOpened method (wrdsgraphicschannels.h)

Called when the channel has been opened and is ready for use, or when an error occurs when a channel is opened. The RemoteFX graphics services calls the IWRdsGraphicsChannel::Open method to open a channel. You must call the OnChannelOpened method to notify the RemoteFX graphics services that the channel is open and ready for use, or if an error occurs.

Syntax

HRESULT OnChannelOpened(
  HRESULT  OpenResult,
  IUnknown *pOpenContext
);

Parameters

OpenResult

An HRESULT value that specifies the result of the open operation. If this parameter contains S_OK, pOpenContext is valid.

pOpenContext

A user-defined interface pointer that is passed as the pOpenContext parameter in the IWRdsGraphicsChannel::Open method.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

   
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Target Platform Windows
Header wrdsgraphicschannels.h

See also

IWRdsGraphicsChannel::Open

IWRdsGraphicsChannelEvents