Microsoft KB Archive/264347

{|
 * width="100%"|

INFO: LoadImage Behavior Differs Between Windows 95 and Windows 98, and Windows NT

 * }

Q264347

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK), on platform(s):
 * the operating system: Microsoft Windows 2000
 * the operating system: Microsoft Windows 95
 * the operating system: Microsoft Windows 98
 * the operating system: Microsoft Windows NT

-

SUMMARY
BMP (.bmp) files with invalid information in the BITMAPINFOHEADER structure that can be loaded by using the LoadImage function on Microsoft Windows 95 and Microsoft Windows 98 may not load under Microsoft Windows 2000 or Microsoft Windows NT. You may be experiencing this problem if your call to LoadImage fails, yet the GetLastError function returns 0 (zero).

MORE INFORMATION
Information in the BITMAPINFOHEADER structure is validated more strictly under Windows NT and Windows 2000 than it is under Windows 95 and Windows 98. As a result, .bmp files that have invalid values in the biSizeImage field may not load under Windows NT/Windows 2000. The solution to this problem is to place the correct values in the biSizeImage field.