Failed to load driver on Vista

I have an application that works with two particular drivers, one is
loaded on boot and second is loaded when my application is working. I
use the first driver to load and unload the second driver using ZwLoad/
UnloadDriver. Everything works fine on Win2K and XP but I encounter
some problems in Vista. Sometimes I get error 0xC0000034 upon
ZwLoadDriver of my second driver. I looked for my drivers and devices
in the system, but monitors such as DeviceTree or WinObj do not show
any of them. On the other hand, from a full memory dump I can see my
second driver loaded.

From some reasons that I can’t explain, I see that when I run my
application “as administrator” and immediately close the application
everything suddenly get back to track. When I run my application as
administrator I even do not attemp to load the driver.
Of course, after computer restart the application starts to work fine
as well.

It is important to mention that both drivers are properly signed.

Any help is very appreciated.

Please, don’t send the same letter for me.
Thank you very much much.

On 5/27/07, Luba Klyutch wrote:
>
> I have an application that works with two particular drivers, one is
> loaded on boot and second is loaded when my application is working. I
> use the first driver to load and unload the second driver using ZwLoad/
> UnloadDriver. Everything works fine on Win2K and XP but I encounter
> some problems in Vista. Sometimes I get error 0xC0000034 upon
> ZwLoadDriver of my second driver. I looked for my drivers and devices
> in the system, but monitors such as DeviceTree or WinObj do not show
> any of them. On the other hand, from a full memory dump I can see my
> second driver loaded.
> >From some reasons that I can’t explain, I see that when I run my
> application “as administrator” and immediately close the application
> everything suddenly get back to track. When I run my application as
> administrator I even do not attemp to load the driver.
> Of course, after computer restart the application starts to work fine
> as well.
>
> It is important to mention that both drivers are properly signed.
>
> Any help is very appreciated.
> — 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