Previous Next

INF ClassInstall32.Services Section

[ClassInstall32.Services] |
[ClassInstall32.nt.Services] |
[ClassInstall32.ntx86.Services] |
[ClassInstall32.ntia64.Services]

 
AddService=ServiceName,[flags],service-install-section[,
            event-log-install-section[,[EventLogType][,EventName]]]...
[DelService=ServiceName[,[flags][,[EventLogType][,EventName]]]...
[Include=filename.inf[,filename2.inf]...]
[Needs=inf-section-name[,inf-section-name]...]
 
 

Each ClassInstall32.Services section contains one or more AddService directives referencing additional INF-writer-defined sections in a Windows 2000 or later INF file.

INF files commonly use the ClassInstall32.Services section with at least one AddService directive to control how and when the services of a particular device class are loaded, any dependencies it might have on other services, and so forth. Optionally, they set up event-logging services for the device class as well.

ClassInstall32.Services sections should have the same platform and OS decorations as their related ClassInstall32 sections. For example, a ClassInstall32.ntx86 section would have a corresponding ClassInstall32.ntx86.Services section.

This section is irrelevant to exclusively Windows 9x/Me installations.

Directives and Entries

AddService=ServiceName,[flags],service-install-section[,
            event-log-install-section[,[EventLogType][,EventName]]]...
This directive references an INF-writer-defined service-install-section and, possibly, an event-log-install-section elsewhere in the INF file for the drivers of the device class covered by the ClassInstall32 section. For more information, see INF AddService Directive.
DelService=ServiceName[,[flags][,[EventLogType][,EventName]]]...
This directive removes a previously installed service from the target machine. This directive is very rarely used. For more information, see INF DelService Directive.
Include=filename.inf[,filename2.inf]...
This optional entry specifies one or more additional system-supplied named INF files containing sections needed to install this device class. If this entry is specified, usually so is a Needs entry. (For further information on the Include entry and restrictions on its use, see Specifying the Source and Target Locations for Device Files).
Needs=inf-section-name[,inf-section-name]...
This optional entry specifies the particular named section that must be processed during the installation of this device class. Typically, such a named section is an ClassInstall32.Services section within a system-supplied INF file listed in an Include entry. However, it can be any section that is referenced within such a ClassInstall32.Services section.

Needs entries cannot be nested. (For further information on the Needs entry and restrictions on its use, see Specifying the Source and Target Locations for Device Files).

Comments

The case-insensitive .nt, .ntx86, and .ntia64 extensions can be inserted into a ClassInstall32.Services section name in dual-OS and/or cross-platform INF files, as shown in the formal syntax statement. For more information, see Creating INF Files for Multiple Platforms and Operating Systems.

See Also

ClassInstall32, AddService, DDInstall, DDInstall.HW, DelService, Models