Upon using PKEY_Device_FriendlyName, I\'m getting the following errors:
Error 1 error LNK2001: unresolved external symbol _PKEY_Device_FriendlyName Defau
Old post, but hopefully this answer will save someone some time.
I was having the same problem with DEVPKEY properties - like DEVPKEY_Device_FriendlyName. I got a very similar link error. I stumbled upon the answer in comments here: Referencing GUIDs
Basically, add an #include before the include for things like devpkey.h where the property keys are defined.
So, at the top of my file I have:
#include
#include // Put this in to get rid of linker errors.
#include // Property keys defined here are now defined inline.