Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get the full username(displayname) from the AD
Message
De
08/02/2005 08:27:59
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Allemagne
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
How to get the full username(displayname) from the AD
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2003
Divers
Thread ID:
00984699
Message ID:
00984699
Vues:
72
Hello everybody

How can i retrieve the full username(displayname) from the active directory with VFP8.0

I get the current user by doing the following code
* user und standardmessage ???
DECLARE INTEGER GetUserName in WIN32API String @,Integer @
LOCAL lcUser
lcUser=SPACE(40)
GetUserName(@lcUser,20)
p_user=STRTRAN(lcUser,CHR(0),'')
p_user = ALLTRIM(UPPER(p_user))
p_messagetitel="Hello " + p_user + "! Just a moment !??"
*end user und standardmessage ???

Now i need the full username(=displayname) of the current user from the AD ??
p_user = ameier
p_displayname = "Anton Meier"

I don't know how to code this.
Any help welcomed.

Best regards
Albert
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform