摘要: 需要调用Windows登陆函数,从AdvAPI32.dll里面导入3个函数LogonUser,DuplicateToken和CloseHandle。具体过程和代码一并写在下面:从Dll导入3个Windows函数 [DllImport("advapi32.dll", SetLastError = true)]private static extern bool LogonUser(string lpszUsername, string lpszDomain, string lpszPassword, int dwLogonType, int dwLogonProvider, 阅读全文
posted @ 2011-03-08 14:22 Haitao Chen 阅读(628) 评论(0) 推荐(0) 编辑