@PascalDragon
Note that I didn't say that it is not possible to determine the O/S bitness using IsWowProcess and/or IsWowProcess2. What I state is that, making the determination using those APIs is cumbersome and, in the case of ARM, it is unreliable. To use those APIs, the programmer first has to determine if those APIs are available and, if they are, use them. To make matters worse, on an ARM processor, the result, if using IsWowProcess, will be incorrect.
The alternative I recommend is a straight, reliable line to the correct answer. Load csrss.exe and check its bitness. No need to find out if a particular API is available and no possibility of getting it wrong regardless of the processor the O/S runs on.
Obviously, everyone is free to choose whatever method they want to use but, I recommend checking csrss.exe because it is the simplest and most reliable route to make the determination. No concerns about user privileges, API availability and processor affect the method.