SysmonBatchReason enumeration

Defines the reason for locking the System Monitor.

Syntax


typedef enum  { 
  SysmonBatchNone         = 0,
  SysmonBatchAddFiles     = 1,
  SysmonBatchAddCounters  = 2
} SysmonBatchReason;

Constants

SysmonBatchNone

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

Prevents the System Monitor from sampling the file immediately when you use ILogFiles.Add to add a log file to the collection.

SysmonBatchAddCounters

Prevents the System Monitor from sampling the counter immediately when you use ICounters.Add to add a counter to the collection.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

ISysmon.h

See also

SystemMonitor.BatchingLock

 

 

Community Additions

ADD
Show:
© 2014 Microsoft