WSManCloseOperation function

Cancels or closes an asynchronous operation. All resources that are associated with the operation are freed.

Syntax


DWORD WINAPI WSManCloseOperation(
  _Inout_opt_ HANDLE operationHandle,
              DWORD  flags
);

Parameters

operationHandle [in, out, optional]

Specifies the operation handle to be closed.

flags

Reserved for future use. Set to zero.

Return value

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

Remarks

The method de-allocates local and remote resources associated with the operation. After the WSManCloseOperation method is called, the operationHandle parameter cannot be passed to any other call. If the callback associated with the operation is pending and has not completed before WSManCloseOperation is called, the operation is marked for deletion and the method returns immediately.

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: