// usbpmapi.h
NTSTATUS UsbPm_RetrieveConnectorProperties(
[In] USBPM_CLIENT ClientHandle,
[In] USBPM_CONNECTOR ConnectorHandle,
[Out] PUSBPM_CONNECTOR_PROPERTIES ConnectorProperties
);
View the official Windows Driver Kit DDI referenceNo description available.
Retrieves the properties of a connector. The properties are static, which do not change during the lifecycle of a connector.
ClientHandle [In]The handle that the client driver received in a previous call to UsbPm_Register.
ConnectorHandle [In]The connector handle provided by Policy Manager when it calls the driver's implementation of EVT_USBPM_EVENT_CALLBACK. The handle is set in the EventData.ConnectorStateChange.ConnectorHandle member of the _Params_ value.
ConnectorProperties [Out]A pointer to a driver-provided USBPM_CONNECTOR_PROPERTIES structure that receives the connector properties. Initialize the structure by calling USBPM_CONNECTOR_PROPERTIES_INIT.
Returns STATUS_SUCCESS if the operation succeeds. Otherwise, returns an appropriate NTSTATUS value.