SHSetTemporaryPropertyForItem function (shobjidl_core.h)
Sets a temporary property for the specified item. A temporary property is kept in a read/write store that holds properties only for the lifetime of the IShellItem object, instead of writing them back into the item.
Syntax
SHSTDAPI SHSetTemporaryPropertyForItem(
[in] IShellItem *psi,
[in] REFPROPERTYKEY propkey,
[in] REFPROPVARIANT propvar
);
Parameters
[in] psi
Type: IShellItem*
A pointer to the item on which the temporary property is to be set.
[in] propkey
Type: REFPROPERTYKEY
Reference to the PROPERTYKEY that identifies the temporary property that is being set.
[in] propvar
Type: REFPROPVARIANT
Reference to a PROPVARIANT that contains the value of the temporary property.
Return value
Type: HRESULT
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
A temporary value can only be read with SHGetTemporaryPropertyForItem or by passing GPS_TEMPORARY to IShellItem2::GetPropertyStore.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | shobjidl_core.h (include Shobjidl.h) |
Library | Shell32.lib |
DLL | Shell32.dll |
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για