CvWriteMessage, fonctionCvWriteMessage Function

Écrit un message dans le fichier de trace du visualiseur concurrentiel.Writes a message to the Concurrency Visualizer trace file.

SyntaxeSyntax

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

HRESULT CvWriteMessageA(  
    PCV_MARKERSERIES pMarkerSeries,  
    _In_ PCSTR pMessage,  
    ...  
    );  

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

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

HRESULT CvWriteMessageExW(  
    _In_reads_bytes_(16) PCV_MARKERSERIES pMarkerSeries,  
    _In_ CV_IMPORTANCE level,  
    _In_ int category,  
    _In_ PCWSTR pMessage,  
    ...  
    );  

HRESULT CvWriteMessageExA(  
    _In_reads_bytes_(16) PCV_MARKERSERIES pMarkerSeries,  
    _In_ CV_IMPORTANCE level,  
    _In_ int category,  
    _In_ PCSTR pMessage,  
    ...  
    );  

HRESULT CvWriteMessageExVW(  
    _In_reads_bytes_(16) PCV_MARKERSERIES pMarkerSeries,  
    _In_ CV_IMPORTANCE level,  
    _In_ int category,  
    _In_ PCWSTR pMessage,  
    _In_ va_list argList);  

HRESULT CvWriteMessageExVA(  
    _In_reads_bytes_(16) PCV_MARKERSERIES pMarkerSeries,  
    _In_ CV_IMPORTANCE level,  
    _In_ int category,  
    _In_ PCSTR pMessage,  
    _In_ va_list argList);  

ParamètresParameters

argList
Liste d’arguments.List of arguments.

category
Catégorie de l’intervalleCategory of the span

level
Niveau d’importance de l’intervalle.Importance level of the span.

pMarkerSeries
Contexte valide de la série de marqueurs.Valid marker series context. Ne peut pas être Null.Cannot be NULL.

pMessage
Chaîne de format de message.Message format string. Ne peut pas être Null.Cannot be NULL.

Valeur de retourReturn Value

S_OK lorsque le message est correctement écrit.S_OK when the message is successfully written. Code d’erreur en cas d’erreur.Error code in case there were any errors. Utilisez les macros SUCCEEDED/FAILED pour vérifier la condition d’erreur.Use SUCCEEDED/FAILED macros to check for error condition.

Configuration requiseRequirements

En-tête : cvmarkers.hHeader: cvmarkers.h

Unicode : CvWriteMessageW, CvWriteMessageVW, CvWriteMessageExW, CvWriteMessageExVWUnicode: CvWriteMessageW, CvWriteMessageVW, CvWriteMessageExW, CvWriteMessageExVW

ANSI : CvWriteMessageA, CvWriteMessageVA, CvWriteMessageExA, CvWriteMessageExVAANSI: CvWriteMessageA, CvWriteMessageVA, CvWriteMessageExA, CvWriteMessageExVA

Voir aussiSee Also

Informations de référence sur la bibliothèque C++C++ Library Reference