Multithreaded applications and shared library code should not use the **GetFullPathName** function and should avoid using relative path names. The current directory state written by the **SetCurrentDirectory** function is stored as a global variable in each process, therefore multithreaded applications cannot reliably use this value without possible data corruption from other threads that may also be reading or setting this value.