funzione UsbPm_RetrieveConnectorProperties (usbpmapi.h)

Recupera le proprietà di un connettore. Le proprietà sono statiche, che non cambiano durante il ciclo di vita di un connettore.

Sintassi

NTSTATUS UsbPm_RetrieveConnectorProperties(
  [In]  USBPM_CLIENT                ClientHandle,
  [In]  USBPM_CONNECTOR             ConnectorHandle,
  [Out] PUSBPM_CONNECTOR_PROPERTIES ConnectorProperties
);

Parametri

[In] ClientHandle

Handle ricevuto dal driver client in una chiamata precedente a UsbPm_Register.

[In] ConnectorHandle

Handle del connettore fornito da Policy Manager quando chiama l'implementazione del driver di EVT_USBPM_EVENT_CALLBACK. L'handle è impostato nel membro EventData.ConnectorStateChange.ConnectorHandle del valore Params .

[Out] ConnectorProperties

Puntatore a una struttura di USBPM_CONNECTOR_PROPERTIES fornita dal driver che riceve le proprietà del connettore. Inizializzare la struttura chiamando USBPM_CONNECTOR_PROPERTIES_INIT.

Valore restituito

Restituisce STATUS_SUCCESS se l'operazione ha esito positivo. In caso contrario, restituisce un valore NTSTATUS appropriato.

Requisiti

Requisito Valore
Client minimo supportato Windows 10, versione 1809
Versione KMDF minima 1.27
Versione UMDF minima 2.27
Intestazione usbpmapi.h
Libreria UsbPmApi.lib
IRQL PASSIVE_LEVEL

Vedi anche

UsbPm_Register

EVT_USBPM_EVENT_CALLBACK