> >> Agreed Andrey. But I couldn't find any API(s) which can serve my >> requirements. And we can't afford to execute (fork+exec) tools like >> cygpath for each getcwd call. >> Any suggestions on improving this approach or any alternative approach >> are always welcome. > > https://cygwin.com/cygwin-api/func-cygwin-conv-path.html > > Note the CCP_PROC_CYGDRIVE option. > Yes Csaba, I had evaluated this option but we are using an older version of cygwin (1.7.33) which doesn't have this option available :(
Thanks, Dipak