Windows Dev Center

WSManDeinitialize function

Deinitializes the Windows Remote Management client stack. All operations must be complete before a call to this function will return. This is a synchronous call. It is recommended that all operations are explicitly canceled and that all sessions are closed before calling this function.

Syntax


DWORD WINAPI WSManDeinitialize(
  _Inout_opt_ HANDLE apiHandle,
              DWORD  flags
);

Parameters

apiHandle [in, out, optional]

Specifies the API handle returned by a WSManInitialize call. This parameter cannot be NULL.

flags

Reserved for future use. Must be zero.

Return value

This method returns zero on success. Otherwise, this method returns an error code.

Requirements

Minimum supported client

Windows 7

Minimum supported server

Windows Server 2008 R2

Redistributable

Windows Management Framework on Windows Server 2008 with SP2, Windows Server 2003 with SP2, Windows Vista with SP1, and Windows Vista with SP2

Header

Wsman.h

Library

WsmSvc.lib

DLL

WsmSvc.dll

 

 

Show:
© 2015 Microsoft