README.md
December 5, 2022 ยท View on GitHub
Description
Use windows current user login and password in your program, in windows 2000 and XP.
More Info
| Submitted On | 2003-10-23 13:12:42 |
| By | ElitePCBOX |
| Level | Intermediate |
| User Rating | 4.6 (37 globes from 8 users) |
| Compatibility | VB 6.0 |
| Category | Windows API Call/ Explanation |
| World | Visual Basic |
| Archive File | Windows_Lo16624810232003.zip |
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