Shell32PathResolve Method
Converts a relative or unqualified path name to a fully qualified path name.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Shell32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true, SetLastError = true)]
public static bool PathResolve(
StringBuilder path,
string[] dirs,
PathResolveFlags flags
)
<DllImportAttribute("Shell32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ExactSpelling := true, ThrowOnUnmappableChar := true, SetLastError := true>]
Public Shared Function PathResolve (
path As StringBuilder,
dirs As String(),
flags As PathResolveFlags
) As Boolean
Dim path As StringBuilder
Dim dirs As String()
Dim flags As PathResolveFlags
Dim returnValue As Boolean
returnValue = Shell32.PathResolve(path,
dirs, flags)
public:
[DllImportAttribute(L"Shell32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true, SetLastError = true)]
static bool PathResolve(
StringBuilder^ path,
array<String^>^ dirs,
PathResolveFlags flags
)
[<DllImportAttribute("Shell32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true, SetLastError = true)>]
static member PathResolve :
path : StringBuilder *
dirs : string[] *
flags : PathResolveFlags -> bool
No code example is currently available or this language may not be supported.
- path StringBuilder
-
A null-terminated Unicode string that contains the path to resolve.
When the function returns, the string contains the corresponding fully qualified path.
This buffer should be at least MAX_PATH characters long.
- dirs String
-
A pointer to an optional null-terminated array of directories to be searched first in the case that the
path cannot be resolved from path.
This value can be NULL.
- flags PathResolveFlags
-
Flags that specify how the function operates.
Boolean
Returns
, unless
VerifyExists is set.
If that flag is set, the function returns
if the file is verified to exist,
and
otherwise.
It also sets an
ERROR_FILE_NOT_FOUND error code that you can
retrieve by calling GetLastError.