Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.12 KB

File metadata and controls

46 lines (32 loc) · 1.12 KB

Home

Function name : PathBuildRoot

Group: Shell Lightweight Utility APIs -- Path Functions - Library: shlwapi


Creates a root path from a given drive number.


Code examples:

Using Path functions from Shell Lightweight Utility APIs (shlapi.dll)

Declaration:

LPTSTR PathBuildRoot(
    LPTSTR szRoot,
    int iDrive
);  

FoxPro declaration:

DECLARE INTEGER PathBuildRoot IN shlwapi;
	STRING  @ szRoot,;
	INTEGER   iDrive  

Parameters:

szRoot [out] Pointer to a string that receives the constructed root path. This buffer must be at least four characters in size.

iDrive [in] Integer that indicates the desired drive number. It should be between 0 and 25.


Return value:

Returns the address of the constructed root path. If the call fails for any reason (for example, an invalid drive number), szRoot is returned unchanged.