On Mon Sep 29 13:47:19 2025 +0000, Vibhav Pant wrote:
Yes, `PSGetNameFromPropertyKey` returns `TYPE_E_ELEMENTNOTFOUND` for unknown keys, so using the custom property syntax is something the caller needs to do:
PROPERTYKEY key = { 0 }; WCHAR* name; HRESULT hr; key.pid = 0xdeadbeef; hr = PSGetNameFromPropertyKey( key, &name ); printf( "hr: %#lx\n", hr );
That being said, we probably should log a FIXME in `PSGetNameFromPropertyKey` before returning TYPE_E_ELEMENTNOTFOUND.
Sure but the question is still whether this will ever get called with a property for which it will return an error like this, or whether it will only be with properties we don't yet implement (and for which support in `PSGetNameFromPropertyKey` needs to be added)