RETERR DiBuildCompatDrvList(LPDEVICE_INFO lpdi)
Builds a Compatible Driver list for a specificed device.
The device specificed must have a harware registry key (i.e. an entry in HKLM\ENUM), and should have either, or both, a REGSTR_VAL_HARDWAREID and REGSTR_VAL_COMPATIBLEIDS value. The values should contain comma delimited lists of device ID's. Note the device ID's cannot contain comma's themselves.
DiBuildCompatDrvList