WikiPendium

(beta)

Drvmap()

WikiPendium :: RecentChanges :: RecentlyCommented :: UserSettings :: You are ec2-13-59-156-144.us-east-2.compute.amazonaws.com
Ceci est une version archivée de Drvmap() à 2006-01-05 20:53:02.

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'. Also, the standard
GEM fileselector only lists drives from 'A' to 'P' (16 drives). 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 change the value returned here, for your drive to be listed.

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()?

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