2011年6月15日

摘要: 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. 阅读全文
posted @ 2011-06-15 13:45 Ivan Sun 阅读(230) 评论(0) 推荐(0) 编辑

导航