authorgravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2019-11-13 15:00:32+11:00
committergravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2019-11-14 17:00:07+11:00
log0270545edb8db7f51e6b0581fad0bad5b783a7e0
tree4fe400cceb8fd5fb92a7722e78bc39fdcae59208
parentef6cec983c71b65058c54d98e7482b9926e7ddbf
signaturelock-open Commit is signed but in an unrecognized format.

std: add windows ioctl transfer types


1 files changed, 8 insertions(+), 0 deletions(-)

lib/std/os/windows/bits.zig+8
......@@ -154,6 +154,14 @@ pub const FILE_DEVICE_NVDIMM: DEVICE_TYPE = 0x005a;
154154pub const FILE_DEVICE_HOLOGRAPHIC: DEVICE_TYPE = 0x005b;
155155pub const FILE_DEVICE_SDFXHCI: DEVICE_TYPE = 0x005c;
156156
157/// https://docs.microsoft.com/en-us/windows-hardware/drivers/kernel/buffer-descriptions-for-i-o-control-codes
158pub const TransferType = enum(u2) {
159 METHOD_BUFFERED = 0,
160 METHOD_IN_DIRECT = 1,
161 METHOD_OUT_DIRECT = 2,
162 METHOD_NEITHER = 3,
163};
164
157165pub const INVALID_HANDLE_VALUE = @intToPtr(HANDLE, maxInt(usize));
158166
159167pub const INVALID_FILE_ATTRIBUTES = @as(DWORD, maxInt(DWORD));