home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR19
/
RLIBDOC.ZIP
/
NOVCLIP.DOC
next >
Wrap
Text File
|
1993-08-20
|
6KB
|
221 lines
-----------------------------------------------------------------------------
Function: NWConnectId()
Purpose: Retrieve the workstation connection number.
Syntax: NWConnectId()
Arguments: None
Returns: Connection number as a Clipper numeric value.
Description: This function returns the connection number of the calling
workstation as a numeric value. The connection number is
only valid and/or meaningful when the requesting station
is logged into a server. First check if the station is
logged into a server with the function NWLoggedIn().
Notes: The connection number is for the default file server.
Example: LOCAL station := NWConnectId()
? "You are logged in on station number:", station
See also: NWIPXLoaded(), NWLoggedIn(), NWShellLoaded()
Source: NOVCLIP.C
-----------------------------------------------------------------------------
Function: NWFullName()
Purpose: Get the full name of the user logged into the current station.
Syntax: NWFullName()
Arguments: None
Returns: The full name of the user logged into the requesting station.
Description: This function returns the user name of the user (object) that
is logged into the requesting workstation. The user name is
that which is stored in the bindery as maintained by the
supervisor.
Notes: The name returned is for the connection to the default file
server.
Example: LOCAL userName := NWFullName()
? "Hello " + userName
See also: NWLoginId, NWLoginTime()
Source: NOVCLIP.C
-----------------------------------------------------------------------------
Function: NWIPXLoaded()
Purpose: Determine if IPX is loaded on the requesting workstation
Syntax: NWIPXLoaded()
Arguments: None
Returns: True if IPX is loaded on the requesting workstation.
Description: This function tests to see if IPX has been loaded.
Notes: This function makes an interrupt call to IPX to test for
its presence.
Example: IF .NOT. NWIPXLoaded()
? "IPX is not loaded. Please load IPX then NETx."
ENDIF
See also: NWLoggedIn(), NWShellLoaded()
Source: NOVCLIP.C
-----------------------------------------------------------------------------
Function: NWLoggedIn()
Purpose: Determine if the calling workstation is logged in to a server.
Syntax: NWLoggedIn()
Arguments: None
Returns: True if the calling workstation is currently logged into a
NetWare file server.
Description: This function lets you determine if the calling workstation
is currently logged into a NetWare file server. The station
may be attached but not logged in, in which case NWLoggedIn()
will return False.
Notes: NWLoggedIn() makes a call to GetConnectionInfo() and returns
the result. GetConnectionInfo() returns a non-zero value on
success.
Example: IF .NOT. NWLoggedIn()
? "Network files are not available, please login."
ENDIF
See also: NWLoginId()
Source: NOVCLIP.C
-----------------------------------------------------------------------------
Function: NWLoginId()
Purpose: Retrieve the login id (user name) of the current station.
Syntax: NWLoginId()
Arguments: None
Returns: The user login ID as a Clipper character string.
Description: This function returns the login id (name) of the user logged
in at the requestion workstation. The login id is not to be
confused with the login user full name. The login id is the
name specified when logging in to a NetWare file server.
Notes: The name returned is for the connection to the default file
server.
Example: ? " User: " + NWLoginId() +;
" logged into station #" + LTRIM(STR(NWConnectId())) +;
" at " + NWLoginTime()
See also: NWFullName(), NWLoginTime()
Source: NOVCLIP.C
-----------------------------------------------------------------------------
Function: NWLoginTime()
Purpose: Retrieve the login time of the current connection
Syntax: NWLoginTime()
Arguments: None
Returns: Login time as a Clipper character string, format HH:MM:SS
Description: This function returns the time that the requesting station
last logged into the file server. The time is returned as
a character string in the same format as the TIME() function.
Notes: The time returned is for the connection to the default file
server.
Example: ? " User: " + NWLoginId() +;
" logged into station #" + LTRIM(STR(NWConnectId())) +;
" at " + NWLoginTime()
See also: NWConnectId(), NWLoginId()
Source: NOVCLIP.C
-----------------------------------------------------------------------------
Function: NWShellLoaded()
Purpose: Determine if the NetWare shell (NETx) is loaded
Syntax: NWShellLoaded()
Arguments: None
Returns: True if the NetWare shell is loaded on the workstation.
Description: This function is useful for determining if the NetWare
shell (NETx) is loaded. If the shell is not loaded then
the workstation cannot login to and access a file server.
Notes: This function makes a call to get the connection number
assigned to the shell. An unchanged value (0) indicates
that the shell is not loaded or unavailable.
Example: IF .NOT. NWShellLoaded()
? "The NetWare shell is not loaded"
ENDIF
See also: NWIPXLoaded(), NWLoggedIn()
Source: NOVCLIP.C