-
Notifications
You must be signed in to change notification settings - Fork 350
Expand file tree
/
Copy pathNativeMethods.cs
More file actions
19 lines (15 loc) · 900 Bytes
/
NativeMethods.cs
File metadata and controls
19 lines (15 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Runtime.InteropServices;
namespace Microsoft.VisualStudio.TestPlatform.PlatformAbstractions;
internal class NativeMethods
{
public const ushort IMAGE_FILE_MACHINE_ARM64 = 0xAA64;
// A pointer to a value that is set to TRUE if the process is running under WOW64.
// If the process is running under 32-bit Windows, the value is set to FALSE.
// If the process is a 64-bit application running under 64-bit Windows, the value is also set to FALSE.
[DllImport("kernel32.dll", SetLastError = true, CallingConvention = CallingConvention.Winapi)]
[return: MarshalAs(UnmanagedType.Bool)]
internal static extern bool IsWow64Process([In] IntPtr process, [Out] out bool wow64Process);
}