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/Msm/IMsmConfigureModule.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/Msm/IMsmConfigureModule.cs')
| -rw-r--r-- | src/WixToolset.Core.Native/Msm/IMsmConfigureModule.cs | 32 |
1 files changed, 32 insertions, 0 deletions
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 @@ | |||
| 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 | } | ||
