Condividi tramite


struttura PNP_LOCATION_INTERFACE (ntddk.h)

La struttura PNP_LOCATION_INTERFACE descrive l'interfaccia GUID_PNP_LOCATION_INTERFACE .

Sintassi

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;

Members

Size

Dimensione, in byte, della struttura.

Version

Versione definita dal driver dell'interfaccia.

Context

Puntatore a informazioni di contesto specifiche dell'interfaccia.

InterfaceReference

Puntatore a una routine InterfaceReference che incrementa il conteggio dei riferimenti per l'interfaccia. Il tipo di puntatore a funzione PINTERFACE_REFERENCE è definito nel file di intestazione Wdm.h.

InterfaceDereference

Puntatore a una routine InterfaceDereference che decrementa il conteggio dei riferimenti per l'interfaccia. Il tipo di puntatore a funzione PINTERFACE_DEREFERENCE è definito nel file di intestazione Wdm.h.

GetLocationString

Puntatore alla routine PnpGetLocationString per l'interfaccia. La routine fornisce la parte specifica del dispositivo della proprietà SPDRP_LOCATION_PATHS per il dispositivo.

Commenti

Un driver ottiene un puntatore alla struttura PNP_LOCATION_INTERFACE inviando un IRP_MN_QUERY_INTERFACE IRP al driver del bus con InterfaceType impostato su GUID_PNP_LOCATION_INTERFACE.

Requisiti

Requisito Valore
Client minimo supportato Windows Server 2003 e versioni successive del sistema operativo Windows.
Intestazione ntddk.h (include Ntddk.h, Ntifs.h)

Vedi anche

IRP_MN_QUERY_INTERFACE

InterfaceDereference

InterfaceReference

PnpGetLocationString