WSManCloseShell function

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

Syntax


void WINAPI WSManCloseShell(
  _Inout_opt_ HANDLE            shellHandle,
              DWORD             flags,
  _In_        WSMAN_SHELL_ASYNC *async
);

Parameters

shellHandle [in, out, optional]

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.

async [in]

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

This function does not return a value.

Requirements

Minimum supported client

Windows 7

Minimum supported server

Windows Server 2008 R2

Redistributable

Windows Management Framework on Windows Server 2008 with SP2 and Windows Vista with SP2

Header

Wsman.h

Library

WsmSvc.lib

DLL

WsmSvc.dll

 

 

Show: