xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

NetName()

Retrieves the current user name or the computer name.

Syntax

NetName( [<lInfo>] ) --> cComputerName | cUserName

Arguments

<lInfo>
If <lInfo> is set to .T. (true), the function returns the user account name, otherwise it returns the computer name.

Return

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.

Description

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.

Info

See also:Os(), Version()
Category: Environment functions , Network functions
Source:rtl\net.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe