Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WsResetChannel function

Reset a channel so it can be reused.

Syntax


HRESULT WINAPI  WsResetChannel(
  _In_     WS_CHANNEL* channel,
  _In_opt_ WS_ERROR*   error
);

Parameters

channel [in]

The channel to reset.

error [in, optional]

Specifies where additional error information should be stored if the function fails.

Return value

This function can return one of these values.

Return codeDescription
WS_E_INVALID_OPERATION

The channel was in an inappropriate state.

 

Remarks

Reusing a channel instead of creating one from scratch may improve performance.

This function is only valid when the channel is in the either the WS_CHANNEL_STATE_CREATED or WS_CHANNEL_STATE_CLOSED state.

If called correctly, this function will not fail (for example, due to lack of system resources).

Requirements

Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

WebServices.h

Library

WebServices.lib

DLL

WebServices.dll

 

 

Community Additions

Show:
© 2016 Microsoft