RemoveDesktopListEventListener

Unregisters an event listener from notifications when the desktop list changes.

Syntax

Copied!

ADLX_RESULT     RemoveDesktopListEventListener (IADLXDesktopListChangedListener * pDesktopListChangedListener)

Parameters

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

Return Value

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

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

Refer to ADLX_RESULT for success codes and error codes.

Remarks

After the event listener is successfully unregistered, ADLX will no longer call OnDesktopListChanged method of the listener when the desktop list changes. The application can discard the event listener instance.

Requirements

Header

include “IDesktops.h”

Minimum version

1.0