From: Remy Lebeau on 3 Jan 2008 00:28 "bilm" <fence61775(a)mypacks.net> wrote in message news:ejAQvHcTIHA.5400(a)TK2MSFTNGP04.phx.gbl... > Solution : > Hit the eject button and eye-ball the disc. > If this is for an app then pop-up a message box asking the user > to place a CD-RW (or DVD) in the drive and then click OK. > After you catch the OK, pause for about 40 sec. then proceed. In my case, I was writing (well, updating anyway) an app that required a DVD-R/RW disc, so I had to program in checks to make sure the user didn't try to put a different type of disc in before the app started writing data to it. I went the SPTI/ASPI approach for that. Gambit
From: bilm on 3 Jan 2008 21:22 "Remy Lebeau" <no.spam(a)no.spam.com> wrote in message > In my case, I was writing (well, updating anyway) an app that required a > DVD-R/RW disc, so I had to program in checks to make sure the user didn't > try to put a different type of disc in before the app started writing data > to it. I went the SPTI/ASPI approach for that. > > > Gambit Yes if you need to ID the disc type you have no choice. Do you use Get Configuration/Profile number? I think it's an ideal way to do it. If your profile numbers are up-to-date per MMC 6/MtFuji 7, it'll ID any possible disc type the user could put into a drive. There's also an ioctl get config named IOCTL_CDROM_GET_CONFIGURATION (in DDK/ntddcdrm.h & ntddmmc.h). The ioctl is FILE_READ_ACCESS and you only need GENERIC_READ, FILE_SHARE_READ for the DevIO handle. So you would be able to avoid the SPTI/Admin Privs issue. I have tested it on my XP/SP2 system and it works in the user account just fine. The catch is I'm not sure if it is supported in Win 2K or Vista. I've read posts in the MS NGs saying at least some of the multi-media stuff in those headers was no longer supported. Maybe one of the resident gurus on this NG knows. On the other hand, all the CD/DVD recording software I'm familiar with uses the SPTI to send their scsi commands so it can't be too much of an issure. It's what I use. bilm
From: bilm on 3 Jan 2008 21:27 "marc" <marc.tessis(a)caramail.com> wrote in message > No, there are others better and reliable solutions. > Ask on usenet... I'm not aware of such solutions. I'm interested but you leave me with too little to go on. Can you please be more specific. At least tell us what news group(s) ... and maybe a little hint about what these solutions involve ? bilm
From: Remy Lebeau on 3 Jan 2008 22:42 "bilm" <fence61775(a)mypacks.net> wrote in message news:u750hlnTIHA.3916(a)TK2MSFTNGP02.phx.gbl... > Do you use Get Configuration/Profile number? Profile numbers, yes. Gambit
From: lilian on 4 Jan 2008 01:49 bilm wrote: > "marc" <marc.tessis(a)caramail.com> wrote in message > >>No, there are others better and reliable solutions. >>Ask on usenet... > > > I'm not aware of such solutions. I'm interested but you > leave me with too little to go on. > > Can you please be more specific. > At least tell us what news group(s) ... Given above.
First
|
Prev
|
Pages: 1 2 Prev: Kernel Space -> User Space IPC Next: Still confused why working set larger than virtual memory |