IITPropList::Set(PROPID,DWORD,DWORD) method (infotech.h)

Sets a property to a given value or deletes a property from the list.

Syntax

HRESULT Set(
  [in] PROPID PropID,
  [in] DWORD  dwData,
  [in] DWORD  dwOperation
);

Parameters

[in] PropID

ID of property to set.

[in] dwData

Value of property.

[in] dwOperation

The operation you want to perform. Can be any of the following flags:

Value Meaning
PROP_ADD
Add property to list
PROP_DELETE
Remove property from list
PROP_UPDATE
Update property in list

Return value

This method can return one of these values.

Return code Description
S_OK
The property list was successfully set.
E_DUPLICATE
The property already exists in the list (applies to adding).
E_OUTOFMEMORY
Memory could not be allocated when adding a property.
E_NOTEXIST
The property does not exist (applies to deleting and updating).
E_NOTIMPL
The specified operation is not available.

Remarks

Use this method to set properties with numerical values.

Requirements

Requirement Value
Target Platform Windows
Header infotech.h

See also

IITPropList