Post · 1 min read· pp. 1311–1312

Flags in the WMI_LOGGER_CONTEXT

Bit fields in union with the Flags member were introduced to the WMI_LOGGER_CONTEXT for Windows Vista. Some bits had been their own (larger) members.

MaskDefinitionVersionsRemarks
0x00000001ULONG Persistent : 1;6.0 and higher
0x00000002ULONG AutoLogger : 1;6.0 and higher
0x00000004ULONG FsReady : 1;6.0 and higher
0x00000008ULONG RealTime : 1;6.0 and higher
0x00000010ULONG Wow : 1;6.0 and higherpreviously ULONG
0x00000020ULONG KernelTrace : 1;6.0 and higherpreviously ULONG as KernelTraceOn
0x00000040ULONG NoMoreEnable : 1;6.0 and higher
0x00000080ULONG StackTracing : 1;6.1 and higher
0x00000100ULONG ErrorLogged : 1;6.1 and higher
0x00000200ULONG RealtimeLoggerContextFreed : 1;6.1 and higherpreviously BOOLEAN
0x00000400ULONG PebsTracing : 1;6.2 and higher
0x00000800ULONG PmcCounters : 1;6.2 and higher
0x00001000ULONG PageAlignBuffers : 1;6.2 and higher
0x00002000ULONG StackLookasideListAllocated : 1;10.0 and higher
0x00004000ULONG SecurityTrace : 1;10.0 and higher
0x00008000ULONG LastBranchTracing : 1;1709 and higher
ULONG SpareFlags1 : 3;6.2 to 6.3
ULONG SpareFlags1 : 1;10.0 to 1703
0x00FF0000ULONG SystemLoggerIndex : 8;6.2 and higher
0x01000000ULONG StackCaching : 1;6.2 and higher
0x02000000ULONG ProviderTracking : 1;1803 and higher
0x04000000ULONG ProcessorTrace : 1;1803 and higher
0x08000000ULONG QpcDeltaTracking : 1;1809 and higher
0x10000000ULONG MarkerBufferSaved : 1;1903 and higher
0x20000000ULONG LargeMdlPages : 1;2004 and higher
0x40000000ULONG ExcludeKernelStack : 1;2004 and higher
ULONG SpareFlags2 : 7;6.2 to 1709
ULONG SpareFlags2 : 5;1803 only
ULONG SpareFlags2 : 4;1809 only
ULONG SpareFlags2 : 3;1903 only
ULONG SpareFlags2 : 1;2004 and higher

The Persistent and AutoLogger bits are set from the 0x01 and 0x02 bits, respectively, in the Flags member of the WMI_LOGGER_INFORMATION.