title: What directory does C++ look into when using the function GetFileAttributesA(Windows)
body: <p>I have a directory A which has a file <code>someFile.ext</code>, I cd to directory A in my terminal. In directory B I have a tmp.exe, I run the <code>tmp.exe</code> from directory A. Now in the code of <code>tmp.exe</code> I have a function which checks if file <code>someFile.ext</code> exists or not using the function <code>GetFileAttributesA</code> (the file exists if this does not return <code>INVALID_FILE_ATTRIBUTES</code>). Now I want to know when I call the function <code>GetFileAttributesA(&quot;someFile.ext&quot;)</code> in which directory does it look, in directory A or directory B? Mind you I am not providing full path just the fileName. Does this change behaviour change for 32bit and 64 bit architecture in Visual Studios.</p>