home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / Amos / AMOSList-0198 / AMOSLIST / text0129.txt < prev    next >
Encoding:
Text File  |  1998-06-24  |  485 b   |  27 lines

  1. On 26-Jan-98, Jens Vang Petersen wrote:
  2.  
  3. >... How do I lock a drive (and marks it as 'busy' to all other
  4. >programs running)
  5. Try something like this:
  6.  
  7. A$="DF0:"+Chr$(0)
  8. Dreg(1)=Varptr(A$)
  9. Dreg(2)=1
  10. A=Doscall(-726)
  11.  
  12. >BTW: How do I unlock it when I'm finished ? :)
  13.  
  14. A$="DF0:"+Chr$(0)
  15. Dreg(1)=Varptr(A$)
  16. Dreg(2)=0
  17. A=Doscall(-726)
  18.  
  19.  
  20. This will only work with V36 and up (AmigaDOS 2.0+)
  21. Prior to that you had to send packets to the handler
  22. directly, and it is much more involved.
  23.  
  24. -Richard
  25.  
  26.  
  27.