| 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.Msm |
| 4 | { |
| 5 | using System; |
| 6 | using System.Runtime.InteropServices; |
| 7 | |
| 8 | /// <summary> |
| 9 | /// Callback for configurable merge modules. |
| 10 | /// </summary> |
| 11 | [ComImport, Guid("AC013209-18A7-4851-8A21-2353443D70A0"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch)] |
| 12 | public interface IMsmConfigureModule |
| 13 | { |
| 14 | /// <summary> |
| 15 | /// Callback to retrieve text data for configurable merge modules. |
| 16 | /// </summary> |
| 17 | /// <param name="name">Name of the data to be retrieved.</param> |
| 18 | /// <param name="configData">The data corresponding to the name.</param> |
| 19 | /// <returns>The error code (HRESULT).</returns> |
| 20 | [PreserveSig] |
| 21 | int ProvideTextData([In, MarshalAs(UnmanagedType.BStr)] string name, [MarshalAs(UnmanagedType.BStr)] out string configData); |
| 22 | |
| 23 | /// <summary> |
| 24 | /// Callback to retrieve integer data for configurable merge modules. |
| 25 | /// </summary> |
| 26 | /// <param name="name">Name of the data to be retrieved.</param> |
| 27 | /// <param name="configData">The data corresponding to the name.</param> |
| 28 | /// <returns>The error code (HRESULT).</returns> |
| 29 | [PreserveSig] |
| 30 | int ProvideIntegerData([In, MarshalAs(UnmanagedType.BStr)] string name, out int configData); |
| 31 | } |
| 32 | } |