Click here to get back home

How to use Registry functions

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
How to use Registry functions Marco Roda 01-30-2006
Posted by Marco Roda on January 30, 2006, 8:47 am
Please log in for more thread options


I should use NTRegOpenKeyEx to read a registry key.
I got some example like:
<
require 'NT.ph';
use Win32::Registry;

$rc = NTRegOpenKeyEx ( &HKEY_LOCAL_MACHINE,
'SYSTEM\CurrentControlSet\Services\W3SVC\Parameters\Virtual Roots', &NULL,
&KEY_ALL_ACCESS, $PerlKey );
NTRegQueryValueEx( $PerlKey, '/', &NULL, $type, $HttpRoot );
>
but I have no NT.ph
- where should I found it ?
- how to install ?

Thanks in advance,
Marco



Posted by DJ Stunks on January 30, 2006, 3:20 pm
Please log in for more thread options


Marco Roda wrote:
> I should use NTRegOpenKeyEx to read a registry key.
> I got some example like:
> <
> require 'NT.ph';
> use Win32::Registry;
>
> $rc = NTRegOpenKeyEx ( &HKEY_LOCAL_MACHINE,
> 'SYSTEM\CurrentControlSet\Services\W3SVC\Parameters\Virtual Roots', &NULL,
> &KEY_ALL_ACCESS, $PerlKey );
> NTRegQueryValueEx( $PerlKey, '/', &NULL, $type, $HttpRoot );
> >
> but I have no NT.ph
> - where should I found it ?
> - how to install ?
>
> Thanks in advance,
> Marco

Please do not cross-post.


Posted by Paul Lalli on January 30, 2006, 3:32 pm
Please log in for more thread options


DJ Stunks wrote:
> Marco Roda wrote:
>
> Please do not cross-post.

ITYM "Please do not multi-post". Cross-posting, occasionally and when
appropriate, is generally okay. Multi-posting, which is what this OP
did, is never okay.

Multi-posting: Posting multiple copies of the same message to multiple
newsgroups.
Cross-posting: Posting one message to multiple newsgroups, by
including all newsgroups in the single To: line.

Paul Lalli


Similar ThreadsPosted
CGI.pm and ModPerl::Registry December 21, 2007, 11:20 pm
perl : Importing registry keys February 3, 2005, 11:34 am
Windows Registry manipulation using Unix April 29, 2005, 11:46 am
Module to use for win32 registry access? April 4, 2007, 8:32 pm
CPAN conflict issue - CGI.pm vs ModPerl::Registry September 25, 2006, 12:42 pm
How can I call MFC functions from Perl July 19, 2005, 9:46 pm
Module for Orchestrating Perl Functions? May 9, 2008, 9:30 pm
Calling External DLL functions in Perl using Inline July 11, 2005, 6:47 am
Perl interface to direct port I/O functions (inb(), outb() and friends) February 19, 2005, 9:00 pm
Modules for hash functions? (ie, common algorithms for computing hash keys, not manipulating perl hashes) August 26, 2006, 7:08 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap