On Fri, 29 Dec 2006 22:34:29 +0100, Adrian < wrote:
System Properties show the User. I would like to be able to extract that
information in an application (not change it, only retrieve it). How can
that be done?
Thank you,
Adrian.
I'm assuming you mean the name on the General tab of the system properties.
You can get it in this registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion in the
value RegisteredOwner
This is NOT THE SAME value as the currently logged on user. That you would
get this way
System.Environment.UserName
--
Bits.Bytes
http://bytes.thinkersroom.com