- Check the Environment.Is64BitProcess instead of IntPtr.Size.