IoCallDriver returning STATUS_INVALID_PARAMETER

Discussion in 'Windows Vista Support' started by Uzair Lakhani, Apr 13, 2013.

  1. Uzair Lakhani

    Uzair Lakhani

    Joined:
    Apr 13, 2013
    Messages:
    1
    Likes Received:
    0
    Dear All,

    We are using the following functions to get the device object of a partition (file system NTFS) on disk:

    ZwOpenFile

    ObReferenceObjectByHandle

    IoGetRelatedDeviceObject

    If we specify FILE_READ_ATTRIBUTES as Desired Access (which we think does not mount the filesystem) in ZwOpenFile and ObReferenceObjectByHandle and use the device object in IoCallDriver for IoBuildDeviceIoControlRequest requests then it is working OK. That is requests get completed.

    On the other hand if we specify GENERIC_ALL as Desired Access (which we think mounts the filesystem) in ZwOpenFile and ObReferenceObjectByHandle and use the device object in IoCallDriver for IoBuildDeviceIoControlRequest requests then IoCallDriver is returning STATUS_INVALID_PARAMETER.

    What can be the issue in the last case?

    Thanks,
     
    Uzair Lakhani, Apr 13, 2013
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. Gian

    zwwritefile return STATUS_INVALID_PARAMETER

    Gian, Nov 3, 2004, in forum: Windows Vista Drivers
    Replies:
    0
    Views:
    1,184
  2. MS

    STATUS_INVALID_PARAMETER in my usb driver

    MS, Sep 30, 2005, in forum: Windows Vista Drivers
    Replies:
    2
    Views:
    896
    Tim Roberts
    Oct 2, 2005
  3. MS

    usb driver problem STATUS_INVALID_PARAMETER

    MS, Sep 30, 2005, in forum: Windows Vista Drivers
    Replies:
    1
    Views:
    836
    Doron Holan [MS]
    Sep 30, 2005
  4. zedy1984@gmail.com

    Returning order of CompletionRoutines() and IoCallDriver()

    zedy1984@gmail.com, Mar 9, 2006, in forum: Windows Vista Drivers
    Replies:
    1
    Views:
    422
    Doron Holan [MS]
    Mar 9, 2006
  5. abdul
    Replies:
    1
    Views:
    607
    Eliyas Yakub [MSFT]
    Feb 20, 2007
  6. Gabe
    Replies:
    7
    Views:
    604
    Maxim S. Shatskih
    Apr 27, 2007
  7. Gabe
    Replies:
    2
    Views:
    387
    Wilhelm Noeker
    Apr 27, 2007
  8. KMDF_FW
    Replies:
    3
    Views:
    298
    Doron Holan [MS]
    May 2, 2007
Loading...