Share via


INF DDInstall.Services 섹션

각 모델별 DDInstall. 서비스 섹션에는 INF 파일에서 추가 INF 작성기 정의 섹션을 참조하는 하나 이상의 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을 제공할 수 있습니다. 특정 드라이버의 서비스가 로드되는 방법과 시기, 다른 서비스 또는 드라이버에 대한 종속성 등을 제어하는 하나 이상의 AddService 지시문이 있는 서비스 섹션입니다. 필요에 따라 이벤트 로깅 서비스를 지정할 수도 있습니다.

항목

AddService=ServiceName,[flags],service-install-section[,event-log-install-section[,[EventLogType][,EventName]]]...]
이 지시문은 INF-writer 정의 service-install-section 및 이 DDInstall 섹션에서 다루는 디바이스 드라이버에 대한 INF 파일의 다른 위치에서 이벤트 로그-설치-섹션을 참조합니다. 자세한 내용은 INF AddService 지시문을 참조하세요.

DelService=ServiceName[,[flags][,[EventLogType][,EventName]]]...
이 지시문은 대상 컴퓨터에서 이전에 설치된 서비스를 제거합니다. 이 지시문은 거의 사용되지 않습니다. 자세한 내용은 INF DelService 지시문을 참조하세요.

Include=filename. inf[,filename2.*inf_]...
이 선택적 항목은 이 디바이스를 설치하는 데 필요한 섹션이 포함된 하나 이상의 추가 시스템 제공 INF 파일을 지정합니다. 이 항목을 지정하는 경우 일반적으로 필요 항목도 마찬가지입니다.

Needs=inf-section-name[,inf-section-name]...
이 선택적 항목은 이 디바이스를 설치하는 동안 처리해야 하는 섹션을 지정합니다. 일반적으로 섹션은 DDInstall입니다. Include 항목에 나열된 시스템 제공 INF 파일 내의 서비스 섹션입니다. 그러나 DDInstall 내에서 참조되는 모든 섹션일 수 있습니다. 서비스 섹션.

설명

DDInstall. 서비스 섹션에는 관련 DDInstall 섹션과 동일한 플랫폼 및 운영 체제 장식이 있어야 합니다. 예를 들어 install-section-name입니다. ntx86 섹션에는 해당하는 install-section-name이 있습니다. ntx86. 서비스 섹션.

지정된 DDInstall 섹션은 INF 파일의 제조업체별 모델 섹션 아래의 디바이스/ 모델 별 항목에서 참조되어야 합니다. 정식 구문 문에 표시된 install-section-name 에 대한 대/소문자를 구분하지 않는 확장은 이러한 DDInstall에 삽입할 수 있습니다. 플랫폼 간 INF 파일의 서비스 섹션 이름입니다.

시스템 정의 .nt, .ntx86, .ntia64, .ntamd64, .ntarm 및 .ntarm64 확장을 사용하는 방법에 대한 자세한 내용은 여러 플랫폼 및 운영 체제에 대한 INF 파일 만들기를 참조하세요.

예제

이 예제에서는 install-section-name을 보여줍니다. Nt. 함수 드라이버 및 필터 드라이버를 디바이스에 추가하는 예제 드라이버 패키지에 대한 INF 파일의 서비스 섹션 및 해당 service-install-section.

[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 섹션을 참조하세요. AddService 지시문에서 참조하는 일부 service-install-section이 있는 서비스 섹션입니다. 여기에는 PnP 필터 드라이버용이 포함됩니다.

추가 정보

AddService

DDInstall

DDInstall. Hw

DelService

모델