Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
WSMAN_PLUGIN_SEND

WSMAN_PLUGIN_SEND callback function

Defines the send callback for a plug-in. This function is called for each object that is received from a client. Each object received causes the callback to be called once. After the data is processed, the Windows Remote Management (WinRM) plug-in calls WSManPluginOperationComplete to acknowledge receipt and to allow the next object to be delivered.

The DLL entry point name must be WSManPluginSend.

Syntax


VOID WINAPI WSManPluginSend(
   WSMAN_PLUGIN_REQUEST *requestDetails,
   DWORD                flags,
   PVOID                shellContext,
   PVOID                commandContext,
   PCWSTR               stream,
   WSMAN_DATA           *inboundData
);

typedef void (*WSMAN_PLUGIN_SEND)(
    _In_ WSMAN_PLUGIN_REQUEST *requestDetails,
    _In_ DWORD                flags,
    _In_ PVOID                shellContext,
    _In_ PVOID                commandContext,
    _In_ PCWSTR               stream,
    _In_ WSMAN_DATA           *inboundData
);

Parameters

requestDetails

A pointer to a WSMAN_PLUGIN_REQUEST structure that specifies the resource URI, options, locale, shutdown flag, and handle for the request.

flags

If this is the last object for the stream, this parameter is set to WSMAN_FLAG_NO_MORE_DATA. Otherwise, it is set to zero.

shellContext

Specifies the context that was received when the shell was created.

commandContext

If this request is aimed at a command and not a shell, this is the context returned from the winrm create operation; otherwise, this parameter is NULL.

stream

Specifies the stream that is associated with the inbound object.

inboundData

A pointer to a WSMAN_DATA structure that contains data being sent to the specified stream. It is in the form of binary data.

Return value

This callback 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, Windows Server 2003 with SP2, Windows Vista with SP1, and Windows Vista with SP2

Header

Wsman.h

 

 

Show:
© 2015 Microsoft