Why can't I find cfgmgr32.lib in the Windows SDK?

后端 未结 1 445
没有蜡笔的小新
没有蜡笔的小新 2021-01-06 04:19

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

相关标签:
1条回答
  • 2021-01-06 04:56

    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.

    0 讨论(0)
提交回复
热议问题