AIT_FileSize

Description

Acquires a file size.

Format

bool AIT_FileSize  (
 integer nFileHandle,     // File handle
 integer nFileSize        // File size
);

Parameters

nFileHandle (input)

Specify a file handle.

nFileSize (output)

Specify a variable for receiving a file size. When the function returns, the variable stores the file size.

Return values

The return value is true if the function was executed normally, and false if not. If the function has returned false, you can use AIT_GetLastError to acquire an extended error code. The following gives the error codes that AIT_GetLastError might return:

Extended error numberError code
2ERROR_FILE_NOT_FOUND
5ERROR_ACCESS_DENIED
6ERROR_INVALID_HANDLE
8ERROR_NOT_ENOUGH_MEMORY
14ERROR_OUTOFMEMORY
21ERROR_NOT_READY
32ERROR_SHARING_VIOLATION
33ERROR_LOCK_VIOLATION
38ERROR_HANDLE_EOF
112ERROR_DISK_FULL
148ERROR_PATH_BUSY
1231ERROR_NETWORK_UNREACHABLE
1392ERROR_FILE_CORRUPT

Note

The AIT_FileSize function acquires a file size not compressed.