-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
thread_generated.go
38 lines (34 loc) · 930 Bytes
/
thread_generated.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
// This file was autogenerated using go run mkcode.go -- thread.go
// DO NOT EDIT.
package ntdll
import "unsafe"
var (
procNtCreateThreadEx = modntdll.NewProc("NtCreateThreadEx")
)
// OUT-parameter: hThread, ThreadInfo.
func NtCreateThreadEx(
hThread *Handle,
DesiredAccess AccessMask,
ObjectAttributes *ObjectAttributes,
ProcessHandle Handle,
lpStartAddress Handle,
lpParameter *byte,
CreateSuspended bool,
StackZeroBits uint32,
SizeOfStackCommit uint32,
SizeOfStackReserve uint32,
ThreadInfo Handle,
) NtStatus {
r0, _, _ := procNtCreateThreadEx.Call(uintptr(unsafe.Pointer(hThread)),
uintptr(DesiredAccess),
uintptr(unsafe.Pointer(ObjectAttributes)),
uintptr(ProcessHandle),
uintptr(lpStartAddress),
uintptr(unsafe.Pointer(lpParameter)),
fromBool(CreateSuspended),
uintptr(StackZeroBits),
uintptr(SizeOfStackCommit),
uintptr(SizeOfStackReserve),
uintptr(ThreadInfo))
return NtStatus(r0)
}