FindFirstFile is throwing error 123

FindFirstFile is throwing error 123.

While iterating through a directory, the FindFirstFile is throwing error 123 for a particular folder.

this folder specifically :
C:\Users\All Users\ee4bbdb775ce60bae142691fabe19e66a30f7e5fb072d88300c47b897aa8fdcb.sth

xxxxx@intel.com wrote:

FindFirstFile is throwing error 123.

While iterating through a directory, the FindFirstFile is throwing error 123 for a particular folder.

this folder specifically :
C:\Users\All Users\ee4bbdb775ce60bae142691fabe19e66a30f7e5fb072d88300c47b897aa8fdcb.sth

Did you look it up? Error 123 is ERROR_INVALID_NAME.

Your quoted line there has two backslashes at the beginning. Is that
literally in your query string? Two backslashes at the beginning of a
path can be confused for a network share.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

No, the actual query string doesn’t have a backslash. While iterating through all the files in C:\ drive, i am getting this error ERROR_INVALID_NAME . I would like to know while calling FindFirstFIle for a particular folder, if GetLastError() returns something like 123, should i stop processing and move to next folder or should i abort processing of iterating the folders in C drive altogether?