CurUserName
Get the current username from Windows
AI
KI-Zusammenfassung: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.
Quellcode
' Get the current username from Windows ' Coded By MAGiC MANiAC^mTo ' More Examples At: http://home.kabelfoon.nl/~mto/ ' Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" _ (ByVal lpBuffer As String, nSize As Long) As Long Function CurUserName$() Dim sTmp1$ sTmp1 = Space$(512) GetUserName sTmp1, Len(sTmp1) CurUserName = Trim$(sTmp1) End Function
Originalkommentare (3)
Wiederhergestellt von der Wayback Machine