Hi all,
I’m writing a device driver for winxp.
I’m using:
status = ZwCreateFile(&FileHandle, GENERIC_ALL^FILE_APPEND_DATA|SYNCHRONIZE,
&ObjectAttributes, &IoStatusBlock, 0, FILE_ATTRIBUTE_NORMAL, 0, FILE_OPEN,
FILE_NON_DIRECTORY_FILE|FILE_RANDOM_ACCESS|FILE_SYNCHRONOUS_IO_ALERT, NULL,
0);
to open a file. When I recieve a IRP_MJ_READ I use this file to write to.
BUT the copy process, using explorer, stops after approx 25-35 mb and
no more IRPs are coming…
What can cause this? Is it the file or mayby the irps (which I don’t queue)?
Regards,
Daniel
When Explorer hangs try to break in the debugger and see where it hangs
(!processes 0 7 and !locks will give you an idea). Most likely there is a dead lock somewhere. It’s hard to say now where in particular, but if you collect some info (see above) things will be much clearer.
-----Original Message-----
From: Daniel ?berg [mailto:xxxxx@safeit.com]
Sent: Thursday, October 02, 2003 8:18 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] IRP_MJ_READ and file
Hi all,
I’m writing a device driver for winxp.
I’m using:
status = ZwCreateFile(&FileHandle, GENERIC_ALL^FILE_APPEND_DATA|SYNCHRONIZE,
&ObjectAttributes, &IoStatusBlock, 0, FILE_ATTRIBUTE_NORMAL, 0, FILE_OPEN,
FILE_NON_DIRECTORY_FILE|FILE_RANDOM_ACCESS|FILE_SYNCHRONOUS_IO_ALERT, NULL,
0);
to open a file. When I recieve a IRP_MJ_READ I use this file to write to.
BUT the copy process, using explorer, stops after approx 25-35 mb and
no more IRPs are coming…
What can cause this? Is it the file or mayby the irps (which I don’t queue)?
Regards,
Daniel
You are currently subscribed to ntfsd as: xxxxx@borland.com
To unsubscribe send a blank email to xxxxx@lists.osr.com