CEDevice (Compact 2013)

3/26/2014

The [CEDevice] section of the information (.inf) file is optional and describes the hardware platform for which your application is targeted.

If you want to use the .inf file to target multiple processors or platforms that you specify, you can distinguish the sections by appending a unique label that indicates the platform to the section name. This practice is useful if you are using the same set of application binaries to create multiple .cab files targeted at multiple platforms. To do this, use a [Platform] section to specify the target platform versions, and use multiple [CEDevice.XXX] sections in the .inf file to help separate the application binaries into the appropriate .cab file for each platform.

For more information, see Information (.inf) File Overview.

If a key is nonexistent or contains no data, the checks specified for that key are not performed.

Note

Do not use the UnsupportedPlatforms key. It has been removed, and if you include it in the [CEDevice] section, the CAB Wizard generates an error.

Syntax

[CEDevice]
[ProcessorType =[processor_type]]
[VersionMin = [major_version.minor_version]]
[BuildMax= [BuildMax_value]]

Parameters

  • processor_type
    Value returned by SYSTEM_INFO.dwProcessorType.
  • major_version and minor_version
    Numeric values that are returned by OSVERSIONINFO.dwVersionMinor and OSVERSIONINFO.dwVersionMajor.

    The .cab file is valid for the currently connected target device if the version is greater than or equal to VersionMin.

  • BuildMax_value
    Value that indicates support for square screens and screen rotation.

    The following table shows the valid values.

    Value

    Description

    0xA0000000

    Supports square screens.

    0xC0000000

    Supports screen rotation.

    0xE0000000

    Supports both square screens and screen rotation.

Examples

In the following code example, the [CEDevice] section specifies that all platforms support square screens and sets BuildMax to 0xA0000000, while [CEDevice.ARM] specifies that ARM platforms support both square screens and screen rotation and sets BuildMax to 0xE0000000.

[CEDevice]
BuildMax=0xA0000000
[CEDevice.ARM]
BuildMax=0xE0000000

The following code example inherits all [CEDevice] settings from the first example, but now [CEDevice.ARM] overrides the version settings so that no version checking is performed.

[CEDevice.ARM]
ProcessorType = 2577
VersionMin =

Remarks

If you created multiple [CEDevice.DeviceLabel] sections in an .inf file in order to generate multiple .cab files, the labels appended must also be the labels specified when using the hardware_platform_label variable with the /cpu command-line parameter in a call to the CAB Wizard.

See Also

Reference

Information (.inf) File Overview
CAB Wizard

Other Resources

SYSTEM_INFO