Share via


CvIsEnabled Function

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

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