Share via


IWMDeviceManager2::Reinitialize (deprecated)

banner art

This is preliminary documentation and subject to change.

This topic documents a feature of the Windows Media Device Manager SDK. We recommend that you migrate your application to use the Windows Portable Devices API. For more information, see the Windows Portable Devices SDK.

The Reinitialize method forces Windows Media Device Manager to rediscover all the Windows Media Device Manager devices.

Syntax

HRESULT Reinitialize();

Parameters

This method takes no parameters.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Remarks

Windows Media Device Manager monitors Plug and Play (PnP) notifications to keep track of connected devices which are controlled by a PnP-compliant service provider. If a non-compliant device is plugged in or some other changes are made to a device for which the device does not generate PnP notifications (for example, insertion or removal of a storage card), the application should call this method before calling IWMDeviceManager2::EnumDevices2. The application would typically do this on a refresh request from the user.

Requirements

Header: Defined in mswmdm.h.

Library: mssachlp.lib

See Also