WindowsDevice Class

This class represents a Plug-and-Play device owned by Windows. This class has no members of its own. All members of this class are inherited from class Device. This class exists to enable Windows and wRTOS devices to be treated polymorphically while being able to distinguish them from each other.

Inheritance Hierarchy

System.Object
  IntervalZero.MaxRT.wRTOS.wRTOSObject
    IntervalZero.MaxRT.wRTOS.Config.Device
      IntervalZero.MaxRT.wRTOS.Config.WindowsDevice

Namespace:  IntervalZero.MaxRT.wRTOS.Config
Assembly:  IntervalZero.MaxRT.wRTOS (in IntervalZero.MaxRT.wRTOS.dll) Version: 1.0.0.0 (File version: 1.0.1)

Syntax

Copy
public class WindowsDevice : Device, 
    IConfigWindowsDevice, IConfigDevice

 

The WindowsDevice class exposes the following members.

Properties

  Name Description

Public property

ClassGuid

Returns the Class GUID string of this device. This property is read-only.

(Inherited from Device.)

Public property

Description

Returns the Plug-and-Play Friendly Name string for this device. This property is read-only.

(Inherited from Device.)

Public property

DeviceInstanceId

Returns the Plug-and-Play instance ID string for this device. See http://msdn.microsoft.com/en-us/library/ff541327.aspx for details about instance IDs. This property is read-only.

(Inherited from Device.)

Public property

HardwareId

Returns the Plug-and-Play hardware ID string for this device. This property is read-only. See http://msdn.microsoft.com/en-us/library/ff541224.aspx for information about hardware IDs. This property is read-only.

(Inherited from Device.)

Protected property

IsDisposed

True if the object has been disposed, false otherwise.

(Inherited from wRTOSObject.)

Public property

OutOfDate

Return true if this object is out-of-date with respect to the hardware device that it represents, false if not. When this property returns true, this object should be disposed of immediately and should not be used for any purpose. Once this property returns true, it will never again return false for the current object. If an attempt is made to use this object when property OutOfDate is true, an exception of type wRTOSDeviceOutOfDateException is thrown. This property is read-only.

(Inherited from Device.)

Public property

OwnedByRtos

Returns true if this device is currently owned by a real-time operating system, false if it is owned by Windows. This property is read-only.

(Inherited from Device.)

Public property

PCIBusLocation

Returns the PCI bus location for this device as a string of the form "X;Y;Z", where X, Y, and Z are non-negative integers. If this device has no PCI bus location, this property's value is the empty string.

(Inherited from Device.)

Public property

wRTOSDevices

Returns a list of wRTOSDevice objects, each representing one Plug-and-Play device owned by wRTOS at the time of the call. The contents of the returned array can become out-of-date if a wRTOS-owned device is later converted to Windows ownership. After successful conversion of ownership to Windows, re-reading this property will supply an up-to-date array of wRTOS-owned devices. This property is read-only.

(Inherited from Device.)

Public property

wRTOSNetworkDevices

Returns a list of wRTOSNetworkDevice objects, each representing one Plug-and-Play network device owned by wRTOS at the time of the call. The contents of the returned array can become out-of-date if a wRTOS-owned device is later converted to Windows ownership. After successful conversion of ownership to Windows, re-reading this property will supply an up-to-date array of wRTOS-owned devices. This property is read-only.

(Inherited from Device.)

Public property

WindowsDevices

Returns an array of WindowsDevice objects, each representing one Plug-and-Play device owned by Windows at the time of the call. The contents of the returned array can become out-of-date if a Windows-owned device is later converted to wRTOS ownership. After successful conversion of ownership to wRTOS, re-reading this property will supply an up-to-date array of Windows-owned devices. This property is read-only.

(Inherited from Device.)

Methods

  Name Description

Public method

Dispose

Dispose method.

(Inherited from wRTOSObject.)

Protected method

OnNotifyPropertyChanged

Called when a property is changed

(Inherited from wRTOSObject.)

Events

  Name Description

Public event

PropertyChanged

Event Fired when a property value is changed

(Inherited from wRTOSObject.)

See Also: