[AC97SMPL_Service_Install]
The service-install-section uses specific directives to install the services of this driver.

Any service-install-section must have at least the ServiceType, StartType, ErrorControl, and ServiceBinary entries as shown below, but the remaining entries are optional.

See also the Glossary entry for DDInstall.Services.

Entries and Values

DisplayName=name
Specifies a friendly name for the service, usually, for ease of localization, expressed as a %strkey% token defined in a Strings section of the INF file.

Definition :

[AC97SMPL_Service_Inst]
...
DisplayName = %AC97SMPL.SvcDesc%

String token used :

[Strings]
...
AC97SMPL.SvcDesc = "Service for AC'97 Sample Driver (WDM)"

and localized version :

[Strings.0407]
...
AC97SMPL.SvcDesc = "Installationshilfe für AC'97 Treiberbeispiel (WDM)"

ServiceType=type-code

In any INF that installs support for one or more devices, the type-code specification must be 1 or 0x00000001, that is, equivalent to SERVICE_KERNEL_DRIVER.

StartType=start-code

Specifies when to start the driver as a numerical value, expressed either in decimal or, as shown here, in hexadecimal notation.
0x3 (SERVICE_DEMAND_START)
Indicates a driver started on demand, either by the PnP Manager when the corresponding device is enumerated or possibly by the Service Control Manager in response to an explicit user demand for a nonPnP device.

ErrorControl=error-control-level

Specifies the level of error control as a numerical value, expressed either in decimal or, as shown here, in hexadecimal notation.
0x1 (SERVICE_ERROR_NORMAL)
If the driver fails to load or initialize its device, system startup should proceed but display a warning to the user.

ServiceBinary=path-to-service

Specifies the path to the binary for the service, expressed as %dirid%\filename.

The dirid number is one of the system-defined directory identifiers already described in the reference for the DestinationDirs section. The given filename specifies a file already transferred (see the Glossary entry for CopyFiles directive) from the source distribution media to that directory on the target machine.

In this case, the binary for the service was copied in %windir%\system32\drivers, AC97SMPL.SYS.