다음을 통해 공유


INF DDInstall.COM 섹션

각 모델별 DDInstall.COM 섹션에는 INF 파일의 다른 INF 기록기 정의 섹션을 참조하는 하나 이상의 INF AddComServer 지시문 이 포함되어 있습니다. 이 섹션은 Windows 11 버전 24H2 이상에서 지원됩니다.

[install-section-name.COM] |
[install-section-name.nt.COM] |
[install-section-name.ntamd64.COM] |
[install-section-name.ntarm64.COM]

AddComServer = com-server-name, [flags], com-server-install-section
[Include=filename.inf[,filename2.inf]...]
[Needs=inf-section-name[,inf-section-name]...]

At least one AddComServer directive is required to register COM servers.

Entries

AddComServer=com-server-name,flags,com-server-install-section

The AddComServer directive references an INF-writer-defined com-server-install-section elsewhere in the INF file. The AddComServer directive can be used one or more times to register multiple COM servers. 자세한 내용은 INF AddComServer 지시문 및 일반적으로 COM 서버에 대한 자세한 내용은 COM 클라이언트 및 서버를 참조하세요.

Include=filename.inf[,filename2.inf]...

이 선택적 항목은 이 디바이스를 설치하는 데 필요한 섹션이 포함된 시스템 제공 INF 파일을 하나 이상 지정합니다. If this entry is specified, a Needs entry is also required.

Needs=inf-section-name[,inf-section-name]...

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

Remarks

COM binaries are installed into place using the CopyFiles directive in the DDInstall section. 드라이버 패키지의 드라이버 저장소 경로 (예: DIRID 13)에 상대적인 위치에 이진 파일을 설치해야 합니다. 마찬가지로 디바이스 설치는 디바이스 상대 레지스트리 위치에 COM 등록을 기록합니다.

Clients must call CoRegisterDeviceCatalog on a worker thread before calling CoCreateInstance. Calling CoRegisterDeviceCatalog makes the COM server registrations available in the process for the COM runtime to use.

DDInstall.COM 섹션에는 관련 DDInstall 섹션과 동일한 플랫폼 및 운영 체제 장식이 있어야 합니다. 예를 들어 install-section-name.ntamd64 섹션에는 해당 install-section-name.ntamd64.COM 섹션이 있습니다. 지정된 DDInstall 섹션은 INF 파일의 제조업체별 모델 섹션에 있는 디바이스/모델별 항목에서 참조해야 합니다. 정식 구문 문에 표시된 install-section-name에 대한 대/소문자를 구분하지 않는 확장은 플랫폼 간 INF 파일의 이러한 DDInstall.COM 섹션 이름에 삽입할 수 있습니다.

For more information about how to use the system-defined .nt, .ntamd64, and .ntarm64 extensions see Creating INF Files for Multiple Platforms and Operating Systems.

Examples

[Device_Install.COM]
AddComServer   = VendorComServer,, VendorComServer_Inst

[VendorComServer_Inst]
ServerType     = 1 ; in-proc
ServerBinary   = %13%\Vendor_ComServer.dll
AddComClass    = {bb2b85ab-9473-42e5-8d1a-0f01d3879879},, Vendor_ComClass_Inst

[Vendor_ComClass_Inst]
Description    = %Vendor_ComClass_Desc%
ThreadingModel = Neutral

[Strings]
%Vendor_ComClass_Desc%="Vendor Com Server"

See also

  • 구성 요소 INF 파일 사용하는
  • INF AddComServer 지시문
  • INF AddComClass 지시문
  • INF AddInterface 지시문