PNP_LOCATION_INTERFACE - NtDoc

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

typedef struct _PNP_LOCATION_INTERFACE {
  USHORT                 Size;
  USHORT                 Version;
  PVOID                  Context;
  PINTERFACE_REFERENCE   InterfaceReference;
  PINTERFACE_DEREFERENCE InterfaceDereference;
  PGET_LOCATION_STRING   GetLocationString;
} PNP_LOCATION_INTERFACE, *PPNP_LOCATION_INTERFACE;
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-ntddk-_pnp_location_interface)

_PNP_LOCATION_INTERFACE structure

Description

The PNP_LOCATION_INTERFACE structure describes the GUID_PNP_LOCATION_INTERFACE interface.

Members

Size

The size, in bytes, of this structure.

Version

The driver-defined version of the interface.

Context

A pointer to interface-specific context information.

InterfaceReference

A pointer to an InterfaceReference routine that increments the reference count for the interface. The PINTERFACE_REFERENCE function pointer type is defined in the Wdm.h header file.

InterfaceDereference

A pointer to an InterfaceDereference routine that decrements the reference count for the interface. The PINTERFACE_DEREFERENCE function pointer type is defined in the Wdm.h header file.

GetLocationString

A pointer to the PnpGetLocationString routine for the interface. The routine supplies the device-specific part of the SPDRP_LOCATION_PATHS property for the device.

Remarks

A driver obtains a pointer to the PNP_LOCATION_INTERFACE structure by sending an IRP_MN_QUERY_INTERFACE IRP to its bus driver with InterfaceType set to GUID_PNP_LOCATION_INTERFACE.

See also

IRP_MN_QUERY_INTERFACE

InterfaceDereference

InterfaceReference

PnpGetLocationString