IWMDMStorage::EnumStorage method (mswmdm.h)

The EnumStorage method retrieves an IWMDMEnumStorage interface to enumerate the immediate child storages of the current storage.


HRESULT EnumStorage(
  [out] IWMDMEnumStorage **pEnumStorage


[out] pEnumStorage

Pointer to an IWMDMEnumStorage interface. 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
For an extensive list of possible error codes, see Error Codes.


The IWMDMEnumStorage interface that is retrieved will enumerate the immediate children of this object. This method allows an application to navigate the contents of a device recursively.


Target Platform Windows
Header mswmdm.h
Library Mssachlp.lib

See also

Exploring a Device


IWMDMEnumStorage Interface

IWMDMStorage Interface