Adding an Implementation Block to a .cec File

Once you have created basic information for a component by adding the ComponentType block to a Catalog feature (.cec) file, you need to define instances of the component by adding an Implementation block. Implementation blocks are nested within ComponentType blocks. A component type can have multiple implementation blocks. For more information, see Implementation Block.

  1. In your .cec file (for example, MyFeature.cec), enter or edit the following block:

      Implementations(
        Implementation(
            Name(MyFeature)
            GUID(<GUID Value>)
            FeatureVariable(<SYSGEN_NEWFEATURE>, "1")
            Children(MyChild1 MyChild2)
    
  2. For the Name element, type a string that identifies the name of this specific implementation.

  3. For the GUID element, enter a unique ID.

    Although GUIDs are automatically generated for any structure that does not supply one, it is strongly recommended that you supply your own GUIDs for your features to ensure consistency. You can use the GUIDGEN tool to create a new GUID. GUIDGEN.exe is located in the %_WINCEROOT%\SDK\BIN\i386 directory. For more information, see GUIDs and UUIDs.

  4. For the FeatureVariable element, associate this implementation with your feature by passing the Sysgen variable for the application you created.

  5. For the Children element, you can optionally enter child component types by name or GUID.

    Note   For more information about how these parameters are used, see Sample .cec Files.

See Also

Adding a .cec File to the Catalog | Removing a .cec File from the Catalog | Sample .cec Files | Reverting to an Empty Catalog | Implementation Block | Binary Image Builder File

 Last updated on Friday, October 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.