Table of Contents

Class CmDevice

Namespace
Yubico.PlatformInterop
Assembly
Yubico.Core.dll
public class CmDevice
Inheritance
object
CmDevice

Constructors

CmDevice(int)

public CmDevice(int deviceInstance)

Parameters

deviceInstance int

CmDevice(string)

public CmDevice(string devicePath)

Parameters

devicePath string

Properties

Class

public string Class { get; }

Property Value

string

ClassGuid

public Guid ClassGuid { get; }

Property Value

Guid

ContainerId

public Guid ContainerId { get; }

Property Value

Guid

HidUsageId

public short HidUsageId { get; }

Property Value

short

HidUsagePage

public short HidUsagePage { get; }

Property Value

short

Instance

public int Instance { get; }

Property Value

int

InstanceId

public string InstanceId { get; }

Property Value

string

InterfacePath

public string? InterfacePath { get; }

Property Value

string

Path

public string Path { get; }

Property Value

string

Methods

Children()

public IList<CmDevice> Children()

Returns

IList<CmDevice>

FindFirstChild(Guid)

public CmDevice FindFirstChild(Guid classGuid)

Parameters

classGuid Guid

Returns

CmDevice

GetList(Guid)

public static IList<CmDevice> GetList(Guid classGuid)

Parameters

classGuid Guid

Returns

IList<CmDevice>

GetProperty<T>(CmDeviceProperty)

public T GetProperty<T>(CmDeviceProperty property)

Parameters

property CmDeviceProperty

Returns

T

Type Parameters

T

OpenDevice()

public SafeFileHandle OpenDevice()

Returns

SafeFileHandle

Parent()

public CmDevice? Parent()

Returns

CmDevice

TryGetProperty<T>(CmDeviceProperty, out T?)

public bool TryGetProperty<T>(CmDeviceProperty property, out T? value) where T : class

Parameters

property CmDeviceProperty
value T

Returns

bool

Type Parameters

T