Hmm to build a C or C++ version you need to understand windows source.
The MS SDK could provide you parts of that info like
http://msdn.microsoft.com/library/de...lhandlerex.asp
Examples how to create are all over the internet like
http://www.codeproject.com/system/ServiceBase.asp
Another way is to check where the library of C#2005 crashes and is different compared to C#2003
Therefore you must look in the sourcecode of the library.
I don't know where the source is because i only have the .NET sources at my work.