<?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[Erscheinen einer Message-Box abfragen???]]></title><description><![CDATA[<p>Hallo!</p>
<p>Gibt es eine Möglichkeit das Erscheinen einer Messagebox abzufragen??</p>
<p>mfg<br />
steve888</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/256466/erscheinen-einer-message-box-abfragen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 15:18:44 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/256466.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 13 Dec 2009 11:16:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Erscheinen einer Message-Box abfragen??? on Sun, 13 Dec 2009 11:16:34 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Gibt es eine Möglichkeit das Erscheinen einer Messagebox abzufragen??</p>
<p>mfg<br />
steve888</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1821897</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1821897</guid><dc:creator><![CDATA[steve888]]></dc:creator><pubDate>Sun, 13 Dec 2009 11:16:34 GMT</pubDate></item><item><title><![CDATA[Reply to Erscheinen einer Message-Box abfragen??? on Sun, 13 Dec 2009 11:41:36 GMT]]></title><description><![CDATA[<p>Du könntest nen hook auf MessageBox setzen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1821903</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1821903</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 13 Dec 2009 11:41:36 GMT</pubDate></item><item><title><![CDATA[Reply to Erscheinen einer Message-Box abfragen??? on Sun, 13 Dec 2009 12:09:44 GMT]]></title><description><![CDATA[<p>Könntest du mir ein Beispiel geben wie so was mit einen Hook geht. (Habe so was noch nie gemacht.)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1821915</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1821915</guid><dc:creator><![CDATA[steve888]]></dc:creator><pubDate>Sun, 13 Dec 2009 12:09:44 GMT</pubDate></item><item><title><![CDATA[Reply to Erscheinen einer Message-Box abfragen??? on Sun, 13 Dec 2009 17:41:26 GMT]]></title><description><![CDATA[<p><a href="http://www.codeproject.com/KB/DLL/funapihook.aspx" rel="nofollow">http://www.codeproject.com/KB/DLL/funapihook.aspx</a></p>
<p>in dem beispiel wird sogar zufällig die messagebox-func gehookt <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/1822041</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1822041</guid><dc:creator><![CDATA[bronX]]></dc:creator><pubDate>Sun, 13 Dec 2009 17:41:26 GMT</pubDate></item><item><title><![CDATA[Reply to Erscheinen einer Message-Box abfragen??? on Sun, 13 Dec 2009 18:58:47 GMT]]></title><description><![CDATA[<p>Danke, für den Tipp, das Beispiel hatte ich noch nicht gefunden...<br />
<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="🙂"
    /> <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/1822089</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1822089</guid><dc:creator><![CDATA[steve888]]></dc:creator><pubDate>Sun, 13 Dec 2009 18:58:47 GMT</pubDate></item><item><title><![CDATA[Reply to Erscheinen einer Message-Box abfragen??? on Tue, 15 Dec 2009 19:07:25 GMT]]></title><description><![CDATA[<p>Ich hätte letztens gleich das Beispiel des Links von CodeProject probiert. Bin jedoch gescheitert. Ich wolle den Code einfach in den MFC-DLL-Anwendungsassistenten einbinden.</p>
<p>Was ich letztlendlich erhielt war dieser Fehlercode:</p>
<pre><code class="language-cpp">ker-Vorgang läuft...
LIBCD.lib(wincrt0.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _WinMain@16
Debug/test4.exe : fatal error LNK1120: 1 unaufgeloeste externe Verweise
</code></pre>
<p>Ich weis, man könnte sich den Sourcecode downloden wenn man sich registriert.<br />
Es kann aber ja nicht so schwer sein, dieses Beispiel selbst zu Erstellen. Hätte wer Tipps für mich??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1823086</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1823086</guid><dc:creator><![CDATA[steve888]]></dc:creator><pubDate>Tue, 15 Dec 2009 19:07:25 GMT</pubDate></item><item><title><![CDATA[Reply to Erscheinen einer Message-Box abfragen??? on Wed, 16 Dec 2009 10:55:24 GMT]]></title><description><![CDATA[<p>ok, du hast also den kompletten code von codeproject kopiert, ohne annähernd zu verstehen wie/was/warum funktioniert?</p>
<p>schau dir mal an was <a href="http://msdn.microsoft.com/en-us/library/ms633559%28VS.85%29.aspx" rel="nofollow">WinMain()</a> ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1823386</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1823386</guid><dc:creator><![CDATA[bronX]]></dc:creator><pubDate>Wed, 16 Dec 2009 10:55:24 GMT</pubDate></item><item><title><![CDATA[Reply to Erscheinen einer Message-Box abfragen??? on Wed, 16 Dec 2009 17:30:36 GMT]]></title><description><![CDATA[<p>Ok, ich habe ohne viel darüber nachzudenken darauf losgelegt. (Fehler von mir -&gt; Man muss eine Win32 DLL erstelle, oder)<br />
Nur, was ich immmer noch nicht kapiert habe an diesem tollem Beispiel, ist, wie man dann mit diese DLL anwendet!!!!<br />
Muss ich mir da noch ein eigenes Programm schreiben, oder wie geht das sonst <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="😕"
    /> <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1823623</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1823623</guid><dc:creator><![CDATA[steve888]]></dc:creator><pubDate>Wed, 16 Dec 2009 17:30:36 GMT</pubDate></item><item><title><![CDATA[Reply to Erscheinen einer Message-Box abfragen??? on Wed, 16 Dec 2009 19:07:15 GMT]]></title><description><![CDATA[<p>Versuchs doch erst mal mit Breakpoints im Debugger.<br />
Du hast absolut keine Ahnung von dem was du machst und so kommst du ohne weitere Kenntnisse nicht auf einen grünen Zweig.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1823672</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1823672</guid><dc:creator><![CDATA[Icematix]]></dc:creator><pubDate>Wed, 16 Dec 2009 19:07:15 GMT</pubDate></item><item><title><![CDATA[Reply to Erscheinen einer Message-Box abfragen??? on Wed, 16 Dec 2009 20:02:53 GMT]]></title><description><![CDATA[<p>Ja,ja, ich versteh, dich schon was du meinst.<br />
Ich, hab jetzt mit diesem Code</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;

#define SIZE 6

typedef int (WINAPI *pMessageBoxW)(HWND, LPCWSTR, LPCWSTR, UINT);
int WINAPI MyMessageBoxW(HWND, LPCWSTR, LPCWSTR, UINT);

void BeginRedirect(LPVOID);

pMessageBoxW pOrigMBAddress = NULL;
BYTE oldBytes[SIZE] = {0};
BYTE JMP[SIZE] = {0};
DWORD oldProtect, myProtect = PAGE_EXECUTE_READWRITE;

INT APIENTRY DllMain(HMODULE hDLL, DWORD Reason, LPVOID Reserved)
{
    switch(Reason)
    {
    case DLL_PROCESS_ATTACH:
        pOrigMBAddress = (pMessageBoxW)
            GetProcAddress(GetModuleHandle(&quot;user32.dll&quot;), 
                           &quot;MessageBoxW&quot;);
        if(pOrigMBAddress != NULL)
            BeginRedirect(MyMessageBoxW);    
        break;
    case DLL_PROCESS_DETACH:
        memcpy(pOrigMBAddress, oldBytes, SIZE);
    case DLL_THREAD_ATTACH:
    case DLL_THREAD_DETACH:
        break;
    }
    return TRUE;
}

void BeginRedirect(LPVOID newFunction)
{
    BYTE tempJMP[SIZE] = {0xE9, 0x90, 0x90, 0x90, 0x90, 0xC3};
    memcpy(JMP, tempJMP, SIZE);
    DWORD JMPSize = ((DWORD)newFunction - (DWORD)pOrigMBAddress - 5);
    VirtualProtect((LPVOID)pOrigMBAddress, SIZE, 
                    PAGE_EXECUTE_READWRITE, &amp;oldProtect);
    memcpy(oldBytes, pOrigMBAddress, SIZE);
    memcpy(&amp;JMP[1], &amp;JMPSize, 4);
    memcpy(pOrigMBAddress, JMP, SIZE);
    VirtualProtect((LPVOID)pOrigMBAddress, SIZE, oldProtect, NULL);
}

int  WINAPI MyMessageBoxW(HWND hWnd, LPCWSTR lpText, LPCWSTR lpCaption, UINT uiType)
{
    VirtualProtect((LPVOID)pOrigMBAddress, SIZE, myProtect, NULL);
    memcpy(pOrigMBAddress, oldBytes, SIZE);
    int retValue = MessageBoxW(hWnd, lpText, lpCaption, uiType);
    memcpy(pOrigMBAddress, JMP, SIZE);
    VirtualProtect((LPVOID)pOrigMBAddress, SIZE, oldProtect, NULL);
    return retValue;
}
</code></pre>
<p>von <a href="http://www.codeproject.com/KB/DLL/funapihook.aspx" rel="nofollow">http://www.codeproject.com/KB/DLL/funapihook.aspx</a><br />
eine DLL erstellt.<br />
Nur wie kann wie sie anwenden ??? - Brauch ich dazu ein eigenes C++ Programm dazu oder??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1823701</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1823701</guid><dc:creator><![CDATA[steve888]]></dc:creator><pubDate>Wed, 16 Dec 2009 20:02:53 GMT</pubDate></item><item><title><![CDATA[Reply to Erscheinen einer Message-Box abfragen??? on Fri, 18 Dec 2009 15:46:34 GMT]]></title><description><![CDATA[<p>Hallo Leute!<br />
Ist diese Aufgabe so schwierig, oder so einfach, dass mir einfach keiner dazu helfen dann. Ich bin mit diesen Dlls noch ein richtiger Anfänger...<br />
(Muss man sich ein Programm schreiben dass diese Dll dauernd ausführt vielleicht, oder so?)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1824531</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1824531</guid><dc:creator><![CDATA[steve888]]></dc:creator><pubDate>Fri, 18 Dec 2009 15:46:34 GMT</pubDate></item><item><title><![CDATA[Reply to Erscheinen einer Message-Box abfragen??? on Fri, 18 Dec 2009 16:27:57 GMT]]></title><description><![CDATA[<p>Du musst die dll in den anderen Prozessraum mappen. Google nach Dll injection.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1824555</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1824555</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Fri, 18 Dec 2009 16:27:57 GMT</pubDate></item><item><title><![CDATA[Reply to Erscheinen einer Message-Box abfragen??? on Fri, 18 Dec 2009 23:16:32 GMT]]></title><description><![CDATA[<p>Warum sollte man jemandem helfen der den Artikel, aus dem er kopiert, nichtmal halb gelesen hat?<br />
Sonst hättest du gelesen:</p>
<blockquote>
<p>4. DLL Injection</p>
<p>I’ve done a lot of talking about DLL injection in this article. The DLLs with the API hooks in them have to be injected into the address space of the process in order for them to work. DLL injection involves somehow loading a DLL that is not normally loaded by the process. There are multitudes of ways to do this. A very common one is to use the SetWindowsHookEx(…) with a dummy hook procedure. Another common one is to use the CreateRemoteThread(…) API. It’s possible to even hardcode a CodeCave stub to load a DLL (I did this in the Solitaire article). The approach that I will be taking and explaining in this article will be the CreateRemoteThread one. It is extremely easy, and relatively efficient. Before starting though, it is important to actually find the process to inject into.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1824786</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1824786</guid><dc:creator><![CDATA[Icematix]]></dc:creator><pubDate>Fri, 18 Dec 2009 23:16:32 GMT</pubDate></item><item><title><![CDATA[Reply to Erscheinen einer Message-Box abfragen??? on Sat, 19 Dec 2009 06:41:09 GMT]]></title><description><![CDATA[<p>Ich war so auf den zweiten Punkt &quot;Getting Started&quot; konzentriert, und am Ende des Punktes von dem Bild mit der hooked Messagegbox geblöfft. (Ich war halt der Meinung sollte schon funktionieren......)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1824830</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1824830</guid><dc:creator><![CDATA[steve888]]></dc:creator><pubDate>Sat, 19 Dec 2009 06:41:09 GMT</pubDate></item></channel></rss>