There are two methods available, getcwd() and the windows SDK method GetCurrentDirectory(). You should be able to find documentation on their use.

Jeff