ICrmMonitorLogRecords::GetLogRecord method (comsvcs.h)

Retrieves an unstructured log record given its numeric index.

Syntax

HRESULT GetLogRecord(
  [in]      DWORD            dwIndex,
  [in, out] CrmLogRecordRead *pCrmLogRec
);

Parameters

[in] dwIndex

The index of the required log record.

[in, out] pCrmLogRec

The log record, as a CrmLogRecordRead structure.

Return value

This method can return the following values.

Return code Description
S_OK
The method completed successfully.
E_POINTER
A NULL pointer was provided as an argument.
E_INVALIDARG
The index is out of range.
XACT_E_WRONGSTATE
Attempting to read unstructured records but written records are structured.
XACT_E_TRANSACTIONCLOSED
The transaction has completed, and the log records have been discarded from the log file. They are no longer available.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header comsvcs.h

See also

ICrmMonitorLogRecords