IActiveDesktop::AddDesktopItemIActiveDesktop::AddDesktopItem*
*Contents  *Index  *Topic Contents
*Previous Topic: Methods
*Next Topic: IActiveDesktop::AddDesktopItemWithUI

IActiveDesktop::AddDesktopItem

HRESULT AddDesktopItem(
    LPCOMPONENT pcomp,
    DWORD dwReserved
);

Adds a desktop item.

pcomp
Address of the COMPONENT structure associated with the item to be added.
dwReserved
Reserved. Must be set to zero.

If the source URL of the desktop item being added matches a desktop item already installed on the Active Desktop, this method will fail.

The desktop item is added to the desktop, but it does not save it to the registry. The client application must call IActiveDesktop::ApplyChanges separately to update the registry.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.