ExtractIcon() 可以从 *.dll 中提取图标.
The ExtractIconEx function retrieves the handle of an icon from the
specified executable file, dynamic-link library (DLL), or icon file.
HICON ExtractIconEx(
LPCSTR lpszFile,
int nIconIndex,
HICON FAR * phiconLarge,
HICON FAR * phiconSmall,
UINT nIcons
);
有大小图标之分。