VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Test for domain/user/password combination.

ATM  (1 Submission)   Windows System Services   Visual Basic 3.0   Beginner   Wed 3rd February 2021

Allow You to test Domain/User/Password combination ...

Assumes
Create form1,text1 - domain,text2 - user,text3 - password,command1.

API Declarations
Private Declare Function LogonUser Lib "advapi32" Alias "LogonUserA" (ByVal lpszUsername As String, ByVal lpszDomain As String, ByVal lpszPassword As String, ByVal dwLogonType As Long, ByVal dwLogonProvider As Long, phToken As Long) As Long
Private Declare Function GetLastError Lib "kernel32" () As Long
Private Const LOGON32_LOGON_BATCH = 4
Private Const LOGON32_PROVIDER_DEFAULT = 0

Rate Test for domain/user/password combination. (3(3 Vote))
Test for domain/user/password combination..bas

Test for domain/user/password combination. Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters