Class CmDevice
- Namespace
- Yubico.PlatformInterop
- Assembly
- Yubico.Core.dll
- Inheritance
-
object
CmDevice
Constructors
public CmDevice(int deviceInstance)
Parameters
deviceInstance
int
public CmDevice(string devicePath)
Parameters
devicePath
string
Properties
public string Class { get; }
Property Value
- string
public Guid ClassGuid { get; }
Property Value
- Guid
public Guid ContainerId { get; }
Property Value
- Guid
public short HidUsageId { get; }
Property Value
- short
HidUsagePage
public short HidUsagePage { get; }
Property Value
- short
public int Instance { get; }
Property Value
- int
public string InstanceId { get; }
Property Value
- string
public string? InterfacePath { get; }
Property Value
- string
public string Path { get; }
Property Value
- string
Methods
public IList<CmDevice> Children()
Returns
- IList<CmDevice>
public CmDevice FindFirstChild(Guid classGuid)
Parameters
classGuid
Guid
Returns
- CmDevice
public static IList<CmDevice> GetList(Guid classGuid)
Parameters
classGuid
Guid
Returns
- IList<CmDevice>
public T GetProperty<T>(CmDeviceProperty property)
Parameters
property
CmDeviceProperty
Returns
- T
Type Parameters
T
public SafeFileHandle OpenDevice()
Returns
- SafeFileHandle
public CmDevice? Parent()
Returns
- CmDevice
public bool TryGetProperty<T>(CmDeviceProperty property, out T? value) where T : class
Parameters
property
CmDeviceProperty
value
T
Returns
- bool
Type Parameters
T