C# Класс WinLib.WinAPI.Setupapi

Показать файл Открыть проект

Открытые методы

Метод Описание
InstallInfDriver ( string filePath, string hardwareID, string description = "" ) : bool

Installs a driver using its INF file

UninstallDevice ( string hardwareID ) : bool

Removes all devices with a matching hardware ID

Приватные методы

Метод Описание
SetupDiCallClassInstaller ( DI_FUNCTION InstallFunction, IntPtr DeviceInfoSet, SP_DEVINFO_DATA &DeviceInfoData ) : bool
SetupDiCreateDeviceInfo ( IntPtr DeviceInfoSet, string ClassName, GUID &ClassGuid, string DeviceDescription, IntPtr hwndParent, uint CreationFlags, SP_DEVINFO_DATA &DeviceInfoData ) : bool
SetupDiCreateDeviceInfoList ( GUID &ClassGuid, IntPtr hwndParent ) : IntPtr
SetupDiDestroyDeviceInfoList ( IntPtr DeviceInfoSet ) : bool
SetupDiEnumDeviceInfo ( IntPtr DeviceInfoSet, uint MemberIndex, SP_DEVINFO_DATA &DeviceInfoData ) : bool
SetupDiGetClassDevsEx ( GUID &ClassGuid, string Enumerator, IntPtr hwndParent, uint Flags, IntPtr DeviceInfoSet, string MachineName, IntPtr Reserved ) : IntPtr
SetupDiGetClassDevsEx ( IntPtr ClassGuid, IntPtr Enumerator, IntPtr hwndParent, uint Flags, IntPtr DeviceInfoSet, IntPtr MachineName, IntPtr Reserved ) : IntPtr
SetupDiGetDeviceInfoListDetail ( IntPtr DeviceInfoSet, SP_DEVINFO_LIST_DETAIL_DATA &DeviceInfoSetDetailData ) : bool
SetupDiGetDeviceRegistryProperty ( IntPtr DeviceInfoSet, SP_DEVINFO_DATA &DeviceInfoData, uint Property, IntPtr PropertyRegDataType, IntPtr PropertyBuffer, uint PropertyBufferSize, IntPtr RequiredSize ) : bool
SetupDiGetDeviceRegistryProperty ( IntPtr DeviceInfoSet, SP_DEVINFO_DATA &DeviceInfoData, uint Property, IntPtr PropertyRegDataType, IntPtr PropertyBuffer, uint PropertyBufferSize, uint &RequiredSize ) : bool
SetupDiGetINFClass ( string InfName, GUID &ClassGuid, [ ClassName, uint ClassNameSize, uint &RequiredSize ) : bool
SetupDiSetClassInstallParams ( IntPtr DeviceInfoSet, SP_DEVINFO_DATA &DeviceInfoData, SP_CLASSINSTALL_HEADER &ClassInstallParams, uint ClassInstallParamsSize ) : bool
SetupDiSetClassInstallParams ( IntPtr DeviceInfoSet, SP_DEVINFO_DATA &DeviceInfoData, SP_REMOVEDEVICE_PARAMS &ClassInstallParams, uint ClassInstallParamsSize ) : bool
SetupDiSetDeviceRegistryProperty ( IntPtr DeviceInfoSet, SP_DEVINFO_DATA &DeviceInfoData, uint Property, byte PropertyBuffer, uint PropertyBufferSize ) : bool

Описание методов

InstallInfDriver() публичный статический Метод

Installs a driver using its INF file
public static InstallInfDriver ( string filePath, string hardwareID, string description = "" ) : bool
filePath string Relative or absolute INF file path
hardwareID string ComponentID
description string
Результат bool

UninstallDevice() публичный статический Метод

Removes all devices with a matching hardware ID
public static UninstallDevice ( string hardwareID ) : bool
hardwareID string ComponenetID
Результат bool