Click or drag to resize

WindowsUtilitiesGetUserProfileDirectory Method

Gets the path to the root directory of the specified user's profile.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static string GetUserProfileDirectory(
	IntPtr token,
	bool throwOnError = true
)

Parameters

token
Type: SystemIntPtr
A token for the user.
throwOnError (Optional)
Type: SystemBoolean
true to throw error; otherwise false.

Return Value

Type: String
The path to the specified user's profile directory.
Exceptions
ExceptionCondition
ArgumentExceptiontoken is IntPtr.Zero.
See Also