delphi获得电脑登陆名

qq_96392117 20 0 TXT 2019-03-06 08:03:27

Function GetLocalName:String; Var UserName : PChar; Size : Dword; Begin Getmem(UserName ,255); Size:=255; if Windows.GetUserName(UserName,Size) = False then begin Freemem(UserName); GetLocalName := ''; Exit; end; GetLocalName := UserName ; Freemem(UserName);

用户评论
请输入评论内容
评分:
暂无评论