WSManPluginGetOperationParameters function (wsman.h)
Gets operational information for items such as time-outs and data restrictions that are associated with the operation. A plug-in should not use these parameters for anything other than informational purposes.
Syntax
DWORD WSManPluginGetOperationParameters(
[in] WSMAN_PLUGIN_REQUEST *requestDetails,
[in] DWORD flags,
[out] WSMAN_DATA *data
);
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
Specifies the options that are available for retrieval. This parameter must be set to either one of the following values or to a value defined by the plug-in.
WSMAN_PLUGIN_PARAMS_MAX_ENVELOPE_SIZE (1)
Specifies the maximum size of the operation response packet. The size includes the size of the data along with the Simple Object Access Protocol (SOAP) overhead.
WSMAN_PLUGIN_PARAMS_TIMEOUT (2)
Specifies the time-out of the current operation.
WSMAN_PLUGIN_PARAMS_REMAINING_RESULT_SIZE (3)
Specifies how much space is left for data for the current operation. The size is based on the type of operation. For example, this flag would represent how large the single result item can be for a get operation. For enumerations, the size will decrease after each object is added. After the current packet has been filled with enumerations and get operations, it will be returned to the client even though more data is being accepted and cached.
WSMAN_PLUGIN_PARAMS_LARGEST_RESULT_SIZE (4)
Specifies the maximum size of the data for the current operation.
WSMAN_PLUGIN_PARAMS_GET_REQUESTED_LOCALE (5)
Specifies the language locale that was requested by the client for the operation.
WSMAN_PLUGIN_PARAMS_GET_REQUESTED_DATA_LOCALE (6)
Specifies the language locale of the data that was requested by the client.
[out] data
A pointer to a WSMAN_DATA structure that specifies the result object.
Return value
The method returns NO_ERROR if it succeeded; otherwise, it returns an error code. The following are the most common error codes:
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 |
Minimum supported server | Windows Server 2008 R2 |
Target Platform | Windows |
Header | wsman.h |
Library | WsmSvc.lib |
DLL | WsmSvc.dll |
Redistributable | Windows Management Framework on Windows Server 2008 with SP2 and Windows Vista with SP2 |