Share via


IDeviceEmulatorManager::RegisterRefreshEvent

Registers an event to receive notification when the IDeviceEmulatorManager must be refreshed because of changes in the Datastore, My Device Emulators folder, or All Device Emulators folder.

HRESULT RegisterRefreshEvent(BSTR bstrEventName);

Parameters

  • bstrEventName
    The name to register.

Return Value

An HRESULT value that indicates the outcome of the method call.

Exceptions

Exception

Description

S_FALSE

The named event is already registered.

E_INVALIDARG

The named event is NULL.

Any other failure

OpenEvent on the named event failed. To get extended error information, call GetLastError.

Remarks

The event fires when the nodes in the Device Emulator Manager window change. The nodes change when you modify Device Emulator Configuration Files in either the My Device Emulators or All Device Emulators folder or when you install new emulator OS images. Your program should call IDeviceEmulatorManager::Refresh after receiving notification to stay up to date.

Requirements

DEMComInterface.tlb

See Also

Reference

IDeviceEmulatorManager