Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Launching user's name
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01112899
Message ID:
01112979
Vues:
14
I do not know if there is an elegant way, in my COM server I have a function to do that (And actually a function to retrieve all environment variables)

something like:
* This methods are public members of my COM server

function getUserName() as String
	return getenv('UserName')
endfunc

function getEnv(tcVariableName as String) as String
	if vartype(tcVariableName) = 'C'
		return getenv(tcVariableName)
	else
		return null
	endif
endfunc
Ah! one thing is that the COM Server is launched by interactive user, not sure what would return if launched by specific user


>Is there a way to find a name of the user in the remote server that has stared that server?
>
>Thanks
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform