TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Hardware World > Drivers

Notices

How "IRP_MJ_CLOSE" come out when i call "ReadFile"

Drivers


Reply
 
Thread Tools Display Modes
Old 01-06-2009, 04:09 PM   #1
Newbie
 
Join Date: Jun 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 Harvey is an unknown quantity at this point


OS: Windows XP


How "IRP_MJ_CLOSE" come out when i call "ReadFile"

HI, everbody:
I have wrote a filter file system driver to print all the IRP sent to a certain disk, when i call the WinAPI "ReadFile" in user mode, i catch "IRP_MJ_CLOSE" and then "IRP_MJ_READ", when i call "CloseHandle", i catch "IRP_MJ_CLEANUP", the question is that how do "IRP_MJ_CLOSE" come out when i call "ReadFile" ?
From the WDK documentation for IRP_MJ_CLEANUP:
"Receipt of the IRP_MJ_CLEANUP request indicates that the *handle*
reference count on a file object has reached zero."
From the WDK documentation for IRP_MJ_CLOSE:
"Receipt of the IRP_MJ_CLOSE request indicates that the reference
count on a file object has reached zero."

Is the difference abvoe between "handle reference count" and
"reference count" meaningful? If so, what does that mean?
Harvey is offline   Reply With Quote
Reply

Tags
irp_mj_close fsd

Thread Tools
Display Modes



< Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 12:29 PM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2009, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional