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 --- .../Msm/IMsmConfigureModule.cs | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/WixToolset.Core.Native/Msm/IMsmConfigureModule.cs (limited to 'src/WixToolset.Core.Native/Msm/IMsmConfigureModule.cs') diff --git a/src/WixToolset.Core.Native/Msm/IMsmConfigureModule.cs b/src/WixToolset.Core.Native/Msm/IMsmConfigureModule.cs new file mode 100644 index 00000000..468fb1fc --- /dev/null +++ b/src/WixToolset.Core.Native/Msm/IMsmConfigureModule.cs @@ -0,0 +1,32 @@ +// 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.Msm +{ + using System; + using System.Runtime.InteropServices; + + /// + /// Callback for configurable merge modules. + /// + [ComImport, Guid("AC013209-18A7-4851-8A21-2353443D70A0"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch)] + public interface IMsmConfigureModule + { + /// + /// Callback to retrieve text data for configurable merge modules. + /// + /// Name of the data to be retrieved. + /// The data corresponding to the name. + /// The error code (HRESULT). + [PreserveSig] + int ProvideTextData([In, MarshalAs(UnmanagedType.BStr)] string name, [MarshalAs(UnmanagedType.BStr)] out string configData); + + /// + /// Callback to retrieve integer data for configurable merge modules. + /// + /// Name of the data to be retrieved. + /// The data corresponding to the name. + /// The error code (HRESULT). + [PreserveSig] + int ProvideIntegerData([In, MarshalAs(UnmanagedType.BStr)] string name, out int configData); + } +} -- cgit v1.2.3-55-g6feb