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

NTKERNELAPI
NTSTATUS
ObOpenObjectByPointer(
IN PVOID Object,
IN ULONG HandleAttributes,
IN PACCESS_STATE PassedAccessState OPTIONAL,
IN ACCESS_MASK DesiredAccess OPTIONAL,
IN POBJECT_TYPE ObjectType OPTIONAL,
IN KPROCESSOR_MODE AccessMode,
OUT PHANDLE Handle
);

----- Original Message -----
From: “gaoren”
To: “File Systems Developers”
Sent: Tuesday, June 25, 2002 6:10 PM
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@rdsor.ro
> To unsubscribe send a blank email to %%email.unsub%%
>

Thanks.
And how to make the object closed by system after finished all task?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Dan Partelly
Sent: Tuesday, June 25, 2002 11:20 AM
To: File Systems Developers
Subject: [ntfsd] Re: How to reobtain a file handle from file object pointer
in driver?

NTKERNELAPI
NTSTATUS
ObOpenObjectByPointer(
IN PVOID Object,
IN ULONG HandleAttributes,
IN PACCESS_STATE PassedAccessState OPTIONAL,
IN ACCESS_MASK DesiredAccess OPTIONAL,
IN POBJECT_TYPE ObjectType OPTIONAL,
IN KPROCESSOR_MODE AccessMode,
OUT PHANDLE Handle
);

----- Original Message -----
From: “gaoren”
To: “File Systems Developers”
Sent: Tuesday, June 25, 2002 6:10 PM
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@rdsor.ro
> To unsubscribe send a blank email to %%email.unsub%%
>


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



Do You Yahoo!?

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

ObOpenObjectByPointer

----- Original Message -----
From: “gaoren”
To: “File Systems Developers”
Sent: Tuesday, June 25, 2002 7:10 PM
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@storagecraft.com
> To unsubscribe send a blank email to %%email.unsub%%
>

ZwClose

----- Original Message -----
From: “gaoren”
To: “File Systems Developers”
Sent: Wednesday, June 26, 2002 1:31 AM
Subject: [ntfsd] Re: How to reobtain a file handle from file object
pointer in driver?

> Thanks.
> And how to make the object closed by system after finished all task?
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Dan Partelly
> Sent: Tuesday, June 25, 2002 11:20 AM
> To: File Systems Developers
> Subject: [ntfsd] Re: How to reobtain a file handle from file object
pointer
> in driver?
>
>
> NTKERNELAPI
> NTSTATUS
> ObOpenObjectByPointer(
> IN PVOID Object,
> IN ULONG HandleAttributes,
> IN PACCESS_STATE PassedAccessState OPTIONAL,
> IN ACCESS_MASK DesiredAccess OPTIONAL,
> IN POBJECT_TYPE ObjectType OPTIONAL,
> IN KPROCESSOR_MODE AccessMode,
> OUT PHANDLE Handle
> );
>
> ----- Original Message -----
> From: “gaoren”
> To: “File Systems Developers”
> Sent: Tuesday, June 25, 2002 6:10 PM
> 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@rdsor.ro
> > To unsubscribe send a blank email to %%email.unsub%%
> >
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@yahoo.ca
> To unsubscribe send a blank email to %%email.unsub%%
>
>
>
>

>
> Do You Yahoo!?
>
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to %%email.unsub%%
>