DOS Fn 440bH: IOCTL Set Sharing Retry Count
Compatibility: 3.0+
Expects: AX 440bH
CX delays per retry (default=1)
DX retries before declaring INT 24H critical error (default=3)
──────────────────────────────────────────────────────────────────
Returns: AX error code if CF is set to CY
──────────────────────────────────────────────────────────────────
Info: This fn sets how many times DOS should retry a file I/O attempt
on any shared file or device.
When a file is locked, an attempt to write to it will cause an
INT 24H critical error. Before declaring the error, DOS will
retry the I/O 3 times, waiting for 1 "delay unit" between
retries.
Notes: ■ The count in CX specifies a number of arbitrary "delay units",
which depend on the speed of the CPU. A "delay unit" is the
time it takes the CPU to LOOP 65536 times. On 4.77 MHz PCs,
this equates to about 0.2 seconds. On faster PCs, it can
represent less than 0.001 seconds.
■ This is a global setting. If you change it, you should restore
the defaults (CX=1, DX=3) before terminating your program.
See Also: Fn 44H (IOCTL)
Fn 56H (Lock/Unlock File)
INT 2FH 1000H (Is SHARE.EXE Installed)
DOS Functions
-♦-