DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

C# Logonuser Asi

08.01.2009
| 5889 views |
  • submit to reddit
        To validate a windows login 

[DllImport("advapi32.dll", SetLastError = true)]
        public static extern bool LogonUser(
            string lpszUsername,
            string lpszDomain,
            string lpszPassword,
            int dwLogonType,
            int dwLogonProvider,
            out IntPtr phToken
            );
    

Comments

Snippets Manager replied on Tue, 2009/12/15 - 12:39pm

I htink c# is great for the proramming community.. Dentist Cambridge|Dentists

Snippets Manager replied on Sun, 2009/11/22 - 5:16pm

helpful code snippet. dermapril acai berry detox resveratrol supplements dermapril

Snippets Manager replied on Sat, 2009/11/21 - 10:51pm

that is really helpful. Teeth whitening manchester