en:docs:dos:api:int21:69:00

Note: This API call is for DOS personality only. Use Family API for portability.

2018/09/07 07:04 · prokushev

Int 21H, AH=69H, AL=00H

Version

4 and higher

Brief

get serial number

Family API

Input

AX = 6900h get serial number
      BL = drive (0=default, 1=A, 2=B, etc)
      BH = info level (00h only for DOS; OS/2 allows other levels)
      DS:DX -> disk info (see #01766)

Return

 CF set on error
AX = error code (see #01680 at AH=59h/BX=0000h)
CF clear if successful
AX destroyed
buffer filled with appropriate values from extended BPB

Macro

Notes

 Does not generate a critical error; all errors are returned in AX. Error 0005h given if no extended BPB on disk. Does not work on network drives (error 0001h). Buffer after first two bytes is exact copy of bytes 27h thru 3Dh of extended BPB on disk. This function is supported under Novell NetWare versions 2.0A through 3.11; the returned serial number is the one a DIR would display, the volume label is the NetWare volume label, and the file system is set to "FAT16".. This function is not supported by Novell DOS 7 through Update 13, but Personal NetWare 1.0 and Update 15 do support this function. The serial number is computed from the current date and time when the disk is created; the first part is the sum of the seconds/hundredths and month/day, the second part is the sum of the hours/minutes and year. The volume label which is read or set is the one stored in the extended BPB on disks formatted with DOS 4.0+, rather than the special root directory entry used by the DIR command in COMMAND.COM (use AH=11h to find that volume label)

See also

 AX=440Dh"DOS 3.2+"
 

Note


en/docs/dos/api/int21/69/00.txt · Last modified: 2021/08/06 08:39 by prokushev