README.md

December 5, 2022 ยท View on GitHub

Windows Login

Description

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

More Info

Submitted On2003-10-23 13:12:42
ByElitePCBOX
LevelIntermediate
User Rating4.6 (37 globes from 8 users)
CompatibilityVB 6.0
CategoryWindows API Call/ Explanation
WorldVisual Basic
Archive FileWindows_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