Skip to content

Latest commit

 

History

History
80 lines (51 loc) · 2.41 KB

ivmfloppydriveevents-onmediaeject.md

File metadata and controls

80 lines (51 loc) · 2.41 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
IVMFloppyDriveEvents OnMediaEject method (VPCCOMInterfaces.h)
Receives notification that media has been ejected from the drive. | IVMFloppyDriveEvents OnMediaEject method (VPCCOMInterfaces.h)
3e9c0b5d-8fec-4f34-93d2-c5975403798b
OnMediaEject method Virtual PC
OnMediaEject method Virtual PC , IVMFloppyDriveEvents interface
IVMFloppyDriveEvents interface Virtual PC , OnMediaEject method
apiref
IVMFloppyDriveEvents.OnMediaEject
VPCCOMInterfaces.h
COM
reference
05/31/2018

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