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.
DSK_SYNC (1.2)
◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_DOSDEVIOCTL
USHORT DosDevIOCtl(pbBuffer, pbCommand, 0x005D, 0x0008, hDevice)
PBYTE pbBuffer; /* pointer to buffer with data */
PBYTE pbCommand; /* pointer to structure with command */
HFILE hDevice; /* device handle */
The DSK_SYNC function synchronizes disk I/O operations.
Parameter Description
────────────────────────────────────────────────────────────────────────────
pbBuffer Not used; must be zero.
pbCommand Points to the synchronization operation.
hDevice Identifies the disk drive that receives the device-control
function. The handle must have been created previously by using
the DosOpen function.
Return Value
The return value is zero if the function is successful or an error value if
an error occurs.
Comments
Some I/O operations cannot be overlapped with disk operations. This IOCtl
function allows the disk device driver to be instructed to complete
in-process operations, and then queue all further requests for disk I/O. A
second call must be made, with pbCommand set to 0x0000, to instruct the disk
device driver to release queued disk I/O and resume normal processing.
See Also
DosOpen
♦