Get window (border)style

I have a problem getting the borderstyle of windows from other
applications....

I can't find any API command to get these data.
I think it has something to to with CLASSINFO
or the GETCLASS,GETCLASSINFO commands?!?!?

Does somebody know how to get these data?