home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
sector.zip
/
sector.doc
< prev
Wrap
Text File
|
1994-04-12
|
1KB
|
56 lines
Documentation SECTOR.DLL
In the sector.dll are three functions as REXX-extension.
The are loaded by :
call RxFuncAdd 'QDrive', 'sector', 'QDrive'
call RxFuncAdd 'ReadSect', 'sector', 'ReadSect'
call RxFuncAdd 'WritSect', 'sector', 'WritSect'
QDrive has a driveletter as argument and returns some drive-info.
Example :
di = QDRIVE('c:')
The string di contains 5 numbers :
1.) number of sectors of the drive
2.) number of cylinders of the drive
3.) number of heads
4.) number of sectors per track
5.) number of bytes per sector (disks=512, CDROM=2048 !!)
ReadSect read one sector. The first parameter is the drive-letter. The
second parameter is the sector-number to read. The result is a 512 byte
long string.
Example:
buffer = ReadSect('a:',7)
WritSect writes one sector. The first parameter is the drive-letter. The
second parameter is the sector-number to read. The third parameter is a
512 byte long string, which will be written to the specified sector.
The result is 0 for no-error and 108 if the drive cannot be locked
Example:
rc = WritSect('a:',7, buffer)
This Software may freely be distributed.
No warrenty at all. Be careful with WritSect (possible data-damage !)
If you need the sourcecode, just ask me.
Copyright 1994 Thomas Christinck, Braunschweig CIS 100031,41