This function returns a pointer to an icon which is associated with the file specified by pszFileName.
#define INCL_WINWORKPLACE #include <os2.h> PSZ pszFileName; /* Pointer to file name. */ BOOL fPrivate; /* Icon usage flag. */ HPOINTER hIcon; /* Icon handle. */ hIcon = WinLoadFileIcon(pszFileName, fPrivate);