Solved

Bus Type

Posted on 1998-05-29
3
384 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
Comment Utility
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
Comment Utility
 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
Comment Utility
 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

772 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

9 Experts available now in Live!

Get 1:1 Help Now