Re: How to Read REG_BINARY type Value From the Reg ??? - RTLQueryRegistryValues- Fails ????

You haven’t given a definition of RegPath, is that initialized?

Maybe RtlQueryRegistryValues works, or maybe it’s just buggy. Like I said
before, I’ve never conceived of a need for it.

You can get everything you need out of ZwEnumerateValueKey and
ZwQueryValueKey. They are much simpler to use, and are known to work.

Phil

“e_somasundaram” @lists.osr.com on 11/16/2001 07:34:40
AM

Please respond to “NT Developers Interest List”

Sent by: xxxxx@lists.osr.com

To: “NT Developers Interest List”
cc:

Subject: [ntdev] Re: How to Read REG_BINARY type Value From the Reg ??? -
RTLQueryRegistryValues Fails ???

>You need to give more information than this. What is the definition of
>Zero? What is definition of pathToRead?

ULONG Zero=0;
UNICODE_STRING pathToRead;
RtlInitUnicodeString(pathToRead,RegPath…+ “\Paramters”);

Now hope u may be able to help me out…

Bye

Somasundaram

----- Original Message -----
From:
To: “NT Developers Interest List”
Sent: Friday, November 16, 2001 1:59 AM
Subject: [ntdev] Re: How to Read REG_BINARY type Value From the Reg ??? -
RTLQueryRegistryValues Fails ???

You need to give more information than this. What is the definition of
Zero? What is definition of pathToRead?

I never have understood the usage of RtlQueryRegistryValues, maybe because
I haven’t understood the point.

You can use ZwEnumerateValueKey to get the name, type, and data from each
value in a key. If you already know the exact value name, use
ZwQueryValueKey to get it directly.

Phil
Philip D. Barila xxxxx@Seagate.com
Seagate Technology (720) 684-1842

“e_somasundaram” @lists.osr.com on 11/15/2001 11:38:09
AM

Please respond to “NT Developers Interest List”

Sent by: xxxxx@lists.osr.com

To: “NT Developers Interest List”
cc:

Subject: [ntdev] How to Read REG_BINARY type Value From the Reg ??? -
RTLQueryRegistryValues Fails ???

How to Read REG_BINARY type Value From the Reg ???

Hello,

Reading the Binary form value from the Registry fails with the Error…

“The Data Area Passed to A System Call is Too Small”…

Cld anyone suggest the way out…plz…

Here the code which Fails…

i.e…

…Other…Declarations…

BYTE StartingCode[64];

queryTable[0].Flags = RTL_QUERY_REGISTRY_DIRECT;
queryTable[0].Name = L"StartingCode";
queryTable[0].EntryContext =&StartingCode;
queryTable[0].DefaultType = REG_BINARY;
queryTable[0].DefaultData = &Zero;
queryTable[0].DefaultLength=sizeof(StartingCode);

Status = RtlQueryRegistryValues(RTL_REGISTRY_ABSOLUTE |
RTL_REGISTRY_OPTIONAL,
pathToRead,
&queryTable[0],
NULL,
NULL);




You are currently subscribed to ntdev as: xxxxx@seagate.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@hotmail.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@seagate.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com