p/invoke示例
摘要:
usingSystem;usingSystem.Windows.Forms;usingSystem.Runtime.InteropServices;publicclassMyClass{[DllImport("user32.dll",EntryPoint="MessageBoxW")]publicstaticexternintMessageBoxW([In]System.IntPtrhWnd,[In][MarshalAs(UnmanagedType.LPWStr)]stringlpText,[In][MarshalAs(UnmanagedType.LPW 阅读全文
posted @ 2013-04-25 11:26 许明会 阅读(203) 评论(0) 推荐(0) 编辑