本文介绍了使用activelock的HDD固件序列号检测工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

任何具有参考/链接资料的人都可以使用activelock获得HDD固件序列号检测工具.我需要它来检测硬件序列号.它来自实际的硬盘,而不是来自注册表.


任何形式的链接,建议和特别的专家建议都将受到高度赞赏.


谢谢与问候,
Balkrishna Raut

Dear all,

anyone having reference/links material to get the HDD Firmware Serial Number Detection Tool using activelock. i need it to detect the hardware serial number. its from the actual HDD not fro the registry.


Any kind of link, suggestion and specially expert advice would be highly appreciated.


Thanks & Regards,
Balkrishna Raut

推荐答案


[DllImport("DiskID32.dll")]
      public static extern long DiskID32(ref byte DiskModel, ref byte DiskID);





private string GetHardDiskID()
        {
            byte[] DiskModel = new byte[31];
            byte[] DiskID = new byte[31];
            int i;
            string Model = "";
            string HDDID = "";
            if (DiskID32(ref DiskModel[0], ref DiskID[0]) != 1)
            {
                for (i = 0; i < 31; i++)
                {
                    if (Convert.ToChar(DiskID[i]) != Convert.ToChar(0))
                    {
                        HDDID = HDDID + Convert.ToChar(DiskID[i]);
                    }
                }
                HDDID = HDDID.Trim();
            }
            else
            {
                HDDID = "";
            }
            return HDDID;
        }


这篇关于使用activelock的HDD固件序列号检测工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-21 01:27