Examples: Runtime_GetCPUType()


The following example uses the Runtime_GetCPUType() function to retrieve information about the CPU on which the application is being run. The information is displayed in a warning dialog box.

local integer general_CPU_class, specific_CPU_class;
local string CPU_description;

general_CPU_class = Runtime_GetCPUType(specific_CPU_class);
if general_CPU_class <> 0 then
	case general_CPU_class
		in [DEX_CPU_Ix86]
			CPU_description = "Intel 80X86";
		else
			CPU_description = "Unknown CPU type";
	end case;
else
	CPU_description = "Unknown CPU type";
end if;
warning CPU_description;

Documentation Feedback