From 089a08fd6b9398b0e1040f96b8e24ba81acfe05b Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Tue, 16 Mar 2021 10:34:28 -0700 Subject: Migrate PInvoke to Core.Native out of Core --- src/WixToolset.Core.Native/Msi/OpenDatabase.cs | 40 ++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/WixToolset.Core.Native/Msi/OpenDatabase.cs (limited to 'src/WixToolset.Core.Native/Msi/OpenDatabase.cs') 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 @@ +// 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. + +namespace WixToolset.Core.Native.Msi +{ + /// + /// Enum of predefined persist modes used when opening a database. + /// + public enum OpenDatabase + { + /// + /// Open a database read-only, no persistent changes. + /// + ReadOnly = 0, + + /// + /// Open a database read/write in transaction mode. + /// + Transact = 1, + + /// + /// Open a database direct read/write without transaction. + /// + Direct = 2, + + /// + /// Create a new database, transact mode read/write. + /// + Create = 3, + + /// + /// Create a new database, direct mode read/write. + /// + CreateDirect = 4, + + /// + /// Indicates a patch file is being opened. + /// + OpenPatchFile = 32 + } +} -- cgit v1.2.3-55-g6feb