<?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[Minimieren eines Fensters(extern) verhindern?]]></title><description><![CDATA[<p>Hi, gibt es eine Möglichkeit das Minimieren von einem Externen Fenster zu verhindern. D.h. dass es immer im Vordergrund bleibt?</p>
<p>Würde mich über ein paar Antworten freuen.</p>
<p>Gruß kf</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/201750/minimieren-eines-fensters-extern-verhindern</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 04:14:21 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/201750.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Jan 2008 17:23:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Minimieren eines Fensters(extern) verhindern? on Thu, 03 Jan 2008 17:23:45 GMT]]></title><description><![CDATA[<p>Hi, gibt es eine Möglichkeit das Minimieren von einem Externen Fenster zu verhindern. D.h. dass es immer im Vordergrund bleibt?</p>
<p>Würde mich über ein paar Antworten freuen.</p>
<p>Gruß kf</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1430142</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1430142</guid><dc:creator><![CDATA[JayJay1]]></dc:creator><pubDate>Thu, 03 Jan 2008 17:23:45 GMT</pubDate></item><item><title><![CDATA[Reply to Minimieren eines Fensters(extern) verhindern? on Fri, 04 Jan 2008 12:04:05 GMT]]></title><description><![CDATA[<p>So hab nun mal versucht, per SetWindowLong mal die Nachrichten des WndProc abzufangen.</p>
<p>problem: Access Denied beim setzen von SetWindowLong (Jemand ne Ahnung? <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="😕"
    /> )</p>
<pre><code class="language-cpp">WNDPROC OldProc;
LRESULT NewProc( HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam );

int main(){

	HWND hWnd = FindWindow(NULL,&quot;External Window&quot;);

	if( hWnd )
	{
		printf(&quot;\nWindow found, try to inject Window&quot;);

		if( (OldProc=(WNDPROC) SetWindowLong( hWnd, GWL_WNDPROC, (LONG)NewProc )))
		{

		}
		else
		{
			char buffer[512];
			sprintf( buffer, &quot;\nERROR: %d&quot;, ::GetLastError() );
			printf( buffer );

		}

		while( true ){
			Sleep(1000);
		}

	}
	else
	{
		printf(&quot;\nERROR: window not found&quot;);
	}
	printf(&quot;\nFinished&quot;);
	getchar();
	return 1;
}

LRESULT NewProc( HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam )
{

	//return CallWindowProc( OldProc, hWnd, Msg, wParam, lParam );
	//lpPrevWndFunc
	printf(&quot;\nTest&quot;);
	return CallWindowProc( OldProc, hWnd, Msg, wParam, lParam );
}
</code></pre>
<p>ERROR: #5 für GetLastError() - Access Denied</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1430547</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1430547</guid><dc:creator><![CDATA[JayJay1]]></dc:creator><pubDate>Fri, 04 Jan 2008 12:04:05 GMT</pubDate></item><item><title><![CDATA[Reply to Minimieren eines Fensters(extern) verhindern? on Fri, 04 Jan 2008 12:53:43 GMT]]></title><description><![CDATA[<p>Versuchs doch mal mitm Hook:</p>
<p>SetWindowsHookEx <a href="http://msdn2.microsoft.com/en-us/library/ms644990.aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/ms644990.aspx</a></p>
<p>CBTProc <a href="http://msdn2.microsoft.com/en-us/library/ms644990.aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/ms644990.aspx</a></p>
<blockquote>
<p>The CBTProc hook procedure is an application-defined or library-defined callback function used with the SetWindowsHookEx function. The system <strong>calls this function before</strong> activating, creating, destroying, <strong>minimizing</strong>, maximizing, moving, or sizing a window;</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1430584</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1430584</guid><dc:creator><![CDATA[dmesg]]></dc:creator><pubDate>Fri, 04 Jan 2008 12:53:43 GMT</pubDate></item><item><title><![CDATA[Reply to Minimieren eines Fensters(extern) verhindern? on Fri, 04 Jan 2008 13:02:06 GMT]]></title><description><![CDATA[<p>du kannst ein fenster, das nicht zu deinem thread gehört, subclassen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1430595</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1430595</guid><dc:creator><![CDATA[hey]]></dc:creator><pubDate>Fri, 04 Jan 2008 13:02:06 GMT</pubDate></item><item><title><![CDATA[Reply to Minimieren eines Fensters(extern) verhindern? on Sat, 05 Jan 2008 02:06:20 GMT]]></title><description><![CDATA[<p>Hm, okay und wie kann ich das evt. andersweitig bewerkstelligen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1430907</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1430907</guid><dc:creator><![CDATA[JayJay1]]></dc:creator><pubDate>Sat, 05 Jan 2008 02:06:20 GMT</pubDate></item><item><title><![CDATA[Reply to Minimieren eines Fensters(extern) verhindern? on Sat, 05 Jan 2008 11:25:07 GMT]]></title><description><![CDATA[<p>dann schau mal einen Beitrag unter dir <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>--&gt; einen hook setzen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /><br />
ggf. vorher mit DLL erstellung auseinander setzen, bei google findest du aber gute beispiele, die den umgang mit DLLs und dem exportieren von funktionen erklären</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1431012</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1431012</guid><dc:creator><![CDATA[hey]]></dc:creator><pubDate>Sat, 05 Jan 2008 11:25:07 GMT</pubDate></item><item><title><![CDATA[Reply to Minimieren eines Fensters(extern) verhindern? on Sat, 05 Jan 2008 13:34:48 GMT]]></title><description><![CDATA[<p>Ah okay, Hooks funktionieren, danke für die Info <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="👍"
    /> Werd das mal ausprobieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1431109</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1431109</guid><dc:creator><![CDATA[JayJay1]]></dc:creator><pubDate>Sat, 05 Jan 2008 13:34:48 GMT</pubDate></item></channel></rss>