获得系统IShellLink接口。
调用IShellLink::SetIconLocation即可。
付函数说明:
Sets the location (path and index) of the icon for a shell link object.
HRESULT STDMETHODCALLTYPE SetIconLocation(
LPCSTR pszIconPath,
int iIcon
);
Parameters
pszIconPath
Address of a buffer to contain the path of the file containing the icon.
iIcon
Index of the icon.
Return Values
Returns NOERROR if successful, or an OLE-defined error value otherwise.
See Also