I would like to access to the system to take usernames, check passwords with Windows NT or Windows 2000... because i want to check the entries to a vb program.
You can use the GetUserName API to obtain a username. Not aware of any APIs that retrieve passwords. I hope none exist!!
‘=====================================
Option Explicit
Private Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long
Private Sub Form_Load()
Dim sUserName As String
Dim iLen As Long
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.