xHarbour Reference Documentation > Function Reference |
Retrieves the current user name or the computer name.
NetName( [<lInfo>] ) --> cComputerName | cUserName
The function returns a character string containing either the computer name or the user name. If this information cannot be retrieved, an empty string ("") is returned.
NetName() serves informational purposes and is used when different users log into the same computer, or when multiple computers run the same application in a network.
See also: | Os(), Version() |
Category: | Environment functions , Network functions |
Source: | rtl\net.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
http://www.xHarbour.com