[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
private static extern IntPtr MB_GetString(int strId);
<DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Unicode)>
Private Shared Function MB_GetString(ByVal strId As Integer) As IntPtr
End Function
Do you know one? Please contribute it!
Use Marshal.PtrToStringAuto to retrieve the returned message.
Please add some!
strMBText = Marshal.PtrToStringAuto(MB_GetString(id)) 'ID As DialogBoxCommandID