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

Ask a Question

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.