VirtualChannelClose

This function closes the client end of a virtual channel.

UINT VCAPITYPE VirtualChannelClose(
  DWORD openHandle
);

Parameters

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

Return Values

The following table shows the return values for this function.

Value Description
CHANNEL_RC_OK The channel was successfully closed.
CHANNEL_RC_BAD_CHANNEL_HANDLE The openHandle parameter is not valid.
CHANNEL_RC_NOT_OPEN The channel is not open.

Remarks

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

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Cchannel.h.
Link Library: Developer-implemented.

See Also

RDP Reference

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.