none
difference between WdfDeviceCreate and WdfDeviceMiniportCreate RRS feed

  • Question

  • What is the main difference between WdfDeviceCreate and WdfDeviceMiniportCreate. If I am creating device object through WdfDeviceMiniportCreate then I am not able to create queue on that device object.

    BR

    Wednesday, August 21, 2013 9:48 AM

Answers

  • A miniport wdfdevice does not have a top edge (Io) since the port driver typically takes over the top edge. Only create miniport wdfdevice when linking against a port driver like ndis or storport, otherwise as an indendent driver you always create normal devices.

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Wednesday, August 21, 2013 2:36 PM

All replies

  • As the documentation http://msdn.microsoft.com/en-us/library/windows/hardware/ff546802(v=vs.85).aspx states the WdfDeviceMiniportCreate is for mini-ports such as NDIS.  There are a number of restrictions on the device, but creating a queue is not one of them, are you sure you are successfully calling WdfDeviceMiniportCreate?


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    Wednesday, August 21, 2013 11:20 AM
  • As per documentation , we can not pass device object handle to  WdfIoQueueCreate . That's the problem I am facing. if I am  creating device object through  WdfDeviceMiniportCreate  and then passing into WdfIoQueueCreate . then It is crashing. But if I am creating device object WdfDeviceCreate then m able to create queue successfully by passing device object.

    BR

    Wednesday, August 21, 2013 12:43 PM
  • A miniport wdfdevice does not have a top edge (Io) since the port driver typically takes over the top edge. Only create miniport wdfdevice when linking against a port driver like ndis or storport, otherwise as an indendent driver you always create normal devices.

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Wednesday, August 21, 2013 2:36 PM