Adds an item to the Active Desktop.
Syntax
HRESULT AddDesktopComponent(
BSTR strURL,
BSTR strType,
VARIANT *Left,
VARIANT *Top,
VARIANT *Width,
VARIANT *Height
);
Parameters
- strURL
- String value that contains the URL of the desktop item.
- strType
- String value that contains the desktop item type.
- Left
- Address of a VARIANT structure that contains the coordinate of the left edge of the desktop item. Passing this address is optional.
- Top
- Address of a VARIANT structure that contains the coordinate of the top edge of the desktop item. Passing this address is optional.
- Width
- Address of a VARIANT structure that contains the width of the desktop item. Passing this address is optional.
- Height
- Address of a VARIANT structure that contains the height of the desktop item. Passing this address is optional.
Return Value
Returns S_OK if successful, or an error code otherwise.