EtwGetTraitFromProviderTraits function (evntcons.h)

Retrieves an individual trait from the ETW provider.

Syntax

EVNTCONS_INLINE VOID EtwGetTraitFromProviderTraits(
  [in]  PVOID   ProviderTraits,
  [in]  UCHAR   TraitType,
  [out] PVOID   *Trait,
  [out] PUSHORT Size
);

Parameters

[in] ProviderTraits

The Provider traits.

[in] TraitType

The ETW_PROVIDER_TRAIT_TYPE.

[out] Trait

The Provider trait.

[out] Size

The trait size.

Return value

Returns ERROR_SUCCESS if successful.

Remarks

Providers are applications that can generate event logs.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header evntcons.h