PFNDEREFERENCEDEVICEOBJECT callback function (swenum.h)

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

Syntax

PFNDEREFERENCEDEVICEOBJECT Pfndereferencedeviceobject;

void Pfndereferencedeviceobject(
  [in] PVOID Context
)
{...}

Parameters

[in] Context

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

Return value

None

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.

Requirements

Requirement Value
Target Platform Desktop
Header swenum.h (include Ks.h, Swenum.h)