IWbemEventSink::SetBatchingParameters method (wbemprov.h)

The IWbemEventSink::SetBatchingParameters method is used to set the maximum event buffer size and its associated processing latency value.

Syntax

HRESULT SetBatchingParameters(
  LONG  lFlags,
  DWORD dwMaxBufferSize,
  DWORD dwMaxSendLatency
);

Parameters

lFlags

Determines batching behavior.

WBEM_FLAG_BATCH_IF_NEEDED (0)

System determines if batching is used.

WBEM_FLAG_MUST_BATCH (0x1)

Batching required.

WBEM_FLAG_MUST_NOT_BATCH (0x2)

Do not batch.

dwMaxBufferSize

Maximum batch buffer size. To specify maximum batch size, use MAX_INT.

dwMaxSendLatency

Maximum batch send latency. To specify infinite timeout, use WBEM_INFINITE.

Return value

This method returns an HRESULT indicating the status of the method call. The following list lists the value contained withinan HRESULT.

Requirements

   
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header wbemprov.h (include Wbemidl.h)
Library Wbemuuid.lib
DLL Wbemsvc.dll