C# Class LibUsbDotNet.Internal.SetupApi

Datei anzeigen Open project: arvydas/BlinkStickDotNet Class Usage Examples

Public Properties

Property Type Description
GUID_DEVINTERFACE_USB_DEVICE System.Guid

Public Methods

Method Description
EnumClassDevs ( string enumerator, DICFG flags, ClassEnumeratorDelegate classEnumeratorCallback, object classEnumeratorCallbackParam1 ) : bool
SetupDiGetDeviceInterfaceDetailLength ( IntPtr hDevInfo, SP_DEVICE_INTERFACE_DATA &deviceInterfaceData, int &requiredLength ) : bool
SetupDiGetDeviceRegistryProperty ( byte &regBytes, IntPtr DeviceInfoSet, SP_DEVINFO_DATA &DeviceInfoData, SPDRP Property ) : bool
SetupDiGetDeviceRegistryProperty ( string &regSZ, IntPtr DeviceInfoSet, SP_DEVINFO_DATA &DeviceInfoData, SPDRP Property ) : bool
getSPDRPProperties ( IntPtr deviceInfoSet, SP_DEVINFO_DATA &deviceInfoData, object>.Dictionary deviceProperties ) : void

Private Methods

Method Description
CM_Get_Device_ID ( IntPtr dnDevInst, IntPtr Buffer, int BufferLen, int ulFlags ) : CR
CM_Get_Device_ID ( uint dnDevInst, StringBuilder Buffer, int BufferLen, int ulFlags ) : CR
CM_Get_Parent ( IntPtr &pdnDevInst, IntPtr dnDevInst, int ulFlags ) : CR
RegCloseKey ( IntPtr hKey ) : int
RegEnumValue ( IntPtr hKey, int index, StringBuilder lpValueName, int &lpcValueName, IntPtr lpReserved, RegistryValueKind &lpType, StringBuilder data, int &dataLength ) : int
RegEnumValue ( IntPtr hKey, int index, StringBuilder lpValueName, int &lpcValueName, IntPtr lpReserved, RegistryValueKind &lpType, byte data, int &dataLength ) : int
SetupDiDestroyDeviceInfoList ( IntPtr hDevInfo ) : bool
SetupDiEnumDeviceInfo ( IntPtr DeviceInfoSet, int MemberIndex, SP_DEVINFO_DATA &DeviceInfoData ) : bool
SetupDiEnumDeviceInterfaces ( IntPtr hDevInfo, SP_DEVINFO_DATA &devInfo, System.Guid &interfaceClassGuid, int memberIndex, SP_DEVICE_INTERFACE_DATA &deviceInterfaceData ) : System.Boolean
SetupDiEnumDeviceInterfaces ( IntPtr hDevInfo, [ devInfo, System.Guid &interfaceClassGuid, int memberIndex, SP_DEVICE_INTERFACE_DATA &deviceInterfaceData ) : System.Boolean
SetupDiGetClassDevs ( System.Guid &ClassGuid, [ Enumerator, IntPtr hwndParent, DICFG Flags ) : IntPtr
SetupDiGetClassDevs ( System.Guid &ClassGuid, int Enumerator, IntPtr hwndParent, DICFG Flags ) : IntPtr
SetupDiGetClassDevs ( int ClassGuid, string Enumerator, IntPtr hwndParent, DICFG Flags ) : IntPtr
SetupDiGetCustomDeviceProperty ( IntPtr DeviceInfoSet, SP_DEVINFO_DATA &DeviceInfoData, string CustomPropertyName, DICUSTOMDEVPROP Flags, RegistryValueKind &PropertyRegDataType, Byte PropertyBuffer, int PropertyBufferSize, int &RequiredSize ) : bool
SetupDiGetDeviceInstanceId ( IntPtr DeviceInfoSet, SP_DEVINFO_DATA &DeviceInfoData, StringBuilder DeviceInstanceId, int DeviceInstanceIdSize, int &RequiredSize ) : bool
SetupDiGetDeviceInterfaceDetail ( IntPtr hDevInfo, SP_DEVICE_INTERFACE_DATA &deviceInterfaceData, DEVICE_INTERFACE_DETAIL_HANDLE deviceInterfaceDetailData, int deviceInterfaceDetailDataSize, int &requiredSize, SP_DEVINFO_DATA &deviceInfoData ) : System.Boolean
SetupDiGetDeviceInterfaceDetail ( IntPtr hDevInfo, SP_DEVICE_INTERFACE_DATA &deviceInterfaceData, DEVICE_INTERFACE_DETAIL_HANDLE deviceInterfaceDetailData, int deviceInterfaceDetailDataSize, int &requiredSize, [ deviceInfoData ) : System.Boolean
SetupDiGetDeviceInterfacePropertyKeys ( IntPtr DeviceInfoSet, SP_DEVICE_INTERFACE_DATA &DeviceInterfaceData, byte propKeyBuffer, int propKeyBufferElements, int &RequiredPropertyKeyCount, int Flags ) : bool
SetupDiGetDeviceRegistryProperty ( IntPtr DeviceInfoSet, SP_DEVINFO_DATA &DeviceInfoData, SPDRP Property, RegistryValueKind &PropertyRegDataType, byte PropertyBuffer, int PropertyBufferSize, int &RequiredSize ) : bool
SetupDiOpenDevRegKey ( IntPtr hDeviceInfoSet, SP_DEVINFO_DATA &deviceInfoData, int scope, int hwProfile, DevKeyType keyType, RegistryKeyPermissionCheck samDesired ) : IntPtr
cbHasDeviceInterfaceGUID ( IntPtr DeviceInfoSet, int deviceIndex, SP_DEVINFO_DATA &DeviceInfoData, object devInterfaceGuid ) : bool

Method Details

EnumClassDevs() public static method

public static EnumClassDevs ( string enumerator, DICFG flags, ClassEnumeratorDelegate classEnumeratorCallback, object classEnumeratorCallbackParam1 ) : bool
enumerator string
flags DICFG
classEnumeratorCallback ClassEnumeratorDelegate
classEnumeratorCallbackParam1 object
return bool

SetupDiGetDeviceInterfaceDetailLength() public static method

public static SetupDiGetDeviceInterfaceDetailLength ( IntPtr hDevInfo, SP_DEVICE_INTERFACE_DATA &deviceInterfaceData, int &requiredLength ) : bool
hDevInfo System.IntPtr
deviceInterfaceData SP_DEVICE_INTERFACE_DATA
requiredLength int
return bool

SetupDiGetDeviceRegistryProperty() public static method

public static SetupDiGetDeviceRegistryProperty ( byte &regBytes, IntPtr DeviceInfoSet, SP_DEVINFO_DATA &DeviceInfoData, SPDRP Property ) : bool
regBytes byte
DeviceInfoSet System.IntPtr
DeviceInfoData SP_DEVINFO_DATA
Property SPDRP
return bool

SetupDiGetDeviceRegistryProperty() public static method

public static SetupDiGetDeviceRegistryProperty ( string &regSZ, IntPtr DeviceInfoSet, SP_DEVINFO_DATA &DeviceInfoData, SPDRP Property ) : bool
regSZ string
DeviceInfoSet System.IntPtr
DeviceInfoData SP_DEVINFO_DATA
Property SPDRP
return bool

getSPDRPProperties() public static method

public static getSPDRPProperties ( IntPtr deviceInfoSet, SP_DEVINFO_DATA &deviceInfoData, object>.Dictionary deviceProperties ) : void
deviceInfoSet System.IntPtr
deviceInfoData SP_DEVINFO_DATA
deviceProperties object>.Dictionary
return void

Property Details

GUID_DEVINTERFACE_USB_DEVICE public_oe static_oe property

public static Guid,System GUID_DEVINTERFACE_USB_DEVICE
return System.Guid