If this can be done, it is not easy, and it will need to be done from the data that you can get about the running system. Unfortunately, the documents are very unclear. For example, the GetNativeSystemInfo function is enabled in a Metro style application. See this list .
However, the documents for GetNativeSystemInfo cite an example on how to get a version of an OS that uses several APIs that are not in the Metro-style application list, but the example is still in the Metro docs. It is also unclear what the answer from GetNativeSystemInfo will be on the ARM processor.
The bottom line is that this is a bad approach and inevitably causes the fragility of your code. My advice is not to try to do this.
source share