Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get the full user's name of the PC
Message
De
17/06/2009 15:41:15
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01406221
Message ID:
01406720
Vues:
79
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>How can I get my full user's name instead of what ID() function returns?
>
>Thanks in advance.

I use the "DefName" value of the "HKEY_CURRENT_USER\Software\Microsoft\MS Setup (ACME)\User Info" key from the registry. There is also a "DefCompany" name there too.

You can also find at "HKEY_CURRENT_USER\Software\Microsoft\Windows CE Services", with alot more machine information.

I am not sure which application maintains these setting for user name, but I find them useful at times.
Greg Reichert
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform