4dots Software
CODE HELP BLOG
public static bool Modex64
{
get
{
if (Marshal.SizeOf(typeof(IntPtr)) == 8)
{
return true;
}
else
{
return false;
}
}
}
We check whether the integer pointer has a size of 8. If it does we are running in 64-bit mode, if not in 32-bit mode.