On Wed Apr 24 16:53:54 2024 +0000, Elizabeth Figura wrote:
Wouldn't it make more sense to use a positive check for ERROR_INSUFFICIENT_BUFFER?
What do you mean? If RegQueryValueEx runs out of space, it returns ERROR_MORE_DATA. But if the class is installed, SetupDiGetClassDescription writes to RequiredSize whether the buffer is sufficient or not. Are you just saying that you want to see a test where SetupDiGetClassDescription succeeds and writes to both ClassDescription and RequiredSize?