VIRTUALCHANNELCLOSE callback function (cchannel.h)

Closes the client end of a virtual channel.

Remote Desktop Services provides a pointer to a VirtualChannelClose function in the CHANNEL_ENTRY_POINTS structure passed to your VirtualChannelEntry entry point.

Syntax

VIRTUALCHANNELCLOSE Virtualchannelclose;

UINT VCAPITYPE Virtualchannelclose(
  [in] DWORD openHandle
)
{...}

Parameters

[in] openHandle

Handle to the virtual channel. This is the handle returned in the pOpenHandle parameter of the VirtualChannelOpen function.

Return value

If the function succeeds, the return value is CHANNEL_RC_OK.

If an error occurs, the function returns one of the following values.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header cchannel.h

See also

VirtualChannelOpen