MegaBites-AI/Windows-powershell
0372
1// Copyright (c) Microsoft Corporation.2// Licensed under the MIT License.3 4#nullable enable5 6using System;7using System.Runtime.InteropServices;8 9internal static partial class Interop10{11 internal static unsafe partial class Windows12 {13 [Flags]14 internal enum SymbolicLinkFlags15 {16 File = 0,17 Directory = 1,18 AllowUnprivilegedCreate = 2,19 }20 21 [LibraryImport("api-ms-win-core-file-l2-1-0.dll", EntryPoint = "CreateSymbolicLinkW", StringMarshalling = StringMarshalling.Utf16, SetLastError = true)]22 [return: MarshalAs(UnmanagedType.I1)]23 internal static partial bool CreateSymbolicLink(string name, string destination, SymbolicLinkFlags symbolicLinkFlags);24 }25}26 