2014年4月15日

[转载]C#中int和IntPtr相互转换

摘要: 方法一、 int转IntPtr int i = 12;IntPtr p = new IntPtr(i); IntPtr转intint myi = (int)p;MessageBox.Show(myi.ToString());方法二、 int转IntPtr int i = 12;IntPtr p ... 阅读全文

posted @ 2014-04-15 01:17 iackjee 阅读(5840) 评论(0) 推荐(0) 编辑

[转载]C#获取进程的主窗口句柄

摘要: public class User32API{ private static Hashtable processWnd = null; public delegate bool WNDENUMPROC(IntPtr hwnd, uint lParam); static User32... 阅读全文

posted @ 2014-04-15 01:15 iackjee 阅读(1038) 评论(0) 推荐(0) 编辑

导航