-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskDialog.cs
More file actions
57 lines (53 loc) · 1.53 KB
/
Copy pathTaskDialog.cs
File metadata and controls
57 lines (53 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
namespace MonoFusion.Exporter
{
internal class TaskDialog
{
[DllImport("comctl32.dll", CharSet = CharSet.Unicode, PreserveSig = false)]
public static extern void TaskDialogIndirect(
ref TASKDIALOGCONFIG pTaskConfig,
out int pnButton,
out int pnRadioButton,
out bool pfVerificationFlagChecked);
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct TASKDIALOGCONFIG
{
public uint cbSize;
public IntPtr hwndParent;
public IntPtr hInstance;
public uint dwFlags;
public uint dwCommonButtons;
public string pszWindowTitle;
public IntPtr hMainIcon;
public string pszMainInstruction;
public string pszContent;
public uint cButtons;
public IntPtr pButtons;
public int nDefaultButton;
public uint cRadioButtons;
public IntPtr pRadioButtons;
public int nDefaultRadioButton;
public string pszVerificationText;
public string pszExpandedInformation;
public string pszExpandedControlText;
public string pszCollapsedControlText;
public IntPtr hFooterIcon;
public string pszFooter;
public IntPtr pfCallback;
public IntPtr lpCallbackData;
public uint cxWidth;
}
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct TASKDIALOG_BUTTON
{
public int nButtonID;
public string pszButtonText;
}
public const uint TDCBF_OK_BUTTON = 0x1;
public const uint TDCBF_CANCEL_BUTTON = 0x8;
public const int IDOK = 1;
}
}