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 beca=
use
I haven’t understood the point.
You can use ZwEnumerateValueKey to get the name, type, and data from ea=
ch
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];
=A0queryTable[0].Flags =3D RTL_QUERY_REGISTRY_DIRECT;
=A0queryTable[0].Name =3D L"StartingCode";
=A0queryTable[0].EntryContext =3D&StartingCode;
=A0queryTable[0].DefaultType =3D REG_BINARY;
=A0queryTable[0].DefaultData =3D &Zero;
=A0queryTable[0].DefaultLength=3Dsizeof(StartingCode);
=A0=A0=A0=A0=A0=A0=A0 Status=A0 =3D=A0 RtlQueryRegistryValues(RTL_REGI=
STRY_ABSOLUTE |
RTL_REGISTRY_OPTIONAL,
=A0=A0=A0=A0=A0pathToRead,
=A0=A0=A0=A0=A0&queryTable[0],
=A0=A0=A0=A0=A0NULL,
=A0=A0=A0=A0=A0NULL);
…
—
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