31 references to NativeMethods
Microsoft.Build.Tasks.Core (19)
AssemblyDependency\ReferenceTable.cs (9)
2904if (machineType == NativeMethods.IMAGE_FILE_MACHINE_INVALID) 2911case NativeMethods.IMAGE_FILE_MACHINE_AMD64: 2914case NativeMethods.IMAGE_FILE_MACHINE_ARM: 2915case NativeMethods.IMAGE_FILE_MACHINE_ARMV7: 2918case NativeMethods.IMAGE_FILE_MACHINE_ARM64: 2921case NativeMethods.IMAGE_FILE_MACHINE_I386: 2924case NativeMethods.IMAGE_FILE_MACHINE_IA64: 2927case NativeMethods.IMAGE_FILE_MACHINE_UNKNOWN: 2992UInt16 machineType = NativeMethods.IMAGE_FILE_MACHINE_INVALID;
Copy.cs (3)
304TryCopyViaLink(HardLinkComment, MessageImportance.Normal, sourceFileState, destinationFileState, out hardLinkCreated, ref errorMessage, (source, destination, errMessage) => NativeMethods.MakeHardLink(destination, source, ref errorMessage, Log)); 928if (code == NativeMethods.ERROR_ACCESS_DENIED) 946else if (code == NativeMethods.ERROR_INVALID_FILENAME)
Exec.cs (2)
324if (ExitCode == NativeMethods.SE_ERR_ACCESSDENIED) 466if (workingDirectoryIsUNC && NativeMethods.AllDrivesMapped())
Move.cs (5)
31private const NativeMethods.MoveFileFlags Flags = NativeMethods.MoveFileFlags.MOVEFILE_WRITE_THROUGH | // Do not return until the Move is complete 32NativeMethods.MoveFileFlags.MOVEFILE_REPLACE_EXISTING | // Replace any existing target 33NativeMethods.MoveFileFlags.MOVEFILE_COPY_ALLOWED; // Moving across volumes is allowed 250bool result = NativeMethods.MoveFileEx(sourceFile, destinationFile, Flags);
Microsoft.Build.Tasks.UnitTests (12)
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (11)
20using NativeMethods = Microsoft.Build.Tasks.NativeMethods; 676return NativeMethods.IMAGE_FILE_MACHINE_INVALID; 680return NativeMethods.IMAGE_FILE_MACHINE_AMD64; 684return NativeMethods.IMAGE_FILE_MACHINE_I386; 688return NativeMethods.IMAGE_FILE_MACHINE_ARM; 692return NativeMethods.IMAGE_FILE_MACHINE_ARMV7; 696return NativeMethods.IMAGE_FILE_MACHINE_IA64; 700return NativeMethods.IMAGE_FILE_MACHINE_R4000; 704return NativeMethods.IMAGE_FILE_MACHINE_UNKNOWN; 708return NativeMethods.IMAGE_FILE_MACHINE_I386; 711return NativeMethods.IMAGE_FILE_MACHINE_INVALID;
Copy_Tests.cs (1)
2758Tasks.NativeMethods.MakeHardLink(destLink, sourceFile, ref linkError, t.Log);