// wdm.h
BOOLEAN ObReferenceObjectSafe(
PVOID Object
);
View the official Windows Driver Kit DDI referenceNo description available.
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.
ObjectSupplies a pointer to the object whose reference count is incremented.
ObReferenceObjectSafe returns one of the following values:
| Return Value | Meaning |
|---|---|
| TRUE | The object was successfully referenced and safe to use. |
| FALSE | The object is being deleted. |