Hi,
I want to implement the functionality of
WriteFileGather(win32 API for scatter/gather IO) in Kernel Mode.
I want to write multiple buffers to file using single IRP.
For this I have followed folowing procedure
1.I have opened file using ZwCreateFile
2.obtained FILE_OBJECT related to file handle
3.created MDL for multiple buffers using IOAllocateMdl
4.Obtained the Device Object using IoGetRelatedDeviceObject
5.created Irp using IoAllocateIrp
6.Initialized the fields of Irp
7.called the IoCallDriver for device object in step 4
I am getting NTSTATUS as 259 for IoCallDriver.
Am I doing some thing wrong ?
Is there any alternative way to do this?
Note:I am using Windows 2003 server with SP2. and for driver compilation I am using WDK.
Thanks in advance.