INtime SDK Help
GetRtFileType
INtime SDK v7 > About INtime > INtime Kernel > Files > GetRtFileType

Retrieves the file type of the specified file .

DWORD GetRtFileType(
    RTHANDLE hFile);

Parameters

hFile
A handle for a file object.

Remarks

The function returns one of the following values:

Return value Description
FILE_TYPE_DEVICE I/O device, such as a console or serial device.
FILE_TYPE_DISK Disk file.
FILE_TYPE_DIRECTORY Disk directory.
FILE_TYPE_UNKNOWN Unrecognized file type, or the function failed.

Requirements

Versions Defined in Include Link to
INtime 6.0 intime/rt/include/rtbase.h rt.h rt.lib
See Also