다음을 통해 공유


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]]]...=

이 지시문은 이 DDInstall 섹션에서 다루는 디바이스의 드라이버에 대해 INF-기록기 정의 service-install-sectionINF 파일의 다른 위치에서 이벤트 로그 설치 섹션을 참조합니다. 자세한 내용은 INF AddService 지시문을 참조 하세요.

DelService ServiceName [,[flags][,[EventLogType][,EventName]]]...=

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

filename.inf [,filename2.inf]를 포함합니다=...

이 선택적 항목은 이 디바이스를 설치하는 데 필요한 섹션이 포함된 시스템 제공 INF 파일을 하나 이상 지정합니다. 이 항목을 지정하면 필요 항목도 마찬가지입니다.

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 파일의 서비스 섹션 및 서비스 설치 섹션입니다.

[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 지시문에서 참조하는 일부 서비스 설치 섹션이 있는 서비스 섹션입니다.

참고 항목