473,561 Members | 3,772 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Detect CD or DVD (which is on my drive)

Hi, I'm trying to build an aplication to manage my discs (CD/DVD) and
i'm trying also to add an automatic info colector. I can access the
volume label, the size an even the date of some recorded discs... but I
can't determine whic kind of disc (CD/DVD) is on my drive.
Can anybody help me?

Thank you all in advance,

Joćo Carias

Jan 29 '06 #1
4 5190
Hello Quina,

I guess you need to use IMAPI.DLL, used to write disks.

Q> Hi, I'm trying to build an aplication to manage my discs (CD/DVD) and
Q> i'm trying also to add an automatic info colector. I can access the
Q> volume label, the size an even the date of some recorded discs... but
Q> I
Q> can't determine whic kind of disc (CD/DVD) is on my drive.
Q> Can anybody help me?
Q> Thank you all in advance,
Q>
Q> Joćo Carias
Q>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/members/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Jan 30 '06 #2
Thanks Michael. Can you tell where can I find IMAPI.DLL and some basic
hints in how to use it?

Joćo Carias

Jan 30 '06 #3
Hello Quina,

I didn't use it for a long time
I suggest to look there http://search.microsoft.com/results....=en-US&q=IMAPI
there were several samples how to use it

Q> Thanks Michael. Can you tell where can I find IMAPI.DLL and some
Q> basic hints in how to use it?

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/members/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Jan 31 '06 #4

Quina wrote:
Hi, I'm trying to build an aplication to manage my discs (CD/DVD) and
i'm trying also to add an automatic info colector. I can access the
volume label, the size an even the date of some recorded discs... but I
can't determine whic kind of disc (CD/DVD) is on my drive.
Can anybody help me?


Check out:
http://msdn.microsoft.com/library/de...eiocontrol.asp

You will need to translate to C#, but it isn't that hard.

Matt

Jan 31 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
3987
by: Stephane Belzile | last post by:
Is there a way I can detect in vb.Net the power has switched to a UPS unit in case of power failure? Thanks
3
2290
by: Richard H. Rowson | last post by:
Does anyone know of a way to detect which drive is a Zip drive (I guess in the same way that the various system variables can be queried) ?>Thanks
3
2594
by: M | last post by:
I searched the FAQ for this NG and found no answers to my question... I'm writing an application in Java (I'm not a C programmer), however I need to be able to detect WHICH drive (d:\, e:\ etc...) on a win2k machine the CDROM drive is on. I assume that C or C++ can do this. The C/C++ code will then be wrapped in a JNI layer to be used by the...
8
13623
by: Hayato Iriumi | last post by:
Hello, I'm trying to find a way to detect whether CD-ROM was inserted into the CD-ROM drive using C#. Does anyone have any idea how to do this? WMI? Win32 API? TIA
3
3761
by: Sped | last post by:
Hi, I'm looking for some code to monitor for when an external drive is connected to a computer (USB ThumbDrive, External Hard Drive, etc.) and is assigned a drive letter. I'd want my code to trigger off of the mounting process so I can search for a specific file on that hard drive (which is always guaranteed to be in a specific spot).
9
37181
by: Paul Steele | last post by:
I am writing a C# app that needs to periodically poll for cdroms and usb storage device insertions. I've looked at the WMI functions but haven't found anything all that useful. The closest is Win32_DiskDrive, but it doesn't seem to return any information on cdrom devices. I suspect there might be a Win32 API call, but I haven't found any info...
3
13271
by: ladal | last post by:
Hi I just want to know how do I detect an usb drive when it's plug and retrieve his name, in vb.net Thanx
1
5580
by: Steve Marshall | last post by:
Hi All, Apologies if this has come up before, but how can I set up something that will notify me when a removeable drive (like a USB drive or CompactFlash card) is inserted into its slot? Ideally I would like some sort of event that would call my code when it happens. The FileSystemWatcher object doesn't seem able to do this, unless I am...
1
2222
by: poornimaniranjan | last post by:
Hello... I am new to VC++ environment..I am able to detect the CD-ROM drive using GetDriveType API . but this information is not enough for me. I need to know whether the drive is writer or reader. one more thing is i need to know whether CD is present in the drive or not please help me out Thanks poornima
0
1719
by: D2 | last post by:
Hi, I'm working on a C# windows service that should detect when a USB drive is plugged in. After drive letter has been assigned, start using that drive. On the other side, when user clicks on the eject button, stop using the drive so that windows can safely remove the hardware. Could someone let me know where to start? what...
0
7637
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7558
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8072
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7605
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7924
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6195
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3609
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3591
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2055
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.