Hallo everybody,
I'm trying to share some memory between my wdm driver and an application
using ZwCreateSection, but as soon as i use ZwCreateSection() and so
bind to ntdll.lib, it will fail to load during install, returning

Device not started: Device has problem: 0x27: CM_PROB_DRIVER_FAILED_LOAD

I've checked a little, and it doesn't even reach the DriverEntry.
Removing the mem sharing part it works fine, so I think it's some kind
of problem with the import of ZwCreateSection.
Am i on the right track ?
How can I solve the problem ?

thank you,

e.

Re: linking ZwCreateSection prevents driver loading ? by Eliyas

Eliyas
Fri Apr 30 23:16:41 CDT 2004

This function is exported in the ntoskrnl.lib. So if you build your driver
in the DDK build environment, this function import will get resolved
automatically. You shouldn't link to ndll.dll.

--
--
-Eliyas
This posting is provided "AS IS" with no warranties, and confers no rights.



Re: linking ZwCreateSection prevents driver loading ? by ernie

ernie
Thu May 06 09:27:59 CDT 2004

Eliyas Yakub [MSFT] wrote:
> This function is exported in the ntoskrnl.lib. So if you build your driver
> in the DDK build environment, this function import will get resolved
> automatically. You shouldn't link to ndll.dll.
>

thank you very much. i was linking to ntdll.lib;
now it works perfectly (well... almost, but i think it's my fault ;)

ernie