PathBuildRootA function

Creates a root path from a given drive number.

Syntax

LPSTR PathBuildRootA(
  LPSTR pszRoot,
  int   iDrive
);

Parameters

pszRoot

Type: LPTSTR

A pointer to the string that receives the constructed root path. This buffer must be at least four characters in size.

iDrive

Type: int

A variable of type int that indicates the desired drive number. It should be between 0 and 25.

Return Value

Type: LPTSTR

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.

Requirements

   
Minimum supported client Windows 2000 Professional, Windows XP [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header shlwapi.h
Library Shlwapi.lib
DLL Shlwapi.dll (version 4.71 or later)