C# Class BetterExplorer.UsbEject.DeviceClass

A generic base class for physical device classes.
Inheritance: IDisposable
Datei anzeigen Open project: Gainedge/BetterExplorer Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Protected Methods

Method Description
DeviceClass ( System.Guid classGuid ) : System
DeviceClass ( System.Guid classGuid, IntPtr hwndParent ) : System

Initializes a new instance of the DeviceClass class.

Private Methods

Method Description
CreateDevice ( DeviceClass deviceClass, Native deviceInfoData, string path, int index ) : Device
GetInfo ( int dnDevInst ) : Native.SP_DEVINFO_DATA
GetProperty ( Native devData, int property, System.Guid defaultValue ) : System.Guid
GetProperty ( Native devData, int property, int defaultValue ) : int
GetProperty ( Native devData, int property, string defaultValue ) : string

Method Details

DeviceClass() protected method

protected DeviceClass ( System.Guid classGuid ) : System
classGuid System.Guid
return System

DeviceClass() protected method

Initializes a new instance of the DeviceClass class.
protected DeviceClass ( System.Guid classGuid, IntPtr hwndParent ) : System
classGuid System.Guid A device class Guid.
hwndParent System.IntPtr The handle of the top-level window to be used for any user interface or IntPtr.Zero for no handle.
return System

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void