IActiveDesktop::GetDesktopItemIActiveDesktop::GetDesktopItem*
*Contents  *Index  *Topic Contents
*Previous Topic: IActiveDesktop::GenerateDesktopItemHtml
*Next Topic: IActiveDesktop::GetDesktopItemByID

IActiveDesktop::GetDesktopItem

HRESULT GetDesktopItem(
    int nComponent,
    LPCOMPONENT pcomp,
    DWORD dwReserved
);

Retrieves the specified desktop item.

nComponent
Unsigned long integer value that contains the desktop item's index. The index values start at zero. Use IActiveDesktop::GetDesktopItemCount to get a count on the total number of desktop items.
pcomp
Address of the COMPONENT structure of the retrieved desktop item.
dwReserved
Reserved. Must be set to zero.

The index values will change as desktop items are added and removed from the Active Desktop. Applications cannot assume that an index value will always be associated with a particular desktop item.


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