No formal product support is available from Microsoft for this Beta product. For information about obtaining support for a Beta release, please see the documentation included with the Beta product files, or check the Web location from which you downloaded the release. The information in this article applies to:
SYMPTOMSWhen calling SHGetFileInfo with SHGFI_ATTR_SPECIFIED, the file object's attributes are not retrieved correctly. This occurs only when calling the ANSI version of SHGetFileInfo (SHGetFileInfoA) on Windows NT 4.0 or Windows 2000 beta 3. CAUSEOn Windows NT 4.0 and Windows 2000, SHGetFileInfoA calls SHGetFileInfoW but fails to copy the dwAttributes of the SHFILEINFOA structure to the SHFILEINFOW structure that is passed to SHGetFileInfoW. The dwAttributes member of the SHFILEINFOW structure remains uninitialized, so the attributes retrieved are not predictable. RESOLUTION
To avoid this problem, you should call SHGetFileInfoW directly. This resolution works only on Windows NT and Windows 2000. On Windows 95 or Windows 98, SHGetFileInfoW is not implemented, and therefore you need to detect the operating system at run time and call the appropriate function. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. Additional query words:
Keywords : kbLib kbNTOS400bug kbSDKPlatform kbSDKWin32 kbShellGrp kbWinOS95bug kbWinOS98bug kbDSupport |
Last Reviewed: July 7, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |