BUG: ANSI Version of SetupDiEnumDriverInfo() Fails

ID: Q185502


The information in this article applies to:


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:

Q99359 INFO: UNICODE and _UNICODE Needed to Compile for Unicode

Additional query words: kbDSupport kbdsh kbNoKeyword SetupDiEnumDriverInfoA


Keywords          : 
Version           : WINNT:4.0
Platform          : winnt 
Issue type        : kbbug 

Last Reviewed: March 4, 1999