17 references to NativeMethods
Microsoft.Build.Tasks.Core (17)
AssemblyDependency\ReferenceTable.cs (9)
2883
if (machineType ==
NativeMethods
.IMAGE_FILE_MACHINE_INVALID)
2890
case
NativeMethods
.IMAGE_FILE_MACHINE_AMD64:
2893
case
NativeMethods
.IMAGE_FILE_MACHINE_ARM:
2894
case
NativeMethods
.IMAGE_FILE_MACHINE_ARMV7:
2897
case
NativeMethods
.IMAGE_FILE_MACHINE_ARM64:
2900
case
NativeMethods
.IMAGE_FILE_MACHINE_I386:
2903
case
NativeMethods
.IMAGE_FILE_MACHINE_IA64:
2906
case
NativeMethods
.IMAGE_FILE_MACHINE_UNKNOWN:
2971
UInt16 machineType =
NativeMethods
.IMAGE_FILE_MACHINE_INVALID;
Copy.cs (1)
338
TryCopyViaLink(HardLinkComment, MessageImportance.Normal, sourceFileState, destinationFileState, out hardLinkCreated, ref errorMessage, (source, destination, errMessage) =>
NativeMethods
.MakeHardLink(destination, source, ref errorMessage, Log));
Exec.cs (2)
325
if (ExitCode ==
NativeMethods
.SE_ERR_ACCESSDENIED)
472
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
259
bool result =
NativeMethods
.MoveFileEx(sourceFile, destinationFile, Flags);