Skip to content

Commit f25ff60

Browse files
masshashalexbrainman
authored andcommitted
windows: add JobObjectInformationClass consts for QueryInformationJobObject
Reference: https://learn.microsoft.com/en-us/windows/win32/api/jobapi2/nf-jobapi2-queryinformationjobobject#parameters Change-Id: I0d10895ffc18b345f371cc7e0cbf8362fd67f71a GitHub-Last-Rev: 2816391 GitHub-Pull-Request: #154 Reviewed-on: https://go-review.googlesource.com/c/sys/+/481455 Run-TryBot: Alex Brainman <alex.brainman@gmail.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> Reviewed-by: Alex Brainman <alex.brainman@gmail.com> Reviewed-by: David Chase <drchase@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
1 parent 64840c1 commit f25ff60

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

windows/types_windows.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2220,15 +2220,19 @@ type JOBOBJECT_BASIC_UI_RESTRICTIONS struct {
22202220
}
22212221

22222222
const (
2223-
// JobObjectInformationClass
2223+
// JobObjectInformationClass for QueryInformationJobObject and SetInformationJobObject
22242224
JobObjectAssociateCompletionPortInformation = 7
2225+
JobObjectBasicAccountingInformation = 1
2226+
JobObjectBasicAndIoAccountingInformation = 8
22252227
JobObjectBasicLimitInformation = 2
2228+
JobObjectBasicProcessIdList = 3
22262229
JobObjectBasicUIRestrictions = 4
22272230
JobObjectCpuRateControlInformation = 15
22282231
JobObjectEndOfJobTimeInformation = 6
22292232
JobObjectExtendedLimitInformation = 9
22302233
JobObjectGroupInformation = 11
22312234
JobObjectGroupInformationEx = 14
2235+
JobObjectLimitViolationInformation = 13
22322236
JobObjectLimitViolationInformation2 = 34
22332237
JobObjectNetRateControlInformation = 32
22342238
JobObjectNotificationLimitInformation = 12

0 commit comments

Comments
 (0)