RpcErrorLoadErrorInfo function (rpcasync.h)

The RpcErrorLoadErrorInfo function converts a BLOB obtained by a call to RpcErrorSaveErrorInfo into extended error information.

Syntax

RPC_STATUS RpcErrorLoadErrorInfo(
  [in]  PVOID                 ErrorBlob,
  [in]  size_t                BlobSize,
  [out] RPC_ERROR_ENUM_HANDLE *EnumHandle
);

Parameters

[in] ErrorBlob

Pointer to the BLOB containing the error information.

[in] BlobSize

Size of ErrorBlob, in bytes.

[out] EnumHandle

Pointer to the enumeration handle associated with the extended error information.

Return value

Successful completion returns RPC_S_OK. The RpcErrorLoadInfo function call can fail if not enough memory is available.

Note  For a list of valid error codes, see RPC Return Values.
 

Remarks

The BLOB pointed to in ErrorBlob remains the responsibility of the caller. The resulting enumeration is ready for enumeration. EnumHandle is subject to the same requirements of the EnumHandle parameter for RpcErrorStartEnumeration. Once enumeration is completed, resources allocated by the enumeration should be freed using the RpcErrorEndEnumeration function.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps | UWP apps]
Minimum supported server Windows Server 2003 [desktop apps | UWP apps]
Target Platform Windows
Header rpcasync.h (include Rpc.h)
Library Rpcrt4.lib
DLL Rpcrt4.dll

See also

Obtaining Extended RPC Error Information

RPC_ERROR_ENUM_HANDLE

RpcErrorEndEnumeration

RpcErrorSaveErrorInfo

RpcErrorStartEnumeration