SHLoadImageFile

Windows Mobile 6.5
4/8/2010

This function reads an image file, decompresses it, and returns a handle to a bitmap in memory.


HBITMAP SHLoadImageFile (
  LPCTSTR pszFileName
);

pszFileName

[in] The name of the image file to be loaded.

A handle to a bitmap if successful, NULL otherwise.

This function converts files of several types, including GIF (Graphics Interchange Format), PNG (Portable Network Graphics), JPG (Joint Photographic Experts Group), ICO (icon), and BMP (bitmap) file formats. Other image file types may be supported if the correct decoder is installed.

When you no longer need the bitmap, call the DeleteObject function to delete it.

Headeraygshell.h
Libraryaygshell.lib
Windows Embedded CEWindows CE .NET 4.0 and later
Windows MobilePocket PC for Windows Mobile 2003 and later

Community Additions

Show: