Skip to content

Commit 0829ab1

Browse files
kanak-clumioalexbrainman
authored andcommitted
windows: add SetFileValidData
Fixes golang/go#61834 Change-Id: Iaff01f5662aa2309e8ac41b346e0d3a42d28af91 Reviewed-on: https://go-review.googlesource.com/c/sys/+/517575 Reviewed-by: Dmitri Shuralyov <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Alex Brainman <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Quim Muntal <[email protected]> Reviewed-by: Quim Muntal <[email protected]> Reviewed-by: Keith Randall <[email protected]>
1 parent 32cdffc commit 0829ab1

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

windows/syscall_windows.go

+1
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ func NewCallbackCDecl(fn interface{}) uintptr {
194194
//sys GetComputerName(buf *uint16, n *uint32) (err error) = GetComputerNameW
195195
//sys GetComputerNameEx(nametype uint32, buf *uint16, n *uint32) (err error) = GetComputerNameExW
196196
//sys SetEndOfFile(handle Handle) (err error)
197+
//sys SetFileValidData(handle Handle, validDataLength int64) (err error)
197198
//sys GetSystemTimeAsFileTime(time *Filetime)
198199
//sys GetSystemTimePreciseAsFileTime(time *Filetime)
199200
//sys GetTimeZoneInformation(tzi *Timezoneinformation) (rc uint32, err error) [failretval==0xffffffff]

windows/zsyscall_windows.go

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

0 commit comments

Comments
 (0)