首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >获取系统型号# --使用已擦除的硬盘

获取系统型号# --使用已擦除的硬盘
EN

Stack Overflow用户
提问于 2012-09-10 19:35:26
回答 1查看 112关注 0票数 0

我正在尝试制作一个版本的Symantec Ghost启动盘,它将自动检查系统型号,并选择该型号所需的网卡驱动程序。除了获得实际的模型#之外,我已经做好了所有的工作。我需要能够得到它,即使硬盘驱动器已经完全擦除,因为这是从一个dos启动磁盘运行。

我试过几个命令-- wmic,systeminfo --所有这些命令在windows中都运行得很好,但我需要一个可以在dos模式下运行的命令,而这些命令显然不能。

关于实用程序和/或命令有什么想法可以帮我吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-09-10 19:43:13

您可以编写一小段代码并直接调用BIOS API。

有关(古老的)示例,请参阅http://www.cs.ubbcluj.ro/~forest/HtmlFolder/AC/NG/ng897c4.html

代码语言:javascript
复制
INT 15h,  C0h (192)      Return System Configuration                     many

    Reports the machine model number, sub-model number, BIOS revision
    level, and other hardware-specific attributes.

       On entry:      AH         C0h

       Returns:       Carry      Set if error, else cleared
                      AH         0
                      ES:BX      Pointer to a System Descriptor Table

  --------------------------------------------------------------------------

       Notes:         This service is not available for the PC, PCjr, XT
                      dated 11/08/82, and the AT dated 1/10/84. Use the
                      return state of AH to determine if the service is
                      returning valid information.

  System Descriptor Table

          Description              Length (byte)      Value
          Table length                   1              8
          System model number            1              ?
          Sub-model number               1              ?
          Bios Revision level            1              ?
          Feature Information            1              ?
          Reserved                       4              0

这就是wikipedia list of all calls,我非常确定在编译器(例如Turbo C等)中也会有一个函数来做这件事。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12350867

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档