IopQueryBusResourceUpdateInterface

NTSTATUS __stdcall IopQueryBusResourceUpdateInterface(PDEVICE_OBJECT DeviceObject, _OWORD *Interface){
  VOID **PoolWithTag; 
  NTSTATUS v6; 

  PoolWithTag = ExAllocatePoolWithTag(1ui64, 0x28ui64, 538996816i64);
  if( !PoolWithTag )
    return -1073741670;
  *(_OWORD *)PoolWithTag = 0i64;
  *((_OWORD *)PoolWithTag + 1) = 0i64;
  PoolWithTag[4] = 0i64;
  v6 = PnpQueryInterface(
         DeviceObject,
         (_IO_SECURITY_CONTEXT *)&GUID_BUS_RESOURCE_UPDATE_INTERFACE,
         0,
         0x28u,
         0i64,
         PoolWithTag);
  if( v6 >= 0 )
  {
    *(_QWORD *)Interface = PoolWithTag;
    return 0;
  }
  else
  {
    ExFreePoolWithTag(PoolWithTag, 0);
    return v6;
  }
}

Referenced by:

PiUpdateDeviceResourceLists