BUG: ANSI Version of SetupDiEnumDriverInfo() Fails
Article ID: 185502
Article Last Modified on 7/22/2004
APPLIES TO
- Microsoft Win32 Device Driver Kit for Windows NT 4.0
This article was previously published under Q185502
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.
REFERENCES
For more information on Compiling projects with UNICODE enabled, see
Microsoft Knowledge Base Article:
99359
INFO: UNICODE and _UNICODE Needed to Compile for Unicode
Additional query words: kbDSupport kbdsh kbNoKeyword SetupDiEnumDriverInfoA
Keywords: kbbug KB185502