std: add FILE_ANY_ constants for windows

master
daurnimator 2019-11-13 15:59:03 +11:00
parent 0270545edb
commit 4830415071
No known key found for this signature in database
GPG Key ID: 45B429A8F9D9D22A
1 changed files with 4 additions and 0 deletions

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));