<?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 winnt vs win98]]></title><description><![CDATA[<p>hallo</p>
<p>ich hab eine frage. ich will sämtliche F tasten in meinem programm abfangen (systemweit).<br />
dazu habe ich einen systemweiten keyboardhook anlegt und in der dll eine callback funktion, die einfach mal nur ne messagebox aufpoppen lässt und dann CallNextHookProc als return gibt.<br />
also so hier:</p>
<pre><code class="language-cpp">LRESULT CALLBACK MyKeyboardProc(int nCode, WPARAM wParam, LPARAM lParam)
{
	MessageBox(NULL,&quot;KEY&quot;,&quot;KEY&quot;,MB_OK);
	return CallNextHookEx(HookHandle, nCode, wParam, lParam);
}
</code></pre>
<p>So wenn ich nun den hook installiere, bekomme ich ca 2-3 manchmal gar keine messageboxen.<br />
jetzt hab ich das teil mal auf einer win98 maschine laufen, und da klappt es wunderbar.<br />
jetzt frage ich mich, warum es auf dem winxp rechner nicht funktioniert, bzw mal ganz kurz und dann nicht mehr.</p>
<p>Hat da jemand ne Idee? ich bin ein wenig ratlos, weil es halt irgendwie geht , aber nich 100%ig,</p>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> hrrrrmpf</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/71977/keyboardhook-winnt-vs-win98</link><generator>RSS for Node</generator><lastBuildDate>Thu, 09 Apr 2026 21:59:05 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/71977.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 23 Apr 2004 16:39:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to keyboardhook winnt vs win98 on Fri, 23 Apr 2004 16:39:14 GMT]]></title><description><![CDATA[<p>hallo</p>
<p>ich hab eine frage. ich will sämtliche F tasten in meinem programm abfangen (systemweit).<br />
dazu habe ich einen systemweiten keyboardhook anlegt und in der dll eine callback funktion, die einfach mal nur ne messagebox aufpoppen lässt und dann CallNextHookProc als return gibt.<br />
also so hier:</p>
<pre><code class="language-cpp">LRESULT CALLBACK MyKeyboardProc(int nCode, WPARAM wParam, LPARAM lParam)
{
	MessageBox(NULL,&quot;KEY&quot;,&quot;KEY&quot;,MB_OK);
	return CallNextHookEx(HookHandle, nCode, wParam, lParam);
}
</code></pre>
<p>So wenn ich nun den hook installiere, bekomme ich ca 2-3 manchmal gar keine messageboxen.<br />
jetzt hab ich das teil mal auf einer win98 maschine laufen, und da klappt es wunderbar.<br />
jetzt frage ich mich, warum es auf dem winxp rechner nicht funktioniert, bzw mal ganz kurz und dann nicht mehr.</p>
<p>Hat da jemand ne Idee? ich bin ein wenig ratlos, weil es halt irgendwie geht , aber nich 100%ig,</p>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> hrrrrmpf</p>
]]></description><link>https://www.c-plusplus.net/forum/post/507570</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/507570</guid><dc:creator><![CDATA[maximilian_78]]></dc:creator><pubDate>Fri, 23 Apr 2004 16:39:14 GMT</pubDate></item><item><title><![CDATA[Reply to keyboardhook winnt vs win98 on Fri, 23 Apr 2004 17:45:45 GMT]]></title><description><![CDATA[<p>Du könntest es (je nach dem, was du vorhast) auch mit RegisterHotKey machen <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>
]]></description><link>https://www.c-plusplus.net/forum/post/507594</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/507594</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Fri, 23 Apr 2004 17:45:45 GMT</pubDate></item><item><title><![CDATA[Reply to keyboardhook winnt vs win98 on Fri, 23 Apr 2004 21:29:22 GMT]]></title><description><![CDATA[<p>reigsterhotkey? kenn ich ja noch gar nich. werd ich ma nachschauen.<br />
ich hab aber rausgefunden wo rans hing: immer wenn ich meine steganos security suite laufen hab (die hat auch einen keyboard hook für hotkeys), dann funktioniert es nicht.<br />
womit kann das nun zusammenhängen? haben die da ein unsauberes hookproc, was keinen CallNextHookEx(..) macht?<br />
is mir ein rätsel.</p>
<p>guß</p>
<p>max</p>
]]></description><link>https://www.c-plusplus.net/forum/post/507689</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/507689</guid><dc:creator><![CDATA[maximilian_78]]></dc:creator><pubDate>Fri, 23 Apr 2004 21:29:22 GMT</pubDate></item><item><title><![CDATA[Reply to keyboardhook winnt vs win98 on Sat, 24 Apr 2004 13:20:44 GMT]]></title><description><![CDATA[<blockquote>
<p>haben die da ein unsauberes hookproc, was keinen CallNextHookEx(..) macht?</p>
</blockquote>
<p>kannste ja nachprüfen, wenn du dein programm als letztes startest.<br />
würd mich aber nicht wundern: die logitech maustreiber rufen z.b. auch kein nexthook auf</p>
]]></description><link>https://www.c-plusplus.net/forum/post/507881</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/507881</guid><dc:creator><![CDATA[Lui]]></dc:creator><pubDate>Sat, 24 Apr 2004 13:20:44 GMT</pubDate></item></channel></rss>