cygwin_conv_to_win32_path

extern "C" void cygwin_conv_to_win32_path(path,  
 win32_path); 
const char * path;
char * win32_path;

Converts a POSIX path to a Win32 path. If path is already a Win32 path, leaves it alone. If path is relative, then win32_path will also be relative. Note that win32_path must point to a buffer of sufficient size; use MAX_PATH if needed.