The Microsoft Windows Property System is an extensible read/write system of data definitions that provides a uniform way of expressing metadata about Shell items. The Windows Property system in Windows Vista and later enables you to store and retrieve metadata for Shell items.
Questions tagged [ipropertystorage]
12 questions
4
votes
1 answer
Is it possible to get shell properties for an item not in the shell namespace?
Short Version
How does the shell get the properties of a file?
Long Version
The Windows Shell exposes a rich system of properties about items (e.g. files and folders) in the shell namespace.
For example:
System.Title: A Quick Guide for SQL Server…

Ian Boyd
- 246,734
- 253
- 869
- 1,219
4
votes
1 answer
SHGetPropertyStoreForWindow - How to set properties on existing System.AppUserModel.ID
So I split my window from the main tab group via IPropertyStore via SHGetPropertyStoreForWindow like so:
IPropertyStore_SetValue(pps, PKEY_AppUserModel_ID.address(), 'Contoso.Scratch');
pps->Commit();
Then the user later decides he wants to rename…

Noitidart
- 35,443
- 37
- 154
- 323
3
votes
1 answer
PROPERTYKEY::pid Meaning
Can someone explain what the pid field in a PROPERTYKEY structure is? Microsoft says just don't use 0 or 1 and you're fine, but this doesn't help when I need to implement IPropertyStore in my code. Is the pid supposed to be part of the key, so…

Dark Falcon
- 43,592
- 5
- 83
- 98
2
votes
1 answer
windows IPropertyStore handler extension doesn't return property values
I'm trying to write a property handler for a file type our product creates I'm mostly there but the handler is failing to return any data via IPropertyStore::GetValue.
I can see via tracing/debugging that the Initialise method is being called and…

push 22
- 1,172
- 3
- 15
- 34
2
votes
1 answer
How do you remove IPropertyStorage automatically added LOCALE property?
According to the Remarks section for the IPropertyStorage::WriteMultiple Method...
When a new property set is created, the special codepage (Property ID 1) and Locale ID (Property ID 0x80000000) properties are written to the property set…

Les
- 10,335
- 4
- 40
- 60
1
vote
0 answers
Using IPersistFile::Load multiple times with IPropertyStore
I am iterating through a bunch of .lnk files and getting information on them.
For each file I do this, this is js-ctypes but is a winapi question. I removed the error checking and simplified the code:
var hr_CoInitializeEx =…

Noitidart
- 35,443
- 37
- 154
- 323
1
vote
1 answer
SetValue and Release are not functions
In summary: I searched MSDN and thought to create my own SetValue but I can't find any sourcecode for it. It's not in a DLL, its like InitPropVariantFromString, it's in a header file, but I can't find it. :( If you can please just show me htat C++…

Noitidart
- 35,443
- 37
- 154
- 323
1
vote
1 answer
IPropertyStore_Commit method - is it needed and why isn't it implemented?
I'm trying to change the value of a flag in an IPropertyStore. However, my code seems to behave the same way, regardless of the value of the flag.
Is this because my code doesn't call IPropertyStore_Commit after changing the flag?
I did try to…

tjlprice
- 11
- 1
0
votes
0 answers
How to reset icon set with AppUserModel.RelaunchIconResource?
At some point I have set AppUserModel.RelaunchIconResource ID to 0 and now program doesn't have an icon in taskbar.
Breaking code:
IPropertyStore propStore = GetWindowPropertyStore(hwnd);
using (PROPVARIANT pv = new PROPVARIANT(0)
…

Daniel
- 1,064
- 2
- 13
- 30
0
votes
0 answers
How to create multiple property storage interfaces within an IStorage using these interfaces (IStorage, IPropertySetStorage, IPropertyStorage)?
I can create the IPropertySetStorage and IPropertyStorage interfaces using known FMTIDs (FMTID_SummaryInformation, FMTID_DocSummaryInformation, FMTID_UserDefinedProperties), but I cannot create my own FMTID file name. According to MSDN, the FMTID is…

Sempai-Dami1
- 1
- 2
0
votes
2 answers
Initialize PROPVARIANT structure of VT_VARIANT | VT_VECTOR type
I am curious as to how to initialize a PROPVARIANT structure of VT_VARIANT | VT_VECTOR type. An existing model I am aware of is the HeadingPairs property of the DocumentSummaryInformation property set:
The HeadingPairs property is stored as a…

iPhilip
- 43
- 6
0
votes
1 answer
IPropertyStory doing SetValue without Commit
I'm following this blog to write the same code to change the System.AppUserModel.ID of a window: The Old New Thing :: How do I prevent users from pinning my program to the taskbar?
He is doing:
hr = pps->SetValue(pkey,…

Noitidart
- 35,443
- 37
- 154
- 323