I am using the following to search for a file defined as a macro DB_CONFIG_FILE_PATH_1.
wchar_t filename[100];
SearchPath( L".\\", DB_CONFIG_FILE_PATH_1, NULL, 100, filename, NULL);
If the file is in C:\ directory, it is found. But, if the file is in one of its sub-directories the function doesn't find it.
Can some explain how to search all the drives including subdirectories for a file with the above function.
I am not using FindFirstFile function because, I am unable to retrieve the path to the file even though the function returns handle to the file.
To put it, I want full path name of a file. I know the name of the file, but do not know where it is on the comp.