RETERR DiDestroyDeviceInfoList(LPDEVICE_INFO lpdi)
Destroys a list of DEVICE_INFO structures.
lpdi
Pinter to a list of DEVICE_INFO structs.
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.
See also DiCreateDeviceInfo, DiGetClassDevs, DiGetClassDevsEx