public static extern bool XcareSystemInformation(ref system_info_type_1 t1);
private void button_type1_Click(object sender, EventArgs e) { WMI_DLL.XcareInitSMBiosData(); system_info_type_1 t1 = new system_info_type_1(); WMI_DLL.XcareSystemInformation(ref t1); //string test = String.Format("{0:X2}", Convert.ToInt16(t1.uuid.node[0x01])); string UUID = String.Format("{0:X8}", t1.uuid.time_low) + "-" + String.Format("{0:X4}", t1.uuid.time_hi_and_version) + String.Format("{0:X4}", t1.uuid.time_mid) + "-" + String.Format("{0:X2}", Convert.ToInt16(t1.uuid.node[0x01])) + String.Format("{0:X2}", Convert.ToInt16(t1.uuid.node[0x00])) + String.Format("{0:X2}", Convert.ToInt16(t1.uuid.clock_low_seq)) + String.Format("{0:X2}", Convert.ToInt16(t1.uuid.clock_seq_hi_and_reserved)) + "-" + String.Format("{0:X2}", Convert.ToInt16(t1.uuid.node[0x05])) + String.Format("{0:X2}", Convert.ToInt16(t1.uuid.node[0x04])) + String.Format("{0:X2}", Convert.ToInt16(t1.uuid.node[0x03])) + String.Format("{0:X2}", Convert.ToInt16(t1.uuid.node[0x02])); label_System_Manufactore.Text = "System Manufacture : " + t1.manufacturer; label_System_Product.Text = "System Product : " + t1.product_name; label_Serial_Number.Text = "System Serial Number : " + t1.serial_number; label_UUID.Text = "System UUID : " + UUID; label_SKU_number.Text = "System SKU number : " + t1.sku_number; label_typ1_family.Text = "Family: " + t1.family.ToString(); }