Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using GetObject
Message
De
05/11/2014 10:39:54
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Using GetObject
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:
01610536
Vues:
58
Hi All,

I use this code to find the users login account "Full Name" and login account "Description":
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
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform