wntUserInfo

Returns information about the currently logged-on user.

Syntax:

wntUserInfo(request)

Parameters:

(i) request: specifies the information to be returned. See below.

Returns:

(s) returns a string.

 

"request" specifies the information to be returned, and can be one of the following:

 

Value

Name

Meaning

0

user name

name of the user currently logged on to the
workstation

1

logon domain

domain name of the user account of the user
currently logged on to the workstation

2

other domains

space-delimited list of other LAN Manager
domains browsed by the workstation

3

logon server

name of the computer that authenticated
the server

 

Example:
; Load Appropriate Extender
AddExtender('wwwnt34i.dll',0,'wwwnt64i.dll')

daserver = wntUserInfo(3) Message("Logon server", daserver) Exit
See Also:

wntUserProps