Solved

Bus Type

Posted on 1998-05-29
3
388 Views
Last Modified: 2010-05-03
How to I determine the bus type of the user's computer in Visual Basic 5.0? ie, is it ISA, EISA, VESA, PCI, etc?
0
Comment
Question by:pdorman
  • 2
3 Comments
 

Expert Comment

by:Darlof
ID: 1462079
I don't have an answer to that; but, why do you care?
(No sarcasm intended, I'm really curious.)
0
 
LVL 4

Expert Comment

by:yowkee
ID: 1462080
 This might be silly. Just provide for some reference. :)
 
  Enumerate all keys under HKLM\System\CurrentControlSet\Services\Class\System

Check value "InfSection" and "DevLoader" under all these keys. If InfSection = "ISA_DRV" and DevLoader = "isapnp.vxd", the machine has ISA bus. If InfSection = "PCI_DRV" and DevLoader = "pci.vxd", the machine has PCI bus. I am not sure about EISA and VESA.

 The DevLoader might be changed and I am also not sure whether it is reliable to check only value "InfSection".  

 Hope this help.
0
 
LVL 4

Accepted Solution

by:
yowkee earned 200 total points
ID: 1462081
 Or you might use third party OCX to allow VB to access low level device. One good OCX for this purpose is WinRT 3.0 from BlueWater Systems, Inc.

Check it at
http://www.bluewatersystems.com/frames/content5.html

Note: Check the WinRT OCX property, it has a BusType property.

Regards.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now