This repository was archived by the owner on Mar 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsyscall_types_windows.go
74 lines (68 loc) · 1.52 KB
/
syscall_types_windows.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
package windows
type (
Bool bool
Byte byte
Dword uint32
DwordPtr uintptr
DwordLong uint64
Dword32 int32
Dword64 int64
Handle uintptr
HpCon uintptr
LpByte byte
LpDword uint32
LpcStr uint16
LpStr uint16
LptStr uint16
LpdWord uint32
LpVoid uint16
LpVoidByte byte
PULong64 uint64
Short uint16
SizeT uintptr
Word uint16
)
type COORD struct {
X Short
Y Short
}
// Overlapped contains information used in asynchronous (or overlapped) input and output (I/O). See: https://docs.microsoft.com/en-us/windows/desktop/api/minwinbase/ns-minwinbase-_overlapped
type Overlapped struct {
Internal uintptr
InternalHigh uintptr
Offset uint32
OffsetHigh uint32
HEvent Handle
}
// ProcessInformation aligns with PROCESS_INFORMATION. See: https://docs.microsoft.com/en-us/windows/desktop/api/processthreadsapi/ns-processthreadsapi-_process_information
type ProcessInformation struct {
HProcess Handle
HThread Handle
DwProcess Dword
DwThreadId Dword
}
type SecurityAttributes struct {
NLength Dword
LpSecurityDescriptor uintptr
BInheritHandle bool
}
type StartupInfo struct {
Cb Dword
LpReserved LpcStr
LpDesktop LpStr
LpTitle LpStr
DwX Dword
DwY Dword
DwXSize Dword
DwYSize Dword
DwXCountChars Dword
DwYCountChars Dword
DwFillAttribute Dword
DwFlags Dword
WShowWindow Word
CbReserved2 Word
LpReserved2 LpByte
HStdInput Handle
HStdOutput Handle
HStdError Handle
}