VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Windows Login

by ElitePCBOX (3 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (8 Votes)

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

Download Windows Login

Download Windows Login (2 KB)

Windows Login Comments

No comments have been posted about Windows Login. Why not be the first to post a comment about Windows Login.

Post your comment

Subject:
Message:
0/1000 characters