SysmonBatchReason enumeration (isysmon.h)

Defines the reason for locking the System Monitor.

Syntax

typedef enum __MIDL___MIDL_itf_sysmon_0000_0000_0003 {
  sysmonBatchNone = 0,
  sysmonBatchAddFiles = 1,
  sysmonBatchAddCounters = 2,
  sysmonBatchAddFilesAutoCounters = 3
} SysmonBatchReason;

Constants

 
sysmonBatchNone
Value: 0
Use to free all locks. Typically, you call SystemMonitor.BatchingLock with the same reason you used to gain the lock. For example, if you gained the lock using SysmonBatchAddFiles, you would use SysmonBatchAddFiles when releasing the lock.
sysmonBatchAddFiles
Value: 1
Prevents the System Monitor from sampling the file immediately when you use ILogFiles.Add to add a log file to the
collection.
sysmonBatchAddCounters
Value: 2
Prevents the System Monitor from sampling the counter immediately when you use ICounters.Add to add a counter to the collection.
sysmonBatchAddFilesAutoCounters
Value: 3
TBD

Requirements

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

See also

SystemMonitor.BatchingLock