Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using GetObject
Message
De
05/11/2014 11:40:19
 
 
À
05/11/2014 10:39:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01610536
Message ID:
01610544
Vues:
58
I think it is the user of the active directory services, which also has an object interface called User

>
>
>
>TUSER_NAME = PADR( ALLTRIM( SUBSTR( SYS(0), AT( "#", SYS(0) ) + 1 ) ), 50 )
>
>TOBJ_Windows_User = GETOBJECT( "WinNT://" + Getenv("USERDOMAIN") + "/" + ALLTRIM( m.TUSER_NAME ) + ",User" )
>
>? TOBJ_Windows_User.FullName 
>? TOBJ_Windows_User.Description
>
>
>
>What is that GETOBJECT() actually doing? I need to create this in a WinDev application and I cant find the functions I need. They might be there but I could be looking in the wrong places so perhaps understanding GETOBJECT() will show me a way.
>
>Or is there another way to get this info perhaps using Windows API ?
>
>TIA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform