I have some C++ code that includes a method called CreateDirectory(). Previously the code only used STL and Boost, but I recently had to include
CreateDirectory().
You will be better off if you just rename your CreateDirectory method. If you need to use windows APIs, fighting with Windows.h is a losing battle.
Incidently, if you were consistent in including windows.h, this will still be compiling. (although you might have problems in other places).