diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-03-16 10:34:28 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-03-16 11:01:46 -0700 |
| commit | 089a08fd6b9398b0e1040f96b8e24ba81acfe05b (patch) | |
| tree | 1f521b0b91f2d6373a16f3632c5cb4d835303920 /src/WixToolset.Core.Native/Msi/OpenDatabase.cs | |
| parent | 533fb3c24290f5c9684a661e2576d857fbee9fb6 (diff) | |
| download | wix-089a08fd6b9398b0e1040f96b8e24ba81acfe05b.tar.gz wix-089a08fd6b9398b0e1040f96b8e24ba81acfe05b.tar.bz2 wix-089a08fd6b9398b0e1040f96b8e24ba81acfe05b.zip | |
Migrate PInvoke to Core.Native out of Core
Diffstat (limited to 'src/WixToolset.Core.Native/Msi/OpenDatabase.cs')
| -rw-r--r-- | src/WixToolset.Core.Native/Msi/OpenDatabase.cs | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/WixToolset.Core.Native/Msi/OpenDatabase.cs b/src/WixToolset.Core.Native/Msi/OpenDatabase.cs new file mode 100644 index 00000000..18a78f77 --- /dev/null +++ b/src/WixToolset.Core.Native/Msi/OpenDatabase.cs | |||
| @@ -0,0 +1,40 @@ | |||
| 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.Msi | ||
| 4 | { | ||
| 5 | /// <summary> | ||
| 6 | /// Enum of predefined persist modes used when opening a database. | ||
| 7 | /// </summary> | ||
| 8 | public enum OpenDatabase | ||
| 9 | { | ||
| 10 | /// <summary> | ||
| 11 | /// Open a database read-only, no persistent changes. | ||
| 12 | /// </summary> | ||
| 13 | ReadOnly = 0, | ||
| 14 | |||
| 15 | /// <summary> | ||
| 16 | /// Open a database read/write in transaction mode. | ||
| 17 | /// </summary> | ||
| 18 | Transact = 1, | ||
| 19 | |||
| 20 | /// <summary> | ||
| 21 | /// Open a database direct read/write without transaction. | ||
| 22 | /// </summary> | ||
| 23 | Direct = 2, | ||
| 24 | |||
| 25 | /// <summary> | ||
| 26 | /// Create a new database, transact mode read/write. | ||
| 27 | /// </summary> | ||
| 28 | Create = 3, | ||
| 29 | |||
| 30 | /// <summary> | ||
| 31 | /// Create a new database, direct mode read/write. | ||
| 32 | /// </summary> | ||
| 33 | CreateDirect = 4, | ||
| 34 | |||
| 35 | /// <summary> | ||
| 36 | /// Indicates a patch file is being opened. | ||
| 37 | /// </summary> | ||
| 38 | OpenPatchFile = 32 | ||
| 39 | } | ||
| 40 | } | ||
