Share via


VirtualChannelClose (Windows Embedded CE 6.0)

1/6/2010

This function closes the client end of a virtual channel.

Syntax

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 Value

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

Header cchannel.h
Library Developer Implemented
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

RDP Functions