Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get informations from the NT Server
Message
From
24/02/1998 08:10:56
 
 
To
24/02/1998 02:53:08
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00080701
Message ID:
00080732
Views:
23
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform