VerifySnapshotSupported

Queries event tracing session the periodic capture state limits.

Syntax

HRESULT VerifySnapshotSupported
([in] TRACEHANDLE traceHandle,
[in, out] ULONG* frequencyInSeconds,
  [in, out] ULONG cProviders);

Parameters

traceHandle
[in] A handle of the event tracing session that wants to capture the specified information. The StartTrace function returns this handle.
frequencyInSeconds
[in] The frequency of state captures in seconds.
cProviders
[in] The number of providers.

Return Value

The following table describes possible return values.

Return Value Description
S_OK The given frequency and providers are within limits.
E_WPRC_BELOW_FREQUENCY_THRESHOLD Frequency is below minimum threshold, increase frequency.
E_WPRC_EXCEEDED_PROVIDER_COUNT_LIMIT Provider count limit exceeded, reduce number of providers.