WSMAN_PLUGIN_CONNECT callback function (wsman.h)

Defines the connect callback for a plug-in.

The DLL entry point name must be WSManPluginConnect.

Syntax

WSMAN_PLUGIN_CONNECT WsmanPluginConnect;

void WsmanPluginConnect(
  [in]           WSMAN_PLUGIN_REQUEST *requestDetails,
  [in]           DWORD flags,
  [in]           PVOID shellContext,
  [in, optional] PVOID commandContext,
  [in, optional] WSMAN_DATA *inboundConnectInformation
)
{...}

Parameters

[in] requestDetails

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

[in] flags

Reserved for future use. Must be set to zero.

[in] shellContext

Specifies the context returned from creating the shell for which this connection request needs to be associated.

[in, optional] 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.

[in, optional] inboundConnectInformation

A pointer to a WSMAN_DATA structure that specifies an optional inbound object that contains extra data for the connection.

Return value

None

Requirements

Requirement Value
Minimum supported client Windows 7
Minimum supported server Windows Server 2008 R2
Target Platform Windows
Header wsman.h
Redistributable Windows Management Framework on Windows Server 2008 and Windows Vista