Click or drag to resize

KnownFolderGetPath Method (Guid, IntPtr, KNOWN_FOLDER_FLAG, Boolean)

Gets the full path of a known folder identified by the folder's id.

Namespace:  callback.ShellBoost.Core.WindowsShell
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static string GetPath(
	Guid id,
	IntPtr token,
	KNOWN_FOLDER_FLAG flags = KNOWN_FOLDER_FLAG.KF_FLAG_DEFAULT,
	bool throwOnError = false
)

Parameters

id
Type: SystemGuid
The identifier.
token
Type: SystemIntPtr
An access token that represents a particular user. If this parameter is IntPtr.Zero, which is the most common usage, the function requests the known folder for the current user.
flags (Optional)
Type: callback.ShellBoost.Core.WindowsShellKNOWN_FOLDER_FLAG
The flags.
throwOnError (Optional)
Type: SystemBoolean
true to throw error; otherwise false.

Return Value

Type: String
A string or null.
See Also