unresolved external symbol _DEVPKEY_Device_BusReportedDeviceDesc
问题 For devices attached to my machine I want to retrieve device-property Bus Reported Device Description . For this purpose I use function SetupDiGetDeviceProperty of Setup API. In devpkey.h I found the defintion DEVPKEY_Device_BusReportedDeviceDesc . But if I use DEVPKEY_Device_BusReportedDeviceDesc I receive unresolved external symbol _DEVPKEY_Device_BusReportedDeviceDesc while linking. Here is my code (only included minimal code to reproduce issue): #include "stdafx.h" #include <Windows.h>