[DllImport("user32.dll",CharSet=CharSet.Auto)]
public static extern int MessageBox(IntPtr hWnd,String text,String caption,
MessageBoxStyles style); rtlreading=0x00100000U
}
[DllImport("user32.dll", CharSet=CharSet.Auto)]
public static extern uint MessageBox(IntPtr hWnd, String text, String caption, uint type);
Imports System.Runtime.InteropServices
<DllImport("user32.dll", CharSet:=CharSet.Auto)> _
Shared Function MessageBox(ByVal hwnd As IntPtr, ByVal t As String, ByVal caption As String, ByVal t2 As UInt32) As Integer
End Function
None.
None.
Input something
using System;
using System.Runtime.InteropServices;
class Class1
{
[DllImport("user32.dll", CharSet=CharSet.Auto)]
public static extern int MessageBox(IntPtr hWnd, String text, String caption,
uint type);
[STAThread]
static void Main(string[] args)
{
Class1.MessageBox(new IntPtr(0), "Text", "Caption", 0 );
}
}
MessageBox(New IntPtr(0), "Text", "Caption", Convert.ToUInt32(MessageBoxButtons.OK))
}
System.Windows.Forms.MessageBox.Show