获取硬盘序列号
const char * strCmd = "wmic diskdrive get serialnumber"; FILE *stream; char buf[100]={0}; stream = popen(strCmd, "r"); QString serialbumber; while (fgets(buf,sizeof(buf),stream) != NULL) { QString str = QString(buf).tri.
原创
2021-03-31 16:34:40 ·
123 阅读 ·
0 评论