FileGetHandle Procedure

Gets the WIN32 handle to the opened file.

Syntax

[ hHandle = ] FileGetHandle ( hFile )

The FileGetHandle procedure syntax has the following parts:

 

Name

Type

Description

hHandle

AHandle

WIN32 handle to the opened file

hFile

Val AFile

ATEasy handle to the file

Comments

The hFile specifies the ATEasy file handle obtained by the FileOpen or FileCreate function.

If the function was not successful, it returns -1.

Example

If FileGetHandle( hFile ) = -1 Then

Print "Error During FileGetHandle."

Endif

See Also

FileCreate, FileOpen