WsGetOperationContextProperty function (webservices.h)

Returns a property of the specified operation context. It should be noted that the validity of these property is limited to the lifetime of the operation context itself.

Syntax

HRESULT WsGetOperationContextProperty(
  [in]           const WS_OPERATION_CONTEXT             *context,
  [in]           const WS_OPERATION_CONTEXT_PROPERTY_ID id,
                 void                                   *value,
  [in]           ULONG                                  valueSize,
  [in, optional] WS_ERROR                               *error
);

Parameters

[in] context

The context that the property value is being obtained for.

[in] id

The id of the property.

value

The address to place the retrieved value. The contents are not modified in case of a failure. The pointer must have an alignment compatible with the type of the property.

[in] valueSize

The size of the buffer that the caller has allocated for the retrieved value.

[in, optional] error

Specifies where additional error information should be stored if the function fails.

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header webservices.h
Library WebServices.lib
DLL WebServices.dll