Find a file in a given path. If lpSubFolder1st is given (not NULL), then A. if bExcluded = FALSE, then find this subfolder first, B. if bExcluded = TRUE, skip this subfolder
BOOL FindFile( LPCTSTR lpcszName, LPSTR lpPath, LPCTSTR lpSubFolder1st = NULL, BOOL bExcluded = TRUE )
If the file is found then TRUE else FALSE.
EX1
void FindFile_ex1() { char szTemp[MAXFULLPATH]; lstrcpy(szTemp, GetAppPath()); if(FindFile("origin.ini", szTemp, "Originlab", FALSE)) { out_str("ok, found it"); out_str(szTemp); } else out_str("Not found!"); }
origin.h