Hi
I am trying to write a sample driver for vista… have checked that on
first XP and that is working… in vista
ZwOpenKey function fails and returning status C0000034…Is it My Driver Bug
Or something changed in vista so that the driver is unable to find the
registry object…
Thanks
Niraj Jha
How about a little bit of context? What key are you opening? When are you trying to load it? How about some code? For instance, if you are trying to open the Software key, there is a window of time during boot that the key is not loaded and your driver cannot open it (WinXP also has this limitation), while if your driver is loaded later it can.
d
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Niraj Jha
Sent: Thursday, November 23, 2006 8:52 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] ZwOpenKey fails in vista
?
?Hi
?
?? I am trying to write a sample driver for vista… have checked that on first XP and that is working… in vista
ZwOpenKey function fails and returning status C0000034…Is it My Driver Bug Or something changed in vista so that the driver is unable to find the registry object…
Thanks
?
Niraj Jha
?
— Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
Hi Doron
Thanks for your reply… its a simple trial … i am trying to open
“SYSTEM\Software\My
Test”
through my sample driver …my opening code is
InitializeObjectAttributes( &attributs, &Reg, OBJ_CASE_INSENSITIVE, base,
NULL );
status = ZwOpenKey( &key, KEY_READ | KEY_WRITE, &attributs);
and it return status C0000034 …I am confused what is happening… its a
simple sample driver and i am calling this function after the creation of
device object and major function deceleration in DriverEntry…
Niraj
On 11/24/06, Doron Holan wrote:
>
> How about a little bit of context? What key are you opening? When are
> you trying to load it? How about some code? For instance, if you are
> trying to open the Software key, there is a window of time during boot that
> the key is not loaded and your driver cannot open it (WinXP also has this
> limitation), while if your driver is loaded later it can.
>
> d
>
> From: xxxxx@lists.osr.com [mailto:
> xxxxx@lists.osr.com] On Behalf Of Niraj Jha
> Sent: Thursday, November 23, 2006 8:52 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] ZwOpenKey fails in vista
>
>
> Hi
>
> I am trying to write a sample driver for vista… have checked that on
> first XP and that is working… in vista
> ZwOpenKey function fails and returning status C0000034…Is it My Driver
> Bug Or something changed in vista so that the driver is unable to find the
> registry object…
> Thanks
>
> Niraj Jha
>
> — Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List
> Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
Is your driver being loaded during boot? If so, my previous warning applies. More succinctly, is it loading before win32k.sys and the system goes GUI? That is around the time the Software key is loaded. Any time before it is loaded, it cannot be accessed.
D
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Niraj Jha
Sent: Thursday, November 23, 2006 9:27 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] ZwOpenKey fails in vista
Hi Doron
?
??? ?Thanks for your reply… its a simple trial … i am trying to open? “SYSTEM\Software\My Test”
through my sample driver …my opening code is
?
?
?
InitializeObjectAttributes( &attributs, &Reg, OBJ_CASE_INSENSITIVE, base, NULL );
status?= ZwOpenKey( &key, KEY_READ | KEY_WRITE, &attributs);
and it return status C0000034 …I am confused what is happening… its a simple sample driver and i am calling this function after the creation of device object and major function deceleration in DriverEntry…
?
Niraj
?
?
?
On 11/24/06, Doron Holan wrote:
How about a little bit of context???What key are you opening???When are you trying to load it???How about some code???For instance, if you are trying to open the Software key, there is a window of time during boot that the key is not loaded and your driver cannot open it (WinXP also has this limitation), while if your driver is loaded later it can.
d
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Niraj Jha
Sent: Thursday, November 23, 2006 8:52 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] ZwOpenKey fails in vista
Hi
I am trying to write a sample driver for vista… have checked that on first XP and that is working… in vista
ZwOpenKey function fails and returning status C0000034…Is it My Driver Bug Or something changed in vista so that the driver is unable to find the registry object…
Thanks
Niraj Jha
— Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
—
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
— Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
Hi
This means it have nothing to do with vista changes.?
Niraj
On 11/24/06, Doron Holan wrote:
>
> Is your driver being loaded during boot? If so, my previous warning
> applies. More succinctly, is it loading before win32k.sys and the system
> goes GUI? That is around the time the Software key is loaded. Any time
> before it is loaded, it cannot be accessed.
>
> D
>
> From: xxxxx@lists.osr.com [mailto:
> xxxxx@lists.osr.com] On Behalf Of Niraj Jha
> Sent: Thursday, November 23, 2006 9:27 PM
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] ZwOpenKey fails in vista
>
> Hi Doron
>
> Thanks for your reply… its a simple trial … i am trying to open
> “SYSTEM\Software\My Test”
> through my sample driver …my opening code is
>
>
>
> InitializeObjectAttributes( &attributs, &Reg, OBJ_CASE_INSENSITIVE, base,
> NULL );
> status= ZwOpenKey( &key, KEY_READ | KEY_WRITE, &attributs);
> and it return status C0000034 …I am confused what is happening… its a
> simple sample driver and i am calling this function after the creation of
> device object and major function deceleration in DriverEntry…
>
> Niraj
>
>
>
>
> On 11/24/06, Doron Holan wrote:
> How about a little bit of context?What key are you opening?When are you
> trying to load it?How about some code?For instance, if you are trying to
> open the Software key, there is a window of time during boot that the key is
> not loaded and your driver cannot open it (WinXP also has this limitation),
> while if your driver is loaded later it can.
>
> d
>
> From: xxxxx@lists.osr.com [mailto:
> xxxxx@lists.osr.com] On Behalf Of Niraj Jha
> Sent: Thursday, November 23, 2006 8:52 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] ZwOpenKey fails in vista
>
>
> Hi
>
> I am trying to write a sample driver for vista… have checked that on
> first XP and that is working… in vista
> ZwOpenKey function fails and returning status C0000034…Is it My Driver
> Bug Or something changed in vista so that the driver is unable to find the
> registry object…
> Thanks
>
> Niraj Jha
>
> — Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List
> Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> — Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List
> Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
Yes. Drivers are only allowed to access the SYSTEM registry.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Niraj Jha”
To: “Windows System Software Devs Interest List”
Sent: Friday, November 24, 2006 8:51 AM
Subject: Re: [ntdev] ZwOpenKey fails in vista
> Hi
>
> This means it have nothing to do with vista changes.?
>
> Niraj
>
>
> On 11/24/06, Doron Holan wrote:
> >
> > Is your driver being loaded during boot? If so, my previous warning
> > applies. More succinctly, is it loading before win32k.sys and the system
> > goes GUI? That is around the time the Software key is loaded. Any time
> > before it is loaded, it cannot be accessed.
> >
> > D
> >
> > From: xxxxx@lists.osr.com [mailto:
> > xxxxx@lists.osr.com] On Behalf Of Niraj Jha
> > Sent: Thursday, November 23, 2006 9:27 PM
> > To: Windows System Software Devs Interest List
> > Subject: Re: [ntdev] ZwOpenKey fails in vista
> >
> > Hi Doron
> >
> > Thanks for your reply… its a simple trial … i am trying to open
> > “SYSTEM\Software\My Test”
> > through my sample driver …my opening code is
> >
> >
> >
> > InitializeObjectAttributes( &attributs, &Reg, OBJ_CASE_INSENSITIVE, base,
> > NULL );
> > status= ZwOpenKey( &key, KEY_READ | KEY_WRITE, &attributs);
> > and it return status C0000034 …I am confused what is happening… its a
> > simple sample driver and i am calling this function after the creation of
> > device object and major function deceleration in DriverEntry…
> >
> > Niraj
> >
> >
> >
> >
> > On 11/24/06, Doron Holan wrote:
> > How about a little bit of context?What key are you opening?When are you
> > trying to load it?How about some code?For instance, if you are trying to
> > open the Software key, there is a window of time during boot that the key
is
> > not loaded and your driver cannot open it (WinXP also has this limitation),
> > while if your driver is loaded later it can.
> >
> > d
> >
> > From: xxxxx@lists.osr.com [mailto:
> > xxxxx@lists.osr.com] On Behalf Of Niraj Jha
> > Sent: Thursday, November 23, 2006 8:52 PM
> > To: Windows System Software Devs Interest List
> > Subject: [ntdev] ZwOpenKey fails in vista
> >
> >
> > Hi
> >
> > I am trying to write a sample driver for vista… have checked that on
> > first XP and that is working… in vista
> > ZwOpenKey function fails and returning status C0000034…Is it My Driver
> > Bug Or something changed in vista so that the driver is unable to find the
> > registry object…
> > Thanks
> >
> > Niraj Jha
> >
> > — Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List
> > Server section of OSR Online at
> > http://www.osronline.com/page.cfm?name=ListServer
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > To unsubscribe, visit the List Server section of OSR Online at
> > http://www.osronline.com/page.cfm?name=ListServer
> >
> > — Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List
> > Server section of OSR Online at
> > http://www.osronline.com/page.cfm?name=ListServer
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > To unsubscribe, visit the List Server section of OSR Online at
> > http://www.osronline.com/page.cfm?name=ListServer
> >
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
No, this has nothing to do particularly with vista. You should store any global data your driver needs to read under HKLM\system\currentcontrolset\services<your driver>\parameters. For a particular device, you should store data in the device’s devnode (assuming the driver is pnp)
d
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Niraj Jha
Sent: Thursday, November 23, 2006 9:51 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] ZwOpenKey fails in vista
Hi
?
? This means it have nothing to do with vista changes.?
?
Niraj
?
On 11/24/06, Doron Holan wrote:
Is your driver being loaded during boot???If so, my previous warning applies.??More succinctly, is it loading before win32k.sys and the system goes GUI???That is around the time the Software key is loaded.??Any time before it is loaded, it cannot be accessed.
D
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Niraj Jha
Sent: Thursday, November 23, 2006 9:27 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] ZwOpenKey fails in vista
Hi Doron
Thanks for your reply… its a simple trial … i am trying to open “SYSTEM\Software\My Test”
through my sample driver …my opening code is
InitializeObjectAttributes( &attributs, &Reg, OBJ_CASE_INSENSITIVE, base, NULL );
status= ZwOpenKey( &key, KEY_READ | KEY_WRITE, &attributs);
and it return status C0000034 …I am confused what is happening… its a simple sample driver and i am calling this function after the creation of device object and major function deceleration in DriverEntry…
Niraj
On 11/24/06, Doron Holan wrote:
How about a little bit of context?What key are you opening?When are you trying to load it?How about some code?For instance, if you are trying to open the Software key, there is a window of time during boot that the key is not loaded and your driver cannot open it (WinXP also has this limitation), while if your driver is loaded later it can.
d
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Niraj Jha
Sent: Thursday, November 23, 2006 8:52 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] ZwOpenKey fails in vista
Hi
I am trying to write a sample driver for vista… have checked that on first XP and that is working… in vista
ZwOpenKey function fails and returning status C0000034…Is it My Driver Bug Or something changed in vista so that the driver is unable to find the registry object…
Thanks
Niraj Jha
— Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
—
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
— Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
—
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
— Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer