i want to retrive a programs icon, the one that is in the top left corner of its window, Ive tried to get the programs exe name from its handle but then im stuck without its path, then i made a search for the exe and used the first result, but it was wrong most times. I would think there is some api function somewhere to retrive its icon from its handle, or classname.

Can somone point me in the right direction here?, cause im stumped