Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
VirtualFileMode.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 namespace SiliconStudio.Core.IO
4 {
5  /// <summary>
6  /// File mode equivalent of <see cref="System.IO.FileMode"/>.
7  /// </summary>
8  public enum VirtualFileMode
9  {
10  /// <summary>
11  /// Creates a new file. The function fails if a specified file exists.
12  /// </summary>
13  CreateNew = 1,
14 
15  /// <summary>
16  /// Creates a new file, always.
17  /// If a file exists, the function overwrites the file, clears the existing attributes, combines the specified file attributes,
18  /// and flags with FILE_ATTRIBUTE_ARCHIVE, but does not set the security descriptor that the SECURITY_ATTRIBUTES structure specifies.
19  /// </summary>
20  Create = 2,
21 
22  /// <summary>
23  /// Opens a file. The function fails if the file does not exist.
24  /// </summary>
25  Open = 3,
26 
27  /// <summary>
28  /// Opens a file, always.
29  /// If a file does not exist, the function creates a file as if dwCreationDisposition is CREATE_NEW.
30  /// </summary>
31  OpenOrCreate = 4,
32 
33  /// <summary>
34  /// Opens a file and truncates it so that its size is 0 (zero) bytes. The function fails if the file does not exist.
35  /// The calling process must open the file with the GENERIC_WRITE access right.
36  /// </summary>
37  Truncate = 5,
38  }
39 }
Creates a new file. The function fails if a specified file exists.
Opens a file. The function fails if the file does not exist.
Opens a file and truncates it so that its size is 0 (zero) bytes. The function fails if the file does...
VirtualFileMode
File mode equivalent of System.IO.FileMode.
Creates a new file, always. If a file exists, the function overwrites the file, clears the existing a...
Opens a file, always. If a file does not exist, the function creates a file as if dwCreationDispositi...