Hi all,
Could you please let me know how to load a Kernel Mode DLL from a USER MODE executable?
I tried EngLoadImage… But its crashing the App… Is there any alternative available?
Thanks in Advance
James
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
I tried with LoadLibraryEx even if it seems to work (no error returned) but
if you look inside of your process you will see dependencies are not loaded.
I guess you could load it with LoadLibraryEx(), but I think you have to fix
it up manually - (…relocation problems…). I also tried with statical
linking (linking my app to ntoskrnl.exe for instance) but it doesn’t work
…
If you discover something more, post it here please…I’m interested !!
Matteo
----- Original Message -----
From: “James Britto Jayaraj”
To: “NT Developers Interest List”
Sent: Friday, February 02, 2001 3:30 PM
Subject: [ntdev] Loading Kernel Mode DLL
> Hi all,
>
> Could you please let me know how to load a Kernel Mode DLL from a USER
MODE executable?
> I tried EngLoadImage… But its crashing the App… Is there any
alternative available?
>
> Thanks in Advance
> James
>
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@dolce.it
> 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
Hello James!
You seem to be writing a printer driver. please tell why do
you think you need to load a KM dll image into user address space.
Even if you read it in a memory, what will you then do with it?
May be you are porting KM printer driver to UM one… Then try to
recompile the 2nd dll as user-mode one & link it with winspool.lib
(if it also works with gdi).
Best regards,
Vladimir.
-----Original Message-----
From: xxxxx@csie.nsys.by [mailto:xxxxx@csie.nsys.by]On Behalf
Of James Britto Jayaraj
Sent: Friday, February 02, 2001 4:31
To: NT Developers Interest List
Subject: [ntdev] Loading Kernel Mode DLL
Hi all,
Could you please let me know how to load a Kernel Mode DLL from a
USER MODE executable?
I tried EngLoadImage… But its crashing the App… Is there any
alternative available?
Thanks in Advance
James
You are currently subscribed to ntdev as: xxxxx@csie.nsys.by
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
> Could you please let me know how to load a Kernel Mode DLL from a USER
MODE executable?
I tried EngLoadImage… But its crashing the App… Is there any
alternative
Register the kmode DLL as a service and load it by
StartService/ControlService.
Max
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