次の方法で共有


静止画像デバイス用の INF ファイル

The default class installer for still image devices, sti_ci.dll, recognizes a special set of INF file entries. INF ファイル内では、これらのエントリはデバイスの INF DDInstall セクション内に配置する必要があります。 エントリについては、次の表で説明します。

INF ファイルエントリ Value Comments
SubClass StillImage Required
DeviceType スキャナーの場合は 1、カメラの場合は 2、ビデオ デバイスの場合は 3 Required
DeviceSubType Vendor-defined value Optional
Connection シリアル ポートまたは並列ポートに接続されている PnP 以外のデバイスの場合、インストール時にユーザーが選択するポートを制限するには、シリアルまたは並列にすることができます。 Optional.
指定しない場合、ユーザーは任意のシリアルまたは並列ポートを選択できます。
Capabilities デバイスの機能を識別するビット フラグに変換される数値を指定します。 These flags are stored in the registry and are available to Microsoft STI components with the STI_DEV_CAPS structure.

ビット 0 - STI_DEV_CAPSのSTI_GENCAP_NOTIFICATIONSを設定/クリアする
ビット 1 - STI_DEV_CAPSのSTI_GENCAP_POLLING_NEEDEDを設定/クリアする
ビット 2 - STI_DEV_CAPSのSTI_GENCAP_GENERATE_ARRIVALEVENTを設定/クリアする
ビット 3 - STI_DEV_CAPSのSTI_GENCAP_AUTO_PORTSELECTを設定/クリアする
Optional
PropertyPages 静止画像デバイス用にカスタマイズされた プロパティ シート ページを作成する DLL の名前とエントリ ポイントを識別します。
The following example identifies the DLL, estp2cpl.dll, and the EnumStiPropPages entry point in this DLL. The entry point name is optional; if omitted, the entry point defaults to EnumStiPropPages.

PropertyPages = estp2cpl.dll, EnumStiPropPages

Optional
DeviceData Identifies a vendor-supplied data section containing information to be stored in the registry, under the DeviceData key. For TWAIN-supported devices, the data section must contain a TwainDS entry. 詳細については、「ベンダー変更可能なレジストリ値」を参照してください。 Optional.
ただし、このエントリは、 Push-Model 対応アプリケーションの作成に必要です。
Events ベンダーが提供するデータ セクションを識別し、静止画像デバイス イベントを一覧表示します。 このセクションの各エントリは、次の形式である必要があります。

EventName="String",{GUID},App

EventName is the event's internal name, String is the event's display string, GUID is the event's GUID, see Still Image Device Events, and App specifies the imaging application to be launched when the event occurs. To launch the currently registered application, use an asterisk (*) for App.
Optional.
ただし、このエントリは、 Push-Model 対応アプリケーションの作成に必要です。
UninstallSection 通常、INF DelFiles ディレクティブと INF DelReg ディレクティブ を含む INF セクションを指します。 このセクションのエントリの形式は次のとおりです。

UninstallSection=UninstallSectionName

UninstallSectionName is the name of the section containing Delfiles or DelReg directives. Windows ファイル保護 では、 ユーザーが DelFiles ディレクティブを使用して指定されている場合でも、一部のファイルの削除が禁止される場合があります。
Optional.
このエントリは、Windows 2000 でのみ有効です。

静止画像デバイスの既定のクラス インストーラーは、標準の INF CopyFiles ディレクティブをサポートしています。 インストーラーはコンポーネント ファイルに内部参照カウンターを使用するため、アンインストール操作中に複数のデバイスで共有されているファイルが途中で削除されることはありません。

The default INF file for still image devices, sti.inf, defines two installation sections for each device type, as follows:

  • 次の表に示すように、ベンダーが提供する INF ファイルの DDInstall セクション内で参照する必要がある INF DDInstall セクション

    USB devices SCSI devices Serial devices
    Include=sti.inf

    Needs=STI.USBSection
    Include=sti.inf

    Needs=STI.SCSISection
    Include=sti.inf

    Needs=STI.SerialSection
  • INF DDInstall.Services セクションDDInstall 内で参照する必要があります。次の表に示すように、ベンダーが提供する INF ファイルのサービス セクション。

    USB devices SCSI devices Serial devices
    Include=sti.inf

    Needs=STI.USBSection.Services
    Include=sti.inf

    Needs=STI.SCSISection.Services
    Include=sti.inf

    Needs=STI.SerialSection.Services

イメージ取得 API 用のデバイス固有のコンポーネントも作成する場合は、通常、これらのコンポーネントのファイル名を INF ファイルに含めます。

静止画像デバイス用の INF ファイルの作成に関する追加のガイダンスについては、"サブクラス=StillImage" というエントリを含む Windows で提供される INF ファイルを確認できます。

Remarks

スキャナー用の INF ファイルを開発する場合は、 Microsoft OS 記述子 を使用して互換性 ID 機能を有効にすることができます。 これを行うと、1 つのスキャナー ドライバーが複数のスキャナー モデルと互換性を持つことができるようになります。