<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Prüfen ob CDLaufwerk offen]]></title><description><![CDATA[<p>Ich möchte gerne wissen ob mein CD-Laufwerk offen oder geschlossen ist.<br />
Mit MCI geht es leider nicht.<br />
Aber ich habe folgendes im Internet gefunden.<br />
<a href="http://www.marcj.com/cdrom.html#Q3.07" rel="nofollow">http://www.marcj.com/cdrom.html#Q3.07</a></p>
<p>Da geht es zwar um MSDOS aber di Grundlaage ist laut FAQ IOCTL input/output.<br />
Ich weiß, dass mal auch mit DeviceIoControl an die IOCTL rankommt.</p>
<p>Weiß jemand wie genau das funktionieren soll ?<br />
Eine fertige Funktion währe mir am liebsten.<br />
Wenn jemand einen andere Art und Weise kennt um zu überprüfen ob das Laufwerk offen ist nehme ich dass natürlich auch gerne.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/110521/prüfen-ob-cdlaufwerk-offen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 22:33:45 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/110521.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 21 May 2005 18:25:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Prüfen ob CDLaufwerk offen on Sat, 21 May 2005 18:25:56 GMT]]></title><description><![CDATA[<p>Ich möchte gerne wissen ob mein CD-Laufwerk offen oder geschlossen ist.<br />
Mit MCI geht es leider nicht.<br />
Aber ich habe folgendes im Internet gefunden.<br />
<a href="http://www.marcj.com/cdrom.html#Q3.07" rel="nofollow">http://www.marcj.com/cdrom.html#Q3.07</a></p>
<p>Da geht es zwar um MSDOS aber di Grundlaage ist laut FAQ IOCTL input/output.<br />
Ich weiß, dass mal auch mit DeviceIoControl an die IOCTL rankommt.</p>
<p>Weiß jemand wie genau das funktionieren soll ?<br />
Eine fertige Funktion währe mir am liebsten.<br />
Wenn jemand einen andere Art und Weise kennt um zu überprüfen ob das Laufwerk offen ist nehme ich dass natürlich auch gerne.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/793124</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/793124</guid><dc:creator><![CDATA[Tobias1986]]></dc:creator><pubDate>Sat, 21 May 2005 18:25:56 GMT</pubDate></item><item><title><![CDATA[Reply to Prüfen ob CDLaufwerk offen on Sat, 21 May 2005 18:45:39 GMT]]></title><description><![CDATA[<p>prüfen geht leider net genau sowenig die prüfung ob etwas im laufwerk liegt z.b. CD, DVD, Rohling, Salami, Pornoschnippsel oder Krümmel</p>
]]></description><link>https://www.c-plusplus.net/forum/post/793138</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/793138</guid><dc:creator><![CDATA[&#x27;&#x27;&#x27;]]></dc:creator><pubDate>Sat, 21 May 2005 18:45:39 GMT</pubDate></item><item><title><![CDATA[Reply to Prüfen ob CDLaufwerk offen on Sat, 21 May 2005 19:59:18 GMT]]></title><description><![CDATA[<p>was willst de denn damit machen? Vllt kann mam dir ja helfen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/793170</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/793170</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Sat, 21 May 2005 19:59:18 GMT</pubDate></item><item><title><![CDATA[Reply to Prüfen ob CDLaufwerk offen on Sun, 22 May 2005 08:44:38 GMT]]></title><description><![CDATA[<p>Ich habe mir ein Programm geschrieben das mir im Systray immer sagt ob und welche CD im Laufwerk ist.<br />
Jetzt soll es mir auch noch sagen ob das Laufwerk offen ist.<br />
Damit ich es schliesen/öffnen kann. Der Menübefehl soll sich automtisch anpassen, je nachdem ob das Laufwerk offen oder zu ist.</p>
<p>Herausfinden ob eine CD im Laufwerk ist übrigens kein Problem.<br />
Für die Unwissenden:<br />
Einfach mit GetVolumeInformation die Seriennummer des Datenträgers ermitteln, ist diese 0, so befindet sich keine CD im Laufwerk.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/793328</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/793328</guid><dc:creator><![CDATA[Tobias1986]]></dc:creator><pubDate>Sun, 22 May 2005 08:44:38 GMT</pubDate></item><item><title><![CDATA[Reply to Prüfen ob CDLaufwerk offen on Sun, 22 May 2005 12:49:15 GMT]]></title><description><![CDATA[<p>windows schickt an jedes programm beim oeffnen bzw. schliessen eine message. in der message steht dann ob geoeffnet oder geschlossen wurde. wennst die msgs mitlogst solltest immer wissen was los ist.</p>
<p>Meep Meep</p>
]]></description><link>https://www.c-plusplus.net/forum/post/793490</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/793490</guid><dc:creator><![CDATA[Meep Meep]]></dc:creator><pubDate>Sun, 22 May 2005 12:49:15 GMT</pubDate></item><item><title><![CDATA[Reply to Prüfen ob CDLaufwerk offen on Sun, 22 May 2005 18:23:39 GMT]]></title><description><![CDATA[<p>Welche Message ist dass denn, denn ich habe mal eben schnell ein Fenster gesubclassed aber beim öffnen des CD-Laufwerks keine Message erhalten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/793752</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/793752</guid><dc:creator><![CDATA[Tobias1986]]></dc:creator><pubDate>Sun, 22 May 2005 18:23:39 GMT</pubDate></item><item><title><![CDATA[Reply to Prüfen ob CDLaufwerk offen on Sun, 22 May 2005 19:17:21 GMT]]></title><description><![CDATA[<p>also Spy++ sagt, man bekommt eine WM_DEVICECHANGE nachricht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/793798</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/793798</guid><dc:creator><![CDATA[Herr-Vorragend]]></dc:creator><pubDate>Sun, 22 May 2005 19:17:21 GMT</pubDate></item><item><title><![CDATA[Reply to Prüfen ob CDLaufwerk offen on Sun, 22 May 2005 20:31:14 GMT]]></title><description><![CDATA[<p>hola</p>
<p>auszug aus newsgroups:</p>
<pre><code>Each time something changes in the hardware, the Windows system
broadcasts the WM_DEVICECHANGE = &amp;H219 message.
wParam parameter of the message contains the value of the specific event
and the lParam contains pointer to the address of a structure that
contains event-specific data. Its meaning depends on the given event.

When the CDROM door is opened wParam = DBT_DEVICEREMOVECOMPLETE, when it
is closed  wParam = DBT_DEVICEARRIVAL.
</code></pre>
<p>Meep Meep</p>
]]></description><link>https://www.c-plusplus.net/forum/post/793843</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/793843</guid><dc:creator><![CDATA[Meep Meep]]></dc:creator><pubDate>Sun, 22 May 2005 20:31:14 GMT</pubDate></item><item><title><![CDATA[Reply to Prüfen ob CDLaufwerk offen on Mon, 23 May 2005 10:39:28 GMT]]></title><description><![CDATA[<p>Das funktioniert ja wirklich <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /> aber leider funktioniert es nur wenn bei zumachen des CD-Laufwerks eine CD eingelegt wurde und beim öffnen eine CD drin war. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>Kennt jemand jemand vielleicht noch eine andere Lösung.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/794051</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/794051</guid><dc:creator><![CDATA[Tobias1986]]></dc:creator><pubDate>Mon, 23 May 2005 10:39:28 GMT</pubDate></item><item><title><![CDATA[Reply to Prüfen ob CDLaufwerk offen on Mon, 23 May 2005 11:38:48 GMT]]></title><description><![CDATA[<p>Gefunden <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>Die Bibliothek BassCD.dll stellt diese Funktion ganz bequem über</p>
<pre><code class="language-cpp">BOOL WINAPI BASS_CD_DoorIsOpen(
    DWORD drive
);
</code></pre>
<p>zur Verfügung. <a href="http://www.un4seen.com" rel="nofollow">http://www.un4seen.com</a></p>
<p>Kann mir vielleicht jemand (mit etwas Assembler Erfahrung) sagen wie genau die Dll das macht, damit ich mit meinen Programm nicht immer umständlich diese Dll mitliefern muss?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/794092</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/794092</guid><dc:creator><![CDATA[Tobias1986]]></dc:creator><pubDate>Mon, 23 May 2005 11:38:48 GMT</pubDate></item><item><title><![CDATA[Reply to Prüfen ob CDLaufwerk offen on Mon, 23 May 2005 13:26:44 GMT]]></title><description><![CDATA[<p>Ich denke mal die schicken einfach ein TEST UNIT READY per DeviceIoControl ans laufwerk</p>
]]></description><link>https://www.c-plusplus.net/forum/post/794186</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/794186</guid><dc:creator><![CDATA[CMatt]]></dc:creator><pubDate>Mon, 23 May 2005 13:26:44 GMT</pubDate></item><item><title><![CDATA[Reply to Prüfen ob CDLaufwerk offen on Tue, 24 May 2005 10:12:52 GMT]]></title><description><![CDATA[<p>Ich sehe da nur Konstanten in der MSDN bezüglich DeviceIoControl wie genau muss der aufruf aussehen ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/794858</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/794858</guid><dc:creator><![CDATA[Tobias1986]]></dc:creator><pubDate>Tue, 24 May 2005 10:12:52 GMT</pubDate></item><item><title><![CDATA[Reply to Prüfen ob CDLaufwerk offen on Tue, 24 May 2005 10:39:34 GMT]]></title><description><![CDATA[<p>Also ich sehe in der MSDN über <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/deviceiocontrol.asp" rel="nofollow">DeviceIoControl</a> mehr als nur Konstanten...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/794875</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/794875</guid><dc:creator><![CDATA[MSDN]]></dc:creator><pubDate>Tue, 24 May 2005 10:39:34 GMT</pubDate></item><item><title><![CDATA[Reply to Prüfen ob CDLaufwerk offen on Tue, 24 May 2005 11:51:48 GMT]]></title><description><![CDATA[<p>Ich meine natürlich wlchen ControlCode ich bei dwIoControlCode verwenden soll.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/794938</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/794938</guid><dc:creator><![CDATA[Tobias1986]]></dc:creator><pubDate>Tue, 24 May 2005 11:51:48 GMT</pubDate></item><item><title><![CDATA[Reply to Prüfen ob CDLaufwerk offen on Tue, 24 May 2005 15:21:39 GMT]]></title><description><![CDATA[<p>IOCTL_SCSI_PASS_THROUGH_DIRECT</p>
<p>Hier was über das TEST UNIT READY kommando:<br />
<a href="http://www.linuxhaven.de/dlhp/HOWTO/DE-SCSI-Programmierung-HOWTO-10.html" rel="nofollow">http://www.linuxhaven.de/dlhp/HOWTO/DE-SCSI-Programmierung-HOWTO-10.html</a><br />
Hier deine struktur:<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/storage/hh/storage/structs-scsibus_64c46eef-e5bc-4e81-a479-2bdbd93605e7.xml.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/storage/hh/storage/structs-scsibus_64c46eef-e5bc-4e81-a479-2bdbd93605e7.xml.asp</a></p>
<p>jetzt nur noch mit den infos aus link 1 das Cdb attribut (SCSI command) link 2 füllen das ganze ans drive schicken (falls du ein beispiel brauchst: <a href="http://cvs.gnome.org/viewcvs/nautilus-cd-burner/transport.hxx?rev=1.5" rel="nofollow">http://cvs.gnome.org/viewcvs/nautilus-cd-burner/transport.hxx?rev=1.5</a> Scsi_Command - natürlich nur die WIN32 version für interessant <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /> )</p>
]]></description><link>https://www.c-plusplus.net/forum/post/795147</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/795147</guid><dc:creator><![CDATA[CMatt]]></dc:creator><pubDate>Tue, 24 May 2005 15:21:39 GMT</pubDate></item><item><title><![CDATA[Reply to Prüfen ob CDLaufwerk offen on Wed, 25 May 2005 17:39:15 GMT]]></title><description><![CDATA[<p>Untern dem Link steht aber, dass man damit ermittelt ob ein Medium im Luafwerk ist, ich möchte aber wissen ob dass CD Laufwerk offen oder geschlossen ist (unabhängig davon ob ein Mdeium darin liegt).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/796109</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/796109</guid><dc:creator><![CDATA[Tobias1986]]></dc:creator><pubDate>Wed, 25 May 2005 17:39:15 GMT</pubDate></item><item><title><![CDATA[Reply to Prüfen ob CDLaufwerk offen on Sun, 20 Aug 2006 13:26:44 GMT]]></title><description><![CDATA[<p>Hmm... geht das jetz noch weiter? Hat jmd ne Lsg???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1120895</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1120895</guid><dc:creator><![CDATA[Dr. Eppoh]]></dc:creator><pubDate>Sun, 20 Aug 2006 13:26:44 GMT</pubDate></item></channel></rss>