From 4830415071c3d62e4e2c19e5f5342151632e72bb Mon Sep 17 00:00:00 2001 From: daurnimator Date: Wed, 13 Nov 2019 15:59:03 +1100 Subject: [PATCH] std: add FILE_ANY_ constants for windows --- lib/std/os/windows/bits.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/std/os/windows/bits.zig b/lib/std/os/windows/bits.zig index eb37a7e39..3dc772a7c 100644 --- a/lib/std/os/windows/bits.zig +++ b/lib/std/os/windows/bits.zig @@ -162,6 +162,10 @@ pub const TransferType = enum(u2) { METHOD_NEITHER = 3, }; +pub const FILE_ANY_ACCESS = 0; +pub const FILE_READ_ACCESS = 1; +pub const FILE_WRITE_ACCESS = 2; + pub const INVALID_HANDLE_VALUE = @intToPtr(HANDLE, maxInt(usize)); pub const INVALID_FILE_ATTRIBUTES = @as(DWORD, maxInt(DWORD));