从执行文件中获取图标
HICON ExtractIcon(
  HINSTANCE hInst,          // instance handle
  LPCTSTR lpszExeFileName,  // name of file
  UINT nIconIndex           // index of icon
);
UINT ExtractIconEx(
  LPCTSTR lpszFile,        // name of file
  int nIconIndex,          // index of icon
  HICON FAR *phiconLarge,  // array of large icons
  HICON FAR *phiconSmall,  // array of small icons
  UINT nIcons              // number of icons to extract
);