delorie.com/djgpp/doc/libc/libc_502.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

_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

ANSI/ISO C No
POSIX No


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004