Private Declare Function getusername Lib "advapi32.dll" Alias "getusernamea" (byvallpbuffer As String, nsize As Long) As Longbyvallpbuffer 应该为 byval lpbuffer 你的参数少了个空格;应该为: Private Declare Function getusername Lib "advapi32.dll" Alias "getusernamea" (byval lpbuffer As String, nsize As Long) As Long
你的参数少了个空格;应该为:
Private Declare Function getusername Lib "advapi32.dll" Alias "getusernamea" (byval lpbuffer As String, nsize As Long) As Long