The return type in this defintion is wrong
It should be
The current defintion causes code like the following to fail
Code:
DECLARE FUNCTION GetFileAttributes LIB "KERNEL32.DLL" ALIAS "GetFileAttributesA" (lpFileName AS ASCIIZ) AS LONG
Code:
DECLARE FUNCTION GetFileAttributes LIB "KERNEL32.DLL" ALIAS "GetFileAttributesA" (lpFileName AS ASCIIZ) AS DWORD
Code:
IF GetFileAttributes(szFile) <> %INVALID_FILE_ATTRIBUTES THEN
Comment