Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

getting disc type

Name: Anonymous 2007-06-08 19:05 ID:PHcw//xU

I'm writing a program in C# that I can use to index my burnt cd/dvds with so I can search them and stuff. I have been trying to find out how you can detect what type of disc is in the drive but all I can find in the Windows API is shit old functions for getting what type of floppy is in a floppy drive, nothing for cd/dvds. Anybody knows how to do this?

Name: Anonymous 2007-06-08 19:48 ID:Heaven

Don't make a candle after somebody's invented the candle.

Use Google.

Name: Anonymous 2007-06-08 19:48 ID:ZnvWS7BK

>>2
what

Name: Anonymous 2007-06-08 19:50 ID:CXlABo5M


>>3
lol, i think it's some foreign way of saying "don't reinvent the wheel"

Name: Anonymous 2007-06-08 20:41 ID:PHcw//xU

>>2
Why don't you help me instead of acting superior. And I can't find anything on google.

Name: Anonymous 2007-06-08 20:54 ID:bwooetJE

When I cracked shit, I remember I used to look for calls to GetDriveType*.

Name: Anonymous 2007-06-08 20:55 ID:iEgDepla

>>5
being superior is his way of helping

Name: Anonymous 2007-06-08 21:03 ID:PHcw//xU

>>6
Thanks, but GetDriveType only gets the type of the drive, not the type of the media in the drive.

Name: Anonymous 2007-06-08 23:10 ID:Heaven

>>5
It's your job to help meeeeeeeeeeee because I'm a whiny lazy dumbfuck!!1

Also drive capacity. And sage.

Name: Anonymous 2007-06-09 5:27 ID:IcHkfaK2

Name: Anonymous 2007-06-09 5:53 ID:RXI+RPu4

DO NOT INVENTED CANDLE AFTER CANDLE HAS BEEN INVENT

Name: Anonymous 2007-06-09 8:53 ID:A57mjApC

Fuck you all, I invented the candle.

Name: Anonymous 2007-06-09 10:33 ID:RXI+RPu4

Java = Candle
C = Lightbulb
Ruby = Damp Match

Name: Anonymous 2007-06-09 11:16 ID:t1g8Mziz

MOTHERFUCKERS IV GOT A VIP QUALITY CHOPPER TO CHOP UR CANDLES!!!!

Name: Anonymous 2007-06-09 12:59 ID:Heaven

>>13
Lisp = THE LIGHT OF A THOUSAND SUNS

Name: Anonymous 2007-06-09 18:16 ID:4dRodDbX

>>9

shit you're dumb
this is a programming forum you know, you're allowed to ask questions...

drive capacity what? eh can you be more specific

If you don't get it I want to find out what TYPE of disc is in the drive.

Name: Anonymous 2007-06-09 20:50 ID:RXI+RPu4

>>15
PHP = Spoon

Name: Anonymous 2007-06-09 21:00 ID:Y6A8DIPH

>>1
do you mean to get whether or not you have a cd or dvd in the drive? couldn't you just check the max capacity? (700mb for cdr, 4.5gb for dvds)

Name: Anonymous 2007-06-09 21:37 ID:jUPDKvDE

>>18
Heh heh, you said "cdr"

Name: Anonymous 2007-06-09 23:12 ID:Heaven

>>19
My other car is a cdr.

Name: Anonymous 2007-06-10 0:02 ID:Heaven

>>16
What >>18 had to think up for you. Anyone with half a brain would have been able to deduce that, but apparently you don't even have that much.

Name: Anonymous 2007-06-10 5:08 ID:Heaven

IF U WERE DROPPED TO /opt TOMORROW, I WOULDNT GO 2 UR DELETION CUZ ID B N UPSTREAM BUGZILLA

FLAMIN DA CUNT THAT MADE UR EBUILD!
     __   
   .'  `. 
   |a_a  |
   \<_)__/
   /(   )\
  |\`> < /\
  \_|=='|_/

WE TRUE NERDS
WE OPTIMIZE OUR CFLAGS TOGETHER
WE TALKIN ON IRC WITH www.opera.com TOGETHER
send this PENGUIN to every thread you care about including this one if you care. C how many

times you get this, if you get 256 your A TRUE NERD

Name: Anonymous 2007-06-10 16:52 ID:9HCugSfS

>>18
Well, I was thinking more along the lines of DVD-R, DVD-R DL, DVD+R, DVD-RW, DVD-RAM, CD-R, CD-RW etc.

But I have tried using your method and it seems like you only can get the ammount of data burned on a disc NOT the capacity of the disc, once you have burnt it. This will of course make that method very inaccurate because many times discs are not completely full. For example distinguishing between 650MB and 700MB CDs might be inaccurate. Maybe there is a way to get the capacity, i haven't looked into that enough.

>>21
Did I hurt your feelings or something?

Name: Anonymous 2007-06-10 17:01 ID:x+RH+PwR

>>20
shutup suave yoshi lisp

Name: Anonymous 2007-06-11 1:01 ID:Heaven

>>23
Yeah. Boo hoo.

Image Mastering API, or IMAPI. Google it.

sage for the sake of consistency.

Name: Anonymous 2007-06-11 1:21 ID:rGvACX7S

......................... ,--,-,
........,--,......_..../( ,'')'-'~--,
......./::,-',',')(,,''-, /:::_::::::::\
.......\://(.\-':-,.>. ||:/. ):::::::::|  >>24
......(/.)...--~'/....)|\ .....--,::-''
,-,,--~--,::.::/,---,/./: |....,-'
'-,,.'.'.-~'''¯//....,/./ :/...\
....--.,--',¯...>--':: :/....|
.....\('''''')'-,.)./:::: /,,..../
......\,\''',,\-/./:--''' (_\./-,
......,--\;;;;;;/........ ,-'.\,/
.....//::-,,,,,,-' ' ''' '`
.....\\::/::/

Name: Anonymous 2011-02-04 15:44

Don't change these.
Name: Email:
Entire Thread Thread List