SHMessageBoxCheck
C# Signature:
/* The SHMessageBoxCheck() function is a Windows Shell API function that displays a custom messagebox with a "never ask me again" check box. When the user checks the checkbox, the dialog never shows up again. The shell API .dll exports this function by ordinal only. The entrypoint is ordinal 185 for ASCII and 191 for unicode. */
[DllImport("shlwapi.dll", EntryPoint="#185", ExactSpelling=true, PreserveSig=false)]
public static extern int SHMessageBoxCheck(
[In] IntPtr hwnd,
[In] String pszText,
[In] String pszTitle,
[In] MessageBoxCheckFlags uType,
[In] int iDefault,
[In] string pszRegVal
);VB Signature:
Declare Function SHMessageBoxCheck Lib "shlwapi.dll" (TODO) As TODONotes:
/* We use the Windows Shell function SHMessageBoxCheck, so we have to define this parallel enum of the definitions in winuser.h. */
public enum MessageBoxCheckFlags : uint
{
MB_OK = 0x00000000,
MB_OKCANCEL = 0x00000001,
MB_YESNO = 0x00000004,
MB_ICONHAND = 0x00000010,
MB_ICONQUESTION = 0x00000020,
MB_ICONEXCLAMATION = 0x00000030,
MB_ICONINFORMATION = 0x00000040
}Notes:
Sample Code:
Última actualización