Retrieves output from a running command or from the shell.
void WSManReceiveShellOutput( WSMAN_SHELL_HANDLE shell, WSMAN_COMMAND_HANDLE command, DWORD flags, WSMAN_STREAM_ID_SET *desiredStreamSet, WSMAN_SHELL_ASYNC *async, WSMAN_OPERATION_HANDLE *receiveOperation );
Specifies the shell handle returned by a WSManCreateShell call. This parameter cannot be NULL.
Specifies the command handle returned by a WSManRunShellCommand call.
Reserved for future use. Must be set to zero.
Specifies the requested output from a particular stream or a list of streams.
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 and should be closed by calling the WSManCloseOperation method.
Defines the operation handle for the receive operation. This handle is returned from a successful call of the function and can be used to asynchronously cancel the receive operation. This handle should be closed by calling the WSManCloseOperation method. This parameter cannot be NULL.
This function does not return a value.
|Windows version||Windows 7 Windows Server 2008 R2|