RE: How to reobtain a file handle from file object pointe r in driver?

Laura,

what you can do is always open a handle and its object in a system context.

Next time you have to use it, if you are called not in system context,
you can call ObOpenObjectByPointer, that will give you context safe handle.
Note that you have to close this handle once you opened it.

When you are done with the handle, you can close it in the system context.

Note, that you do not have to open handle in the system context, but you
have to open
it in the known context so you can close it in the same context, and also
determine if
you have to call ObOpenObjectByPointer, when you need to use this handle
again.

-Ilya.

-----Original Message-----
From: gaoren [mailto:xxxxx@yahoo.ca]
Sent: Tuesday, June 25, 2002 11:10 AM
To: File Systems Developers
Subject: [ntfsd] How to reobtain a file handle from file object pointer in
driver?

Hi all,
Did any one know how to reobtain a handle from file object in different
context other than the one that the file was created and Obreferenced.

Thanks for your help.

Laura.


Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com


You are currently subscribed to ntfsd as: xxxxx@softricity.com
To unsubscribe send a blank email to %%email.unsub%%