RETERR DiGetClassDevs(LPLPDEVICE_INFO lplpdi, LPCSTR lpszClassName, HWND hwndParent, int iFlags)
Returns a list of DEVICE_INFO structs for all of the installed devices of a specified class.
DIGCF_PRESENT | Return only devices which are present. This flag is only valid if Config Manager is running and has created devnodes for the installed devices. |
DIGCF_ALLCLASSES | Return a list of installed devices for all classes. If set, this flags will cause lpszClassName to be ignored. |
DIGCF_PROFILE | Return only devices which are present in the current configuration. |
This function build a list of device that have been previsouly installed. This function uses the HKLM\ENUM branch of the registry to build its list.
DiGetClassDevsEx