It is not legal at all. Using Microsoft Platform SDK header code is not under the GNU General Public License version 2.0 or its listed compatible licenses, so you have to do it manually WITHOUT looking at the PSDK. I recommend removing the PSDK from your system as a way to remove temptation.

On Nov 6, 2007 1:21 PM, Pau Garcia i Quiles <pgquiles@elpauer.org> wrote:
Hello,

How legal (if at all) would be to develop a header file by looking
reading the corresponding header file from the Microsoft Platform SDK
and adapting it to gcc (removing MSVC stuff, etc)?

I'm interested in supporting annotations[*] and before I start
deducting everything from MSDN documentation, I'd like to know if
there is a fast track.

[*] More information:
http://msdn2.microsoft.com/en-us/library/aa383701.aspx
http://msdn2.microsoft.com/en-us/library/ms235402(VS.80).aspx

Thank you.

--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)