For now this only changes the handle Access.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319121
91177308-0d34-0410-b5e6-
96231b3b80d8
F_Text = 4,
/// Open the file for read and write.
- F_RW = 8
+ F_RW = 8,
+
+ /// The returned handle can be used for deleting the file. Only makes a
+ /// difference on windows.
+ F_Delete = 16
};
/// @brief Create a uniquely named file.
DWORD Access = GENERIC_WRITE;
if (Flags & F_RW)
Access |= GENERIC_READ;
+ if (Flags & F_Delete)
+ Access |= DELETE;
HANDLE H =
::CreateFileW(PathUTF16.begin(), Access,