BlockDev_Find_Int13_Drive

include blockdev.inc

mov al, DriveNum ; Interrupt 13h drive number

VXDcall BlockDev_Find_Int13_Drive

jc Error ; error if carry flag set

mov dword ptr [bdd], edi ; points to BlockDev_Device_Descriptor


The BlockDev_Find_Int13_Drive service returns a pointer to the BlockDev_Device_Descriptor structure for a specified Interrupt 13h drive.

This service is available during initialization only.

Parameters

DriveNum

Specifies an Interrupt 13h drive number.

Return Value

If the carry flag is clear, the EDI register contains the address of the
BlockDev_Device_Descriptor structure for the specified drive. Otherwise,
the carry flag is set to indicate an error.

Comments

The service sets the carry flag if the specified Interrupt 13h block device driver is not installed.

Uses

EDI, Flags