TPath.GetTempFileName(which wraps WinAPI GetTempFileName) responds with "Invalid directory name" when called from an application launched by a user who logs into the domain.
if they use a login that does not use a domain, it works.
The client with the problems is in a different country, and I also do not know how to change the configuration of the domain controller to avoid this problem.
I assume that since my application is not working correctly, I should get the temporary file name differently.
"run as administrator" does not help.
I directed them to make sure that they have full control over the folders mentioned in the TEMP and TMP system environment variables, and apparently they do, but they still give the same error.
My application is like a Win32 Delphi desktop application, but since Windows is the source of the error, I assume this information has limited usefulness.
Windows 10 is an OS.
X ray source
share