Returns a pointer to an interface on the custom error object.
HRESULT GetCustomErrorObject ( ULONG ulRecordNum, REFIID riid, IUnknown **ppObject);
[in] The zero-based number of the record for which to return a custom error object.
[in] The IID of the interface to return.
[out] A pointer to memory in which to return an interface pointer on the custom error object. If there is no custom error object, a null pointer is returned; that is, *ppObject is a null pointer.
The method succeeded.
ppObject was a null pointer.
The custom error object did not support the interface specified in riid.
ulRecordNum, which is zero-based, was greater than or equal to the count, which is one-based, of records returned by IErrorRecords::GetRecordCount.
This method should be used only by consumers; there are no reasons for providers to use it.