Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

CustomDevice Class

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Represents a custom device.

public ref class CustomDevice sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.Custom.CustomDeviceContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CustomDevice final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.Custom.CustomDeviceContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CustomDevice
Public NotInheritable Class CustomDevice
Inheritance
Object Platform::Object IInspectable CustomDevice
Attributes

Windows requirements

Requirements Description
Device family
Windows Desktop Extension SDK (introduced in 10.0.10240.0)
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Devices.Custom.CustomDeviceContract (introduced in v1.0)

Properties

Name Description
InputStream

The input stream.

OutputStream

The output stream.

Methods

Name Description
FromIdAsync(String, DeviceAccessMode, DeviceSharingMode)

Creates a CustomDevice object asynchronously for the specified DeviceInformation.Id.

GetDeviceSelector(Guid)

Gets a device selector.

SendIOControlAsync(IIOControlCode, IBuffer, IBuffer)

Sends an IO control code.

TrySendIOControlAsync(IIOControlCode, IBuffer, IBuffer)

Sends an IO control code. A return value indicates whether the operation succeeded.

Applies to

See also


Feedback

Was this page helpful?