windows: add FILE_ZERO_DATA_INFORMATION

This is needed for invoking windows.DeviceIoControl with
windows.FSCTL_SET_ZERO_DATA.
This commit is contained in:
Thomas Gibson-Robinson
2025-08-22 13:26:57 +01:00
parent 543f21a056
commit 01d299ab84

View File

@@ -1976,6 +1976,12 @@ const (
SYMBOLIC_LINK_FLAG_DIRECTORY = 0x1
)
// FILE_ZERO_DATA_INFORMATION from winioctl.h
type FileZeroDataInformation struct {
FileOffset int64
BeyondFinalZero int64
}
const (
ComputerNameNetBIOS = 0
ComputerNameDnsHostname = 1