Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Account name


1 reply to this topic

wolfUkr

wolfUkr
  • Members
  • 24 posts

Posted 16 July 2004 - 13:15

How I can get account (logon) name on computer?

Jochen

Jochen
  • Members
  • 40 posts

Posted 16 July 2004 - 15:04

Hi wolfUkr,

you could use GetEnvVar("USERNAME", svUsername) to get the logged in username from the environment variables. I'm not sure if it works with Win9x but with WinNT or higher it should work.

Hope it helps.

Regards,
Jochen