: [DUG]: Getting the current
user
function NetworkID:
string;var buffer : string; buffSize :
DWORD; bRet: boolean;begin
buffSize:=128; SetLength(buffer,BuffSize); bRet :=
GetUserName(PChar(buffer), buffSize); if bRet
then result := strpas(PChar(buffer))
else Result := '';end
[mailto:[EMAIL PROTECTED]]Sent: Thursday, 16 August 2001
09:37To: Multiple recipients of list delphiSubject: Re:
[DUG]: Getting the current user
Stephen
VERY cool!
Thanks very much. I had searched for 'username' and
didn't come up with this. Where is it documented?
Mark
Mark
I'm going to have to have another go at getting D5's Open Help working
When you get the definative answer pls post it :-)
Neven
---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
- Original Message -
From: Neven MacEwan [EMAIL PROTECTED]
To: Multiple recipients of list delphi [EMAIL PROTECTED]
Sent: Thursday, August 16, 2001 11:25 AM
Subject: Re: [DUG]: Getting the current user
Mark
I'm going to have to have another go at getting D5's Open Help working
When you get
not *.toc)
Save the file and from now on the WinAPI calls help file should be
available.
-Original Message-
From: Mark Howard [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 16 August 2001 12:07
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Getting the current user
UhOh - Doesn't
Mark - just F1 on GetUserName in the editor works for me (D5 pro)
Steve
-Original Message-
From: Mark Howard [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 16 August 2001 12:07
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Getting the current user
UhOh - Doesn't sound
for me (D5 pro)
Steve
-Original Message-
From: Mark Howard [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 16 August 2001 12:07
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Getting the current user
UhOh - Doesn't sound good. I assumed it was just me!
So how have
function)?
Mark
- Original Message -
From: Neven MacEwan [EMAIL PROTECTED]
To: Multiple recipients of list delphi [EMAIL PROTECTED]
Sent: Thursday, August 16, 2001 11:25 AM
Subject: Re: [DUG]: Getting the current user
Mark
I'm going to have to have another go at getting D5's Open
function NetworkID:
string;var buffer : string; buffSize :
DWORD; bRet: boolean;begin
buffSize:=128; SetLength(buffer,BuffSize); bRet :=
GetUserName(PChar(buffer), buffSize); if bRet
then result := strpas(PChar(buffer))
else Result := '';end;
-Original Message-From: Mark Howard