PathOptions Enumeration

Flags that determine ho to construct a path.

Definition

Namespace: DevCase.Win32.Enums
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[FlagsAttribute]
public enum PathOptions

Remarks

Members

None 0 Do not allow for the construction of \\?\ paths (ie, long paths) longer than MAX_PATH.
AllowLongPaths 1 Allow the building of \\?\ paths longer than MAX_PATH.
ForceEnableLongNameProcess 2 Forces the API to treat the caller as long path enabled, independent of the process's long name enabled state.

This option can be used only when AllowLongPaths is specified, and cannot be used with ForceDisableLongNameProcess

Note: This value is available starting in Windows 10, version 1703.

ForceDisableLongNameProcess 4 Forces the API to treat the caller as long path disabled, independent of the process's long name enabled state.

This option can be used only when AllowLongPaths is specified, and cannot be used with ForceEnableLongNameProcess

Note: This value is available starting in Windows 10, version 1703.

DoNotNormalizeSegments 8 Disables the normalization of path segments that includes removing trailing dots and spaces.

This enables access to paths that win32 path normalization will block.

Note: This value is available starting in Windows 10, version 1703.

EnsureIsExtendedLengthPath 16 Converts the input path into the extended length DOS device path form (with the \\?\ prefix) If not already in that form.

This enables access to paths that are otherwise not addressable due to Win32 normalization rules (that can strip trailing dots and spaces) and path length limitations.

This option implies the same behavior of DoNotNormalizeSegments.

Note: This value is available starting in Windows 10, version 1703.

EnsureTrailingSlash 32 When combining or normalizing a path, ensure there is a trailing backslash.

Note: This value is available starting in Windows 10, version 1703.

See Also