WSMAN_PLUGIN_AUTHORIZE_RELEASE_CONTEXT callback function (wsman.h)

Releases the context that a plug-in reports from either WSManPluginAuthzUserComplete or WSManPluginAuthzOperationComplete. For a particular user, the context reported for both calls is allowed to be the same, as long as the plug-in infrastructure handles the scenario appropriately. This method is synchronous, and there are no callbacks that are called as a result.

This method will be called under the following scenarios:

  • After the operation is complete, the WSManPluginAuthzOperationComplete context is released. For some operations, such as get, the context will be released after the response is sent for the get operation. For more complex operations, such as enumeration, the context will not be released until the enumeration has completed.
  • When the user record times out due to inactivity, the WSManPluginAuthzUser method will be called again the next time a request comes in for that user.
  • If re-authorization needs to occur, the old context will be released after the new one is acquired. The old context will always be released regardless of whether the authorization succeeds.
The DLL entry point name for this method must be WSManPluginAuthzReleaseContext.

Syntax

WSMAN_PLUGIN_AUTHORIZE_RELEASE_CONTEXT WsmanPluginAuthorizeReleaseContext;

void WsmanPluginAuthorizeReleaseContext(
  [in] PVOID userAuthorizationContext
)
{...}

Parameters

[in] userAuthorizationContext

Specifies the context that was returned by either WSManPluginAuthzUserComplete or WSManPluginAuthzOperationComplete. If these methods return no context, this method will not be called.

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 with SP2, Windows Vista with SP1, and Windows Vista with SP2