Rename CreateFile to create_file

windows.h defines a macro CreateFile equal to CreateFileA
which is incompatible with the method declared in win32.h.
Use correct structure types for parameters to Win32 API