IWMPEvents2::DeviceDisconnect method
The DeviceDisconnect event occurs when the user disconnects a device from the computer.
Syntax
void DeviceDisconnect(
IWMPSyncDevice *pDevice
);
Parameters
pDevice
Address of the IWMPSyncDevice interface that represents the device that the user disconnected.
Return value
This method does not return a value.
Remarks
Use IWMPSyncDevice::isIdentical to determine whether a particular device matches the device that the user disconnected.
You can also handle this event through an IDispatch event sink by using the _WMPOCXEvents interface.
Windows Media Player 10 Mobile: This event is not supported.
Requirements
| Minimum supported client | Windows Media Player 10 or later. |
| Target Platform | Windows |
| Header | wmp.h |
| DLL | Wmp.dll |