• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 301
  • Last Modified:

users Nt and Delphi

How to verify in the Delphi which using NT is connected?

Thanks,
   Leonardo
0
leonardo_dantas
Asked:
leonardo_dantas
  • 3
1 Solution
 
kretzschmarCommented:
? explain more ?
0
 
intheCommented:
Hi
http://www.jgsoftware.com/files/ntuserlist.zip 
is a component for getting the nt user name

Regards Barry
0
 
intheCommented:
or can do this:

procedure TForm1.Button1Click(Sender: TObject);
var
i : cardinal;
user:string;
begin
i:=255;
setlength(user,i);
getusername(pchar(user),i);
setlength(user,(i-1));
showmessage(user);

end;
0
 
leonardo_dantasAuthor Commented:

     Thanks!
 
Its second reply was perfect, but the component that indicated me did not compile. The error is the following one: " File not Found: StrUtils.dcu ". You it tested this component with Windows 95?
 Leonardo.


0
 
intheCommented:
>>You it tested this component with Windows 95???


the question said :
How to verify in the Delphi which using NT is connected?

therefore i gave nt component ;-)

then i remembered the code i gave second for getting the username.

Regards Barry
0

Featured Post

2018 Annual Membership Survey

Here at Experts Exchange, we strive to give members the best experience. Help us improve the site by taking this survey today! (Bonus: Be entered to win a great tech prize for participating!)

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now