IDiscMaster2 interface

Use this interface to enumerate the CD and DVD devices installed on the computer.

To create an instance of this interface, call the CoCreateInstance function. Use__uuidof(MsftDiscMaster2) for the class identifier and __uuidof(IDiscMaster2) for the interface identifier.

Members

The IDiscMaster2 interface inherits from the IDispatch interface. IDiscMaster2 also has these types of members:

Methods

The IDiscMaster2 interface has these methods.

MethodDescription
get__NewEnum

Retrieves a list of the CD and DVD devices installed on the computer.

get_Count

Retrieves the number of the CD and DVD disc devices installed on the computer.

get_IsSupportedEnvironment

Retrieves a value that determines if the environment contains one or more optical devices and the execution context has permission to access the devices.

get_Item

Retrieves the unique identifier of the specified disc device.

 

Remarks

To create the MsftDiscMaster2 object in a script, use IMAPI2.MsftDiscMaster2 as the program identifier when calling CreateObject.

To receive notification when a device is added or removed from the computer, implement the DDiscMaster2Events interface.

Requirements

Minimum supported client

Windows Vista, Windows XP with SP2 [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

IDL

Imapi2.idl

 

 

Community Additions

ADD
Show: