Code:
#define BUFFER_SIZE 2048
	char* chrTemp[BUFFER_SIZE];
	GetCurrentDirectory(BUFFER_SIZE, chrTemp);
	printf(chrTemp);

1st param is the buffer size of the string, change this to whatever, 2nd param is where to store the directory to

hope this helps