Re: Calling a DLL in Virtual Driver
- From: "Ali" <abdulrazaq@xxxxxxxxx>
- Date: 8 Oct 2006 05:16:03 -0700
Tim Roberts wrote:
Mohd Moinuddin Pasha <MohdMoinuddinPasha@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
I want to know whether, I can use LoadLibrary() and GetProcAddress() API
function calls so as to perform some read write tasks.
I have a Dll Which performs printing task. I want this dll call to be used
in my Virtual Drivers. Is it possible to use directly or there is some other
way around to perform this task.
I want to use this dll calls when write Request will arrive to the virtual
Driver.
LoadLibrary and GetProcAddress are user-mode APIs. Kernel drivers cannot
call user-mode APIs. If your DLL is a user-mode DLL, as it almost
certainly is if it does printing, then it cannot be used in the kernel
either. You need to have a user-mode helper process or service to do your
printing.
--
- Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
Snip:
You need to have a user-mode helper process or service to do your printing.
Can we use static lib as an possible siluition?
ali
.
- Follow-Ups:
- Re: Calling a DLL in Virtual Driver
- From: Tim Roberts
- Re: Calling a DLL in Virtual Driver
- References:
- Re: Calling a DLL in Virtual Driver
- From: Tim Roberts
- Re: Calling a DLL in Virtual Driver
- Prev by Date: Re: Second HID for exclusive use.
- Next by Date: Help needed on writing a pseudo audio driver
- Previous by thread: Re: Calling a DLL in Virtual Driver
- Next by thread: Re: Calling a DLL in Virtual Driver
- Index(es):
Relevant Pages
|