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 许明会 阅读(215) 评论(0) 推荐(0)
浙公网安备 33010602011771号