添加CyAPI.h头文件,添加CyAPI.lib库文件。注意还要添加setupapi.lib库文件,否则会报错:error LNK2019: unresolved external symbol。setupapi.lib是microsoft SDK的标准库文件。