Help for this page

Select Code to Download


  1. or download this
    use strict;
    use Win32::Registry;
    
    package myPackage;
    print $::HKEY_LOCAL_MACHINE; # not $HKEY_LOCAL_MACHINE
    
  2. or download this
    #define the basic registry objects to be exported.
    #these had to be hardwired unfortunately.
    ...
    $::HKEY_PERFORMANCE_DATA    = _new(&HKEY_PERFORMANCE_DATA);
    $::HKEY_CURRENT_CONFIG        = _new(&HKEY_CURRENT_CONFIG);
    $::HKEY_DYN_DATA        = _new(&HKEY_DYN_DATA);