1 /*---------------------------------------------------------------------------* 2 3 Copyright (C) 2009-2013 Nintendo. All rights reserved. 4 5 These coded instructions, statements, and computer programs contain 6 proprietary information of Nintendo of America Inc. and/or Nintendo 7 Company Ltd., and are protected by Federal copyright law. They may 8 not be disclosed to third parties or copied or duplicated in any form, 9 in whole or in part, without the prior written consent of Nintendo. 10 11 *---------------------------------------------------------------------------*/ 12 using System; 13 using System.Collections.Generic; 14 using System.Runtime.InteropServices; 15 using System.Linq; 16 using System.Text; 17 18 namespace CafeX 19 { 20 public class NativeMethods 21 { 22 [DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)] CreateHardLink(string lpFileName, string lpExistingFileName, IntPtr lpSecurityAttributes)23 public static extern bool CreateHardLink(string lpFileName, string lpExistingFileName, IntPtr lpSecurityAttributes); 24 25 26 public const uint SYMBOLIC_LINK_FLAG_FILE = 0; 27 public const uint SYMBOLIC_LINK_FLAG_DIRECTORY = 1; 28 29 [DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)] CreateSymbolicLink(string lpSymlinkFileName, string lpTargetFileName, uint dwFlags)30 public static extern bool CreateSymbolicLink(string lpSymlinkFileName, string lpTargetFileName, uint dwFlags); 31 } 32 } 33