SHGetTemporaryPropertyForItem function
Retrieves the temporary property for the given item. A temporary property is a read/write store that holds properties only for the lifetime of the IShellItem object, rather than being persisted back into the item.
Syntax
HRESULT SHGetTemporaryPropertyForItem( _In_ IShellItem *psi, REFPROPERTYKEY pk, _Out_ PROPVARIANT *ppropvarInk );
Parameters
- psi [in]
-
Type: IShellItem*
A pointer to the item for which the temporary property is to be retrieved.
- pk
-
Type: REFPROPERTYKEY
The property key.
- ppropvarInk [out]
-
Type: PROPVARIANT*
A pointer to the temporary property for the item.
Return value
Type: HRESULT
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
|
DLL |
|