WikiPendium

(beta)

Drvmap()

WikiPendium :: RecentChanges :: RecentlyCommented :: UserSettings :: You are ec2-44-200-95-157.compute-1.amazonaws.com

Drvmap()

(Drive map)

ULONG Drvmap( VOID )


Drvmap() returns a bitmask of present drives.

Opcode

10 (0x0a)

Availability

All TOS versions.

Binding

	move.w	#$0a,-(sp)
	trap	#13
	addq.l	#2,sp


Return Value

The ULONG value contains a bitmask. The bit is 1 if the drive is present. Bit 0 is drive 'A', Bit 1 is drive 'B', and so on till the end.

Comments

The 32 bits unsigned long value returned can hold up to 32 drives. However, there are only 26 letters from 'A' to 'Z', and the standard GEM fileselector only lists drives from 'A' to 'P' (16 drives).
When XHDI is available, you may call XHDrvMap().
If you create a custom drive (like a ramdisk drive for example) for TOS, and don't create a driver for MetaDOS, you'll have to extend the behaviour of the Drvmap() function so that your drive can be listed in the ULONG value returned. When XHDI is available, you should also extend the behaviour of XHDrvMap().

Note also that under MiNT, all drives are mounted in the U:\ directory, so drives are just subdirectories of this virtual drive.

See Also

Dsetdrv()?, XHDrvMap(), XHDI

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