sys

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFileMapping

func CreateFileMapping(fhandle windows.Handle, sa *windows.SecurityAttributes, prot uint32, maxSizeHigh uint32, maxSizeLow uint32, name string) (handle windows.Handle, err error)

CreateFileMapping is a wraper for windwos syscall. We cannot use a call from golang.org/x/sys/windows, because it returns nil error, if the syscall returned a valid handle. However, CreateFileMapping may return a valid handle along with ERROR_ALREADY_EXISTS, and in this case we cannot find out, if the file existed before.

func GetAllocGranularity

func GetAllocGranularity() int

GetAllocGranularity returns system allocation granularity.

func OpenFileMapping

func OpenFileMapping(access uint32, inheritHandle uint32, name string) (windows.Handle, error)

OpenFileMapping is a wraper for windows syscall.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL