<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: How to get rid of Microsoft Detours&#8217; detoured.dll</title>
	<atom:link href="http://coderrr.wordpress.com/2008/08/27/how-to-get-rid-of-microsoft-detours-detoureddll/feed/" rel="self" type="application/rss+xml" />
	<link>http://coderrr.wordpress.com/2008/08/27/how-to-get-rid-of-microsoft-detours-detoureddll/</link>
	<description>pronounced &#34;coder&#34; not &#34;code err&#34; (extended r optional)</description>
	<lastBuildDate>Sun, 20 Dec 2009 10:03:37 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ryouku</title>
		<link>http://coderrr.wordpress.com/2008/08/27/how-to-get-rid-of-microsoft-detours-detoureddll/#comment-1694</link>
		<dc:creator>Ryouku</dc:creator>
		<pubDate>Tue, 14 Jul 2009 19:32:38 +0000</pubDate>
		<guid isPermaLink="false">http://coderrr.wordpress.com/?p=87#comment-1694</guid>
		<description>/* Detour Hook Manager [InDll]: dllMain.cpp */

typedef struct { int unused; } HINSTANCE;
static HINSTANCE s_Dll = 0;

HINSTANCE __stdcall Detoured() // The linker will use this instead of the one in &#039;detoured.lib&#039;
{
    return s_Dll;
}

__declspec(dllexport) __declspec(noreturn) __declspec(naked) void Ordinal_1(){}
// you need a function for the ordinal 1 right? (:

int __stdcall DllMain(HINSTANCE me, unsigned long res, void*) // BOOL DllMain(HINSTANCE,DWORD,PVOID)
{
    if (res == 1) // Process Attach
    {
        s_Dll = me; // store dll instance
        DTMan::getInstance()-&gt;getHookingTree()-&gt;HookTree(); // hook registered functions
    }
    else if (res == 0)
    {
        DTMan::getInstance()-&gt;getHookingTree()-&gt;Undo(); // undo the last hook steps
    }
    return 1; // return TRUE;
}</description>
		<content:encoded><![CDATA[<p>/* Detour Hook Manager [InDll]: dllMain.cpp */</p>
<p>typedef struct { int unused; } HINSTANCE;<br />
static HINSTANCE s_Dll = 0;</p>
<p>HINSTANCE __stdcall Detoured() // The linker will use this instead of the one in &#8216;detoured.lib&#8217;<br />
{<br />
    return s_Dll;<br />
}</p>
<p>__declspec(dllexport) __declspec(noreturn) __declspec(naked) void Ordinal_1(){}<br />
// you need a function for the ordinal 1 right? (:</p>
<p>int __stdcall DllMain(HINSTANCE me, unsigned long res, void*) // BOOL DllMain(HINSTANCE,DWORD,PVOID)<br />
{<br />
    if (res == 1) // Process Attach<br />
    {<br />
        s_Dll = me; // store dll instance<br />
        DTMan::getInstance()-&gt;getHookingTree()-&gt;HookTree(); // hook registered functions<br />
    }<br />
    else if (res == 0)<br />
    {<br />
        DTMan::getInstance()-&gt;getHookingTree()-&gt;Undo(); // undo the last hook steps<br />
    }<br />
    return 1; // return TRUE;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cpp</title>
		<link>http://coderrr.wordpress.com/2008/08/27/how-to-get-rid-of-microsoft-detours-detoureddll/#comment-1675</link>
		<dc:creator>Cpp</dc:creator>
		<pubDate>Mon, 29 Jun 2009 05:14:03 +0000</pubDate>
		<guid isPermaLink="false">http://coderrr.wordpress.com/?p=87#comment-1675</guid>
		<description>Dude, I was forced to use Detours v1.5 until I came across this post. Nice one!</description>
		<content:encoded><![CDATA[<p>Dude, I was forced to use Detours v1.5 until I came across this post. Nice one!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ioluas</title>
		<link>http://coderrr.wordpress.com/2008/08/27/how-to-get-rid-of-microsoft-detours-detoureddll/#comment-1245</link>
		<dc:creator>ioluas</dc:creator>
		<pubDate>Thu, 19 Feb 2009 11:47:35 +0000</pubDate>
		<guid isPermaLink="false">http://coderrr.wordpress.com/?p=87#comment-1245</guid>
		<description>very nice! wish i read this 2 months ago.

thanks</description>
		<content:encoded><![CDATA[<p>very nice! wish i read this 2 months ago.</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ulliklliwi</title>
		<link>http://coderrr.wordpress.com/2008/08/27/how-to-get-rid-of-microsoft-detours-detoureddll/#comment-1226</link>
		<dc:creator>ulliklliwi</dc:creator>
		<pubDate>Mon, 09 Feb 2009 01:05:08 +0000</pubDate>
		<guid isPermaLink="false">http://coderrr.wordpress.com/?p=87#comment-1226</guid>
		<description>just make it a static library and be done with it. But since most the people that use detours is scriptkiddys and dont have a clue about programming.</description>
		<content:encoded><![CDATA[<p>just make it a static library and be done with it. But since most the people that use detours is scriptkiddys and dont have a clue about programming.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: justice</title>
		<link>http://coderrr.wordpress.com/2008/08/27/how-to-get-rid-of-microsoft-detours-detoureddll/#comment-1187</link>
		<dc:creator>justice</dc:creator>
		<pubDate>Tue, 27 Jan 2009 01:21:53 +0000</pubDate>
		<guid isPermaLink="false">http://coderrr.wordpress.com/?p=87#comment-1187</guid>
		<description>Great tip!</description>
		<content:encoded><![CDATA[<p>Great tip!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kingrain</title>
		<link>http://coderrr.wordpress.com/2008/08/27/how-to-get-rid-of-microsoft-detours-detoureddll/#comment-687</link>
		<dc:creator>kingrain</dc:creator>
		<pubDate>Fri, 17 Oct 2008 01:56:47 +0000</pubDate>
		<guid isPermaLink="false">http://coderrr.wordpress.com/?p=87#comment-687</guid>
		<description>Well, that&#039;s exactly what i was looking for. Thanks coderrr, you are the man tonight ! :D</description>
		<content:encoded><![CDATA[<p>Well, that&#8217;s exactly what i was looking for. Thanks coderrr, you are the man tonight ! :D</p>
]]></content:encoded>
	</item>
</channel>
</rss>
