共用方式為


INF 檔案處理函式

INF 檔案處理函式提供安裝和安裝功能,包括下列項目:

  • 開啟和關閉 INF 檔案。

  • 擷取 INF 檔案的相關資訊。

  • 擷取來源檔案和目標目錄的相關資訊,以進行複製作業。

  • 執行 INF 檔案區段中指定的安裝動作。

下表列出用來處理 INF 檔案的函式。 如需詳細的函式描述,請參閱 Microsoft Windows SDK 檔。

Function Description

InstallHinfSection

在指定的 INF 檔案中執行指定的區段。

SetupCloseInfFile

釋放資源並關閉 INF 句柄。

SetupCopyOEMInf

Stages a driver package in the Driver Store.

SetupDecompressOrCopyFile

複製檔案,並視需要解壓縮。

SetupFindFirstLine

尋找 INF 檔案區段中第一行的指標,或如果指定索引鍵,則尋找符合索引鍵的第一行指標。

SetupFindNextLine

傳回 INF 檔案區段中下一行的指標。

SetupFindNextMatchLine

傳回 INF 檔案區段中下一行的指標,或傳回符合索引鍵的下一行指標。

SetupGetBinaryField

從 INF 檔案中指定行中的欄位擷取二進位資料。

SetupGetFieldCount

傳回一行中的欄位數目。

SetupGetFileCompressionInfo

從 INF 檔案擷取檔案壓縮資訊。

SetupGetInfDriverStoreLocation

Retrieves the fully qualified file name (directory path and file name) of an INF file in the Driver Store that corresponds to a specified INF file in the system INF file directory or a specified INF file in the driver store.

SetupGetInfFileList

傳回指定目錄中的 INF 檔案清單。

SetupGetInfInformation

傳回 INF 檔案的相關資訊。

SetupGetIntField

取得 INF 檔案中指定行中指定欄位的整數值。

SetupGetInfPublishedName

Retrieves the fully qualified name (directory path and file name) of an INF file in the system INF file directory that corresponds to a specified INF file in the system INF file directory or a specified INF file in the Driver Store.

SetupGetLineByIndex

傳回與指定區段中指定索引值相關聯之行的指標。

SetupGetLineCount

傳回指定區段中的行數。

SetupGetLineText

從 INF 檔案擷取指定行的內容。

SetupGetMultiSzField

傳回多個字串,從一行中的指定欄位開始。

SetupGetSourceFileLocation

傳回 INF 檔案中列出的來源檔案位置。

SetupGetSourceFileSize

傳回指定檔案的大小,或 INF 檔案指定區段中列出的一組檔案。

SetupGetSourceInfo

擷取來源的路徑、標記檔案或描述。

SetupGetStringField

從 INF 檔案中指定行中的欄位擷取字串資料。

SetupGetTargetPath

判斷指定 INF 檔案區段中所列檔案的目標路徑。

SetupInstallFile

將指定的檔案安裝到特定的目標目錄中。

SetupInstallFileEx

將指定的檔案安裝到特定的目標目錄中。 如果檔案的現有版本正在使用中,則安裝會延遲。

SetupInstallFilesFromInfSection

將指定 INF 檔案區段中的檔案排入佇列以進行複製。 (Same as SetupQueueCopySection.)

SetupInstallFromInfSection

Performs the directives specified in an INF DDInstall section.

SetupInstallServicesFromInfSection

Performs service installation and deletion operations as specified in an INF DDInstall.Services section.

SetupOpenAppendInfFile

開啟 INF 檔案,並將它附加至現有的 INF 控制碼。

SetupOpenInfFile

開啟 INF 檔案,並傳回它的句柄。

SetupOpenMasterInf

開啟主要 INF 檔案,其中包含作業系統預設安裝所包含之檔案的檔案和配置資訊。

SetupQueryInfFileInformation

傳回指定 INF 檔案其中一個組成 INF 檔案的名稱。

SetupQueryInfVersionInformation

傳回指定 INF 檔案其中一個組成 INF 檔案的版本號碼。

SetupSetDirectoryId

將目錄 ID (DIRID) 指派給指定的目錄。

SetupUninstallOEMInf

Uninstalls a specified INF file, and deletes the associated .pnf and .cat files, if they exist.

SetupVerifyInfFile

確認尚未修改數位簽署的 INF 檔案。 (Windows XP 及更新版本。