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> drvdirmap()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DrvDirMap()
------------------------------------------------------------------------------
 Purpose:
 Map a network directory to a drive letter.

 Syntax:
 iHandle = DrvDirMap( lpszPath, lpszDrive, bTemp )

 Parameters:
 lpszPath  The full NetWare path name of the directory to map.
 lpszDrive The drive letter to which the directory is mapped.
 bTemp     The temporary flag.

 Returns:
 A numeric value (signed short int).

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

 Description:
 DrvDirMap() returns the directory ID number if the mapping was successful.
 lpszPath must be the full directory path, including the volume name. bTemp
 is the temporary flag. A temporary drive mapping is one that will last
 only until it is deleted or the program is exited.

 Returns a numeric handle, or NOVERRINT if an error occurs.

 Example:
 // To map the SYS:SYSTEM directory to the drive letter M:
 iDirID = DrvDirMap( "SYS:SYSTEM", "M" )
 if ( iDirID != NOVERRINT )
    ? "The directory ID of new drive M: is ", iDirID
 endif

See Also: SchDriveDirMap() DrvMapDelete()

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