/// <summary>
/// Creates a root path from a given drive number
/// </summary>
/// <param name="szRoot">A pointer to the string that receives the constructed root path. This buffer must be at least four characters in size</param>
/// <param name="iDrive">A variable of type int that indicates the desired drive number. It should be between 0 and 25.</param>
/// <returns>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.</returns>
[DllImport("shlwapi.dll", EntryPoint = "PathBuildRootW", SetLastError = True, CharSet = CharSet.Unicode)]
[return: MarshalAs(UnmanagedType.LPTStr)]
static extern string PathBuildRoot([MarshalAs(UnmanagedType.LPTStr)]szRoot As System.Text.StringBuilder,
iDrive As Integer);
''' <summary>
''' Creates a root path from a given drive number
''' </summary>
''' <param name="szRoot">A pointer to the string that receives the constructed root path. This buffer must be at least four characters in size</param>
''' <param name="iDrive">A variable of type int that indicates the desired drive number. It should be between 0 and 25.</param>
''' <returns>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.</returns>
<DllImport("shlwapi.dll", EntryPoint:="PathBuildRootW", SetLastError:=True, CharSet:=CharSet.Unicode)> _
Public Function PathBuildRoot(<MarshalAs(UnmanagedType.LPTStr)>szRoot As System.Text.StringBuilder, _
iDrive As Integer) as <MarshalAs(UnmanagedType.LPTStr)>String
End Function
Public Declare Function PathBuildRoot Lib "shlwapi" Alias "PathBuildRootA" _
(ByVal szRoot As String, _
ByVal iDrive As Integer) As Long
None.
Do you know one? Please contribute it!
None.
Please add some!
Please add some!