Skip to content

Commit 70bceee

Browse files

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

windows/syscall_windows.go

+2
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,8 @@ func NewCallbackCDecl(fn interface{}) uintptr {
364364
//sys SetCommTimeouts(handle Handle, timeouts *CommTimeouts) (err error)
365365
//sys GetActiveProcessorCount(groupNumber uint16) (ret uint32)
366366
//sys GetMaximumProcessorCount(groupNumber uint16) (ret uint32)
367+
//sys GlobalFree(hmem Handle) (handle Handle, err error) [failretval!=0]
368+
//sys GlobalAlloc(flags uint32, length uint32) (ptr uintptr, err error)
367369

368370
// Volume Management Functions
369371
//sys DefineDosDevice(flags uint32, deviceName *uint16, targetPath *uint16) (err error) = DefineDosDeviceW

windows/types_windows.go

+9
Original file line numberDiff line numberDiff line change
@@ -3174,3 +3174,12 @@ type ModuleInfo struct {
31743174
}
31753175

31763176
const ALL_PROCESSOR_GROUPS = 0xFFFF
3177+
3178+
// Constants for GlobalAlloc flags.
3179+
const (
3180+
GMEM_FIXED = 0x0
3181+
GMEM_MOVEABLE = 0x2
3182+
GMEM_ZEROINIT = 0x40
3183+
GHND = GMEM_MOVEABLE | GMEM_ZEROINIT
3184+
GPTR = GMEM_FIXED | GMEM_ZEROINIT
3185+
)

windows/zsyscall_windows.go

+20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)