GET_UPDATED_BUS_RESOURCE callback function (wdm.h)

Reports the latest resource lists.

Syntax

GET_UPDATED_BUS_RESOURCE GetUpdatedBusResource;

NTSTATUS GetUpdatedBusResource(
  [In]  PVOID Context,
  [Out] PCM_RESOURCE_LIST *UpdatedResourceList,
  [Out] PCM_RESOURCE_LIST *UpdatedTranslatedResourceList
)
{...}

Parameters

[In] Context

A pointer to interface-specific context information. For this parameter, the caller supplies the value from the Context member of the BUS_RESOURCE_UPDATE_INTERFACE structure for the interface.

[Out] UpdatedResourceList

A pointer to the resource list in CM_RESOURCE_LIST structures that the driver used to detect the device. Resources in this list are in raw, untranslated form.

[Out] UpdatedTranslatedResourceList

A pointer to the resource list in CM_RESOURCE_LIST structures. Resources in this list are translated.

Return value

Return STATUS_SUCCESS if the operation succeeds. Otherwise, return an appropriate NTSTATUS Values error code. For more information, see NTSTATUS Values.

Remarks

The Pnp Manager invokes this callback function to query the bus driver for the latest resources.

Register the bus driver's implementation of this callback function by setting the PGET_UPDATED_BUS_RESOURCE member of BUS_RESOURCE_UPDATE_INTERFACE.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1809
Header wdm.h (include Wdm.h)
IRQL PASSIVE_LEVEL