WSManCloseShell function (wsman.h)

Deletes a shell object and frees the resources associated with the shell.

Syntax

void WSManCloseShell(
  [in, out, optional] WSMAN_SHELL_HANDLE shellHandle,
                      DWORD              flags,
  [in]                WSMAN_SHELL_ASYNC  *async
);

Parameters

[in, out, optional] shellHandle

Specifies the shell handle to close. This handle is returned by a WSManCreateShell call. This parameter cannot be NULL.

flags

Reserved for future use. Must be set to zero.

[in] async

Defines an asynchronous structure. The asynchronous structure contains 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 7
Minimum supported server Windows Server 2008 R2
Target Platform Windows
Header wsman.h
Library WsmSvc.lib
DLL WsmSvc.dll
Redistributable Windows Management Framework on Windows Server 2008 with SP2 and Windows Vista with SP2