0

システムのモデル番号を自動的にチェックし、そのモデルに必要な NIC ドライバを選択するバージョンの Symantec Ghost ブート ディスクを作成しようとしています。実際のモデル番号を取得する以外はすべて機能しています。これはDOSブートディスクから実行されているため、ハードドライブが完全に消去された場合でも取得できる必要があります.

いくつかのコマンド (wmic、systeminfo) を試しましたが、これらはすべて Windows 内で正常に動作しますが、dos モードで実行できるコマンドが必要なのですが、これらは実行できないようです。

私を助けることができるユーティリティやコマンドに関するアイデアはありますか?

4

1 に答える 1

0

小さなコードを書き、BIOS API を直接呼び出すことができる場合があります。

(古い) 例については、http://www.cs.ubbcluj.ro/~forest/HtmlFolder/AC/NG/ng897c4.htmlを参照してください。

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

これはすべての呼び出しのウィキペディアのリストであり、選択したコンパイラ (Turbo C など) にもこれを行う関数があると確信しています。

于 2012-09-10T11:43:13.400 に答える