获取硬盘序列号

在网上找到一份取硬盘序列号的类,原作者已经无法查证了。这个类的作用就不多说了,至少可以一定程度的防止软件的任意Copy。

我在其中作了一处修改,因为原作者采用了MFC中的CString,在SDK下面使用不便,我就简单的修改了一下。

char sFilePath[64]={0};
sprintf(sFilePath,"\\\\.\\PHYSICALDRIVE%d",driver);//modify by lonkil 2008-07-13

  GetHardDiskSN (7.2 KiB, 1,276 hits)

网友评论(共2条评论)

  1. lonkil

     2008年7月14日 13:19 pm

    aw,大侠。不好意思,代码写多了,就缺乏美感了,糟蹋你作品了,呵呵。


  2. aw

     2008年7月14日 13:11 pm

    -。- 居然改成这样了。。。寒


发表评论





XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>