MSI-X implementation

I have a PCI device which supported MSI-X interrupt.
It supported 32 MSI interrupts (I do not use all of them but only 24)
i create an interrupt object for each assigned message ID ,
My question is, Do I need to create InterruptIsr for each assigned interrupt or using the same InterruptIsr for all interrupts ?
if the same… How do I distinguish them?

Assuming you are using KMDF then EvtInterruptIsr has a MessageId parameter to indicate the interrupt.

Don Burn
Windows Driver Consulting