home *** CD-ROM | disk | FTP | other *** search
- {
- ══════════════════════════════════════════════════════════════════════════════
-
- Visionix DOS IOCTL Device-Oriented Functions Unit (VIOCTL)
- Copyright 1992,93 Visionix
- ALL RIGHTS RESERVED
-
- ──────────────────────────────────────────────────────────────────────────────
-
- Revision history in reverse chronological order:
-
- Initials Date Comment
- ──────── ──────── ──────────────────────────────────────────────────────────
-
- mep 02/11/93 Cleaned up code for beta release
-
- lpg 12/27/92 Created
-
- ══════════════════════════════════════════════════════════════════════════════
-
- Ioctl Device-Oriented Functions Summary
- ---------------------------------------
-
- INT 21h
-
- Func | Sub |Minor| Name | Use
- -----+-----+-----+------------------------------------+--------------------------------------
- 44h | 00h | - | Get device data | Gets the device data work used to control device
- 44h | 01h | - | Set device data | Sets the device data work used to control device
- 44h | 02h | - | Receive control data from char dev | Receives a string from char-oriented device
- 44h | 03h | - | Send control data to char device | Sends a string to char-oriented device
- 44h | 04h | - | Receive control data from block dev| Receives a block from block-oriented device
- 44h | 05h | - | Send control data to block device | Sends a block to block-oriented device
- 44h | 06h | - | Check device input status | Checks input device for readiness
- 44h | 07h | - | Check device output status | Checks output device for readiness
- 44h | 08h | - | Does dev use remov Media | Reports whether block device contains removable media
- 44h | 09h | - | Is drive remote | Reports whether block device is local or remote (network)
- 44h | 0Ah | - | Is file or device remote | Reports whether handle referencing device is local or remote
- 44h | 0Bh | - | Set sharing retry count | Sets number of retries and pause between them for a file-sharing device
-
- 44h | 0Ch | - | Generic IOCTL for char device | Sets or gets number of retries for printer devices;prepares code pages
- 44h | 0Ch | 45h | Set iteration count |
- 44h | 0Ch | 4Ah | Select code-page |
- 44h | 0Ch | 4Ch | Start code-page prepare |
- 44h | 0Ch | 4Dh | End code-page prepare |
- 44h | 0Ch | 5Fh | Set display mode |
- 44h | 0Ch | 65h | Get iteration count |
- 44h | 0Ch | 6Ah | Query selected code page |
- 44h | 0Ch | 6Bh | Query code-page prepare list |
- 44h | 0Ch | 7Fh | Get display mode |
-
- 44h | 0Dh | - | Generic IOCTL for block device | Sets/gets block device parameters; write/reads/formats/verifies tracks
- 44h | 0Dh | 40h | Set device parameters |
- 44h | 0Dh | 41h | Write track on logical drive |
- 44h | 0Dh | 42h | Format track on logical drive |
- 44h | 0Dh | 46h | Set media ID |
- 44h | 0Dh | 60h | Get device parameters |
- 44h | 0Dh | 61h | Read track on logical drive |
- 44h | 0Dh | 62h | Verify track on logical drive |
- 44h | 0Dh | 66h | Get media ID |
- 44h | 0Dh | 68h | Sense media type |
-
- 44h | 0Eh | - | Get logical drive map | Reports logical drive mapping
- 44h | 0Fh | - | Set logical drive map | Sets logical to physical drive mapping
- -----+-----+-----+------------------------------------+--------------------------------------
-
-
- NOTE: Use Function GetExtendedError to Process and Parse Error Message
-
- }
-
- Unit VShare;
-
-
- {──────────────────────────────────────────────────────────────────────────────}
-
- Function IOCTL_GetDevData( DevHandle : WORD;
- VAR DevData : WORD ) : WORD;
-
- Function IOCTL_SetDevData( DevHandle : WORD;
- DevData : WORD ) : WORD;
-
- Function IOCTL_RcvCtrlFromCharDev( DevHandle : WORD;
- BytesToRead : WORD;
- VAR Buffer : POINTER;
- VAR BytesRead : WORD ) : WORD;
-
- Function IOCTL_SendCtrlToCharDev( DevHandle : WORD;
- BytesToWrite : WORD;
- Buffer : POINTER;
- VAR BytesWritten : WORD ) : WORD;
-
- Function IOCTL_RcvCtrlFromBlockDev( DriveNum : BYTE;
- BytesToRead : WORD;
- VAR Buffer : POINTER;
- VAR BytesRead : WORD ) : WORD;
-
- Function IOCTL_SendCtrlToBlockDev( DriveNum : BYTE;
- BytesToWrite : WORD;
- Buffer : POINTER;
- VAR BytesWritten : WORD ) : WORD;
-
- Function IOCTL_GetInputStatus( DevHandle : WORD;
- VAR ErrCode : WORD ) : BYTE;
-
- Function IOCTL_GetOutputStatus( DevHandle : WORD;
- VAR ErrCode : WORD ) : BYTE;
-
- Function IOCTL_DevUseRemovMedia( DriveNum : BYTE;
- VAR ErrCode : WORD ) : BOOLEAN;
-
- Function IOCTL_IsDriveRemote( DriveNum : BYTE;
- VAR ErrCode : WORD ) : BOOLEAN;
-
- Function IOCTL_IsDevRemove( DevHandle : WORD;
- VAR ErrCode : WORD ) : BOOLEAN;
-
- Procedure IOCTL_SetShareRetryCnt( RetryCnt : WORD;
- Pause : WORD;
- VAR ErrCode : WORD );
-
-
- {---------------------------------}
- { Functions for Character Devices }
- {---------------------------------}
-
-
- {-----------------------------}
- { Functions for Block Devices }
- {-----------------------------}
-
- {──────────────────────────────────────────────────────────────────────────────}
-
- (*
- 44h | 00h | - | Get device data | Gets the device data work used to control device
- 44h | 01h | - | Set device data | Sets the device data work used to control device
- 44h | 02h | - | Receive control data from char dev | Receives a string from char-oriented device
- 44h | 03h | - | Send control data to char device | Sends a string to char-oriented device
- 44h | 04h | - | Receive control data from block dev| Receives a block from block-oriented device
- 44h | 05h | - | Send control data to block device | Sends a block to block-oriented device
- 44h | 06h | - | Check device input status | Checks input device for readiness
- 44h | 07h | - | Check device output status | Checks output device for readiness
- 44h | 08h | - | Does dev use remov Media | Reports whether block device contains removable media
- 44h | 09h | - | Is drive remote | Reports whether block device is local or remote (network)
- 44h | 0Ah | - | Is file or device remote | Reports whether handle referencing device is local or remote
- 44h | 0Bh | - | Set sharing retry count | Sets number of retries and pause between them for a file-sharing device
-
- 44h | 0Ch | - | Generic IOCTL for char device | Sets or gets number of retries for printer devices;prepares code pages
- 44h | 0Ch | 45h | Set iteration count |
- 44h | 0Ch | 4Ah | Select code-page |
- 44h | 0Ch | 4Ch | Start code-page prepare |
- 44h | 0Ch | 4Dh | End code-page prepare |
- 44h | 0Ch | 5Fh | Set display mode |
- 44h | 0Ch | 65h | Get iteration count |
- 44h | 0Ch | 6Ah | Query selected code page |
- 44h | 0Ch | 6Bh | Query code-page prepare list |
- 44h | 0Ch | 7Fh | Get display mode |
-
- 44h | 0Dh | - | Generic IOCTL for block device | Sets/gets block device parameters; write/reads/formats/verifies tracks
- 44h | 0Dh | 40h | Set device parameters |
- 44h | 0Dh | 41h | Write track on logical drive |
- 44h | 0Dh | 42h | Format track on logical drive |
- 44h | 0Dh | 46h | Set media ID |
- 44h | 0Dh | 60h | Get device parameters |
- 44h | 0Dh | 61h | Read track on logical drive |
- 44h | 0Dh | 62h | Verify track on logical drive |
- 44h | 0Dh | 66h | Get media ID |
- 44h | 0Dh | 68h | Sense media type |
-
- 44h | 0Eh | - | Get logical drive map | Reports logical drive mapping
- 44h | 0Fh | - | Set logical drive map | Sets logical to physical drive mapping
- *)
-
-