Microsoft KB Archive/185502

{|
 * width="100%"|

BUG: ANSI Version of SetupDiEnumDriverInfo Fails

 * }

Q185502

-

The information in this article applies to:


 * Microsoft Win32 Device Driver Kit (DDK) for Windows NT, version 4.0

-

SYMPTOMS
Any call to the ANSI version of SetupDiEnumDriverInfo returns failure, and GetLastError returns ERROR_INVALID_USER_BUFFER.

RESOLUTION
Use the Unicode version of this function as a workaround, either by calling the Unicode function SetupDiEnumDriverInfoW directly or using a #define UNICODE.

STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.