Fixed problem (#118) with TASKDIALOGCONFIG not working under x64 builds.

pull/119/head
dahall 2020-04-22 09:54:00 -06:00
parent a49d08dbbc
commit 6ef4bb1698
1 changed files with 7 additions and 7 deletions

View File

@ -453,7 +453,7 @@ namespace Vanara.PInvoke
/// </returns> /// </returns>
[PInvokeData("Commctrl.h", MSDNShortId = "bb760544")] [PInvokeData("Commctrl.h", MSDNShortId = "bb760544")]
[DllImport(Lib.ComCtl32, CharSet = CharSet.Unicode, ExactSpelling = true)] [DllImport(Lib.ComCtl32, CharSet = CharSet.Unicode, ExactSpelling = true)]
public static extern HRESULT TaskDialogIndirect(TASKDIALOGCONFIG pTaskConfig, out int pnButton, out int pnRadioButton, [MarshalAs(UnmanagedType.Bool)] out bool pfVerificationFlagChecked); public static extern HRESULT TaskDialogIndirect([In] TASKDIALOGCONFIG pTaskConfig, out int pnButton, out int pnRadioButton, [MarshalAs(UnmanagedType.Bool)] out bool pfVerificationFlagChecked);
/// <summary> /// <summary>
/// The TASKDIALOG_BUTTON structure contains information used to display a button in a task dialog. The TASKDIALOGCONFIG structure /// The TASKDIALOG_BUTTON structure contains information used to display a button in a task dialog. The TASKDIALOGCONFIG structure
@ -480,7 +480,7 @@ namespace Vanara.PInvoke
/// </summary> /// </summary>
// https://docs.microsoft.com/en-us/windows/desktop/api/commctrl/ns-commctrl-_taskdialogconfig // https://docs.microsoft.com/en-us/windows/desktop/api/commctrl/ns-commctrl-_taskdialogconfig
[PInvokeData("commctrl.h", MSDNShortId = "bb787473")] [PInvokeData("commctrl.h", MSDNShortId = "bb787473")]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode, Pack = 1)]
public class TASKDIALOGCONFIG : IDisposable public class TASKDIALOGCONFIG : IDisposable
{ {
/// <summary>Specifies the structure size, in bytes.</summary> /// <summary>Specifies the structure size, in bytes.</summary>
@ -641,6 +641,11 @@ namespace Vanara.PInvoke
/// <summary>A pointer to application-defined reference data. This value is defined by the caller.</summary> /// <summary>A pointer to application-defined reference data. This value is defined by the caller.</summary>
public IntPtr lpCallbackData; public IntPtr lpCallbackData;
/// <summary>
/// The width of the task dialog's client area, in dialog units. If 0, the task dialog manager will calculate the ideal width.
/// </summary>
public uint cxWidth;
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="TASKDIALOGCONFIG"/> class setting the <see cref="cbSize"/> field properly. /// Initializes a new instance of the <see cref="TASKDIALOGCONFIG"/> class setting the <see cref="cbSize"/> field properly.
/// </summary> /// </summary>
@ -649,11 +654,6 @@ namespace Vanara.PInvoke
cbSize = (uint)Marshal.SizeOf(typeof(TASKDIALOGCONFIG)); cbSize = (uint)Marshal.SizeOf(typeof(TASKDIALOGCONFIG));
} }
/// <summary>
/// The width of the task dialog's client area, in dialog units. If 0, the task dialog manager will calculate the ideal width.
/// </summary>
public uint cxWidth;
/// <summary> /// <summary>
/// The string to be used for the task dialog title. If this parameter is NULL, the filename of the executable program is used. /// The string to be used for the task dialog title. If this parameter is NULL, the filename of the executable program is used.
/// </summary> /// </summary>