Platform

Other versions of this page are also available for the following:

Windows Mobile SupportedWindows Embedded CE Supported

8/28/2008

The [Platform] section in the information (.inf) file determines the target platforms on which your application can be installed, based on a combination of platform and version numbers that you specify.

For All Platforms

You can use this section as a way to refine the valid platform types that are specified in the [CEDevice] section, such as configuring this section to prevent the associated .cab file from installing on any platforms other than the one that you specify.

Note

When using a [Platform] section in an .inf file, you must specify the /platform command-line parameter when you call the CAB Wizard. Otherwise, the CAB Wizard ignores all [Platform] sections when processing the .inf file.

[Platform]
PlatformString=platform_string
PlatformMin=version
PlatformMax=version

Aa924318.collapse(en-US,WinEmbedded.60).gifParameters

  • platform_string
    String that identifies a valid target for the associated application.
  • version
    Numeric value specifying the platform version.

Aa924318.collapse(en-US,WinEmbedded.60).gifRemarks

If you created multiple [Platform] sections and want to create a .cab file for each, pass the string that you used as the label name for the selected platform to the CAB Wizard as the string for the /platform command-line parameter.

For Windows Mobile

For more information about the strings and values that you can use, see Platform Type Reference.

The following code example shows a [Platform] section targeting Windows Mobile 2003:

[Platform.MS_SP]
PlatformString=Smartphone
PlatformMin=3.0

The following code example shows a [Platform] section targeting Windows Mobile 2003 Second Edition:

[Platform.MS_PPC]
PlatformString=PocketPC
PlatformMin=3.1
PlatformMax=4.0

For example, you can use this section to differentiate between Windows Mobile powered devices while specifying the targeted hardware platform, something which cannot be done using [CEDevice] sections alone.

See Also

Concepts

CAB Wizard