Does the results of IntPtr.Size show the OS that the .NET app is running on or which version of .NET Framework that is running? If you have a 32-bit app running on a 64-bit machine using WOW, what will IntPtr.Size show (4 or 8)?
It returns the bitness of the current process .
Therefore, if your assembly is compiled as x86 only, it will always return 4, even on an x64 OS.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.