LONG Metaioctl( drive, magic, opcode, arg )
WORD drive;
LONG magic;
WORD opcode;
LONG arg;
Opcode
55 (0x37)
Availability
A
MetaDOS driver must be installed.
Parameters
drive is the letter of a
MetaDOS device, i.e. the
ASCII code for any character from
'A' to
'Z'.
magic is
'FCTL' string.
opcode is the number of the device specific command to execute.
arg is either a long value or a pointer to a structure needed by the command, or
NULL if unused.
Binding
move.l arg,-(sp)
move.w opcode,-(sp)
move.l #'FCTL',-(sp)
move.w drive,-(sp)
move.w #$37,-(sp)
trap #14
lea 14(sp),sp
Return Value
The LONG value contains 0 if the operation was successful, or a negative error code.
See Also
Fcntl() (CD-ROM specific commands especially).