SetCpu Function (DWord) | |
Return and optionally change the setting that determines the type of central processor you have.
Namespace:
XSharp.Core
Assembly:
XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax FUNCTION SetCpu(
nNewSetting AS DWORD
) AS DWORD
public static uint SetCpu(
uint nNewSetting
)
Request Example
View SourceParameters
- nNewSetting
- Type: DWord
A value, like 386 or 486, for the new setting.
The initial default is the numeric identifier of your central processor.
Return Value
Type:
DWord
If
lNewSetting is not specified, SetCPU() returns the current setting.
If
lNewSetting is specified, the previous setting is returned.
Remarks
SetCPU() is an environment function that returns the numeric identifier of the central processor.
Examples
This example queries the processor type:
1FUNCTION Start()
2 QOut("CPU type: ", SetCPU())
3 WAIT
See Also