WSMAN_SHELL_ASYNC structure (wsman.h)

Defines an asynchronous structure to be passed to all shell operations. It contains an optional user context and the callback function.

Syntax

typedef struct _WSMAN_SHELL_ASYNC {
  PVOID                           operationContext;
  WSMAN_SHELL_COMPLETION_FUNCTION completionFunction;
} WSMAN_SHELL_ASYNC;

Members

operationContext

Specifies the optional user context associated with the operation.

completionFunction

Specifies the WSMAN_SHELL_COMPLETION_FUNCTION callback function for the operation.

Requirements

Requirement Value
Minimum supported client Windows 7
Minimum supported server Windows Server 2008 R2
Header wsman.h
Redistributable Windows Management Framework on Windows Server 2008 with SP2, Windows Vista with SP1, and Windows Vista with SP2