GETCOMPUTER

Purpose:

Returns the computer type, OS type, CPU type for the host computer.

Syntax:

GETCOMPUTER(type)

type

-

Optional. An integer, the information type.

-1:

CPU type

 0:

machine type, returns 2 for Windows (default)

 1:

OS type

100:

memory mode

200:

uses 64 bit index?

300:

OS build number

400:

is user administrator?

Returns:

An integer, the computer type, CPU type or OS type.

Example:

getcomputer()

 

returns 0 for a Windows machine.

Example:

getcomputer(1)

 

returns an integer representing the OS version of the host computer.

Example:

getcomputer(200)

 

returns 1 if array indices are 64 bit integers, else 0.

Example:

getcomputer(300)

 

returns an integer representing the build number of the OS.

Example:

getcomputer(400)

 

returns 1 if the user is administrator, else 0.

Remarks:

CPU type and OS type return the vendor specific value for the host computer.

See Also:

GETCONFIG

GETENV

GETEXENAME