I have a legacy system written in C++
, MFC
.
I was checking a piece of code where LoadBitmap()
was replaced with LoadImage()
API. The comment written in the code says "LoadBitmap()
uses the Paged pool from Kernel memory and if the usage reaches the maximum limit then the paint issues would pop up. So LoadImage
API should be used".
I googled a bit on this but didn't get much information. When I checked the MSDN, they say "Note that the use of LoadBitmap to load OEM bitmaps is deprecated and is supported only for backward compatibility"
My questions are:
1. Are there any issues with LoadBitmap()
API? Why should we prefer LoadImage()
over LoadBitmap()
?
2. What is OEM bitmaps
? Is there any issue if I load normal BMP with LoadBitmap
?