WikiPendium

(beta)

Metaioctl()

WikiPendium :: RecentChanges :: RecentlyCommented :: UserSettings :: You are ec2-3-141-167-59.us-east-2.compute.amazonaws.com

Metaioctl()


LONG Metaioctl( drive, magic, opcode, arg )

WORD drive;
LONG magic;
WORD opcode;
LONG arg;

Metaioctl() sends a specific command to a MetaDOS device.

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).

Il n'y a pas de commentaire sur cette page. [Afficher commentaires/formulaire]