C# 클래스 WinLib.WinAPI.Setupapi

파일 보기 프로젝트 열기: SortByte/Network-Manager

공개 메소드들

메소드 설명
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