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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Win32 - get all PCI boards info ?

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Joined
Feb 6, 2002
Messages
1,851
Location
IL
HI,

How can I get all PCI boards info ?

Did not find any matching Win32 module ...
Thanks

Long live king Moshiach !
 
Paul,

I do not know.Did not find it in registry myself.
I know how to access Registry through Perl modules.
Thanks

Long live king Moshiach !
 
will depend on your version of windows I'm sure:

HKEY_LOCAL_MACHINE
ENUM
PCI

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
Thanks,great tip.

Have a problem now:
$key=$Registry->{"HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Enum"};
@subKeyNames1= $key->SubKeyNames;

Get error "Can't call method "SubKeyNames" on an undefined value". It appears if "Enum" subkey is used,then the $key is undefined ...
Tried also"
$key=$Registry->{"HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet//Enum"};


Both lines below work fine though,so something is wrong in referencing the "Enum" subkey :

$key=$Registry->{"HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control"};

$key=$Registry->{"HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/"};

Will appreciate help (running on XP).
Thanks


Long live king Moshiach !
 
Code:
$var=$key="HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Enum";
$key=$Registry->{$var};

This is officially straw clutching ;-)

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Thanks,Paul

still the same.
Note: if you "regedit /e somefile HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet" and open the somefile with notepad,you'd notice a double backslash in front of "Enum" :

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\\Enum\PCI\VEN_8086&DEV_24D1&SUBSYS_01511028&REV_02\

Long live king Moshiach !
 
try
Code:
$key=$Registry->{'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum'};

That straw is getting quite concerned about the grip I'm using

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
HI,

got around this issue by dumping the registry into a file and processing the file,which works.
Rather the using Win32::TieRegistry module ...

Long live king Moshiach !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top