<?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[Keyboardhook]]></title><description><![CDATA[<pre><code class="language-cpp">LRESULT CALLBACK LowLevelKeyboardProc( int nCode, WPARAM wParam, LPARAM lParam );

int main(int argc, char* argv[])
{
   HINSTANCE myInstance = GetModuleHandle(NULL);
   // Register Hook function
   SetWindowsHookEx(13, LowLevelKeyboardProc,myInstance,0);  
   MSG msg;
   while(GetMessage(&amp;msg,NULL,0,0) &gt; 0) {
      TranslateMessage(&amp;msg);
      DispatchMessage(&amp;msg);
   }
   return 0;
}

LRESULT CALLBACK LowLevelKeyboardProc( int nCode, WPARAM wParam, LPARAM lParam ) {
   printf(&quot;%d\n&quot;, nCode);
   return 0;
}
</code></pre>
<p>Hallo,<br />
diesen Code hier fand ich im Forum.<br />
Es ist aber egal welche Taste ich drücke ich erhalte immer 0 als Ausgaben.<br />
Soweit ich es mitbekommen habe hat es was mit KBDLLHOOKSTRUCT Struktur zu tun.<br />
Kann mir jemand weiterhelfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/222078/keyboardhook</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 00:38:38 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/222078.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 07 Sep 2008 15:43:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Keyboardhook on Sun, 07 Sep 2008 15:43:09 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">LRESULT CALLBACK LowLevelKeyboardProc( int nCode, WPARAM wParam, LPARAM lParam );

int main(int argc, char* argv[])
{
   HINSTANCE myInstance = GetModuleHandle(NULL);
   // Register Hook function
   SetWindowsHookEx(13, LowLevelKeyboardProc,myInstance,0);  
   MSG msg;
   while(GetMessage(&amp;msg,NULL,0,0) &gt; 0) {
      TranslateMessage(&amp;msg);
      DispatchMessage(&amp;msg);
   }
   return 0;
}

LRESULT CALLBACK LowLevelKeyboardProc( int nCode, WPARAM wParam, LPARAM lParam ) {
   printf(&quot;%d\n&quot;, nCode);
   return 0;
}
</code></pre>
<p>Hallo,<br />
diesen Code hier fand ich im Forum.<br />
Es ist aber egal welche Taste ich drücke ich erhalte immer 0 als Ausgaben.<br />
Soweit ich es mitbekommen habe hat es was mit KBDLLHOOKSTRUCT Struktur zu tun.<br />
Kann mir jemand weiterhelfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1578082</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1578082</guid><dc:creator><![CDATA[Hookproblem]]></dc:creator><pubDate>Sun, 07 Sep 2008 15:43:09 GMT</pubDate></item><item><title><![CDATA[Reply to Keyboardhook on Sun, 07 Sep 2008 16:07:03 GMT]]></title><description><![CDATA[<p>hast du schonmal nachgeguckt was nCode überhaupt ist du pfeif?! <a href="http://msdn.microsoft.com/en-us/library/ms644985(VS.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms644985(VS.85).aspx</a></p>
<p><a href="http://msdn.microsoft.com/en-us/library/ms644967(VS.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms644967(VS.85).aspx</a><br />
<a href="http://msdn.microsoft.com/en-us/library/ms644967(VS.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms644967(VS.85).aspx</a><br />
<a href="http://msdn.microsoft.com/en-us/library/ms644967(VS.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms644967(VS.85).aspx</a><br />
<a href="http://msdn.microsoft.com/en-us/library/ms644967(VS.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms644967(VS.85).aspx</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1578108</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1578108</guid><dc:creator><![CDATA[asdca]]></dc:creator><pubDate>Sun, 07 Sep 2008 16:07:03 GMT</pubDate></item><item><title><![CDATA[Reply to Keyboardhook on Mon, 08 Sep 2008 11:52:19 GMT]]></title><description><![CDATA[<blockquote>
<p>hast du schonmal nachgeguckt was nCode überhaupt ist du pfeif?!</p>
</blockquote>
<p>Soviel zum Thema:</p>
<blockquote>
<p>ich bin zu den leuten so höflich wie sie höflich zu mir sind.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1578556</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1578556</guid><dc:creator><![CDATA[vlad_tepesch]]></dc:creator><pubDate>Mon, 08 Sep 2008 11:52:19 GMT</pubDate></item></channel></rss>