// CUSTOM METHODS public static string GetMessageBoxText(DialogBoxCommandID messageId) { string str = Marshal.PtrToStringAuto(MB_GetString((int)messageId)); if (str[0] == '&') { str = str.Substring(1, str.Length - 1); } return(str); }
public static extern IntPtr MB_GetString(DialogBoxCommandID strId);