31 references to NativeMethods
Microsoft.Build.Tasks.Core (19)
AssemblyDependency\ReferenceTable.cs (9)
2903if (machineType == NativeMethods.IMAGE_FILE_MACHINE_INVALID) 2910case NativeMethods.IMAGE_FILE_MACHINE_AMD64: 2913case NativeMethods.IMAGE_FILE_MACHINE_ARM: 2914case NativeMethods.IMAGE_FILE_MACHINE_ARMV7: 2917case NativeMethods.IMAGE_FILE_MACHINE_ARM64: 2920case NativeMethods.IMAGE_FILE_MACHINE_I386: 2923case NativeMethods.IMAGE_FILE_MACHINE_IA64: 2926case NativeMethods.IMAGE_FILE_MACHINE_UNKNOWN: 2991UInt16 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)
321if (ExitCode == NativeMethods.SE_ERR_ACCESSDENIED) 463if (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);