SetupApi函数
+ -

SetupApi关于INF文件处理的函数

2021-11-19 141 0

INF文件处理功能提供安装功能,包括以下内容:

  • 打开和关闭INF文件。
  • 检索有关INF文件的信息。
  • 检索有关复制操作的源文件和目标目录的信息。
  • 执行INF文件节中指定的安装操作。
Function Description
InstallHinfSection Executes a specified section in a specified INF file.
SetupCloseInfFile Frees resources and closes the INF handle.
SetupCopyOEMInf Copies a file into %SystemRoot%\Inf.
SetupDecompressOrCopyFile Copies a file and, if necessary, decompresses it.
SetupFindFirstLine Finds a pointer to the first line in a section of an INF file or, if a key is specified, the first line that matches the key.
SetupFindNextLine Returns a pointer to the next line in an INF file section.
SetupFindNextMatchLine Returns a pointer to the next line in an INF file section or, if a key is specified, the next line that matches the key.
SetupGetBinaryField Retrieves binary data from a field in a specified line, in an INF file.
SetupGetFieldCount Returns the number of fields in a line.
SetupGetFileCompressionInfo Retrieves file compression information from an INF file.
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 Returns a list of the INF files in a specified directory.
SetupGetInfInformation Returns information about an INF file.
SetupGetIntField Obtains the integer value of a specified field in a specified line, in an INF file.
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 Returns a pointer to the line associated with a specified index value in a specified section.
SetupGetLineCount Returns the number of lines in the specified section.
SetupGetLineText Retrieves the contents of a specified line from an INF file.
SetupGetMultiSzField Returns multiple strings, starting at a specified field in a line.
SetupGetSourceFileLocation Returns the location of a source file that is listed in an INF file.
SetupGetSourceFileSize Returns the size of a specified file or a set of files that are listed in a specified section of an INF file.
SetupGetSourceInfo Retrieves the path, tag file, or description for a source.
SetupGetStringField Retrieves string data from a field in a specified line, in an INF file.
SetupGetTargetPath Determines the target path for the files that are listed in a specified INF file section.
SetupInstallFile Installs a specified file into a specific target directory.
SetupInstallFileEx Installs a specified file into a specific target directory. The installation is postponed if an existing version of the file is in use.
SetupInstallFilesFromInfSection Queues the files in a specified INF file section for copying. (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 Opens an INF file and appends it to an existing INF handle.
SetupOpenInfFile Opens an INF file and returns a handle to it.
SetupOpenMasterInf Opens the master INF file that contains file and layout information for files that were included with the default installation of the operating system.
SetupQueryInfFileInformation Returns the name of one of the constituent INF files of a specified INF file.
SetupQueryInfVersionInformation Returns the version number of one of the constituent INF files of a specified INF file.
SetupSetDirectoryId Assigns a directory ID (DIRID) to a specified directory.
SetupUninstallOEMInf Uninstalls a specified INF file, and deletes the associated .pnf and .cat files, if they exist.
SetupVerifyInfFile Verifies that a digitally-signed INF file has not been modified. (Windows XP and later.)

0 篇笔记 写笔记

使用IOCTL_DISK_GET_LENGTH_INFO获取硬盘大小
使用IOCTL_DISK_GET_LENGTH_INFO获取硬盘大小char buff[512]; sprintf(buff,"\.\PhysicalDrive%d",nId); HANDLE hDevice = CreateFile(buff,GENE......
Windows Inf文件设备GUID分类(设备安装程序类)
Class=SystemClassGuid={4d36e97d-e325-11ce-bfc1-08002be10318}Class=USBClassGuid={36FC9E60-C465-11CF-8056-444553540000}Class=AudioClassGuid={4d36e96c-......
使用ZwQuerySystemInformation函数枚举进程
使用ZwQuerySystemInformation函数枚举Windows系统进程typedef struct _SYSTEM_PROCESSES { ULONG NextEntryDelta; //构成结构序列的偏移量; ULONG......
inf简介
INF是Device Information的缩写,是用于设备驱动安装时的信息配置文件。它包含了设备安装时的一些配置信息,系统通过这些配置信息,将驱动程序与物理的硬件设备进行关联。INF文件安装后,系统会为其它生一个同名的PNT文件。PNF文件叫做Precompiled INF文件,即预编译安装......
SetupApi关于INF文件处理的函数
INF文件处理功能提供安装功能,包括以下内容:打开和关闭INF文件。检索有关INF文件的信息。检索有关复制操作的源文件和目标目录的信息。执行INF文件节中指定的安装操作。FunctionDescriptionInstallHinfSectionExecutes a spec......
SetupApi磁盘提示和错误处理函数大全
可以使用setup函数提示用户插入新介质,或处理复制、重命名或删除文件时出现的错误。下表列出了为请求安装介质和报告错误提供对话框的功能。FunctionDescriptionSetupCopyErrorGenerates a dialog box that informs th......
SetupApi文件队列函数大全
使用setup函数,可以为各种操作对文件进行排队。可以为复制、重命名和删除文件建立文件队列。通常,应用程序将整个安装所需的所有文件操作排队,然后“提交”队列,以便在单个批中执行操作。FunctionDescriptionSetupCloseFileQueueDestroys a......
SetupApi默认队列回调例程函数
如果将回调例程与文件队列相关联,则每次系统执行一个排队的文件操作时都会调用回调例程。通常,您可以使用默认队列回调例程SetupDefaultQueueCallback来处理这些通知。FunctionDescriptionSetupDefaultQueueCallbackHand......
SetupApi CAB文件函数
CAB文件是单个文件,通常扩展名为.CAB,包含多个压缩文件作为文件库。CAB文件用于组织将复制到用户系统的安装文件。压缩文件可以分布在多个CAB文件上。FunctionDescription SetupIterateCabinetSends a notification to......
SetupApi 磁盘空间列表函数
磁盘空间列表函数用于创建和修改磁盘空间列表。这些列表可用于计算处理将在安装过程中复制或删除的文件所需的总磁盘空间。FunctionDescriptionSetupAddInstallSectionToDiskSpaceListSearches for CopyFile and ......
SetupApi MRB文件列表
Most recently used (MRU) source lists 最近使用的(MRU)源列表驻留在用户的计算机上,包含有关以前安装中使用的源路径的信息。提示用户输入源路径时,可以使用此信息。安装应用程序可以访问特定于用户的源列表,如果应用程序具有管理员权限,还可以访问系统范围的源列表。......
SetupApi 文件日志函数
可以使用日志文件记录安装期间复制到系统的文件的相关信息。日志文件可以是系统日志,也可以是您自己的安装日志文件。FunctionDescriptionSetupInitializeFileLogInitializes a log file for use.SetupLogE......
SetupApi用户接口函数
可以在类安装程序和联合安装程序中使用以下设置函数来确定当前进程是否可以与用户交互。FunctionDescription SetupGetNonInteractiveModeReturns the value of a SetupAPI non-interactive flag......
SetupApi 日志函数
从Windows Vista开始,即插即用(PnP)设备安装应用程序、类安装程序和协同安装程序可以使用以下函数将日志条目写入SetupAPI文本日志。FunctionDescriptionSetupGetThreadLogTokenRetrieves the log token......
解析INF文件中支持的设备硬件ID
安装Windows驱动,首先得知道INF支持的硬件ID.本人手中有一个测试的inf文件,其内容如下:设备支持的硬件ID如下:字符串内容如下:编写一个程序,用来解析INF文件。#include #include #include......
作者信息
我爱内核
Windows驱动开发,网站开发
好好学习,天天向上。
取消
感谢您的支持,我会继续努力的!
扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

您的支持,是我们前进的动力!