Load_PegCpuType

This function retrieves a character string that contains the name of the CPU type.

At a Glance

Header file: Ppcload.h
Windows CE versions: 1.0 and 1.01

Syntax

BOOL Load_PegCpuType(LPSTR lpszCpu);

Parameters

lpszCpu

[out] Upon successful completion of the function, pointer to a null-terminated string that contains the type of CPU running the device.

The valid types pointed to by lpszCpu include the following.

Value Description
Hitachi SH3 SH3
MIPS R4000 MIPS

Return Values

TRUE indicates success. FALSE indicates that an error occurred during the retrieval, or an unknown CPU type was found.

Remarks

The Load_PegCpuType function retrieves the CPU type of the last device to connect to the H/PC, Palm-size PC Explorer program. For Load_PegCpuType to return successfully, H/PC, Palm-size PC Explorer must have previously connected to the device at least once. Load_PegCpuType does not distinguish between MIPS R3910 and R4100 chips—it returns R4000 for both. Use Load_PegGetPlatform if this distinction is important.

If the desktop computer is being used with more than one device, you must run Load_Init first. Otherwise Load_PegCpuType will return information about the last device to be connected, not the current one.

Load_PegCpuType is exported by Ppcload.dll, which runs on the desktop computer—it is intended to be called from a setup program.

This function is not supported on Windows CE versions 2.0 and later. For more information on installing applications for versions 2.0 and later, see Connection Services.