PrimoBurner for .NET
5.0
CD, DVD and Blu-ray Software Development Kit
|
Burner Engine. More...
Inherits IDisposable.
Public Member Functions | |
Engine () | |
Creates a new instance of Engine class. | |
DeviceEnumerator | CreateDeviceEnumerator () |
Enumerates the optical devices installed in the system. | |
Device | CreateDeviceFromHandle (IntPtr handle) |
Creates a Device object from a handle. | |
void | Dispose () |
Disposes Engine and reclaims the resources used by the object. | |
bool | Initialize () |
Initializes the Engine. | |
void | Shutdown () |
Shuts the engine down, unlocks any devices that have been locked and frees the internal structures associated with every device. | |
Properties | |
ErrorInfo | Error [get] |
Returns information about the last error that occurred while using the Engine object. | |
EventHandler< EngineDeviceChangeEventArgs > | OnDeviceChange |
Raised to report that a device has been connected to/removed from the machine. | |
EventHandler< EngineMediaChangeEventArgs > | OnMediaChange |
Raised to report that a disc has been inserted into or ejected from a device. | |
Burner Engine.
Engine | ( | ) |
Creates a new instance of Engine class.
The object needs to be disposed when it is not needed anymore.
DeviceEnumerator CreateDeviceEnumerator | ( | ) |
Enumerates the optical devices installed in the system.
The DeviceEnumerator object needs to be disposed when it is not needed anymore.
ObjectDisposedException | The Engine object was already disposed. |
Device CreateDeviceFromHandle | ( | IntPtr | handle | ) |
Creates a Device object from a handle.
handle | An operating system handle to an existing device. |
ObjectDisposedException | The Engine object was already disposed. |
bool Initialize | ( | ) |
Initializes the Engine.
ObjectDisposedException | The Engine object was already disposed. |
void Shutdown | ( | ) |
Shuts the engine down, unlocks any devices that have been locked and frees the internal structures associated with every device.
ObjectDisposedException | The Engine object was already disposed. |
|
get |
Returns information about the last error that occurred while using the Engine object.
ObjectDisposedException | The DeviceEnumerator object was already disposed. |
|
addremove |
Raised to report that a device has been connected to/removed from the machine.
The event handler receives an argument of type EngineDeviceChangeEventArgs containing data related to this event.
NOTE:
Call Engine.Initialize to be able to receive device change notifications. The event is raised from a thread different than the one in which the Engine instance is created
or in which the event subscription is made.
|
addremove |
Raised to report that a disc has been inserted into or ejected from a device.
The event handler receives an argument of type EngineMediaChangeEventArgs containing data related to this event.
NOTE:
Call Engine.Initialize to be able to receive media change notifications.
If an exclusive access is obtained for a device through the Device interface then media change notifications for that device will not be received.
After the Device object is disposed media change notifications for that device may be received. If a non-exclusive access is obtained for a device then media change notifications for that device may be received.
The event is raised from a thread different than the one in which the Engine instance is created or in which the event subscription is made.