Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
A DDInstall.Services section in a network INF file is based on the generic INF DDInstall.Services section.
A DDInstall.Services section contains one or more AddService directives, each of which references an INF-writer-defined service-install- section that specifies how and when the services of particular component drivers are loaded.
A DDInstall.Services section is required in an INF file that installs a Net component (adapter); it is optional in an INF file that installs a NetTrans, NetClient, or NetService component.
NoteNetClient components are deprecated in Windows 8.1, Windows Server 2012 R2, and later.
An AddService directive in a DDInstall.Services section can also reference an error-log-install-section that installs an error log for a component. Un journal des erreurs est facultatif pour tous les composants réseau.
Pour plus d’informations, consultez la directive AddService INF.
The following is an example of a DDInstall.Services section, a service-install-section, an error-log-install-section, and an add-registry-section that is referenced by an AddReg directive in the error-log-install-section:
[a1.ndi.NT.Services]
AddService = a1, 2, a1.AddService, a1.AddEventLog
[a1.AddService]
DisplayName = %Adapter1.DispName%
ServiceType = 1 ;SERVICE_KERNEL_DRIVER
StartType = 2 ;SERVICE_AUTO_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
ServiceBinary = %13%\a1.sys
LoadOrderGroup = NDIS
[a1.AddEventLog]
AddReg = a1.AddEventLog.reg
[a1.AddEventLog.reg]
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\netevent.dll"
HKR,,TypesSupported,0x00010001,7
The ServiceName parameter of the AddService directive, which in the above example is a1(the first AddService parameter), must match the component's Ndi\Service value. Pour plus d’informations, consultez Ajout de valeurs Service-Related à la clé Ndi.