This article tells you how indirectly. It shows how to create a useful IsEmulator method that does the trick. You may also be interested in follow-up , if at all interested in finding a platform.
From the article:
using System; using System.IO; using System.Windows.Forms; using Microsoft.Win32; using System.Runtime.InteropServices; using System.Text; namespace PlatformDetection { internal partial class PInvoke { [DllImport("Coredll.dll", EntryPoint = "SystemParametersInfoW", CharSet = CharSet.Unicode)] static extern int SystemParametersInfo4Strings(uint uiAction, uint uiParam, StringBuilder pvParam, uint fWinIni); public enum SystemParametersInfoActions : uint { SPI_GETPLATFORMTYPE = 257,
Randolpho
source share