摘要:
C#调用非托管的win32 api要用到DllImport。[DllImport("user32.dll", CharSet = CharSet.Auto)]public static extern int MessageBox(IntPtr hWnd, String text, String caption, uint type);获取函数名可以使用 dumpbin /exports user32.dll 或 link /dump /exports user32.dll 命令。http://www.microsoft.com/indonesia/msdn/pinvoke. 阅读全文