We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f5a383 commit faf40d1Copy full SHA for faf40d1
BrowserStackLocal/BrowserStackLocal/Util.cs
@@ -6,6 +6,7 @@ namespace BrowserStack
6
{
7
public class Util {
8
9
+ // Ref: https://stackoverflow.com/a/336729
10
[DllImport("kernel32.dll", SetLastError = true, CallingConvention = CallingConvention.Winapi)]
11
[return: MarshalAs(UnmanagedType.Bool)]
12
private static extern bool IsWow64Process(
@@ -45,6 +46,9 @@ public static string GetUName()
45
46
47
public static bool Is64BitOS()
48
49
+ #if NET48_OR_GREATER || NETSTANDARD2_0_OR_GREATER || NETCOREAPP3_0_OR_GREATER
50
+ return Environment.Is64BitOperatingSystem;
51
+ #endif
52
bool is64BitProcess = IntPtr.Size == 8;
53
return is64BitProcess || InternalCheckIsWow64();
54
}
0 commit comments