C# 클래스 RestrictedProcess.JobObjects.BasicLimitInformation

파일 보기 프로젝트 열기: NikolayIT/RestrictedProcess.NET 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ActiveProcessLimit int
Affinity System.UIntPtr
LimitFlags uint
MaximumWorkingSetSize System.UIntPtr
MinimumWorkingSetSize System.UIntPtr
PerJobUserTimeLimit long
PerProcessUserTimeLimit long
PriorityClass uint
SchedulingClass uint

프로퍼티 상세

ActiveProcessLimit 공개적으로 프로퍼티

If LimitFlags specifies JOB_OBJECT_LIMIT_ACTIVE_PROCESS, this member is the active process limit for the job. Otherwise, this member is ignored. If you try to associate a process with a job, and this causes the active process count to exceed this limit, the process is terminated and the association fails.
public int ActiveProcessLimit
리턴 int

Affinity 공개적으로 프로퍼티

If LimitFlags specifies JOB_OBJECT_LIMIT_AFFINITY, this member is the processor affinity for all processes associated with the job. Otherwise, this member is ignored. The affinity must be a subset of the system affinity mask obtained by calling the GetProcessAffinityMask function. The affinity of each thread is set to this value, but threads are free to subsequently set their affinity, as long as it is a subset of the specified affinity mask. Processes cannot set their own affinity mask.
public UIntPtr,System Affinity
리턴 System.UIntPtr

LimitFlags 공개적으로 프로퍼티

The limit flags that are in effect. This member is a bitfield that determines whether other structure members are used.
public uint LimitFlags
리턴 uint

MaximumWorkingSetSize 공개적으로 프로퍼티

If LimitFlags specifies JOB_OBJECT_LIMIT_WORKINGSET, this member is the maximum working set size for each process associated with the job. Otherwise, this member is ignored. If MinimumWorkingSetSize is nonzero, MaximumWorkingSetSize cannot be zero.
public UIntPtr,System MaximumWorkingSetSize
리턴 System.UIntPtr

MinimumWorkingSetSize 공개적으로 프로퍼티

If LimitFlags specifies JOB_OBJECT_LIMIT_WORKINGSET, this member is the minimum working set size for each process associated with the job. Otherwise, this member is ignored. If MaximumWorkingSetSize is nonzero, MinimumWorkingSetSize cannot be zero.
public UIntPtr,System MinimumWorkingSetSize
리턴 System.UIntPtr

PerJobUserTimeLimit 공개적으로 프로퍼티

If LimitFlags specifies JOB_OBJECT_LIMIT_JOB_TIME, this member is the per-job user-mode execution time limit, in 100-nanosecond ticks. Otherwise, this member is ignored. The system adds the current time of the processes associated with the job to this limit. For example, if you set this limit to 1 minute, and the job has a process that has accumulated 5 minutes of user-mode time, the limit actually enforced is 6 minutes. The system periodically checks to determine whether the sum of the user-mode execution time for all processes is greater than this end-of-job limit. If it is, the action specified in the EndOfJobTimeAction member of the JOBOBJECT_END_OF_JOB_TIME_INFORMATION structure is carried out. By default, all processes are terminated and the status code is set to ERROR_NOT_ENOUGH_QUOTA. To register for notification when this limit is exceeded without terminating processes, use the SetInformationJobObject function with the JobObjectNotificationLimitInformation information class.
public long PerJobUserTimeLimit
리턴 long

PerProcessUserTimeLimit 공개적으로 프로퍼티

If LimitFlags specifies JOB_OBJECT_LIMIT_PROCESS_TIME, this member is the per-process user-mode execution time limit, in 100-nanosecond ticks. Otherwise, this member is ignored. The system periodically checks to determine whether each process associated with the job has accumulated more user-mode time than the set limit. If it has, the process is terminated. If the job is nested, the effective limit is the most restrictive limit in the job chain.
public long PerProcessUserTimeLimit
리턴 long

PriorityClass 공개적으로 프로퍼티

If LimitFlags specifies JOB_OBJECT_LIMIT_PRIORITY_CLASS, this member is the priority class for all processes associated with the job. Otherwise, this member is ignored. Processes and threads cannot modify their priority class. The calling process must enable the SE_INC_BASE_PRIORITY_NAME privilege.
public uint PriorityClass
리턴 uint

SchedulingClass 공개적으로 프로퍼티

If LimitFlags specifies JOB_OBJECT_LIMIT_SCHEDULING_CLASS, this member is the scheduling class for all processes associated with the job. Otherwise, this member is ignored. The valid values are 0 to 9. Use 0 for the least favorable scheduling class relative to other threads, and 9 for the most favorable scheduling class relative to other threads. By default, this value is 5. To use a scheduling class greater than 5, the calling process must enable the SE_INC_BASE_PRIORITY_NAME privilege.
public uint SchedulingClass
리턴 uint