摘要: public class IdentityScope : IDisposable{ // obtains user token [DllImport("advapi32.dll", SetLastError = true)] static extern bool LogonUser(string pszUsername, string pszDomain, string pszPassword, int dwLogonType, int dwLogonProvider, ref IntPtr phToken); // closes open handes returned 阅读全文
posted @ 2008-06-03 17:28 四六成双 阅读(324) 评论(0) 推荐(0) 编辑