2003-03-15 Bang Jun-Young <junyoung@netbsd.org>
* winnt.h (JOBOBJECTINFOCLASS): Define enum. (JOBOBJECT_*): Define corresponding structures.
This commit is contained in:
parent
1c53cd00ba
commit
5b537130a3
|
@ -1,3 +1,8 @@
|
||||||
|
2003-03-15 Bang Jun-Young <junyoung@netbsd.org>
|
||||||
|
|
||||||
|
* winnt.h (JOBOBJECTINFOCLASS): Define enum.
|
||||||
|
(JOBOBJECT_*): Define corresponding structures.
|
||||||
|
|
||||||
2003-03-13 Danny Smith <dannysmith@users.sourceforge.net>
|
2003-03-13 Danny Smith <dannysmith@users.sourceforge.net>
|
||||||
|
|
||||||
* include/ddk/winddk.h (PCUNICODE_STRING): Remove incorrect
|
* include/ddk/winddk.h (PCUNICODE_STRING): Remove incorrect
|
||||||
|
|
|
@ -2658,6 +2658,77 @@ typedef union _FILE_SEGMENT_ELEMENT {
|
||||||
ULONGLONG Alignment;
|
ULONGLONG Alignment;
|
||||||
}FILE_SEGMENT_ELEMENT, *PFILE_SEGMENT_ELEMENT;
|
}FILE_SEGMENT_ELEMENT, *PFILE_SEGMENT_ELEMENT;
|
||||||
|
|
||||||
|
typedef enum _JOBOBJECTINFOCLASS {
|
||||||
|
JobObjectBasicAccountingInformation = 1,
|
||||||
|
JobObjectBasicLimitInformation,
|
||||||
|
JobObjectBasicProcessIdList,
|
||||||
|
JobObjectBasicUIRestrictions,
|
||||||
|
JobObjectSecurityLimitInformation,
|
||||||
|
JobObjectEndOfJobTimeInformation,
|
||||||
|
JobObjectAssociateCompletionPortInformation,
|
||||||
|
JobObjectBasicAndIoAccountingInformation,
|
||||||
|
JobObjectExtendedLimitInformation,
|
||||||
|
JobObjectJobSetInformation,
|
||||||
|
MaxJobObjectInfoClass
|
||||||
|
} JOBOBJECTINFOCLASS;
|
||||||
|
typedef struct _JOBOBJECT_BASIC_ACCOUNTING_INFORMATION {
|
||||||
|
LARGE_INTEGER TotalUserTime;
|
||||||
|
LARGE_INTEGER TotalKernelTime;
|
||||||
|
LARGE_INTEGER ThisPeriodTotalUserTime;
|
||||||
|
LARGE_INTEGER ThisPeriodTotalKernelTime;
|
||||||
|
DWORD TotalPageFaultCount;
|
||||||
|
DWORD TotalProcesses;
|
||||||
|
DWORD ActiveProcesses;
|
||||||
|
DWORD TotalTerminatedProcesses;
|
||||||
|
} JOBOBJECT_BASIC_ACCOUNTING_INFORMATION,*PJOBOBJECT_BASIC_ACCOUNTING_INFORMATION;
|
||||||
|
typedef struct _JOBOBJECT_BASIC_LIMIT_INFORMATION {
|
||||||
|
LARGE_INTEGER PerProcessUserTimeLimit;
|
||||||
|
LARGE_INTEGER PerJobUserTimeLimit;
|
||||||
|
DWORD LimitFlags;
|
||||||
|
SIZE_T MinimumWorkingSetSize;
|
||||||
|
SIZE_T MaximumWorkingSetSize;
|
||||||
|
DWORD ActiveProcessLimit;
|
||||||
|
ULONG_PTR Affinity;
|
||||||
|
DWORD PriorityClass;
|
||||||
|
DWORD SchedulingClass;
|
||||||
|
} JOBOBJECT_BASIC_LIMIT_INFORMATION,*PJOBOBJECT_BASIC_LIMIT_INFORMATION;
|
||||||
|
typedef struct _JOBOBJECT_BASIC_PROCESS_ID_LIST {
|
||||||
|
DWORD NumberOfAssignedProcesses;
|
||||||
|
DWORD NumberOfProcessIdsInList;
|
||||||
|
ULONG_PTR ProcessIdList[1];
|
||||||
|
} JOBOBJECT_BASIC_PROCESS_ID_LIST, *PJOBOBJECT_BASIC_PROCESS_ID_LIST;
|
||||||
|
typedef struct _JOBOBJECT_BASIC_UI_RESTRICTIONS {
|
||||||
|
DWORD UIRestrictionsClass;
|
||||||
|
} JOBOBJECT_BASIC_UI_RESTRICTIONS,*PJOBOBJECT_BASIC_UI_RESTRICTIONS;
|
||||||
|
typedef struct _JOBOBJECT_SECURITY_LIMIT_INFORMATION {
|
||||||
|
DWORD SecurityLimitFlags;
|
||||||
|
HANDLE JobToken;
|
||||||
|
PTOKEN_GROUPS SidsToDisable;
|
||||||
|
PTOKEN_PRIVILEGES PrivilegesToDelete;
|
||||||
|
PTOKEN_GROUPS RestrictedSids;
|
||||||
|
} JOBOBJECT_SECURITY_LIMIT_INFORMATION,*PJOBOBJECT_SECURITY_LIMIT_INFORMATION;
|
||||||
|
typedef struct _JOBOBJECT_END_OF_JOB_TIME_INFORMATION {
|
||||||
|
DWORD EndOfJobTimeAction;
|
||||||
|
} JOBOBJECT_END_OF_JOB_TIME_INFORMATION,*PJOBOBJECT_END_OF_JOB_TIME_INFORMATION;
|
||||||
|
typedef struct _JOBOBJECT_ASSOCIATE_COMPLETION_PORT {
|
||||||
|
PVOID CompletionKey;
|
||||||
|
HANDLE CompletionPort;
|
||||||
|
} JOBOBJECT_ASSOCIATE_COMPLETION_PORT,*PJOBOBJECT_ASSOCIATE_COMPLETION_PORT;
|
||||||
|
typedef struct _JOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION {
|
||||||
|
JOBOBJECT_BASIC_ACCOUNTING_INFORMATION BasicInfo;
|
||||||
|
IO_COUNTERS IoInfo;
|
||||||
|
} JOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION,*PJOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION;
|
||||||
|
typedef struct _JOBOBJECT_EXTENDED_LIMIT_INFORMATION {
|
||||||
|
JOBOBJECT_BASIC_LIMIT_INFORMATION BasicLimitInformation;
|
||||||
|
IO_COUNTERS IoInfo;
|
||||||
|
SIZE_T ProcessMemoryLimit;
|
||||||
|
SIZE_T JobMemoryLimit;
|
||||||
|
SIZE_T PeakProcessMemoryUsed;
|
||||||
|
SIZE_T PeakJobMemoryUsed;
|
||||||
|
} JOBOBJECT_EXTENDED_LIMIT_INFORMATION,*PJOBOBJECT_EXTENDED_LIMIT_INFORMATION;
|
||||||
|
typedef struct _JOBOBJECT_JOBSET_INFORMATION {
|
||||||
|
DWORD MemberLevel;
|
||||||
|
} JOBOBJECT_JOBSET_INFORMATION,*PJOBOBJECT_JOBSET_INFORMATION;
|
||||||
|
|
||||||
#ifdef UNICODE
|
#ifdef UNICODE
|
||||||
typedef OSVERSIONINFOW OSVERSIONINFO,*POSVERSIONINFO,*LPOSVERSIONINFO;
|
typedef OSVERSIONINFOW OSVERSIONINFO,*POSVERSIONINFO,*LPOSVERSIONINFO;
|
||||||
|
|
Loading…
Reference in New Issue