Is it possible to get another window's icon from its handle? Is there an easy way to get folder icons with this also?

Thanks for any assistance!!