Group: Shell Lightweight Utility APIs -- Path Functions - Library: shlwapi
Using Path functions from Shell Lightweight Utility APIs (shlapi.dll)
LPTSTR PathBuildRoot(
LPTSTR szRoot,
int iDrive
); DECLARE INTEGER PathBuildRoot IN shlwapi;
STRING @ szRoot,;
INTEGER iDrive 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.
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.
Home