PrimoBurner for .NET
4.6
CD, DVD and Blu-ray Software Development Kit
|
Inherits IDisposable.
Public Member Functions | |
Engine () | |
Creates a new instance of Engine class. More... | |
DeviceEnumerator | CreateDeviceEnumerator () |
Enumerates the optical devices installed in the system. More... | |
Device | CreateDeviceFromHandle (IntPtr handle) |
Creates a Device object from a handle. More... | |
void | Dispose () |
Disposes Engine and reclaims the resources used by the object. More... | |
bool | Initialize () |
Initializes the Engine. More... | |
void | Shutdown () |
Shuts the engine down, unlocks any devices that have been locked and frees the internal structures associated with every device. More... | |
Properties | |
ErrorInfo | Error [get] |
Returns information about the last error that occurred while using the Engine object More... | |
EventHandler < EngineDeviceChangeEventArgs > | OnDeviceChange |
Raised to report that a device has been connected to/removed from the machine More... | |
EventHandler < EngineMediaChangeEventArgs > | OnMediaChange |
Raised to report that a disc has been inserted into or ejected from a device More... | |
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. |
void Dispose | ( | ) |
Disposes Engine and reclaims the resources used by the object.
bool Initialize | ( | ) |
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.