Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get informations from the NT Server
Message
De
24/02/1998 08:10:56
 
 
À
24/02/1998 02:53:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00080701
Message ID:
00080732
Vues:
27
>Is it possible to get informations from the NT Server. Such as your login name. The groups you may be part of and so on?
>
>Hope someone can help me.
To get the user name I use it.

PROCEDURE netuser
local lcUserName
lcUserName = ltrim( substr(sys(0),at("#",sys(0))+1))
if empty(lcUserName)
lcUserName = "Temp"+randname()
endif
RETURN lcUserName
ENDPROC

PROCEDURE RandName
cRand = strtran( str( rand()*100000000,8),' ','0')
RETURN cRand
ENDPROC

Gerardo
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform