🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
2 messages
2 total messages Started by Patryk B. Thu, 20 Sep 2007 08:18
CD/DVD writer activity
#1340
Author: Patryk B.
Date: Thu, 20 Sep 2007 08:18
18 lines
1387 bytes
Hello,

Somebody ask me, can I write program that check how many CD was burn using  
CD/DVD writer.

For example.
There is office PC and I want to know how many CD's somone burn on it.

Method should be independent from software that is used to burn data.

I think it should get from cd/dvd writer status what it doing at the  
moment.
Is there any winapi function that can give that kind of information?
Is there any way to get status?

Best Regards.

Patryk B.
Re: CD/DVD writer activity
#1342
Author: Remy Lebeau (TeamB)
Date: Thu, 20 Sep 2007 09:35
24 lines
1756 bytes
"Patryk B." <pbobak@no.spam.o2.pl> wrote in message
news:op.tyx1c8h0wzezly@dune.intranet...

> Somebody ask me, can I write program that check how
> many CD was burn using CD/DVD writer.

That kind of information is not available anywhere.  Burners do not keep
track of how many discs they burn over time.

> Is there any winapi function that can give that kind of information?

You have to communicate with the burner hardware directly.

> Is there any way to get status?

The current status, yes.  You would have to send the appropriate SCSI
commands to the hardware.  Go to http://www.t10.org and download the latest
MMC (Multimedia Commands) specification.  And then use the Win32 API
DeviceIoControl() function to send commands to the hardware using SPTI (SCSI
PassThrough Interface) I/O controls.


Gambit
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads