Rediger

Del via


IVMDVDDriveEvents::OnMediaInsert method

[Windows Virtual PC is no longer available for use as of Windows 8. Instead, use the Hyper-V WMI provider (V2).]

Receives notification that media has been inserted into the drive.

Syntax

HRESULT OnMediaInsert(
  [in] BSTR mediaPath
);

Parameters

mediaPath [in]

The host drive letter, or path, to the ISO image.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This method is called when media (an ISO image or a disc in a host drive) is inserted. The client program must implement this interface method to receive notification of the vmDVDDriveEvent_OnInsert event originating from IVMDVDDrive.

Requirements

Requirement Value
Minimum supported client
Windows 7 [desktop apps only]
Minimum supported server
None supported
End of client support
Windows 7
Product
Windows Virtual PC
Header
VPCCOMInterfaces.h
IID
DIID_IVMDVDDriveEvents is defined as c2a7d8e9-e76c-4eb8-94f7-71a5122d249b

See also

IVMDVDDriveEvents