PrimoBurner for .NET
5.0
CD, DVD and Blu-ray Software Development Kit
|
Device enumerator. More...
Inherits IDisposable.
Public Member Functions | |
Device | CreateDevice (Int32 index) |
Creates and returns a Device object that can be used to control an optical device. | |
Device | CreateDevice (Int32 index, bool exclusiveAccess) |
Creates and returns a Device object that can be used to control an optical device. | |
Device | CreateDeviceFromSystemPath (string systemPath) |
Creates and returns a Device object that can be used to control an optical device. | |
Device | CreateDeviceFromSystemPath (string systemPath, bool exclusiveAccess) |
Creates and returns a Device object that can be used to control an optical device. | |
void | Dispose () |
Disposes DeviceEnumerator and reclaims the resources used by the object. | |
Properties | |
string | CallerName [get, set] |
Gets/Sets the name of the application that will require exclusive access for a device. | |
Int32 | Count [get] |
Number of devices installed in the system. | |
ErrorInfo | Error [get] |
Returns information about the last error that occurred while using the DeviceEnumerator object. | |
Device enumerator.
Device CreateDevice | ( | Int32 | index | ) |
Creates and returns a Device object that can be used to control an optical device.
Calling this method resets and initializes the device before the device object is returned to the application.
This method should not be called after the Device.StartCDSession, Device.StartDVDSession and
DataDisc.WriteToDisc methods.
This method does not obtain exclusive access for the device.
index | The index of the device. The value should be between 0 and the value returned from the Count property. |
ObjectDisposedException | The DeviceEnumerator object was already disposed. |
References DeviceEnumerator.CreateDevice().
Referenced by DeviceEnumerator.CreateDevice().
Device CreateDevice | ( | Int32 | index, |
bool | exclusiveAccess | ||
) |
Creates and returns a Device object that can be used to control an optical device.
Calling this method resets and initializes the device before the device object is returned to the application.
This method should not be called after the StartCDSession, Device.StartDVDSession and
DataDisc.WriteToDisc methods.
index | The index of the device. The value should be between 0 and the value returned from the Count property. |
exclusiveAccess | Indicates whether exclusive access to the device is needed. |
ObjectDisposedException | The DeviceEnumerator object was already disposed. |
Device CreateDeviceFromSystemPath | ( | string | systemPath | ) |
Creates and returns a Device object that can be used to control an optical device.
Calling this method resets and initializes the device before the device object is returned to the application.
This method should not be called after the StartCDSession, Device.StartDVDSession and
DataDisc.WriteToDisc methods.
This method does not obtain exclusive access for the device.
systemPath | The device path identifying the requested optical drive - represents the device interface path of the requested device. |
ObjectDisposedException | The DeviceEnumerator object was already disposed. |
References DeviceEnumerator.CreateDeviceFromSystemPath().
Referenced by DeviceEnumerator.CreateDeviceFromSystemPath().
Device CreateDeviceFromSystemPath | ( | string | systemPath, |
bool | exclusiveAccess | ||
) |
Creates and returns a Device object that can be used to control an optical device.
Calling this method resets and initializes the device before the device object is returned to the application.
This method should not be called after the StartCDSession, Device.StartDVDSession and
DataDisc.WriteToDisc methods.
systemPath | The device path identifying the requested optical drive - represents the device interface path of the requested device. |
exclusiveAccess | Indicates whether exclusive access to the device is needed. |
ObjectDisposedException | The DeviceEnumerator object was already disposed. |
|
getset |
Gets/Sets the name of the application that will require exclusive access for a device.
Use this property to set the desired name before trying to obtain exclusive device access.
The name of the application that will require exclusive access to a device. The name must contain alphanumerics (A - Z, a - z, 0 - 9), spaces, periods, commas, colons (:), semi-colons (;), hyphens (-), and underscores (_). It must be less than or equal to 64 bytes in length, including the NULL character at the end of the string.
NOTES:
If a device is not requested with exclusive access, the identifier set with this property is ignored. The default value of this property is 'PrimoBurner SDK'
Setting this property when running on systems prior to Windows Vista has no effect.
ObjectDisposedException | The DeviceEnumerator object was already disposed. |
|
get |
Number of devices installed in the system.
ObjectDisposedException | The DeviceEnumerator object was already disposed. |
|
get |
Returns information about the last error that occurred while using the DeviceEnumerator object.
ObjectDisposedException | The DeviceEnumerator object was already disposed. |