🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.borland
Article #737

Getting info from CD

#737
From: Adam Ben-Gur
Date: Tue, 09 Jun 1998 00:00
56 lines
2610 bytes
Hello!

I need to get the copyright from a cd-rom. I have only asm
source to do it and I tried w/no success. Can you help?
Here is the info I have about it. Thanks very much!

Adam.

------------------------------ cut here ----------------------------
5.03. How do I get the copyright file name?

      You need a 38-byte block of memory to hold the copyright file
      name. This code will fill that block:

      les  BX,Buffer
      mov  CX,Drive ; must be in format 0 = A:, 1 = B:, etc.
      mov  AX,1502H
      int  2FH
      jc   error
      ;
      ; buffer is filled with the copyright file name.
      ;

      The file name is nul-terminated.

      The drive should be reset after getting the copyright file name
      before accessing the drive (see question 3.05, How do I reset
      the drive?).
----------------------------------------------------------------------
3.05. How do I reset the drive?

      First, you need the name of the device driver (see question 2.03,
      How do I get the name of the CD-ROM device driver?). Open the
      file for read/write and obtain the file handle (DOS function 3DH
      will suffice).

      Once you have the file handle, you need a one-byte block of
      memory. Call DOS IOCTL function 4403H, as shown here:

      mov  BX,FileHandle
      mov  Command,2
      lds  DX,Command
      mov  CX,1
      mov  AX,4403H
      int  21H
      jc   error
      cmp  AX,1
      jne  write_error
      ;
      ; drive should be reset
      ;

      On error (carry set), AX will hold an error code: 0001H (invalid
      function), 0005H (access denied), 0006H (invalid handle), or
      000DH (invalid data).
Technical Details
Message-ID: <357CD5F8.6EF901C5@aquanet.co.il>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10261c,e651ec865b9afee0,start
X-Google-Attributes: gid10261c,public
X-Google-Thread: 111659,e651ec865b9afee0,start
X-Google-Attributes: gid111659,public
X-Google-Thread: 108d84,e651ec865b9afee0,start
X-Google-Attributes: gid108d84,public
X-Google-Thread: 10cc59,e651ec865b9afee0,start
X-Google-Attributes: gid10cc59,public
From: Adam Ben-Gur <ben-gur@aquanet.co.il>
Subject: Getting info from CD
Date: 1998/06/09
Message-ID: <357CD5F8.6EF901C5@aquanet.co.il>
X-Deja-AN: 360931580
Content-Transfer-Encoding: 7bit
X-Cache: nntpcache 2.3.2.1 (see http://www.nntpcache.org/)
Mime-Version: 1.0
Cache-Post-Path: cache.aquanet.co.il!unknown@192.117.240.82
Content-Type: text/plain; charset=us-ascii
Organization: Aquanet LTD
Newsgroups: comp.lang.pascal.borland,comp.lang.pascal,comp.lang.pascal.misc,fidonet.pascal