I am not sure this is the right forum, but since I'm more of c# developer I've decided to give a try.
Basicaly what I'm trying to to is to to get window's icon (pointer, bytearray...) via its handle(intptr) (needles to say that the handles are to windows created by other processes and not by mine application so form.icon won't cut it ). I've stumbled upon this winapi function

static extern bool GetClassInfo(IntPtr hInstance, string lpClassName,
out WNDCLASS lpWndClass);

but couldn't get its working in .net (the main problem is that one of the parameters is some kind
of win struct WNDCLASS which I coulnt convert to c# representation).

So, how do I get these icons ?