Detect if you're app is running in the emulator?

Is there a way to detect if your app is running in the emulator

C#

I have some code that will only run on a PPC.

Thanks




Answer this question

Detect if you're app is running in the emulator?

  • M. Leary

    How could I call this though as I'm in the .net CF.

    PInvoke

    Thanks.

  • stupots

    Yes, P/Invoke.



  • TANWare

    You can try calling SystemParametersInfoString(SPI_GETOEMINFO...);
    Documentation is on MSDN.



  • Detect if you're app is running in the emulator?