1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
7 public static partial class Environment
9 public enum SpecialFolderOption
12 Create
= SpecialFolderOptionValues
.CSIDL_FLAG_CREATE
,
13 DoNotVerify
= SpecialFolderOptionValues
.CSIDL_FLAG_DONT_VERIFY
,
16 // These values are specific to Windows and are known to SHGetFolderPath, however they are
17 // also the values used in the SpecialFolderOption enum. As such, we keep them as constants
18 // with their Win32 names, but keep them here rather than in Interop.Kernel32 as they're
19 // used on all platforms.
20 private static class SpecialFolderOptionValues
23 /// Force folder creation in SHGetFolderPath. Equivalent of KF_FLAG_CREATE (0x00008000).
25 internal const int CSIDL_FLAG_CREATE
= 0x8000;
28 /// Return an unverified folder path. Equivalent of KF_FLAG_DONT_VERIFY (0x00004000).
30 internal const int CSIDL_FLAG_DONT_VERIFY
= 0x4000;