Thanks, extern(System) seems to do the job under windows at least, i hope it switch to extern(C) for other systems, can't test it right now. The System version works even with the old DMD 1.030. If this defined version is that old then why it is not documented yet with newer releases? Thank you for this solution.