summaryrefslogtreecommitdiff
path: root/packages/w32/fork_constants.go
blob: 3e9b217cad463a48751031dc704bd579c4d25c63 (plain)
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
package w32

const (
	RTL_CLONE_PROCESS_FLAGS_CREATE_SUSPENDED = 0x00000001
	RTL_CLONE_PROCESS_FLAGS_INHERIT_HANDLES  = 0x00000002
	RTL_CLONE_PROCESS_FLAGS_NO_SYNCHRONIZE   = 0x00000004

	RTL_CLONE_PARENT = 0
	RTL_CLONE_CHILD  = 297

	THREAD_TERMINATE                 = 0x0001
	THREAD_SUSPEND_RESUME            = 0x0002
	THREAD_GET_CONTEXT               = 0x0008
	THREAD_SET_CONTEXT               = 0x0010
	THREAD_SET_INFORMATION           = 0x0020
	THREAD_QUERY_INFORMATION         = 0x0040
	THREAD_SET_THREAD_TOKEN          = 0x0080
	THREAD_IMPERSONATE               = 0x0100
	THREAD_DIRECT_IMPERSONATION      = 0x0200
	THREAD_SET_LIMITED_INFORMATION   = 0x0400
	THREAD_QUERY_LIMITED_INFORMATION = 0x0800
	THREAD_ALL_ACCESS                = STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0xffff

	PROCESS_SET_SESSIONID = 0x0004
	PROCESS_ALL_ACCESS    = STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0xffff
)