Virtual Devices (3.1) (vdag31qh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
BlockDev_Find_Int13_Drive
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
include blockdev.inc
 
mov     al, DriveNum            ; Interrupt 13h drive number
VXDcall BlockDev_Find_Int13_Drive
 
jc      Error                   ; error if carry 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.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
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
 
See Also
 
BlockDev_Device_Descriptor