PINTERFACE_DEREFERENCE - NtDoc

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

PINTERFACE_DEREFERENCE PinterfaceDereference;

VOID PinterfaceDereference(
  [in] PVOID Context
)
{...}

View the official Windows Driver Kit DDI reference
// wdm.h

PINTERFACE_DEREFERENCE PinterfaceDereference;

VOID PinterfaceDereference(
  [in] PVOID Context
)
{...}

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-miniport-pinterface_dereference)

PINTERFACE_DEREFERENCE callback function (miniport.h)

Description

The InterfaceDereference routine decrements the reference count on a driver-defined interface.

Parameters

Context [in]

A pointer to interface-specific context information. The caller passes the value that is passed as the Context member of the INTERFACE structure for the interface.

Remarks

You can use the InterfaceReference routine to increment the reference count for the interface.

The driver that imports the interface is responsible for calling the InterfaceDereference routine to decrement the reference count after the driver is no longer using the interface. For example, a driver that requests a pointer to the interface by sending an IRP_MN_QUERY_INTERFACE request calls InterfaceDereference. Also, a driver that receives a pointer to the interface to another driver must call InterfaceDereference.

See also

INTERFACE

IRP_MN_QUERY_INTERFACE

InterfaceReference


Windows Driver Kit DDI reference (nc-wdm-pinterface_dereference)

PINTERFACE_DEREFERENCE callback function (wdm.h)

Description

The InterfaceDereference routine decrements the reference count on a driver-defined interface.

Parameters

Context [in]

A pointer to interface-specific context information. The caller passes the value that is passed as the Context member of the INTERFACE structure for the interface.

Note that the InterfaceDereference routine is a per interface contract, so there are no general IRQL requirements for calling it.

Remarks

You can use the InterfaceReference routine to increment the reference count for the interface.

The driver that imports the interface is responsible for calling the InterfaceDereference routine to decrement the reference count after the driver is no longer using the interface. For example, a driver that requests a pointer to the interface by sending an IRP_MN_QUERY_INTERFACE request calls InterfaceDereference. Also, a driver that receives a pointer to the interface to another driver must call InterfaceDereference.

See also

INTERFACE

IRP_MN_QUERY_INTERFACE

InterfaceReference