WsGetErrorProperty function (webservices.h)

Retrieves a property of an WS_ERROR object referenced by the error parameter.

Syntax

HRESULT WsGetErrorProperty(
  WS_ERROR             *error,
  WS_ERROR_PROPERTY_ID id,
  void                 *buffer,
  ULONG                bufferSize
);

Parameters

error

A pointer to the WS_ERROR object with the property to retrieve.

id

An identifier of the property to retrieve.

buffer

A pointer referencing the location to store the retrieved property.

bufferSize

The number of bytes allocated by the caller to store the retrieved property.

Return value

This function can return one of these values.

Return code Description
E_INVALIDARG
The property id was not supported for this object or the specified buffer was not large enough for the value.
E_INVALIDARG
One or more arguments are invalid.
Other Errors
This function may return other errors not listed above.

Requirements

   
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