ObReferenceObjectSafe function (wdm.h)
The ObReferenceObjectSafe function increments the reference count for an object and determines if it is safe to use the object. It returns FALSE if the object is being deleted or TRUE if it's safe to use the object further.
BOOLEAN ObReferenceObjectSafe( PVOID Object );
Supplies a pointer to the object whose reference count is incremented.
ObReferenceObjectSafe returns one of the following values:
|TRUE||The object was successfuly referenced and safe to use.|
|FALSE||The object is being deleted.|
Submit and view feedback for