Assembly Language Help (alang.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.
Int 21h Function 5Ch
 ◄Detail►                                    ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
 
  Interrupt:   21h     Function:   5Ch
 
  Title:       Lock or Unlock File Region [Version 3.0+]
 
  See also:    Set File Pointer
 
  Description:
 
     Locks or unlocks a specified region of a file that was previously
     opened or created with Int 21h Functions 3Ch, 3Dh, 5Ah, or 5Bh.
     This function is not available unless the file-sharing module
     (SHARE.EXE) is loaded.
 
     Input                               Output
 
     AH = 5Ch                            If function successful
     AL = 00h (if locking region)          Carry flag: clear
        = 01h (if unlocking region)
     BX = Handle                         If function unsuccessful
     CX = High part of region offset       Carry flag: set
     DX = Low part of region offset        AX = Error code (01h, 06h,
     SI = High part of region length            21h, or 24h)
     DI = Low part of region length        See: ◄Error codes►
                                    -♦-