Re: Calling a DLL in Virtual Driver

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




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

.



Relevant Pages

  • Re: Calling a DLL in Virtual Driver
    ... I can use LoadLibraryand GetProcAddress() API ... I have a Dll Which performs printing task. ... LoadLibrary and GetProcAddress are user-mode APIs. ...
    (microsoft.public.development.device.drivers)
  • Re: DLL could not be loaded!
    ... Do not implicitly link against the APIs. ... GetProcAddress to get the function addresses and call them. ... This posting is provided "AS IS" with no warranties, ... The DLL could not be loaded on NT ...
    (microsoft.public.win32.programmer.kernel)
  • Re: How to create a dll in embedded vc for access from Visual Basic.net 2005
    ... If the SDK APIs are implemented within a DLL you shouldn't need a native C based DLL to access them, as you should be able to access the APIs directly from VB.NET via a little bit of Platform Invoke code. ... Public Shared Sub EnableWatchdogTimer ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: OT [was: Re: Integrierte C# Datenbank ähnlich wie hsqldb]
    ... > bietet außerdem noch -zig Schnittstellen und Treiber und APIs für die ... Das war eigentlich meine rerste Wahl - aber ich wollte nur eine kleine ... DLL, die ich bei meinem Programm mitliefern kann - und dafür tuts SQLite ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • Re: Relationship between OS, SDK and .NET CF
    ... have to build your own native DLL with eVC and then P/Invoke it. ... The SDK provides some scanner APIs. ...
    (microsoft.public.dotnet.framework.compactframework)