摘要: [DllImport("Kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)] public static extern bool CloseHandle(IntPtr handle); [DllImport("kernel32", EntryPoint = "GetLastError")] public static extern int GetLastError();CloseHandle()释放两次就会抛异常,用GetLastError()来捕获,如果返回3,〖3 阅读全文
posted @ 2013-09-26 11:47 亲福 阅读(969) 评论(0) 推荐(0) 编辑