Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> drvfsidget()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DrvFSIDGet()
------------------------------------------------------------------------------
 Purpose:
 Get the server ID for a drive.

 Syntax:
 iServerID = DrvFSIDGet( lpszDrive )

 Parameters:
 lpszDrive The drive letter, range A - Z, & [,\,],,_,.

 Returns:
 A numeric value in range 1 to 8 (signed short int).

 The CA-Clipper name for this function is:
 DrvFSIDGet()

 Description:
 DrvFSIDGet() returns the file server connection ID number to which the
 drive lpszDrive is mapped.

 Returns NOVERRINT if an error occurs, or if the drive is not mapped.

 Example:
 // To return the file server to which drive M: is mapped:
 iOldServ = FSPreferredConnGet()
 iNewServ = DrvFSIDGet( "M" )
 FSPreferredConnSet( iNewServ )
 ? "Drive M: is mapped to server" + FSNameGet()
 FSPreferredConnSet( iOldServ )

 Notes:
 This function is normally used in conjunction with
 FSPreferredConnSet().

See Also: FSPreferredConnGet() / FSPreferredConnSet() DrvPathGet() WSDriveNetGet()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson