ObReferenceObjectByHandle ?

> Hi all:

Even though I have been a member of this list for a long time,
this is the first time I am actually using it, so please be patient with

I am creating several system threads by calling the PsCreateSystemThread
Each time after returning from this API I call ObReferenceObjectByHandle
to reference object by handle,
and close the handle immediately by calling ZwClose… Is it OK to close
the handle at this time
or should I do it at later time after I dereference the object by calling
ObDereferenceObject API???
The documentation is not specific about it!



Ilya Levin
File System Developer
Senior Software Engineer
xxxxx@softricity.com mailto:xxxxx
> Softricity, Inc.
> 332 Congress Street
> Boston, MA 02210
> 617.695.0336 x168
> fax 617.338.7769
> http://www.softricity.com/ - Powering Software as a Service

You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com</mailto:xxxxx>