BOOL IsFileExists(LPCSTR path) {
if (strlen(path) == 0)
return -1; // because BOOL = typedef int, we can return -1 to understand the error
BOOL retval = PathFileExists(path);
return retval;
}
int main() {
cout << IsFileExists("F:\\Program Files\\Application Verifier\\test.txt") << endl;
}