WdsTransportClientCancelSession function

Releases the resources associated with a session in the client.

Syntax


DWORD WDSTCIAPI WdsTransportClientCancelSession(
  _In_ HANDLE hSessionKey
);

Parameters

hSessionKey [in]

Unique handle returned by the call to WdsTransportClientInitializeSession. This session will eventually complete with an error code of ERROR_CANCELLED to the callback PFN_WdsTransportClientSessionComplete callback.

Return value

If the function succeeds, the return value is ERROR_SUCCESS.

Remarks

It is safe to call this function from within a callback.

Requirements

Minimum supported client

Windows Vista with SP1 [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Wdstci.h

Library

Wdstptc.lib

DLL

Wdstptc.dll

 

 

Community Additions

ADD
Show: