DdqIsDiagnosticRecordSampledIn function

Fetches the sampled-in state of the device for an event.

Syntax

HRESULT DdqIsDiagnosticRecordSampledIn(
  HDIAGNOSTIC_DATA_QUERY_SESSION hSession,
  const GUID                     *providerGroup,
  const GUID                     *providerId,
  PCWSTR                         providerName,
  const UINT32                   *eventId,
  PCWSTR                         eventName,
  const UINT32                   *eventVersion,
  const UINT64                   *eventKeywords,
  BOOL                           *isSampledIn
);

Parameters

hSession

Type: HANDLE Handle to the Diagnostic Data Query session.

providerGroup

Type: GUID* Pointer to the provider group GUID.

providerId

Type: GUID* Pointer to the provider GUID.

providerName

Type: PCWSTR The name of the provider.

eventId

Type: UNI32* Pointer to the event ID.

eventName

Type: PCWSTR The name of the event.

eventVersion

Type: UINT32* The version of the event.

eventKeywords

Type: UINT64* Pointer to the event keywords.

isSampledIn

Type: BOOL* This output parameter is a pointer to a boolean value that is TRUE if the event is sampled in and FALSE otherwise.

Return value

Type: HRESULT Returns S_OK on successful completion.

Remarks

For more information about events and providers, see Event Tracing.

Requirements

   
Minimum supported client Windows 10, version 2004 (10.0; Build 19041)
Minimum supported server Windows Server, version 2004 (10.0; Build 19041)
Header diagnosticdataquery.h