Shell32PathResolve Method

Converts a relative or unqualified path name to a fully qualified path name.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: 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
)

Parameters

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.

Return Value

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.

Remarks

See Also