How to use Registry functions

How to use Registry functions

am 30.01.2006 14:47:51 von Marco Roda

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

Re: How to use Registry functions

am 30.01.2006 21:20:58 von Jake Peavy

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.

Re: How to use Registry functions

am 30.01.2006 21:32:57 von Paul Lalli

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