WriteFile ReadFile Explanation RRS feed

  • Question

  • Hi,

    MSDN explanation for the WriteFile/ReadFile is not sufficient.

    So I want to know is there any documentation available for WriteFile/ReadFile complete flow...???

    How IoManager manages the WriteFile/ReadFile Input Buffer of the application for the driver and back to the application in the response path...???

    Is there any difference between the WriteFile and ReadFile driver stack..?? Does IoManager behaves differently in these cases..??

    What are the drivers involved in this case and what's the driver stack here..??



    Monday, March 19, 2018 5:04 PM


  • The stack for a driver is the same for any user request.   The WriteFile Input Buffer and the ReadFile Output Buffer are both dictated by the type of IO specified in the DEVICE_OBJECT flags.   The IOCTL call does allow specification of the buffer model on a per IOCTL request basis, but everything else does not.

    Don Burn Windows Driver Consulting Website:

    Monday, March 19, 2018 5:52 PM