HKEY
SetupDiOpenClassRegKey(
IN PGUID ClassGuid, /* optional */
IN REGSAM samDesired
);
SetupDiOpenClassRegKey opens the class registry key or a specific class' subkey.
If the function is successful, it returns TRUE. If the function fails, it returns INVALID_HANDLE_VALUE. To get extended error information, call GetLastError.
This function does not create a registry key if it does not already exist.
The handle returned from this function must be closed by calling RegCloseKey.