none
Virtual PCI device driver RRS feed

  • Question

  • Hello,

     

    I need to develop a driver that emulate a PCI card. Unfortunately I am a newbie in driver development. I manage to code a very simple driver and to install it. I can see it in the device manager.

    But I can not access it with the CreateFile routine. I must admit that I am not sure of the device name and don't know where I can find this information.

    How can I check/find the device name?

    Wednesday, June 29, 2011 10:22 AM

Answers

  • You assign a symbolic name to the driver in your DriverEntry function. WDM and KMDF use different function calls to do this but you will find examples of how to do this, and then how to use CreateFile to acquire a handle. Did you assign that symbolic name and then do you reference it like L"\\\\.\\<yourdriver>"?


    Gary G. Little NanoTelesis Systems, LLC
    • Marked as answer by pchatell Wednesday, June 29, 2011 1:51 PM
    Wednesday, June 29, 2011 11:14 AM

All replies

  • You assign a symbolic name to the driver in your DriverEntry function. WDM and KMDF use different function calls to do this but you will find examples of how to do this, and then how to use CreateFile to acquire a handle. Did you assign that symbolic name and then do you reference it like L"\\\\.\\<yourdriver>"?


    Gary G. Little NanoTelesis Systems, LLC
    • Marked as answer by pchatell Wednesday, June 29, 2011 1:51 PM
    Wednesday, June 29, 2011 11:14 AM
  • To add to what Gary said, if you think you did create a symbolic link then get a copy of WinOBJ from http://technet.microsoft.com/en-us/sysinternals/bb896657 and look under GLOBAL?? for you link.

     


    Don Burn (MVP, Windows DKD) Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr
    Wednesday, June 29, 2011 11:35 AM
  • Thank you!

    You are right, I forget to assign the symbolic name to the driver. 

    Wednesday, June 29, 2011 1:20 PM