On Sunday, 27 January 2013 at 17:51:40 UTC, Benjamin Thaut wrote: > extern(Windows) <insert function definition here> I don't know If that what you meant but this works *inside* the code: extern(Windows) ATOM class_atom = RegisterClassExW(&wc);