I have been using FindNextFile() to enumerate all files in a folder. It will enumerate all the files until FindNextFile() fails with error ERROR_NO_MORE_FILES.
There has been no changes in this part of code and it has been working fine all these years, but in one of my customers’ machine (windows server 2016) it returns error (getlasterror) ERROR_INVALID_FUNCTION. What does it mean and how should I handle it?
Rod is spot on about running Process Monitor. However, just wanted to point
out that multiple native status codes can translate to
ERROR_INVALID_FUNCTION. According to winerror.exe: