Post · 2 min read· pp. 1756–1757

JobFlags in the EJOB

Windows 8 formalised the nature of the old JobFlags member of the EJOB by putting it in a union with a structure of ULONG bit fields. These have been remarkably stable. With only one exception, all changes just define new bits at the most significant end. By the 1703 release of Windows 10, no spare bits remained and additions continue into a JobFlags2.

MaskDefinitionVersions
0x00000001ULONG CloseDone : 1;6.2 and higher
0x00000002ULONG MultiGroup : 1;6.2 and higher
0x00000004ULONG OutstandingNotification : 1;6.2 and higher
0x00000008ULONG NotificationInProgress : 1;6.2 and higher
0x00000010ULONG UILimits : 1;6.2 and higher
0x00000020ULONG CpuRateControlActive : 1;6.2 and higher
0x00000040ULONG OwnCpuRateControl : 1;6.2 and higher
0x00000080ULONG Terminating : 1;6.2 and higher
0x00000100ULONG WorkingSetLock : 1;6.2 and higher
0x00000200ULONG JobFrozen : 1;6.2 and higher
0x00000400ULONG Background : 1;6.2 and higher
0x00000800ULONG WakeNotificationAllocated : 1;6.2 and higher
0x00001000ULONG WakeNotificationEnabled : 1;6.2 and higher
0x00002000ULONG WakeNotificationPending : 1;6.2 and higher
0x00004000ULONG LimitNotificationRequired : 1;6.2 and higher
0x00008000ULONG ZeroCountNotificationRequired : 1;6.2 and higher
0x00010000ULONG CycleTimeNotificationRequired : 1;6.2 and higher
0x00020000ULONG CycleTimeNotificationPending : 1;6.2 and higher
0x00040000ULONG TimersVirtualized : 1;6.2 and higher
0x00080000ULONG JobSwapped : 1;6.2 and higher
0x00100000ULONG ViolationDetected : 1;6.2 and higher
0x00200000ULONG EmptyJobNotified : 1;6.2 and higher
0x00400000ULONG NoSystemCharge : 1;6.2 and higher
0x00800000ULONG DropNoWakeCharges : 1;6.3 and higher
0x01000000ULONG NoWakeChargePolicyDetected : 1;6.3 and higher
0x02000000ULONG NetRateControlActive : 1;10.0 and higher
0x04000000ULONG OwnNetRateControl : 1;10.0 and higher
0x08000000ULONG IoRateControlActive : 1;10.0 and higher
0x10000000ULONG OwnIoRateControl : 1;10.0 and higher
0x20000000ULONG IsContainerRoot : 1;10.0 only
ULONG DisallowNewProcesses : 1;1511 and higher
0x40000000ULONG Silo : 1;1607 and higher
0x80000000ULONG ContainerTelemetryIdSet : 1;1703 and higher
ULONG SpareJobFlags : 9;6.2 only
ULONG SpareJobFlags : 7;6.3 only
ULONG SpareJobFlags : 2;10.0 to 1511
ULONG Spare : 1;1607 only

The Silo flag that was added for Version 1607 marks in some sense the completion of Microsoft’s faltering progress from implementing silos as their own type of object, as for the original Windows 10, to making them a special type of job object. Version 1511 had already done away with the silo object: a job is a silo if it has a SILO_CONTEXT pointed to from its Container member. In Version 1607 and higher, the one indicator that a job is a silo is the set Silo bit. If in addition an EJOB has ServerSiloGlobals pointing to an ESERVERSILO_GLOBALS, then the job is specifically a server silo.