i want to use EngLoadImage() and EngFindProcAddress() to load a dll (BOOTVID.DLL) in my driver. but my driver can’t be loaded after using the two functions.I set a breakpoint at the DriverEntry(),but it goes wrong before reach there. how can i do?
thx for your help
???y˫???+.n?+???u?ڲ˛??^r*D???kN???r??zǧu??jy???^j???ׯ??? 0?j?b??(??(
ZwSetSystemInformation with SystemLoadGdiDriverInformation will load a DLL in kernel land.
Handcoding FindProcAddress() is trivial.
But at what end do you want to use bootvid.dll , I dont know. it really gives you nothing usefull.
----- Original Message -----
From: yangsina
To: NT Developers Interest List
Sent: Tuesday, June 05, 2001 2:26 PM
Subject: [ntdev] how to load a dll in a driver
i want to use EngLoadImage() and EngFindProcAddress() to load a dll (BOOTVID.DLL) in my driver. but my driver can’t be loaded after using the two functions.I set a breakpoint at the DriverEntry(),but it goes wrong before reach there. how can i do?
thx for your help
b???.???????v??ׯj?Z??ۭ???ޱ??i?Z?G?j)m?W???u???R?-??+
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
Really correct, Dan.
?
And I add that if the module is already loaded you will get (logically)
the error
STATUS_IMAGE_ALREADY_LOADED but you still get correct memory
parameters like ImageAddress etc. (at least on W2K)
?
Paul
?
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of danp
Sent: Tuesday, June 05, 2001 2:12 PM
To: NT Developers Interest List
Subject: [ntdev] Re: how to load a dll in a driver
?ZwSetSystemInformation with SystemLoadGdiDriverInformation will load a
DLL in kernel land.
?Handcoding FindProcAddress()? is trivial.
?
But at what end do you want to use bootvid.dll , I dont know. it really
gives you nothing usefull.
----- Original Message -----
From: yangsina
To: NT Developers Interest List
Sent: Tuesday, June 05, 2001 2:26 PM
Subject: [ntdev] how to load a dll in a driver
i want to use EngLoadImage() and EngFindProcAddress() to load a dll
(BOOTVID.DLL) in my driver. but?my driver can’t be loaded after using
the two functions.I set a breakpoint at the DriverEntry(),but it goes
wrong before reach there. how can i do??
thx for your help
b??.??????i???)m???u??R?-?+
You are currently subscribed to ntdev as: xxxxx@compelson.com
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
Thank you.
i try to use bootvid.dll only because it exports a function named VidDisplayString. i want
to use it to display a string on the srceen when system loads my driver, just like the softice displays “press the Esc to cancel load…” .
Maybe i must write a video driver to do the simple thing.
----- Original Message -----
From: Hrdina Pavel
To: NT Developers Interest List
Sent: Tuesday, June 05, 2001 9:49 PM
Subject: [ntdev] Re: how to load a dll in a driver
Really correct, Dan.
And I add that if the module is already loaded you will get (logically) the error
STATUS_IMAGE_ALREADY_LOADED but you still get correct memory
parameters like ImageAddress etc. (at least on W2K)
Paul
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of danp
Sent: Tuesday, June 05, 2001 2:12 PM
To: NT Developers Interest List
Subject: [ntdev] Re: how to load a dll in a driver
ZwSetSystemInformation with SystemLoadGdiDriverInformation will load a DLL in kernel land.
Handcoding FindProcAddress() is trivial.
But at what end do you want to use bootvid.dll , I dont know. it really gives you nothing usefull.
----- Original Message -----
From: yangsina
To: NT Developers Interest List
Sent: Tuesday, June 05, 2001 2:26 PM
Subject: [ntdev] how to load a dll in a driver
i want to use EngLoadImage() and EngFindProcAddress() to load a dll (BOOTVID.DLL) in my driver. but my driver can’t be loaded after using the two functions.I set a breakpoint at the DriverEntry(),but it goes wrong before reach there. how can i do?
thx for your help
b —
You are currently subscribed to ntdev as: xxxxx@compelson.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
You are currently subscribed to ntdev as: madforyou264@263.net
To unsubscribe send a blank email to xxxxx@lists.osr.com
b???.???????&?v?'?ׯj?.n?Qyȩf??]?:.?˛???m??֛???zf???%y?ޞ?^?˛??^r*Lzfެ?
???l??ܢ
Hello,yangsina!
You write this message at 6/5/2001 11:48:00 PM:
Maybe i must write a video driver to do the simple thing.
u needn’t do that just for print a string on screen.
please dump hal.dll for the undocumented function HalDisplayString
Best regards.
Star
xxxxx@sina.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
Another thing: why not to use routines in bootvid.dll directly ?
This module is loaded every time before any driver of type 0
and remains loaded thorough the whole session.
A little problem and probably that one why you need to load
image and get procedure address is that there is no import
library for that module in the W2K DDK. But this is no a real
problem because it can be solved very quickly. Just create
a single source file with needed routines definition (with empty
body of course), then the module definition file with EXPORT
section, then source file with type EXPORT_DRIVER and
name bootvid.dll, invoke BUILD and you’re done. Ignore the
resultant image file, but take the import library because this
is the file you want.
?
If you can help with this task please let me know.
?
Paul
?
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of yangsina
Sent: Tuesday, June 05, 2001 5:49 PM
To: NT Developers Interest List
Subject: [ntdev] Re: how to load a dll in a driver
Thank you.
???i try to use bootvid.dll only because it? exports a function named
VidDisplayString. i want
to use it to display a string on the srceen when system loads my driver,
just like the softice displays “press the Esc to cancel load…” .
??? Maybe i must write a video driver to do the simple thing.
----- Original Message -----
From: Hrdina Pavel
To: NT Developers Interest List
Sent: Tuesday, June 05, 2001 9:49 PM
Subject: [ntdev] Re: how to load a dll in a driver
Really correct, Dan.
?
And I add that if the module is already loaded you will get (logically)
the error
STATUS_IMAGE_ALREADY_LOADED but you still get correct memory
parameters like ImageAddress etc. (at least on W2K)
?
Paul
?
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of danp
Sent: Tuesday, June 05, 2001 2:12 PM
To: NT Developers Interest List
Subject: [ntdev] Re: how to load a dll in a driver
?ZwSetSystemInformation with SystemLoadGdiDriverInformation will load a
DLL in kernel land.
?Handcoding FindProcAddress()? is trivial.
?
But at what end do you want to use bootvid.dll , I dont know. it really
gives you nothing usefull.
----- Original Message -----
From: yangsina
To: NT Developers Interest List
Sent: Tuesday, June 05, 2001 2:26 PM
Subject: [ntdev] how to load a dll in a driver
i want to use EngLoadImage() and EngFindProcAddress() to load a dll
(BOOTVID.DLL) in my driver. but?my driver can’t be loaded after using
the two functions.I set a breakpoint at the DriverEntry(),but it goes
wrong before reach there. how can i do??
thx for your help
b
You are currently subscribed to ntdev as: xxxxx@compelson.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: madforyou264@263.net
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
b<?箷 ????&vڵ?jʺWs-???d??{.n?+???zwZnV?'?sS[h*??z{]z???%S?l???
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