<?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[laufwerk überprüfen]]></title><description><![CDATA[<p>wie kann ich mit C++(winapi oder mfc) überprüfen, ob ein (cd-)laufwerk offen oder zu ist ?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/142656/laufwerk-überprüfen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 20:28:21 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/142656.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 01 Apr 2006 16:09:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to laufwerk überprüfen on Sat, 01 Apr 2006 16:09:40 GMT]]></title><description><![CDATA[<p>wie kann ich mit C++(winapi oder mfc) überprüfen, ob ein (cd-)laufwerk offen oder zu ist ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1028689</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1028689</guid><dc:creator><![CDATA[Webby123]]></dc:creator><pubDate>Sat, 01 Apr 2006 16:09:40 GMT</pubDate></item><item><title><![CDATA[Reply to laufwerk überprüfen on Sat, 01 Apr 2006 16:38:18 GMT]]></title><description><![CDATA[<p>Ich kann Dir nur sagen, wie man das Laufwerk auf/zu macht:</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt; 
#include &lt;tchar.h&gt; 
#include &lt;stdio.h&gt; 

int _tmain() 
{ 
  DWORD dwBytes; 
  HANDLE hCdRom = CreateFile(_T(&quot;\\\\.\\M:&quot;), GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL); 
  if (hCdRom == INVALID_HANDLE_VALUE) 
  { 
    _tprintf(_T(&quot;Error: %x&quot;), GetLastError()); 
    return 1; 
  } 
  // Open the door: 
  DeviceIoControl(hCdRom, IOCTL_STORAGE_EJECT_MEDIA, NULL, 0, NULL, 0, &amp;dwBytes, NULL); 

  Sleep(1000);

  // Close the door: 
  DeviceIoControl(hCdRom, IOCTL_STORAGE_LOAD_MEDIA, NULL, 0, NULL, 0, &amp;dwBytes, NULL); 

  CloseHandle(hCdRom); 
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1028709</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1028709</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sat, 01 Apr 2006 16:38:18 GMT</pubDate></item></channel></rss>