A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



PathBuildRoot

Creates a root path from a given drive number.

VB4-32,5,6
Declare Function PathBuildRoot Lib "shlwapi.dll" Alias "PathBuildRootA" (ByVal szRoot As String, ByVal iDrive As Long) As Long

Operating Systems Supported
Requires Windows 2000 (or Windows NT 4.0 with Internet Explorer 4.0 or later); Requires Windows 98 (or Windows 95 with Internet Explorer 4

Library
Shlwapi

Parameter Information
- szRoot
Address of the string that receives the constructed root path. This buffer must be at least four characters in size.

- iDrive
Integer value that indicates the desired drive number. It should be between 0 and 25.

Return Values
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.

Last update: 07 April 2006