VfIsPCIBus

NTSTATUS __stdcall VfIsPCIBus(_DEVICE_OBJECT *PhysicalDeviceObject){
  NTSTATUS v1; 
  __int64 ResultLength[2]; 
  __int16 PropertyBuffer[40]; 

  v1 = 0;
  LODWORD(ResultLength[0]) = 0;
  if( !PhysicalDeviceObject )
    return 0;
  if( !IoGetDeviceProperty(PhysicalDeviceObject, 0, 0x50ui64, PropertyBuffer, (UINT64 *)ResultLength)
    && !wcsicmp((const wchar_t *)PropertyBuffer, L"PCI bus") )
  {
    return 1;
  }
  return v1;
}

Referenced by:

VfGetDmaAdapter