Re: Calling a DLL in Virtual Driver
- From: Tim Roberts <timr@xxxxxxxxx>
- Date: Sat, 07 Oct 2006 17:35:31 -0700
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.
.
- Follow-Ups:
- Re: Calling a DLL in Virtual Driver
- From: Ali
- Re: Calling a DLL in Virtual Driver
- Prev by Date: Re: A sort of "query remove lock"?
- Next by Date: Re: Second HID for exclusive use.
- Previous by thread: PcNewPort the Only Way?
- Next by thread: Re: Calling a DLL in Virtual Driver
- Index(es):
Relevant Pages
|