none
Create fake device object RRS feed

  • Question

  • Hi,

    I am working on an upper volume filter driver(wdm).
    I am able to create named device objects, but is it possible to create fake named device objects(partition does not exist) ?
    What I want to do is to send an IOCTL from user app to the driver and get information from driver. I want to send this IOCTL to a fake named device object and get details of all the existing partitions.

    Any type of help will be appreciated.
    Thanks in advance.
    Saturday, May 11, 2013 12:53 PM

Answers

  • Well I'm not sure why you would want to create a device object to represent a partition that does not exist, but creating a device object does not require a device to go with it.  Typically these are known as Control Device Objects or CDO's and are used to provide a management path into a driver for either a single device, or all the devices the driver controls.  Simply use IoCreateDeviceSecure (if WDM) or use the various control device KMDF calls (see the IOCTL sample for a good start) to create the CDO.   Personally I would use a device interface rather than a Win32 name for the device, since if this is being used as a back channel into the stack you want things unique as possible.


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

    Saturday, May 11, 2013 1:06 PM