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