UsbPm_RetrieveHubProperties function

Retrieves the properties of a hub. The properties are static, which do not change during the lifecycle of a hub.

Syntax

NTSTATUS UsbPm_RetrieveHubProperties(
  USBPM_CLIENT          ClientHandle,
  USBPM_HUB             HubHandle,
  PUSBPM_HUB_PROPERTIES HubProperties
);

Parameters

ClientHandle

[In] The handle that the client driver received in a previous call to UsbPm_Register.

HubHandle

[In] The hub handle provided by Policy Manager when it calls the driver's implementation of EVT_USBPM_EVENT_CALLBACK. The handle is set in the EventData.HubArrivalRemoval.HubHandle member of the Params value.

HubProperties

[Out] A pointer to a driver-provided USBPM_HUB_PROPERTIES structure that receives the hub properties. Initialize the structure by calling USBPM_HUB_PROPERTIES_INIT.

Return Value

Returns STATUS_SUCCESS if the operation succeeds. Otherwise, returns an appropriate NTSTATUS value.

Requirements

   
Minimum supported client Windows 10, version 1809
Minimum KMDF version 1.27
Minimum UMDF version 2.27
Header usbpmapi.h
Library UsbPmApi.lib
IRQL PASSIVE_LEVEL

See Also

UsbPm_Register

EVT_USBPM_EVENT_CALLBACK