Partager via


FILES Section

The FILES section specifies how the Windows CE-based files are loaded into the memory table as established in the MEMORY section of the Config.bib file. This section can contain up to 2,000 files.

Each FILES section entry has the following columnar format.

Name        Path        Memory block        Section override        Type

Parameters

  • Name
    This parameter specifies the name of the FILES section entry as it appears in the memory table. Usually, the Name entry is the same as the name of the file referenced by Path.

  • Path
    This parameter specifies the full path to the FILES file that Romimage.exe incorporates into the image. Usually, the Path file name is the same as the Name file section entry.

  • Memory block
    This parameter specifies the MEMORY region into which Romimage.exe loads the FILES entry. Romimage.exe places the files in the specified memory area in the order in which they appear in the MEMORY section. This MEMORY region corresponds to the MEMORY section defined in the Config.bib file.

    There is only one RAMIMAGE per OS image, and the name used to specify the MEMORY section must be the same as the name specified in the Config.bib file.

  • Section override
    This parameter specifies what type of section entry Romimage.exe treats the entry as, and can be set to the following flags:

    • MODULE to define it as a MODULES section entry.
    • FILES to define it as a FILES section entry.

    When this is added to an entry, Romimage.exe ignores the section that the entry resides in, and treats the entry as a member of the specified section. This is optional.

  • Type
    This parameter specifies the file type and can be a combination of the following:

    • S to define it as a system file. It is part of the operating system or is used exclusively by the operating system.
    • H to define it as a hidden file. It is not included in an ordinary directory listing.
    • U to define it as an uncompressed file. All of the data in the file is uncompressed.
    • N to define a module that is not trusted.
    • D to define a module that cannot be debugged by the system.

Example

FILES 
  INITOBJ.DAT %_WINCEROOT%\RELEASE\INITOBJ.DAT  NK  SH 

Romimage.exe creates the Initobj.dat file and loads it into the NK memory block. The file system file is a system file (S), a hidden file (H), and, by default, a compressed file.

Remarks

By default, all files are compressed because they are read into the applications. However, the type of file should dictate whether or not to compress a file.

TrueType font (.ttf) files are usually uncompressed because they are used constantly in the OS.

Waveform audio (.wav) files are not used as frequently; therefore, they are usually compressed.

 Last updated on Friday, October 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.