WSManReconnectShellCommand function (wsman.h)

Reconnects a previously disconnected command.

Syntax

void WSManReconnectShellCommand(
  [in, out] WSMAN_COMMAND_HANDLE commandHandle,
            DWORD                flags,
  [in]      WSMAN_SHELL_ASYNC    *async
);

Parameters

[in, out] commandHandle

Specifies the handle returned by a WSManRunShellCommand call or a WSManConnectShellCommand call. This parameter cannot be NULL.

flags

Reserved for future use. Must be set to zero.

[in] async

Defines an asynchronous structure which will contain an optional user context and a mandatory callback function. See the WSMAN_SHELL_ASYNC structure for more information. This parameter cannot be NULL.

Return value

None

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Target Platform Windows
Header wsman.h
Library WsmSvc.lib
DLL WsmSvc.dll