<?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[Detours 2.1 makefile]]></title><description><![CDATA[<p>Hi, hab jetzt noch mal nen ganz neuen anlauf gemacht, und nun probleme mit meiner Detours dll ( warum dll? weil ich da gucken kann was wird exported bevor ich auf statische libary umstell )</p>
<p>also ich habs jetzt schonmal soweit das Detours 2.1 fehlerfrei kompilliert,<br />
nun jetzt wenn ichs verwenden will hab ich aber das problem das er eine inline funktion in der DLL die nicht exportet ist anscheinend nicht lesen kann.</p>
<p>Projekt: <a href="http://ul.to/dacpcn" rel="nofollow">http://ul.to/dacpcn</a> ( VS 2005 ) -- DLL Exports: <a href="http://img.xrmb2.net/images/774743.jpeg" rel="nofollow">http://img.xrmb2.net/images/774743.jpeg</a></p>
<p>so sieht jetzt meine test applikation aus:</p>
<pre><code class="language-cpp">#include &quot;stdafx.h&quot;

#include &lt;windows.h&gt;
#include &quot;detours.h&quot;
#include &quot;detoured.h&quot;
#pragma comment(lib,&quot;detoured.lib&quot;)

#include &lt;iostream&gt;
using namespace std;

void Function_One (){
	std::cout &lt;&lt; &quot;Function one&quot; &lt;&lt; std::endl;
return;
}

void Function_Two (){
	std::cout &lt;&lt; &quot;Function TWO&quot; &lt;&lt; std::endl;
return;
}

int _tmain(int argc, _TCHAR* argv[])
{
	Function_One();
	// Detouring
	DetourTransactionBegin();
    DetourUpdateThread(GetCurrentThread());
    DetourAttach(&amp;(PVOID&amp;)Function_One, Function_Two);
    DetourTransactionCommit();
	// Testing
	Function_One();
	// ReDetouring
	DetourTransactionBegin();
    DetourUpdateThread(GetCurrentThread());
    DetourDetach(&amp;(PVOID&amp;)Function_One, Function_Two);
    DetourTransactionCommit();
	// Testing
	Function_One();
	return 0;
}
</code></pre>
<p>und das ist mein fehler <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>( detours.cpp )</p>
<pre><code class="language-cpp">PVOID WINAPI DetourCodeFromPointer(PVOID pPointer, PVOID *ppGlobals)
{
    return detour_skip_jmp((PBYTE)pPointer, ppGlobals);
}
</code></pre>
<p>Access Violation.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/238652/detours-2-1-makefile</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Apr 2026 01:14:07 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/238652.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Apr 2009 03:18:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Detours 2.1 makefile on Tue, 14 Apr 2009 14:54:16 GMT]]></title><description><![CDATA[<p>Hi, hab jetzt noch mal nen ganz neuen anlauf gemacht, und nun probleme mit meiner Detours dll ( warum dll? weil ich da gucken kann was wird exported bevor ich auf statische libary umstell )</p>
<p>also ich habs jetzt schonmal soweit das Detours 2.1 fehlerfrei kompilliert,<br />
nun jetzt wenn ichs verwenden will hab ich aber das problem das er eine inline funktion in der DLL die nicht exportet ist anscheinend nicht lesen kann.</p>
<p>Projekt: <a href="http://ul.to/dacpcn" rel="nofollow">http://ul.to/dacpcn</a> ( VS 2005 ) -- DLL Exports: <a href="http://img.xrmb2.net/images/774743.jpeg" rel="nofollow">http://img.xrmb2.net/images/774743.jpeg</a></p>
<p>so sieht jetzt meine test applikation aus:</p>
<pre><code class="language-cpp">#include &quot;stdafx.h&quot;

#include &lt;windows.h&gt;
#include &quot;detours.h&quot;
#include &quot;detoured.h&quot;
#pragma comment(lib,&quot;detoured.lib&quot;)

#include &lt;iostream&gt;
using namespace std;

void Function_One (){
	std::cout &lt;&lt; &quot;Function one&quot; &lt;&lt; std::endl;
return;
}

void Function_Two (){
	std::cout &lt;&lt; &quot;Function TWO&quot; &lt;&lt; std::endl;
return;
}

int _tmain(int argc, _TCHAR* argv[])
{
	Function_One();
	// Detouring
	DetourTransactionBegin();
    DetourUpdateThread(GetCurrentThread());
    DetourAttach(&amp;(PVOID&amp;)Function_One, Function_Two);
    DetourTransactionCommit();
	// Testing
	Function_One();
	// ReDetouring
	DetourTransactionBegin();
    DetourUpdateThread(GetCurrentThread());
    DetourDetach(&amp;(PVOID&amp;)Function_One, Function_Two);
    DetourTransactionCommit();
	// Testing
	Function_One();
	return 0;
}
</code></pre>
<p>und das ist mein fehler <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>( detours.cpp )</p>
<pre><code class="language-cpp">PVOID WINAPI DetourCodeFromPointer(PVOID pPointer, PVOID *ppGlobals)
{
    return detour_skip_jmp((PBYTE)pPointer, ppGlobals);
}
</code></pre>
<p>Access Violation.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1695451</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1695451</guid><dc:creator><![CDATA[Schurke]]></dc:creator><pubDate>Tue, 14 Apr 2009 14:54:16 GMT</pubDate></item><item><title><![CDATA[Reply to Detours 2.1 makefile on Tue, 14 Apr 2009 18:08:25 GMT]]></title><description><![CDATA[<p>Sorry dass ich den Thread Missbrauche aber wie erstellt man eine statische Detours 2.1 lib? Braucht man dann immer noch die nervige detour<strong>ed</strong>.dll?<br />
THX!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1695888</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1695888</guid><dc:creator><![CDATA[Brauch]]></dc:creator><pubDate>Tue, 14 Apr 2009 18:08:25 GMT</pubDate></item><item><title><![CDATA[Reply to Detours 2.1 makefile on Thu, 16 Apr 2009 06:51:46 GMT]]></title><description><![CDATA[<p>Die detoured dll hab ich für mich erstellt damit ich sehe ob ich die funktionen richtig exportiert habe, ( jaja ich weiß ich machs mir wieder umständlich ), am einfachsten ist das mit dem visual studio 2005, womit detours gemacht wurde.</p>
<p>Einfach ein projekt erstellen, und die dateien hinzufügen / compillen.</p>
<p>( das ist einfach weil meine systemvariabeln nicht denen einer vm entsprechen die super sauber sind, bei mir sind die von 10 verschiedenen compillern verhuntzt, und mit dem projekt gehts sauber ohne fehler )</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1696495</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1696495</guid><dc:creator><![CDATA[Schurke]]></dc:creator><pubDate>Thu, 16 Apr 2009 06:51:46 GMT</pubDate></item><item><title><![CDATA[Reply to Detours 2.1 makefile on Thu, 16 Apr 2009 07:59:32 GMT]]></title><description><![CDATA[<p>War das jetzt eine Antwort für mich? Hat mir irgendwie überhaupt nicht geholfen sry...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1696529</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1696529</guid><dc:creator><![CDATA[Brauch]]></dc:creator><pubDate>Thu, 16 Apr 2009 07:59:32 GMT</pubDate></item></channel></rss>