But i am not sure if this check the version of windows or my application. And the other thing is using isWow64 returning true or false i'm doing well to get the correct architecture of windows?
There's two problems:
1. Like you suspect, what you're checking only tells you how your program was compiled, not the bitness of the system.
2. The bitness of the system and whether the current process is a WOW64 process are two separate questions. If the current process is WOW64 then you know the system is 64-bit, but if it's not WOW64, the system could still be either platform.