General information
Category:
Windows API functions
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only