<?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[hook setzen]]></title><description><![CDATA[<p>Also ich habe einen Hook auf mein eigenen prozess gesetzt hat auch alles gefunzt!!<br />
Aber wenn ich jetzt versuche den hook auf einen anderen prozess zusetzen bekomm ich immer GetLastError=87/Falscher Parameter ABER DIE PID STIMMT <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /></p>
<pre><code class="language-cpp">....
 case DLL_PROCESS_ATTACH :
            hDllInstance = hInstance ;
            break ;

....
PID=GetWindowThreadProcessId(hWindow,0); //DAMIT SUCH ICH DIE PID
hhkHook=SetWindowsHookEx(WH_GETMESSAGE,KeyboardHookProc,(HINSTANCE)hDllInstance,PID) ;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/104016/hook-setzen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 02 May 2026 00:25:02 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/104016.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 15 Mar 2005 15:22:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to hook setzen on Tue, 15 Mar 2005 15:22:09 GMT]]></title><description><![CDATA[<p>Also ich habe einen Hook auf mein eigenen prozess gesetzt hat auch alles gefunzt!!<br />
Aber wenn ich jetzt versuche den hook auf einen anderen prozess zusetzen bekomm ich immer GetLastError=87/Falscher Parameter ABER DIE PID STIMMT <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /></p>
<pre><code class="language-cpp">....
 case DLL_PROCESS_ATTACH :
            hDllInstance = hInstance ;
            break ;

....
PID=GetWindowThreadProcessId(hWindow,0); //DAMIT SUCH ICH DIE PID
hhkHook=SetWindowsHookEx(WH_GETMESSAGE,KeyboardHookProc,(HINSTANCE)hDllInstance,PID) ;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/745156</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/745156</guid><dc:creator><![CDATA[HOOKSER]]></dc:creator><pubDate>Tue, 15 Mar 2005 15:22:09 GMT</pubDate></item><item><title><![CDATA[Reply to hook setzen on Tue, 15 Mar 2005 15:24:29 GMT]]></title><description><![CDATA[<p>Woher bekommst du hWindow?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/745161</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/745161</guid><dc:creator><![CDATA[WebFritzi]]></dc:creator><pubDate>Tue, 15 Mar 2005 15:24:29 GMT</pubDate></item><item><title><![CDATA[Reply to hook setzen on Tue, 15 Mar 2005 22:41:04 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">hWindow=FindWindow(NULL,&quot;Prozess&quot;);//DES WIRD GEFUNDEN
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/745566</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/745566</guid><dc:creator><![CDATA[HOOKSER]]></dc:creator><pubDate>Tue, 15 Mar 2005 22:41:04 GMT</pubDate></item></channel></rss>