FileExists method
Prototype
FileExists Proto lpszFilePath:LPSTR
Syntax
Invoke FileExists, lpszFilePath
Function
Checks whether a file exists or not.
Parameters
lpszFilePath
Pointer to the effective address of the null-terminated string containing the full path of the file to check.
Return value
Eax/Rax returns INVALID_HANDLE_VALUE if the file DOES NOT EXIST, or any other value if IT DOES (usually TRUE).
REMARKS: The FileExists
method expects lpszFilePath to be a Unicode string
if
the application is running as Unicode,
or an ANSI string if not (see the IsAppUnicode method).
You can call
FileExistsA
if lpszFilePath
is an ANSI string in Unicode applications, or FileExistsW
if lpszFilePath is a Unicode string in ANSI
applications.