IWMDeviceManager2::Reinitialize method (mswmdm.h)

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

Syntax

HRESULT Reinitialize();

Return value

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

Requirement Value
Target Platform Windows
Header mswmdm.h
Library Mssachlp.lib

See also

IWMDeviceManager2 Interface

IWMDeviceManager2::EnumDevices2