RETERR DiDestroyDeviceInfoList(LPDEVICE_INFO lpdi)
Destroys a list of DEVICE_INFO structures.
The list can contain only 1 struct. This function will free any compatible and/or class driver lists created using the lpdi(s) as well. Any class installer DLL's or property providor DLL's associated with the lpdi(s) list be freed also.
DiCreateDeviceInfo, DiGetClassDevs, DiGetClassDevsEx