Επεξεργασία

Κοινή χρήση μέσω


IVMFloppyDriveEvents::OnMediaEject 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 ejected from the drive.

Syntax

HRESULT OnMediaEject(
  [in] BSTR mediaPath
);

Parameters

mediaPath [in]

The host drive letter, or path, to floppy 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 (a floppy disk image or a floppy disk in a host drive) is ejected. The client program must implement this interface method to receive notification of the vmFloppyDriveEvent_OnMediaEject event originating from IVMFloppyDrive.

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_IVMFloppyDriveEvents is defined as a9ed3401-4e09-4177-86ec-a13bf9fa7d4e

See also

IVMFloppyDriveEvents