std: add FILE_ANY_ constants for windows

This commit is contained in:
daurnimator committed 2019-11-14 17:00:09 +11:00
1 parent 0270545edb
commit 4830415071
1 file changed
+4
+4
View File
@@ -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));