diff options
Diffstat (limited to 'vendor/golang.org/x/sys/windows')
| -rw-r--r-- | vendor/golang.org/x/sys/windows/syscall_windows.go | 1 | ||||
| -rw-r--r-- | vendor/golang.org/x/sys/windows/zsyscall_windows.go | 7 | 
2 files changed, 8 insertions, 0 deletions
| diff --git a/vendor/golang.org/x/sys/windows/syscall_windows.go b/vendor/golang.org/x/sys/windows/syscall_windows.go index 7a6ba43a7..a49853e9d 100644 --- a/vendor/golang.org/x/sys/windows/syscall_windows.go +++ b/vendor/golang.org/x/sys/windows/syscall_windows.go @@ -367,6 +367,7 @@ func NewCallbackCDecl(fn interface{}) uintptr {  //sys	IsWindowUnicode(hwnd HWND) (isUnicode bool) = user32.IsWindowUnicode  //sys	IsWindowVisible(hwnd HWND) (isVisible bool) = user32.IsWindowVisible  //sys	GetGUIThreadInfo(thread uint32, info *GUIThreadInfo) (err error) = user32.GetGUIThreadInfo +//sys	GetLargePageMinimum() (size uintptr)  // Volume Management Functions  //sys	DefineDosDevice(flags uint32, deviceName *uint16, targetPath *uint16) (err error) = DefineDosDeviceW diff --git a/vendor/golang.org/x/sys/windows/zsyscall_windows.go b/vendor/golang.org/x/sys/windows/zsyscall_windows.go index 96ba8559c..ac60052e4 100644 --- a/vendor/golang.org/x/sys/windows/zsyscall_windows.go +++ b/vendor/golang.org/x/sys/windows/zsyscall_windows.go @@ -252,6 +252,7 @@ var (  	procGetFileType                                          = modkernel32.NewProc("GetFileType")  	procGetFinalPathNameByHandleW                            = modkernel32.NewProc("GetFinalPathNameByHandleW")  	procGetFullPathNameW                                     = modkernel32.NewProc("GetFullPathNameW") +	procGetLargePageMinimum                                  = modkernel32.NewProc("GetLargePageMinimum")  	procGetLastError                                         = modkernel32.NewProc("GetLastError")  	procGetLogicalDriveStringsW                              = modkernel32.NewProc("GetLogicalDriveStringsW")  	procGetLogicalDrives                                     = modkernel32.NewProc("GetLogicalDrives") @@ -2180,6 +2181,12 @@ func GetFullPathName(path *uint16, buflen uint32, buf *uint16, fname **uint16) (  	return  } +func GetLargePageMinimum() (size uintptr) { +	r0, _, _ := syscall.Syscall(procGetLargePageMinimum.Addr(), 0, 0, 0, 0) +	size = uintptr(r0) +	return +} +  func GetLastError() (lasterr error) {  	r0, _, _ := syscall.Syscall(procGetLastError.Addr(), 0, 0, 0, 0)  	if r0 != 0 { | 
