Skip to content

Latest commit

 

History

History
53 lines (45 loc) · 1.2 KB

File metadata and controls

53 lines (45 loc) · 1.2 KB
title ms.custom ms.date ms.technology ms.topic f1_keywords helpviewer_keywords ms.assetid author ms.author manager ms.workload
CvIsEnabled Function | Microsoft Docs
11/04/2016
vs-ide-debug
conceptual
cvmarkers/CvIsEnabledEx
cvmarkers/CvIsEnabled
CvIsEnabled method
CvIsEnabledEx method
2e4fea6d-758d-4150-8744-6102a1d58c1c
mikejo5000
mikejo
douge
multiple

CvIsEnabled function

Determines whether any session has enabled the specified ETW provider.

Syntax

HRESULT CvIsEnabled(  
   _In_ PCV_PROVIDER pProvider  
);  
HRESULT CvIsEnabledEx(  
   _In_ PCV_PROVIDER pProvider,  
   _In_ CV_IMPORTANCE level,  
   _In_ int category  
);  

Parameters

category
Category.

level
Importance level.

pProvider
Valid provider object. Cannot be NULL.

Return value

S_OK if provider is currently enabled. S_FALSE if provider is currently disabled. Error code in case there were any errors. Use FAILED macro to check for error condition and then check for S_OK/S_FALSE.

Requirements

Header: cvmarkers.h

See also

C++ library reference