com5:DefaultIcon

Description

Provides default icon information for iconic presentations of objects.

Element Hierarchy

<Package>

     <Applications>

          <Application>

               <Extensions>

                    <com4:Extension>

                         <com4:ComServer>

                              <com5:InProcessServer>

                                  <com5:Class> (in InProcessServer)

                                        <com5:DefaultIcon>

                              <com5:InProcessHandler>

                                  <com5:Class> (in InProcessHandler)

                                        <com5:DefaultIcon>

     <Extensions>

          <com4:Extension>

               <com4:ComServer>

                    <com5:InProcessServer>

                        <com5:Class> (in InProcessServer)

                              <com5:DefaultIcon>

                    <com5:InProcessHandler>

                        <com5:Class> (in InProcessHandler)

                              <com5:DefaultIcon>

Syntax

<com5:DefaultIcon     Path = A string between 1 and 256 characters in length that cannot contain these characters: <, >, :, ", |, ?, or *.
    ResourceIndex = Integer.
></com5:DefaultIcon>

Attributes

Attribute Description Data type Required
Path The full path to the executable name of the server application. One of the following values: A string between 1 and 256 characters in length that cannot contain these characters: <, >, :, ", ,, ?, or *. Yes
ResourceIndex The integer at the end of the path, separated from the path by a comma (for example, C:\Foo\Bar\Baz.exe,5). See the nIconIndex parameter in ExtractIcon for more details. Integer. Yes

Parent elements

Parent element Description
com5:Class (in InProcessServer) Specifies properties of a CLSID registered by the package that can be shared by one or more concrete registrations of the CLSID for different class contexts.
com5:Class (in InProcessHandler) Specifies properties of a CLSID registered by the package that can be shared by one or more concrete registrations of the CLSID for different class contexts.

Requirements

Item Value
com5 http://schemas.microsoft.com/appx/manifest/com/windows10/5
Minimum OS Version Windows 11 version 21H2 (Build 22000)