I\'m trying to use the Configuration Manager API, e.g., CM_Get_Device_ID. The documentation says to link to cfgmgr32.lib
.
However, when I do this, I ge
If the version of the Windows SDK you are using does not contain cfgmgr32.lib
, you should link to setupapi.lib
instead. This contains the Configuration Manager functions.
Note that (depending on what you are doing) it may be preferable to use the more recent Setup API instead of the Configuration Manager API.