BUG: ANSI Version of SetupDiEnumDriverInfo() Fails (185502)



The information in this article applies to:

  • Microsoft Win32 Device Driver Kit (DDK) 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


Modification Type:MinorLast Reviewed:7/22/2004
Keywords:kbbug KB185502