Tony,
Thank you very much for you notes. I always think that it is the fun part of exploring a murky path 
Wencheng
From: xxxxx@lists.osr.com on behalf of Tony Mason
Sent: Thu 5/13/2004 12:38 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] process's open files
Wencheng,
I think you're moving down a rather murky path. Clearly, others have done this (witness Sysinternals and their open handle utilities) but I worry that they have used undocumented APIs or perhaps direct access to the data structures themselves.
The only thing I could see tangentially is the NtQueryInformationProcess call has support for a debug handle function, but I don't think that's quite what you are looking for.
Perhaps someone else has more insight into walking the process handle table in a safe (programmatic) fashion.
Sorry I can't help.
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources Inc.
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Wencheng Chai
Sent: Thursday, May 13, 2004 2:45 PM
To: ntfsd redirect
Subject: RE: [ntfsd] process's open files
Hi Tony,
I can not find the information of _HANDLE_TABLE, could you please shed some light on that
data structure? Does the table contain address of file objects?
Thanks,
Wencheng
From: xxxxx@lists.osr.com on behalf of Tony Mason
Sent: Thu 5/13/2004 11:32 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] process's open files
Wencheng,
The only way I can think of that would do this reliably is to look at the object handle table for the process.
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources Inc.
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Wencheng Chai
Sent: Thursday, May 13, 2004 2:15 PM
To: ntfsd redirect
Subject: [ntfsd] process's open files
Hi,
I try to find all the open files of a user process by looking at eprocess structure,
but it seems to me that there is no such information of file object in eprocess.
VAD seems to be another data structure that I can use to track down all the open files.
Does anyone has any idea?
Thanks,
Wencheng
Questions? First check the IFS FAQ at The NT Insider:Windows NT Virtual Memory (Part I)
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the IFS FAQ at The NT Insider:Windows NT Virtual Memory (Part I)
You are currently subscribed to ntfsd as: xxxxx@authenex.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the IFS FAQ at The NT Insider:Windows NT Virtual Memory (Part I)
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the IFS FAQ at The NT Insider:Windows NT Virtual Memory (Part I)
You are currently subscribed to ntfsd as: xxxxx@authenex.com
To unsubscribe send a blank email to xxxxx@lists.osr.com