IWMDeviceManager::EnumDevices method (mswmdm.h)
The EnumDevices method retrieves a pointer to the IWMDMEnumDevice interface that can be used to enumerate portable devices connected to the computer.
Syntax
HRESULT EnumDevices(
[out] IWMDMEnumDevice **ppEnumDevice
);
Parameters
[out] ppEnumDevice
Pointer to a pointer to an IWMDMEnumDevice interface used to enumerate devices. The caller must release this interface when done with it.
Return value
The method returns an HRESULT. All the interface methods in Windows Media Device Manager can return any of the following classes of error codes:
- Standard COM error codes
- Windows error codes converted to HRESULT values
- Windows Media Device Manager error codes
Remarks
This method returns devices based on earlier versions of Windows Media Device Manager. To get all devices, including newer devices (such as MTP devices), call IWMDMDeviceManager2::EnumDevices2.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | mswmdm.h |
Library | Mssachlp.lib |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for