5

Okay, I have to ask it here, because I don't know how to ask on SO so I don't get banned.
I have a user mode driver (a dll and an inf file). How do I load it (aka call DllMain)? Do I have to install it first so it shows up in device manager? How do I load it then? No, there is no physical hardware involved, it's all software.
I've been searching for an answer for days, but when to comes to driver development, I'm such a noob that I don't even know what to look for.

Comments
  • 1
    It is supposed to be a display driver that creates virtual displays on the PC. I found a demo of this on github (google "kfroe iddcx", 1st result) but I don't know how to get it to work without any actual hardware.

    I would really appreciate some help.
  • 0
    I wouldn't think you can get banned from SO by asking such a question
  • 1
    @ananaszjoe I have recieved downvotes or got my question closed in the past because it was "too broad". For me, asking on SO is a last resort, after at least 3 days of trying to look for an answer. And most of the time I don't even know what the correct question is that would get the right answer.
  • 0
    @SparkyTD
    >>> I don't even know what the correct question is that would get the right answer

    The key lies right there. Until you have the question, you can't have the answer to it.
  • 1
    I'm guessing you've seen this? https://docs.microsoft.com/en-us/...

    Probably this a better starting point https://docs.microsoft.com/en-us/...

    https://docs.microsoft.com/en-us/... and possibly this? Might have to sift through the hardware driver stuff, not entirely sure where you'd start since I'm not too experienced
  • 2
    @beegC0de Yes, I've seen it and I've been struggling to get a VM ready for debugging ever since. I can't even get a simple "Hello World" driver running xD. This will bee a bumpy ride.

    Thanks for the links though :D
  • 0
    I don't think you need to call DllMain do you? Although I'm not really sure what constitutes a driver, maybe you need one of those other hooks
  • 1
    @beegC0de Based on the MSDN documentatio about IddCx, I only need to call a couple methods to add a new virtual display. Since I'm not working with any hardware, maybe I don't even need a driver at all. Maybe those winapi methods can be called from a simple vc++ exe application. That would be the best case, I'll give it a try when I get home.
  • 1
    You have been banned from devRant. Have a nice day.
Add Comment