Go to the first, previous, next, last section, table of contents.


_is_remote_handle

Syntax

int _is_remote_handle(int fhandle);

Description

Given the file handle of an open file in fhandle, this function returns non-zero if the drive where that file resides is treated by DOS as a remote (networked) drive, or zero otherwise. It does so by calling subfunction 0Ah of the DOS IOCTL function (interrupt 21h, AX=440Ah) and looking at bit 15 of the device attribute word returned in the DX register.

Note that DOS treats CD-ROM drives as remote.

Return Value

Zero for files on local drives, non-zero for files on remote and CD-ROM drives.

Portability

not ANSI, not POSIX


Go to the first, previous, next, last section, table of contents.