IITPropList::Set(PROPID,LPVOID,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] LPVOID lpvData,
  [in] DWORD  cbData,
  [in] DWORD  dwOperation
);

Parameters

[in] PropID

ID of the property to set.

[in] lpvData

Pointer to the buffer containing data.

[in] cbData

Length of the buffer.

[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 stored in a buffer.

Requirements

Requirement Value
Target Platform Windows
Header infotech.h

See also

IITPropList