delorie.com/djgpp/doc/libc/libc_502.html | search |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
int _is_remote_handle(int fhandle); |
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.
Zero for files on local drives, non-zero for files on remote and CD-ROM drives.
ANSI/ISO C | No |
POSIX | No |
webmaster | delorie software privacy |
Copyright © 2004 | Updated Apr 2004 |