<?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[Überprüfen ob Tastatur vorhanden ist]]></title><description><![CDATA[<p>Hallo.</p>
<p>Weiß jemand, wie man kontrollieren kann ob eine Tastatur vorhanden ist?</p>
<p>Oli</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/64224/überprüfen-ob-tastatur-vorhanden-ist</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Apr 2026 08:42:42 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/64224.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 09 Feb 2004 09:07:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Überprüfen ob Tastatur vorhanden ist on Mon, 09 Feb 2004 09:07:05 GMT]]></title><description><![CDATA[<p>Hallo.</p>
<p>Weiß jemand, wie man kontrollieren kann ob eine Tastatur vorhanden ist?</p>
<p>Oli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/454902</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/454902</guid><dc:creator><![CDATA[Oli_1977]]></dc:creator><pubDate>Mon, 09 Feb 2004 09:07:05 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüfen ob Tastatur vorhanden ist on Mon, 09 Feb 2004 10:20:42 GMT]]></title><description><![CDATA[<p>Spontaner Einfall:</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &lt;tchar.h&gt;
#include &lt;setupapi.h&gt;
#include &lt;initguid.h&gt;

DEFINE_GUID(GUID_DEVCLASS_KEYBOARD,
    0x4D36E96B, 0xE325, 0x11CE, 0xBF, 0xC1, 0x08, 0x00, 0x2B, 0xE1, 0x03, 0x18);

int WINAPI _tWinMain(HINSTANCE, HINSTANCE, LPTSTR, int)
{ 
  HDEVINFO    hDevInfo; 

    hDevInfo = SetupDiGetClassDevs(&amp;GUID_DEVCLASS_KEYBOARD, NULL, NULL, DIGCF_PRESENT | DIGCF_PROFILE); 

    if(hDevInfo == INVALID_HANDLE_VALUE) 
    { 
        MessageBox(NULL, TEXT(&quot;Huh?&quot;), NULL, MB_OK);
        return(0); 
    } 

    SetupDiDestroyDeviceInfoList(hDevInfo);
    MessageBox(NULL, TEXT(&quot;Tastatur!&quot;), NULL, MB_OK);

  return(0);
}
</code></pre>
<p>Ich weiß aber nicht, ob's funktioniert. Ich habe halt überall Tastaturen dran, hDevInfo ist deswegen bei mir immer gültig.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/454946</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/454946</guid><dc:creator><![CDATA[-King-]]></dc:creator><pubDate>Mon, 09 Feb 2004 10:20:42 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüfen ob Tastatur vorhanden ist on Mon, 09 Feb 2004 10:36:56 GMT]]></title><description><![CDATA[<p>Danke, werde ich mir mal ansehen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>Oli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/454958</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/454958</guid><dc:creator><![CDATA[Oli_1977]]></dc:creator><pubDate>Mon, 09 Feb 2004 10:36:56 GMT</pubDate></item></channel></rss>