AddDesktopListEventListener

Registers an event listener for notifications when the desktop list changes.

Syntax

Copied!

ADLX_RESULT     AddDesktopListEventListener (IADLXDesktopListChangedListener * pDesktopListChangedListener)

Parameters

  1. [in] pDesktopListChangedListener IADLXDesktopListChangedListener * The pointer to the event listener interface to register for receiving the desktop list change notifications.

Return Value

If the event listener is successfully registered, ADLX_OK is returned.

If the event listener is not successfully registered, an error code is returned.

Refer to ADLX_RESULT for success codes and error codes.

Remarks

After the event listener is successfully registered, ADLX will call OnDesktopListChanged of the listener when the desktop list changes.

The event listener instance must exist until the application unregisters the event listener with RemoveDesktopListEventListener .

Requirements

Header

include “IDesktops.h”

Minimum version

1.0