IActiveDesktop::ModifyDesktopItem method
Modifies the desktop item.
Syntax
HRESULT ModifyDesktopItem(
[in, out] LPCCOMPONENT pcomp,
DWORD dwFlags
);
Parameters
- pcomp [in, out]
-
Type: LPCCOMPONENT
The address of the COMPONENT structure that contains the modifications. The desktop item associated with the wszSource member of the structure will be modified.
- dwFlags
-
Type: DWORD
An unsigned long integer value containing the flags used for the modification. This can be one of the following values.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
The client application must call IActiveDesktop::ApplyChanges separately to update the registry. For example, to change the friendly name, first call this function with either COMP_ELEM_FRIENDLYNAME or COMP_ELEM_ALL in the dwFlags member of COMPONENT. Then call IActiveDesktop::ApplyChanges.
Requirements
|
Minimum supported client |
Windows 2000 Professional, Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
DLL |
|
See also