各モデルごとの DDInstall。Services セクションには、INF ファイル内の他の INF ライター定義セクションを参照する 1 つ以上の INF AddService ディレクティブ が含まれています。
[install-section-name.Services] |
[install-section-name.nt.Services] |
[install-section-name.ntx86.Services] |
[install-section-name.ntia64.Services] | (Windows XP and later versions of Windows)
[install-section-name.ntamd64.Services] | (Windows XP and later versions of Windows)
[install-section-name.ntarm.Services] | (Windows 8 and later versions of Windows)
[install-section-name.ntarm64.Services] (Windows 10 version 1709 and later versions of Windows)
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]...]
DDInstall を指定できます。特定のドライバーのサービスの読み込み方法とタイミング、他のサービスやドライバーへの依存関係などを制御する、少なくとも 1 つの AddService ディレクティブを含むサービス セクション。 必要に応じて、イベント ログ サービスを指定することもできます。
エントリ
AddService=ServiceName,[flags],service-install-section[,event-log-install-section[,[EventLogType][,EventName]]]...
このディレクティブは、INF ライター定義のサービス インストール セクションと、場合によっては、この DDInstall セクションの対象となるデバイスのドライバーの INF ファイル内の別の場所でイベント ログ インストール セクションを参照します。 詳細については、「 INF AddService ディレクティブ」を参照してください。
DelService=ServiceName [,[flags][,[EventLogType][,EventName]]]...
このディレクティブは、以前にインストールされたサービスをターゲット コンピューターから削除します。 このディレクティブはほとんど使用しません。 詳細については、「 INF DelService ディレクティブ」を参照してください。
Include=filename.inf [,filename2.inf]...
この省略可能なエントリは、このデバイスをインストールするために必要なセクションを含む 1 つ以上のシステム提供 INF ファイルを指定します。 このエントリが指定されている場合は、 Needs エントリも指定されます。
ニーズ=inf-section-name [,inf-section-name]...
この省略可能なエントリは、このデバイスのインストール中に処理する必要があるセクションを指定します。 通常、セクションは DDInstall です。インクルード エントリに一覧表示されているシステム提供の INF ファイル内のサービス セクション。 ただし、 DDInstall 内で参照される任意のセクションを指定できます。[サービス ] セクション。
Remarks
DDInstall。サービス セクションには、関連する DDInstall セクションと同じプラットフォームとオペレーティング システムの装飾が必要です。 たとえば、 install-section-name などです。ntx86 セクションには、対応する install-section-name があります。ntx86。[サービス ] セクション。
指定された DDInstall セクションは、INF ファイルの製造元ごとの Models セクションのデバイス/モデル固有のエントリで参照する必要があります。 正式な構文ステートメントに示されている install-section-name の大文字と小文字を区別しない拡張は、このような DDInstall に挿入できます。クロスプラットフォーム INF ファイルのサービス セクション名。
システム定義の .nt、.ntx86、.ntia64、.ntamd64、.ntarm、および .ntarm64 拡張機能の使用方法の詳細については、「複数のプラットフォームとオペレーティング システム用の INF ファイルの作成」を参照してください。
Examples
この例では、 install-section-name を示します。NT。 関数ドライバーとフィルター ドライバーをデバイスに追加するドライバー パッケージの例については、INF ファイルのサービス セクションとその service-install-sections。
[Example_DDInstall.Services]
AddService=ExampleFunctionDriver,0x00000002,function_ServiceInstallSection
AddService=ExampleUpperFilter,,filter_ServiceInstallSection
[function_ServiceInstallSection]
DisplayName = %function_ServiceDesc%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %13%\ExampleFunctionDriver.sys
[filter_ServiceInstallSection]
DisplayName = %filter_ServiceDesc%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %13%\ExampleUpperFilter.sys
[Strings] ; only immediately preceding %strkey% tokens shown here
%function_ServiceDesc%="Example function driver service"
%filter_ServiceDesc%="Example filter driver service"
DDInstall の他の例については、INF DDInstall.HW セクションを参照してください。 PnP フィルター ドライバー用のものを含む、AddService ディレクティブによって参照されるいくつかの service-install-sectionを含むサービス セクション。