RETERR DiDestroyClassInfoList(LPCLASS_INFO lpci)
This API will delete a single, or list of, CLASS_INFO struct(s).
lpci
A pointer to a single or list of CLASS_INFO struct(s).
This function will free any memory associated with the passed in lpci. This function will free any DEVICE_INFO structs also associated with this CLASS_INFO.
See also DiBuildClassInfoList, DiBuildClassInfoListEx