Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can some help me in finiding Hardware details from Registry in 95/98

Status
Not open for further replies.

Akshay

Programmer
Nov 9, 1999
7
IN
Hi <br>&nbsp;&nbsp;&nbsp;&nbsp;This is Akshay.I will be helpful if someone can help me<br>finiding hardware details from Registry.<br>I want to find out which Monitor is installled and used.<br>Which Display Card is used,its manufacturer,etc.<br>I know this information is in HKEY_LOCAL_MACHINE.<br>But how do I exaclty go programmatically searching this information.<br><br>Akshay
 
Get Regmon from <A HREF=" TARGET="_new"> it.&nbsp;&nbsp;Then execute something that looks at the display type (Display control panel, for instance).&nbsp;&nbsp;Look through the hundreds of lines of logging and you will find where the readable string for the display type is drawn from.&nbsp;&nbsp;Many other values for the hardware will be close by.
 
Hi Akshay.&nbsp;&nbsp;Assuming you know the registry location, what you need to do is use the RegOpenKeyEx function to open the key in question and then the RegQueryValueEx function to retrieve the data.<br><br>Both are defined in winreg.h.<br><br>Hope this helps!<br> <p>Pat Gleason<br><a href=mailto:gleason@megsinet.net>gleason@megsinet.net</a><br><a href= > </a><br>
 
Hi Cheezit/Gleason<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cheezit I have RegMon but its very difficult to trace it using RegMon.AS applications like Msinfo create there own KEY in registry.What I want is following<br>On My machine display card infromation is stored in<br>HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\Display\0000<br>For Monitor there are two /three keys now how do I programmatcally know from registry which montior driver is being used currently?. Is it Plug and play or Is it LG etc.<br>&nbsp;&nbsp;&nbsp;Gleason I know the API's for Registry but don't know where this information is stored.<br>Thanks for your feedback.<br><br>Akshay
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top