How to create a driver for DLL file in C

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sevak316
    New Member
    • Sep 2008
    • 73

    How to create a driver for DLL file in C

    Can someone please show me a small example of a driver which can access a DLL written in C.

    The driver should be in C as well. PLEASE HELP!
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    You don't need a driver to access a DLL either statically link to it at link time (using the DLLs associated lib file) or dynamically link to it at run time by calling LoadLibrary and GetProcAddress.

    Comment

    • sevak316
      New Member
      • Sep 2008
      • 73

      #3
      Can you please give me an example of how to use LoadLibrary and GetAddressProc in C. I have been searching on the web and no luck.

      Comment

      • Banfa
        Recognized Expert Expert
        • Feb 2006
        • 9067

        #4
        If you were to Google LoadLibrary and follow the first link (to the MSDN page) and then read that page about LoadLibrary about half way down the page you would find a link to an example.

        Comment

        • sevak316
          New Member
          • Sep 2008
          • 73

          #5
          So, I was complicating my search

          "C" dll loadlibrary getaddressproc -c++

          instead, all i had to type was "LoadLibrar y"

          Thanks, Ill check it out.

          Comment

          • Banfa
            Recognized Expert Expert
            • Feb 2006
            • 9067

            #6
            When computing it pays to remember the adage "Keep It Simple" :D

            Comment

            • sevak316
              New Member
              • Sep 2008
              • 73

              #7
              Thanks bud, I got it to work.

              Cheers,
              Sevak.

              ;-)

              Comment

              Working...