<?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[Event bei neu erkannter Hardware?]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich suche nach dem Event, das erzeigt wird, wenn eine neue Hardware erkannt wurde.<br />
Wie könnte dieser lauten?</p>
<p>Grüße<br />
TheNoName</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/230675/event-bei-neu-erkannter-hardware</link><generator>RSS for Node</generator><lastBuildDate>Thu, 09 Apr 2026 23:41:55 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/230675.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 30 Dec 2008 17:36:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Event bei neu erkannter Hardware? on Tue, 30 Dec 2008 17:36:27 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich suche nach dem Event, das erzeigt wird, wenn eine neue Hardware erkannt wurde.<br />
Wie könnte dieser lauten?</p>
<p>Grüße<br />
TheNoName</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1637391</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1637391</guid><dc:creator><![CDATA[thenoname]]></dc:creator><pubDate>Tue, 30 Dec 2008 17:36:27 GMT</pubDate></item><item><title><![CDATA[Reply to Event bei neu erkannter Hardware? on Tue, 30 Dec 2008 19:21:09 GMT]]></title><description><![CDATA[<p>was der Titel sagt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1637454</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1637454</guid><dc:creator><![CDATA[CStern]]></dc:creator><pubDate>Tue, 30 Dec 2008 19:21:09 GMT</pubDate></item><item><title><![CDATA[Reply to Event bei neu erkannter Hardware? on Tue, 30 Dec 2008 22:00:54 GMT]]></title><description><![CDATA[<p>Jain, danke trotzdem.<br />
Leider wird hier z.B. bei einer Maus immer DBT_DEVNODES_CHANGED gesendet.<br />
Und das beim Einstecken und Ausstecken.<br />
Damit kann ich keinen Unterschied erkennen, nur halt, das was passiert ist.<br />
Speichersticks arbeiten korrekt mit DBT_DEVICEARRIVAL, andere Geräte nicht.<br />
z.B. USB Mäuse, Tastaturen und HID Geräte gehen nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1637511</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1637511</guid><dc:creator><![CDATA[thenoname]]></dc:creator><pubDate>Tue, 30 Dec 2008 22:00:54 GMT</pubDate></item><item><title><![CDATA[Reply to Event bei neu erkannter Hardware? on Wed, 31 Dec 2008 09:46:07 GMT]]></title><description><![CDATA[<p>Vielleicht hilft ja Folgendes:<br />
<a href="http://www.toolbox-mag.de/data/tx22005artikel1.pdf" rel="nofollow">http://www.toolbox-mag.de/data/tx22005artikel1.pdf</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1637640</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1637640</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Wed, 31 Dec 2008 09:46:07 GMT</pubDate></item><item><title><![CDATA[Reply to Event bei neu erkannter Hardware? on Wed, 31 Dec 2008 11:53:55 GMT]]></title><description><![CDATA[<p>thenoname schrieb:</p>
<blockquote>
<p>Jain, danke trotzdem.<br />
Leider wird hier z.B. bei einer Maus immer DBT_DEVNODES_CHANGED gesendet.<br />
Und das beim Einstecken und Ausstecken.<br />
Damit kann ich keinen Unterschied erkennen, nur halt, das was passiert ist.<br />
Speichersticks arbeiten korrekt mit DBT_DEVICEARRIVAL, andere Geräte nicht.<br />
z.B. USB Mäuse, Tastaturen und HID Geräte gehen nicht.</p>
</blockquote>
<p>Nach der Doku aber seltsam:</p>
<p>wParam<br />
Event that has occurred. This parameter can be one of the following values from the Dbt.h header file. Value Meaning<br />
DBT_CONFIGCHANGECANCELED<br />
0x0019 A request to change the current configuration (dock or undock) has been canceled.<br />
DBT_CONFIGCHANGED<br />
0x0018 The current configuration has changed, due to a dock or undock.<br />
DBT_CUSTOMEVENT<br />
0x8006 A custom event has occurred.<br />
Windows NT 4.0 and Windows 95: This value is not supported.<br />
DBT_DEVICEARRIVAL<br />
0x8000 A device or piece of media has been inserted and is now available.<br />
DBT_DEVICEQUERYREMOVE<br />
0x8001 Permission is requested to remove a device or piece of media. Any application can deny this request and cancel the removal.<br />
DBT_DEVICEQUERYREMOVEFAILED<br />
0x8002 A request to remove a device or piece of media has been canceled.<br />
DBT_DEVICEREMOVECOMPLETE<br />
0x8004 A device or piece of media has been removed.<br />
DBT_DEVICEREMOVEPENDING<br />
0x8003 A device or piece of media is about to be removed. Cannot be denied.<br />
DBT_DEVICETYPESPECIFIC<br />
0x8005 A device-specific event has occurred.<br />
DBT_DEVNODES_CHANGED<br />
0x0007 A device has been added to or removed from the system.<br />
Windows NT 4.0 and Windows Me/98/95: This value is not supported.<br />
DBT_QUERYCHANGECONFIG<br />
0x0017 Permission is requested to change the current configuration (dock or undock).<br />
DBT_USERDEFINED<br />
0xFFFF The meaning of this message is user-defined.</p>
<p>lParam<br />
Pointer to a structure that contains event-specific data. Its format depends on the value of the wParam parameter. For more information, refer to the documentation for each event.</p>
<p>Erwartet man beim auftreten dieses Events das andocken oder entfernen eines Wechselspeichermediums (Stick etc) so lässt sich die Änderung mE über die Volume API's leicht nachvollziehen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1637683</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1637683</guid><dc:creator><![CDATA[CStern]]></dc:creator><pubDate>Wed, 31 Dec 2008 11:53:55 GMT</pubDate></item><item><title><![CDATA[Reply to Event bei neu erkannter Hardware? on Wed, 31 Dec 2008 12:30:56 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich muss mich korrigieren, es kommt leider immer DBT_DEVNODES_CHANGED = Siebenerbotschaft. Auch Speichersticks oder USB Comports, welche in diversen Foren beschrieben werden kommen bei mir als DBT_DEVNODES_CHANGED an. Allerdings ist das wohl ein weit verbreitetes Problem das viele haben und stattdessen device notifications durchstöbern.<br />
Kann es sein, das diese Funktion nur mit bestimten Motherboards und deren USB Controller funktioniert?<br />
Selbst die vorkompilierten Demoprogramme von Codeproject erkennen hier nichts.</p>
<p>Der Artikel ist gut <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /><br />
Besten Dank</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1637697</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1637697</guid><dc:creator><![CDATA[thenoname]]></dc:creator><pubDate>Wed, 31 Dec 2008 12:30:56 GMT</pubDate></item><item><title><![CDATA[Reply to Event bei neu erkannter Hardware? on Wed, 31 Dec 2008 16:17:20 GMT]]></title><description><![CDATA[<p>Sage, was für Betriebssystem ist das?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1637801</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1637801</guid><dc:creator><![CDATA[CStern]]></dc:creator><pubDate>Wed, 31 Dec 2008 16:17:20 GMT</pubDate></item><item><title><![CDATA[Reply to Event bei neu erkannter Hardware? on Wed, 31 Dec 2008 18:41:28 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>es ist XP Professional.<br />
Unter Vista im Emulator funktioniert es leider auch nicht <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>Immer nur DBT_DEVNODES_CHANGED, ohne Info über ankommend oder gehend.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1637848</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1637848</guid><dc:creator><![CDATA[thenoname]]></dc:creator><pubDate>Wed, 31 Dec 2008 18:41:28 GMT</pubDate></item><item><title><![CDATA[Reply to Event bei neu erkannter Hardware? on Wed, 31 Dec 2008 21:01:20 GMT]]></title><description><![CDATA[<p>hm klar.<br />
Eine nullachtfünfzehn - Message.</p>
<p>Tipp: Schaue Dir dazu diese Funtion an:</p>
<p>RegisterDeviceNotification() mittels dieser lassen sich diese Broadcast-Device-Messages näher definieren, so dass dann brauchbare Werte kommen.</p>
<p>Leider habe ich diese Funk. noch nie verwendet.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1637868</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1637868</guid><dc:creator><![CDATA[CStern]]></dc:creator><pubDate>Wed, 31 Dec 2008 21:01:20 GMT</pubDate></item></channel></rss>