Skip to content

Commit b06ce05

Browse files
tomgrgopherbot
authored andcommitted
windows: add FILE_ZERO_DATA_INFORMATION
This is needed for invoking windows.DeviceIoControl with windows.FSCTL_SET_ZERO_DATA. Change-Id: I20f93a40a86b92e6bdeeec096ffc0245e8184672 GitHub-Last-Rev: 01d299a GitHub-Pull-Request: #261 Reviewed-on: https://go-review.googlesource.com/c/sys/+/698436 Auto-Submit: Michael Pratt <[email protected]> Reviewed-by: Quim Muntal <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Michael Pratt <[email protected]> Reviewed-by: Cherry Mui <[email protected]>
1 parent 689cc11 commit b06ce05

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

windows/types_windows.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1976,6 +1976,12 @@ const (
19761976
SYMBOLIC_LINK_FLAG_DIRECTORY = 0x1
19771977
)
19781978

1979+
// FILE_ZERO_DATA_INFORMATION from winioctl.h
1980+
type FileZeroDataInformation struct {
1981+
FileOffset int64
1982+
BeyondFinalZero int64
1983+
}
1984+
19791985
const (
19801986
ComputerNameNetBIOS = 0
19811987
ComputerNameDnsHostname = 1

0 commit comments

Comments
 (0)