mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-05 16:47:27 -04:00
x/sys/windows: Add GetComputerNameEx
Provides access to the GetComputerNameEx syscall. This mirrors the change golang.org/cl/5852 in the standard library, but provides public access to all name types provided by windows. Change-Id: I5fbad5abe721de70e9d2b5dda2fafb7a9c419220 Reviewed-on: https://go-review.googlesource.com/6320 Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
This commit is contained in:
committed by
Alex Brainman
parent
fb0c33c555
commit
5b683257ff
@@ -104,6 +104,7 @@ func NewCallbackCDecl(fn interface{}) uintptr
|
||||
//sys DeleteFile(path *uint16) (err error) = DeleteFileW
|
||||
//sys MoveFile(from *uint16, to *uint16) (err error) = MoveFileW
|
||||
//sys GetComputerName(buf *uint16, n *uint32) (err error) = GetComputerNameW
|
||||
//sys GetComputerNameEx(nametype uint32, buf *uint16, n *uint32) (err error) = GetComputerNameExW
|
||||
//sys SetEndOfFile(handle Handle) (err error)
|
||||
//sys GetSystemTimeAsFileTime(time *Filetime)
|
||||
//sys GetTimeZoneInformation(tzi *Timezoneinformation) (rc uint32, err error) [failretval==0xffffffff]
|
||||
|
||||
Reference in New Issue
Block a user