RpcErrorGetNumberOfRecords function (rpcasync.h)

The RpcErrorGetNumberOfRecords function returns the number of records in the extended error information.

Syntax

RPC_STATUS RpcErrorGetNumberOfRecords(
  [in]  RPC_ERROR_ENUM_HANDLE *EnumHandle,
  [out] int                   *Records
);

Parameters

[in] EnumHandle

Pointer to the enumeration handle.

[out] Records

Number of records for the extended error information.

Return value

Successful completion returns RPC_S_OK. The RpcErrorGetNumberOfRecords function call cannot fail unless its parameters are invalid.

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

Remarks

The RpcErrorGetNumberOfRecords function returns the total number of records in the extended error information, not the number of records from the current cursor location.

Requirements

   
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

RpcErrorStartEnumeration