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

Parameters

[in] PropID

ID of the property to set.

[in] lpszwString

Pointer to a Unicode string.

[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 passed as a Unicode string.

Requirements

Requirement Value
Target Platform Windows
Header infotech.h

See also

IITPropList