CurUserName
Get the current username from Windows
AI
AI 요약: 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.
소스 코드
' 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
원본 댓글 (3)
Wayback Machine에서 복구됨