Update IsPathValidA.c

This commit is contained in:
vxunderground 2021-06-04 16:17:44 -05:00 committed by GitHub
parent 58d93e691e
commit 6af9456d94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,24 @@
/*
IsPathValid function
Summary:
Determines if a file exists.
Parameters:
A pointer to the full path to the file.
Return value:
TRUE if file exists. FALSE if file does not exist or the application is unable to get a HANDLE on the file specified
Remarks:
Use GetLastError() for details on failure
Author:
smelly__vx | June 4th, 2021
*/
BOOL IsPathValidA(PCHAR FilePath)
{
HANDLE hFile = INVALID_HANDLE_VALUE;
@ -10,4 +31,4 @@ BOOL IsPathValidA(PCHAR FilePath)
CloseHandle(hFile);
return TRUE;
}
}