wntGetUser

Returns the name of the user currently logged into the network.

Syntax:

wntGetUser(netname)

Parameters:

(s) netname: name of network or @DEFAULT for default network.

Returns:

(s) the user name.

 

This function will interrogate the network and return the current user name. @default will return the user id of the local user.

 

"netname" can be the name of a local device, or the name of a remote network resource that the user has made a connection to, or the name of a network provider (i.e, "Microsoft Windows Network" or "NetWare Services")

 

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

username=wntGetUser(@DEFAULT) Message("Current User is",username) Exit
See Also:

wntGetCon