in reply to SMART info from drives in win32 using WMI
Adding the following to your code...
use Data::Dumper::Simple; # your code here... print Dumper($res);
...yields the following result on my Win32 machine...
$res = bless( { 'Count' => undef, 'Security_' => bless( { 'ImpersonationLevel' => 3, 'AuthenticationLevel' => 6, 'Privileges' => bless( { 'Coun +t' => 1 }, 'Win +32::OLE' ) }, 'Win32::OLE' ) }, 'Win32::OLE' );
So I guess the resulting data structure is a little more complex than just a simple hash. No smartdrive info there of course (because I'm not running any), but I suspect that if you try the same thing on your machine you might find the clue that you need.
Hope this helps,
Darren :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: SMART info from drives in win32 using WMI
by Nemurenai (Acolyte) on May 17, 2006 at 13:52 UTC | |
by McDarren (Abbot) on May 17, 2006 at 14:05 UTC | |
by Nemurenai (Acolyte) on May 17, 2006 at 14:50 UTC | |
by tye (Sage) on May 18, 2006 at 05:56 UTC | |
by Nemurenai (Acolyte) on May 18, 2006 at 10:52 UTC |