main
cs 55 lines 1.84 KB
Raw
1 // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3 namespace WixToolset.Core.Native.Ole32
4 {
5 /// <summary>
6 /// Specifies the access mode to use when opening, creating, or deleting a storage object.
7 /// </summary>
8 internal enum StorageMode
9 {
10 /// <summary>
11 /// Indicates that the object is read-only, meaning that modifications cannot be made.
12 /// </summary>
13 Read = 0x0,
14
15 /// <summary>
16 /// Enables you to save changes to the object, but does not permit access to its data.
17 /// </summary>
18 Write = 0x1,
19
20 /// <summary>
21 /// Enables access and modification of object data.
22 /// </summary>
23 ReadWrite = 0x2,
24
25 /// <summary>
26 /// Specifies that subsequent openings of the object are not denied read or write access.
27 /// </summary>
28 ShareDenyNone = 0x40,
29
30 /// <summary>
31 /// Prevents others from subsequently opening the object in Read mode.
32 /// </summary>
33 ShareDenyRead = 0x30,
34
35 /// <summary>
36 /// Prevents others from subsequently opening the object for Write or ReadWrite access.
37 /// </summary>
38 ShareDenyWrite = 0x20,
39
40 /// <summary>
41 /// Prevents others from subsequently opening the object in any mode.
42 /// </summary>
43 ShareExclusive = 0x10,
44
45 /// <summary>
46 /// Opens the storage object with exclusive access to the most recently committed version.
47 /// </summary>
48 Priority = 0x40000,
49
50 /// <summary>
51 /// Indicates that an existing storage object or stream should be removed before the new object replaces it.
52 /// </summary>
53 Create = 0x1000,
54 }
55 }