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_Register_Device
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
include blockdev.inc
 
mov     edi, OFFSET32 bdd       ; points to a BlockDev_Device_Descriptor
VXDcall BlockDev_Register_Device
 
jc      error                   ; error if carry set
 
The BlockDev_Register_Device service registers the specified Interrupt 13h
device.
 
This service is available during initialization only.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
bdd        Points to a BlockDev_Device_Descriptor structure containing
           information about the block device to be registered.
 
Exit
 
If the carry flag is clear, the block device is registered. Otherwise, the
carry flag is set to indicate an error.
 
Comments
 
Virtual devices supporting block devices usually call this service to
register their devices during the Sys_Critical_Init phase of device
initialization.
 
This service returns an error if the Interrupt 13h device has already been
registered by a virtual device or the Interrupt 13h drive has not been
installed.
 
See Also
 
BlockDev_Device_Descriptor