INT 21,5F AL=03 Redirect Device (DOS 3.1+)

AH = 5F

AL = 03

BL = device type

= 3 if printer

= 4 if drive

CX = parameter to save for caller

DS:SI = far pointer to ASCIIZ local device name

ES:DI = far pointer to ASCIIZ network name followed

by ASCIIZ password

on return

AX = error code if CF is set

= 1 invalid function code or

invalid source or destination string format or

source device already redirected

= 3 path not found

= 5 access denied

= 8 insufficient memory

- parameter passed in CX can later be retrieved by calls

to INT 21,5F subfunction 2

- local device name in DS:SI can be a drive designator

(D:), a printer name (PRN or LPTx), or a null string

- when a null string is followed by a password is used, DOS

tries granting access to the network directory using the

given password

- fails if file sharing is not loaded


Zurück zum Interrupt Info. Roger Morgan / 1998 L.Änderung 29.03.99