PFNDEREFERENCEDEVICEOBJECT - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ks.h

PFNDEREFERENCEDEVICEOBJECT Pfndereferencedeviceobject;

VOID Pfndereferencedeviceobject(
  [in] PVOID Context
)
{...}
View the official Windows Driver Kit DDI reference
// swenum.h

PFNDEREFERENCEDEVICEOBJECT Pfndereferencedeviceobject;

VOID Pfndereferencedeviceobject(
  [in] PVOID Context
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-ks-pfndereferencedeviceobject)

PFNDEREFERENCEDEVICEOBJECT callback function (ks.h)

Description

The driver can use this routine to decrement the reference count of the PDO.

Parameters

Context [in]

Pointer to a device extension of the device's PDO.

Remarks

Minidrivers access this method through the DereferenceDeviceObject member of the BUS_INTERFACE_REFERENCE structure.

When the PDO's reference count is 0, it becomes eligible for removal. Note that this condition does not guarantee removal.


Windows Driver Kit DDI reference (nc-swenum-pfndereferencedeviceobject)

Description

The driver can use this routine to decrement the reference count of the PDO.

Parameters

Context [in]

Pointer to a device extension of the device's PDO.

Remarks

Minidrivers access this method through the >DereferenceDeviceObject member of the BUS_INTERFACE_REFERENCE structure.

When the PDO's reference count is 0, it becomes eligible for removal. Note that this condition does not guarantee removal.