Load_PegGetPlatformName

The Load_PegGetPlatformName function retrieves the CPU type of the device currently connected to the desktop PC.

Syntax

BOOL Load_PegGetPlatformName(LPTSTR pszPlatformName);

At a Glance

Header file: Platform.h
Platforms: H/PC
Windows CE versions: 1.0 and 1.01

Parameters

pszPlatformName
Upon successful return, this parameter points to a string containing the specific CPU type of the device connected to the desktop PC.

Return Values

If the function succeeds, the return value is TRUE, otherwise FALSE.

Remarks

The Load_PegGetPlatformName function is located in Platform.dll, not with the other apploader functions in PpcLoad.dll.

Unlike Load_PegCpuType, this function distinguishes between the MIPS R3910 and R4100 chips.

The Load_PegGetPlatformName function will fail if a device is not currently connected to the desktop PC.

The string pointed to by the pszPlatformName parameter must be user-allocated of size MAX_PATH.

This function is not supported on Windows CE version 2.0. For more information on installing applications for version 2.0, see Installing Applications.

See Also

Load_PegCpuType