Bagikan melalui


CvWriteAlert Function

Writes an alert to the Concurrency Visualizer trace file.

HRESULT CvWriteAlertW(
    _In_reads_bytes_(16) PCV_MARKERSERIES pMarkerSeries,
    _In_ PCWSTR pMessage,
    ...
    );

HRESULT CvWriteAlertA(
    _In_reads_bytes_(16) PCV_MARKERSERIES pMarkerSeries,
    _In_ PCSTR pMessage,
    ...
    );

HRESULT CvWriteAlertVW(
    _In_reads_bytes_(16) PCV_MARKERSERIES pMarkerSeries,
    _In_ PCWSTR pMessage,
    _In_ va_list argList);

HRESULT CvWriteAlertVA(
    _In_reads_bytes_(16) PCV_MARKERSERIES pMarkerSeries,
    _In_ PCSTR pMessage,
    _In_ va_list argList);

Parameters

  • argList
    List of arguments.

  • pMarkerSeries
    Valid marker series context. Cannot be NULL.

  • pMessage
    Message format string. Cannot be NULL.

Return Value

S_OK when the message is successfully written. Error code in case there were any errors. Use SUCCEEDED/FAILED macros to check for error condition.

Requirements

Header: cvmarkers.h

Unicode: CvWriteAlertW, CvWriteAlertVW

ANSI: CvWriteAlertA, CvWriteAlertVA

See Also

Concepts

C++ Library Reference