Share via


Identifying the Drive Containing the Removable Media

When Windows Media Center invokes an AutoPlay event handler as a result of a drive-related event (for example, the user inserted a DVD), the application that handles the event should query the MediaCenter.MediaContext.GetProperty("Uri") property for the drive letter. Because only Windows Media Center applications have access to Windows Media Center's object model, an executable run as an AutoPlay handler does not have access to the MediaContext property.

See Also