VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Windows Login

ElitePCBOX  (3 Submissions)   Windows API Call/Explanation   Visual Basic 5.0   Intermediate   Wed 3rd February 2021

Use windows current user login and password in your program, in windows 2000 and XP.

API Declarations
Public Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long
Public Declare Function LogonUser Lib "advapi32.dll" 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

Rate Windows Login (9(9 Vote))

Download Windows Login

Windows Login Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters