- Kernel mode DLL problem
- Posted by ½Ãñ on May 12th, 2008
In my driver, i call the function export by a kernel mode dll, while
this dll also include a kernel mode dll!
(Driver ==> kernel mode DLL(A) ==> kernel mode DLL(B)). Now when os
call the driver, the OS will blue screen.
The bugcheck is the kernel mode DLL does not have DriverEntry!
this is the message:
STOP: c0000263 {Driver Entry Point Not Found}
The \SystemRoot\System32\DRIVERS\vtminivt.sys device driver could not
locate the entry point _vsnwprintf in driver ntoskrnl.exe.
Break instruction exception - code 80000003 (first chance)
I must keep this calling relation(Must keep the two DLL)
Does any body know how to solve this problem? Thanks very much
- Posted by Doron Holan [MSFT] on May 12th, 2008
read the error. it does not say that you do not have a DriverEntry, it is
saying that you have an unresolved import
i am guessing you started to use or are already using ntstrsafe.h and trying
to load your driver on win2k. Add the following before #including
ntstrsafe.h
#define NTSTRSAFE_LIB
or add it to your sources file's C_DEFINES, C_DEFINES=$(C_DEFINES)
/DNTSTRSAFE_LIB
this will put the impl of _vsnwprintf into your driver via ntstrsafe.lib
d
--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.
"江民" <dongy117@gmail.com> wrote in message
news:b045fba6-a5c8-4ec1-9a13-c58ca9e0b8af@n1g2000prb.googlegroups.com...
- Posted by ½Ãñ on May 13th, 2008
Hi Doron:
Thank you very much! The problem has been solved by you
problem!
- Posted by ½Ãñ on May 13th, 2008
Hi Doron:
I also have a question. Why the same driver used fine in XP
and Vista, but in 2000, it will report this problem? Is it caused by
_vsnwprintf problem? thanks.
- Posted by Doron Holan [MSFT] on May 13th, 2008
XP and later exported vsnwprintf which means that you can use ntstrsafe.h
in non lib form can be used on these platforms. ntstrsafe.lib was created
specifically to support win2k and this missing export
d
--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.
"江民" <dongy117@gmail.com> wrote in message
news:6407b0f7-e003-4c4a-8c40-036321088a82@h1g2000prh.googlegroups.com...
- Posted by ½Ãñ on May 13th, 2008
hi Doron:
Thank you for you answer! I'm clear now!