Windows Media Player 11 SDK IWMPEvents::CdromMediaChange 

Windows Media Player SDK banner art

Previous Next

IWMPEvents::CdromMediaChange

The CdromMediaChange event occurs when a CD or DVD is inserted into or ejected from a CD or DVD drive.

Syntax

  
    void CdromMediaChange(
  long  CdromNum
);

Parameters

CdromNum

[in]  Specifies the index of the CD or DVD drive.

Return Values

This event does not return a value.

Remarks

The index of the CD drive corresponds to the index of a Cdrom object in the IWMPCdromCollection interface.

Windows Media Player 10 Mobile: This event is not supported.

Requirements

Version: Windows Media Player 9 Series or later.

Header: Include wmp.h.

Library: Use wmp.dll.

See Also

Previous Next