Getting devinterface classes for a device

Hi,
I know I can use IoGetDeviceInterfaces() to get a list of device interface
instances for a specific device interface class, but is there a way to get a
list of device interface classes that were registered for a specific device?
This can be done easily using the SetupDiXXX routines, but I need to do it
my driver…

Thanks,
Shahar