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

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

_is_remote_drive

Syntax

 
int _is_remote_drive(int drv);

Description

Given the drive number in drv (A: = 0, B: = 1, etc.), this function returns non-zero if the drive is treated by DOS as a remote (networked) drive, or zero otherwise. It does so by calling subfunction 09h of the DOS IOCTL function (interrupt 21h, AX=4409h) and looking at bit 12 of the device attribute word returned in the DX register.

Note that DOS treats CD-ROM drives as remote.

Return Value

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

Portability

ANSI/ISO C No
POSIX No


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004