mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-02 23:27:31 -04:00
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: 01d299ab84cb90049cc62b4f1f63f6b1b25f046c GitHub-Pull-Request: golang/sys#261 Reviewed-on: https://go-review.googlesource.com/c/sys/+/698436 Auto-Submit: Michael Pratt <mpratt@google.com> Reviewed-by: Quim Muntal <quimmuntal@gmail.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Pratt <mpratt@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com>
This commit is contained in:
committed by
Gopher Robot
parent
689cc11b26
commit
b06ce0514e
@@ -1976,6 +1976,12 @@ const (
|
|||||||
SYMBOLIC_LINK_FLAG_DIRECTORY = 0x1
|
SYMBOLIC_LINK_FLAG_DIRECTORY = 0x1
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// FILE_ZERO_DATA_INFORMATION from winioctl.h
|
||||||
|
type FileZeroDataInformation struct {
|
||||||
|
FileOffset int64
|
||||||
|
BeyondFinalZero int64
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
ComputerNameNetBIOS = 0
|
ComputerNameNetBIOS = 0
|
||||||
ComputerNameDnsHostname = 1
|
ComputerNameDnsHostname = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user