Desktop Functions: Smart Device Functions:
|
MessageBox (coredll)
coredll is for smart devices, not desktop Windows. Therefore, this information only applies to code using the .NET Compact Framework. To see if information for MessageBox in other DLLs exists, click on Find References to the right. C# Signature:[DllImport("user32.dll", SetLastError = true, CharSet= CharSet.Auto)] [DllImport("user32.dll", SetLastError = true, CharSet= CharSet.Unicode)] public static extern int MessageBoxW(int hWnd, String text, String caption, uint type); VB Signature:<System.Runtime.InteropServices.DllImport("kernel32.dll", _ <System.Runtime.InteropServices.DllImport("coredll.dll", _
SetLastError:=False)> _ User-Defined Types:None. Alternative Managed API:System.Windows.Forms.MessageBox.Show(string message) Notes:None. Tips & Tricks:Please add some! Sample Code:MessageBoxW(0, "Hello from C#", "pinvoke.net", 0); Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|