Use Winapi in a way that is now preferable in Boost