Skip to content

Commit 0ea43fd

Browse files
committed
chore(sys): Declare GetModuleHandleEx API flag constant
1 parent dc5d63d commit 0ea43fd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pkg/sys/process.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@
1919
package sys
2020

2121
import (
22+
"unsafe"
23+
2224
"golang.org/x/sys/windows"
2325
"golang.org/x/sys/windows/svc"
24-
"unsafe"
2526
)
2627

2728
const (
@@ -31,6 +32,11 @@ const (
3132
ProcessStatusStillActive uint32 = 259
3233
)
3334

35+
// ModuleHandleFromAddress is the flag of the GetModuleHandleEx
36+
// function parameter that indicates the module handle is obtained
37+
// from the address
38+
const ModuleHandleFromAddress = 0x00000004
39+
3440
// ProcessProtectionInformation is the information class that returns a
3541
// value indicating the type of protected process and the protected process
3642
// signer.

0 commit comments

Comments
 (0)