Inherits IDispatch.
Classes | |
struct | TraceMessage |
Public Types |
Public Member Functions | |
HRESULT | GetNewestMessageIndex ([out, retval] LONGLONG *newestIndex) |
HRESULT | GetOldestMessageIndex ([out, retval] LONGLONG *oldestIndex) |
HRESULT | ReadBuffer ([in] LONGLONG startIndex, [in] LONG numElements, [out, retval] SAFEARRAY(struct TraceMessage)*messages) |
Definition of the IBuffer interface to access settings of a single trace buffer.
Use the IBuffer interface to access the settings, configuration and status of a single trace buffer object.
Definition at line 71 of file IBuffer.idl.
enum IBuffer::TraceType |
This enumeration defines the different types of messages that can be found in a trace buffer.
Enumerator | |
---|---|
TRACE_TYPE_OTHER |
Unspecified message type. |
TRACE_TYPE_MESSAGE |
Message is log. |
TRACE_TYPE_WARNING |
Message is warning. |
TRACE_TYPE_ERROR |
Message is error. |
Definition at line 75 of file IBuffer.idl.
HRESULT IBuffer::GetNewestMessageIndex | ( | [out, retval] LONGLONG * | newestIndex | ) |
This function returns the message index of the newest message available in the given trace buffer. You can use this information for subsequent calls to mlpiTraceReadBuffer
to read the newest messages in the buffer.
[out] | newestIndex | Index of the newest available trace message. |
mlpiTraceGetNewestMessageIndex
, where you can find further documentation. HRESULT IBuffer::GetOldestMessageIndex | ( | [out, retval] LONGLONG * | oldestIndex | ) |
This function returns the message index of the oldest message available in the given trace buffer. You can use this information for subsequent calls to mlpiTraceReadBuffer
to read the oldest messages in the buffer.
[out] | oldestIndex | Index of the oldest available trace message. |
mlpiTraceGetOldestMessageIndex
, where you can find further documentation. HRESULT IBuffer::ReadBuffer | ( | [in] LONGLONG | startIndex, |
[in] LONG | numElements, | ||
[out, retval] SAFEARRAY(struct TraceMessage)* | messages | ||
) |
This function reads messages of the given buffer and returns them as an array.
[in] | startIndex | Index of the first message to read. Should be between the indices of GetNewestMessageIndex and GetOldestMessageIndex. |
[in] | numElements | Array size of buffer given to function in number of elements. |
[out] | messages | Returns the array of messages read. |
mlpiTraceReadBuffer
, where you can find further documentation.