Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 01d299a

Browse files
committed
windows: add FILE_ZERO_DATA_INFORMATION
This is needed for invoking windows.DeviceIoControl with windows.FSCTL_SET_ZERO_DATA.
1 parent 543f21a commit 01d299a

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)