khenaidoo | ab1f7bd | 2019-11-14 14:00:27 -0500 | [diff] [blame] | 1 | // Copyright 2011 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | package windows |
| 6 | |
| 7 | type WSAData struct { |
| 8 | Version uint16 |
| 9 | HighVersion uint16 |
| 10 | Description [WSADESCRIPTION_LEN + 1]byte |
| 11 | SystemStatus [WSASYS_STATUS_LEN + 1]byte |
| 12 | MaxSockets uint16 |
| 13 | MaxUdpDg uint16 |
| 14 | VendorInfo *byte |
| 15 | } |
| 16 | |
| 17 | type Servent struct { |
| 18 | Name *byte |
| 19 | Aliases **byte |
| 20 | Port uint16 |
| 21 | Proto *byte |
| 22 | } |
Andrea Campanella | 3614a92 | 2021-02-25 12:40:42 +0100 | [diff] [blame] | 23 | |
| 24 | type JOBOBJECT_BASIC_LIMIT_INFORMATION struct { |
| 25 | PerProcessUserTimeLimit int64 |
| 26 | PerJobUserTimeLimit int64 |
| 27 | LimitFlags uint32 |
| 28 | MinimumWorkingSetSize uintptr |
| 29 | MaximumWorkingSetSize uintptr |
| 30 | ActiveProcessLimit uint32 |
| 31 | Affinity uintptr |
| 32 | PriorityClass uint32 |
| 33 | SchedulingClass uint32 |
| 34 | _ uint32 // pad to 8 byte boundary |
| 35 | } |