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 |
---|---|
|
Add property to list |
|
Remove property from list |
|
Update property in list |
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
The property list was successfully set. |
|
The property already exists in the list (applies to adding). |
|
Memory could not be allocated when adding a property. |
|
The property does not exist (applies to deleting and updating). |
|
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 |