コード例 #1
0
ファイル: BIOSInfo.cs プロジェクト: fossabot/AtomOS-1
        public BIOSInfo(SMBIOS.SMBIOSHeader *Header)
            : base(Header)
        {
            /*
             * db 0 ; Indicates BIOS Structure Type            |
             * db 13h ; Length of information in bytes         | HEADER
             * dw ? ; Reserved for handle                      |
             *
             * db 01h ; String 1 is the Vendor Name            |
             * db 02h ; String 2 is the BIOS version           |
             * dw 0E800h ; BIOS Starting Address               |
             * db 03h ; String 3 is the BIOS Build Date        | DATA
             * db 1 ; Size of BIOS ROM is 128K (64K * (1 + 1)) |
             * dq BIOS_Char ; BIOS Characteristics             |
             * db 0 ; BIOS Characteristics Extension Byte 1    |
             *
             * db ‘System BIOS Vendor Name’,0 ;                |
             * db ‘4.04’,0 ;                                   | STRINGS
             * db ‘00/00/0000’,0 ;                             |
             *
             * db 0 ; End of structure
             */


            var strings = GetAllStrings(3);

            mVendorName  = strings[0];
            mBIOSVersion = strings[1];
            mBIOSDate    = strings[2];

            Console.WriteLine("BIOS Information---->");
            Console.WriteLine("Vendor Name  ::" + mVendorName);
            Console.WriteLine("BIOS Version ::" + mBIOSVersion);
            Console.WriteLine("BIOS Date    ::" + mBIOSDate);
        }
コード例 #2
0
ファイル: ProcessorInfo.cs プロジェクト: fossabot/AtomOS-1
        public ProcessorInfo(SMBIOS.SMBIOSHeader *Header)
            : base(Header)
        {
            var strings = GetAllStrings(3);

            mVersion    = strings[0];
            mSocket     = strings[1];
            mVendorName = strings[2];

            mSpeed = *((ushort *)((uint)Header + 0x16));

            Console.WriteLine("Processor Information---->");
            Console.WriteLine("Vendor Name  ::" + mVendorName);
            Console.WriteLine("Version      ::" + mVersion);
            Console.WriteLine("Socket       ::" + mSocket);
            Console.WriteLine("Speed        ::" + mSpeed.ToString());
        }
コード例 #3
0
ファイル: SystemInfo.cs プロジェクト: fossabot/AtomOS-1
 public SystemInfo(SMBIOS.SMBIOSHeader *Header)
     : base(Header)
 {
     var strings = GetAllStrings(6);
 }
コード例 #4
0
ファイル: MainBoardInfo.cs プロジェクト: fossabot/AtomOS-1
 public MainBoardInfo(SMBIOS.SMBIOSHeader *Header)
     : base(Header)
 {
     var strings = GetAllStrings(6);
 }
コード例 #5
0
ファイル: ChasisInfo.cs プロジェクト: fossabot/AtomOS-1
 public ChasisInfo(SMBIOS.SMBIOSHeader *Header)
     : base(Header)
 {
     var strings = GetAllStrings(5);
 }
コード例 #6
0
 public Entry(SMBIOS.SMBIOSHeader *aHeader)
 {
     this.Header       = aHeader;
     this.aTotalLength = Header->Length;
 }