Sys::Info::Driver::Windows - Windows driver for Sys::Info
use Sys::Info::Driver::Windows qw(:metrics); if ( GetSystemMetrics(SM_SERVERR2) ) { # do something ... }
This document describes version 0.78 of Sys::Info::Driver::Windows released on 17 April 2011.
0.78
Sys::Info::Driver::Windows
17 April 2011
This is the main module in the Windows driver collection.
Windows
None.
The following functions will be automatically exported when the module is used.
TODO
Returns a Win32::TieRegistry hashref.
Win32::TieRegistry
Returns the WMI object.
WMI
Returns the WMI object for the supplied WMI Class name.
WMI Class
Decodes the base24 encoded KEY.
KEY
Interface to GetSystemMetrics Windows function. Accepts an integer as the parameter. The interface is incomplete (as Sys::Info does not need the rest) and only these constants are defined:
GetSystemMetrics
SM_TABLETPC SM_MEDIACENTER SM_SERVERR2 SM_STARTER
All these constants and the function itself can be imported by the :metrics key.
:metrics
An interface to the Win32 API function GetSystemInfo:
Win32 API
GetSystemInfo
my %si = GetSystemInfo(); printf("CPU: %s Family %s Model %s Stepping %s\n", @si{qw/ wProcessorArchitecture2 wProcessorLevel wProcessorModel wProcessorStepping /} );
Sys::Info, http://www.perlmonks.org/?node_id=497616, http://msdn.microsoft.com/en-us/library/ms724385(VS.85).aspx, http://msdn.microsoft.com/en-us/library/ms724429(VS.85).aspx.
Burak Gursoy <burak@cpan.org>.
Copyright 2006 - 2011 Burak Gursoy. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.12.2 or, at your option, any later version of Perl 5 you may have available.
To install Sys::Info::Driver::Windows, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sys::Info::Driver::Windows
CPAN shell
perl -MCPAN -e shell install Sys::Info::Driver::Windows
For more information on module installation, please visit the detailed CPAN module installation guide.