<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title><![CDATA[GameKiller - Bringing The Pain To Each And Every Game - Programming & Reversing General Discussion]]></title>
		<link>http://www.gamekiller.net/</link>
		<description>General Programming / Reversing discussions, queries, and chat.</description>
		<language>en</language>
		<lastBuildDate>Tue, 21 May 2013 19:46:37 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.gamekiller.net/images/gamekiller/misc/rss.png</url>
			<title><![CDATA[GameKiller - Bringing The Pain To Each And Every Game - Programming & Reversing General Discussion]]></title>
			<link>http://www.gamekiller.net/</link>
		</image>
		<item>
			<title>C++ GHL (GameHackingLibrary) Documentation</title>
			<link>http://www.gamekiller.net/programming-reversing-general-discussion/3190883-c-ghl-gamehackinglibrary-documentation.html</link>
			<pubDate>Mon, 20 May 2013 02:53:33 GMT</pubDate>
			<description><![CDATA[*I. Setup* 
 
*A) Downloading GHL's Files 
Before you could even use the GameHackingLibrary (GHL),...]]></description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start --><font color="#141414"><span style="font-family: Georgia"><b>I. Setup</b></span></font><br />
<br />
<b>A) Downloading GHL's Files<br />
Before you could even use the GameHackingLibrary (GHL), you must have its header files, source files, and any other related files. Click <a href="https://ccplz.net/threads/kernels-free-open-source-game-hacking-library-ghl.54040/" target="_blank" rel="nofollow">this</a> to download the latest version (1.0) of GHL's files.<br />
<br />
<b>B) Using GHL's Files<br />
You must have Visual C++ (VC++) installed, any edition/version is fine. Just for your information, GHL was written and compiled in Visual C++ 2008 - Express Edition.<br />
<br />
The current version of GHL have the following files: GHL.h and GHL.cpp. Everytime you created a new VC++ project for a game-trainer and if you want to use GHL, you must include both GHL.h and GHL.cpp in your project. If you do not know how to do that, I suggest you use Google and search &quot;how to include files in Visual C++&quot;.<br />
<br />
<b>II. GHL<br />
<br />
After including the GHL files, in your main files (whatever is the &quot;core&quot;), include &quot;GHL.h&quot;.<br />
<br />
<b>A) GHL's Namespace<br />
In order to use GHL, you must use its namespace, &quot;GHL&quot;. Like this:<br />
<font color="#7A7A7A"><span style="font-family: Tahoma">Code (text):</span></font><br />
<span style="font-family: Consolas">using namespace GHL;</span><br />
<br />
<br />
<br />
<b>B) Classes<br />
<br />
<ul><li style="">GHL::Hack (B.1)</li></ul><br />
<b>Hack (B.1)<br />
This class involves memory editing. It currently have 4 different constructors:<br />
<br />
<ol class="decimal"><li style="">GHL::Hack();</li><li style="">GHL::Hack( const Hack&amp; in_Other );</li><li style="">GHL::Hack( ::DWORD in_Address, const ::BYTE *in_EnableBytes, const ::UINT in_EnableBytesLen, const ::BYTE *in_DisableBytes, const ::UINT in_DisableBytesLen, bool in_opt_Enabled );</li><li style="">GHL::Hack( ::DWORD in_Address, const ::BYTE *in_EnableBytes, ::UINT in_EnableBytesLen, bool in_opt_Enabled = false );</li></ol><br />
The first constructor is known as the &quot;default constructor&quot;. This constructor allows you to declare a GHL::Hack like this:<br />
<font color="#7A7A7A"><span style="font-family: Tahoma">Code (c++):</span></font><br />
<span style="font-family: Consolas">using namespace GHL<font color="#339933">;</font><br />
 <br />
<font color="#993333">void</font> Example<font color="#009900">(</font><font color="#009900">)</font> <font color="#009900">{</font><br />
    Hack    GameMasterHack<font color="#339933">;</font> <font color="#666666"><i>// Basically, it takes no parameters.</i></font><br />
<font color="#009900">}</font><font color="#339933">;</font></span><br />
<br />
The second constructor is known as the &quot;copy constructor&quot;. This constructor allows you to declare a GHL::Hack like this:<br />
<font color="#7A7A7A"><span style="font-family: Tahoma">Code (c++):</span></font><br />
<span style="font-family: Consolas">using namespace GHL<font color="#339933">;</font><br />
 <br />
<font color="#993333">void</font> Example<font color="#009900">(</font><font color="#009900">)</font> <font color="#009900">{</font><br />
    Hack    GameMasterHack<font color="#339933">;</font><br />
    <font color="#666666"><i>// Look at this:</i></font><br />
    Hack    NXHack <font color="#339933">=</font> GameMasterHack<font color="#339933">;</font>    <font color="#666666"><i>// Create a new Hack off of an exsisting Hack object. Meaning, it has the same value as GameMasterHack.</i></font><br />
<font color="#009900">}</font><font color="#339933">;</font></span><br />
<br />
The third constructor, personally I call it the &quot;complete constructor&quot; because it initializes all of its class members but, its actually known as a &quot;parameterized constructor&quot;. This is how its done, please read the comments:<br />
<font color="#7A7A7A"><span style="font-family: Tahoma">Code (c++):</span></font><br />
<span style="font-family: Consolas">using namespace GHL<font color="#339933">;</font><br />
 <br />
<font color="#993333">void</font> Example<font color="#009900">(</font><font color="#009900">)</font> <font color="#009900">{</font><br />
    Hack    GameMasterHack<font color="#339933">;</font><br />
    Hack    NXHack <font color="#339933">=</font> GameMasterHack<font color="#339933">;</font><br />
 <br />
    <font color="#666666"><i>// Look at this:</i></font><br />
    Hack    AntiBanHack<font color="#009900">(</font><br />
        <font color="#208080">0xDEADBEEF</font><font color="#339933">,</font>                 <font color="#666666"><i>// The memory address of the AntiBan hack.</i></font><br />
        <font color="#009900">(</font> <font color="#339933">::</font><font color="#202020">BYTE</font><font color="#339933">*</font> <font color="#009900">)</font><font color="#FF0000">&quot;<font color="#660099">\x90</font><font color="#660099">\x90</font>&quot;</font><font color="#339933">,</font>      <font color="#666666"><i>// 90 and 90 are the &quot;Enable Bytes&quot;.</i></font><br />
        <font color="#0000DD">2</font><font color="#339933">,</font>                          <font color="#666666"><i>// The size of Enable Bytes, its two because the Enable</i></font><br />
                                    <font color="#666666"><i>// Bytes have two bytes: 90 and 90.</i></font><br />
        <font color="#009900">(</font> <font color="#339933">::</font><font color="#202020">BYTE</font><font color="#339933">*</font> <font color="#009900">)</font><font color="#FF0000">&quot;<font color="#660099">\x75</font><font color="#660099">\x05</font>&quot;</font><font color="#339933">,</font>      <font color="#666666"><i>// These are the &quot;Disable Bytes&quot;.</i></font><br />
        <font color="#0000DD">2</font><font color="#339933">,</font>                          <font color="#666666"><i>// The size of it is 2 because of byte 75 and 05.</i></font><br />
        <font color="#000000">false</font> <font color="#009900">)</font><font color="#339933">;</font>                    <font color="#666666"><i>// Don't enable the Hack (false). To enable the hack</i></font><br />
                                    <font color="#666666"><i>// set it to true.</i></font><br />
 <br />
    <font color="#666666"><i>// You can also declare it without the last parameter, which is to</i></font><br />
    <font color="#666666"><i>// enable or disable the hack upon declaration. Like this:</i></font><br />
    Hack    SpeedHack<font color="#009900">(</font><br />
        <font color="#208080">0x00485F23</font><font color="#339933">,</font><br />
        <font color="#009900">(</font> <font color="#339933">::</font><font color="#202020">BYTE</font><font color="#339933">*</font> <font color="#009900">)</font><font color="#FF0000">&quot;<font color="#660099">\x75</font>&quot;</font><font color="#339933">,</font><br />
        <font color="#0000DD">1</font><font color="#339933">,</font><br />
        <font color="#009900">(</font> <font color="#339933">::</font><font color="#202020">BYTE</font><font color="#339933">*</font> <font color="#009900">)</font><font color="#FF0000">&quot;<font color="#660099">\x74</font>&quot;</font><font color="#339933">,</font><br />
        <font color="#0000DD">1</font><br />
        <font color="#808080"><i>/*,false*/</i></font><font color="#009900">)</font><font color="#339933">;</font> <font color="#666666"><i>// You don't have to set the last parameter because it has</i></font><br />
                    <font color="#666666"><i>// a default value, which is false. Therefore its an optional</i></font><br />
                    <font color="#666666"><i>// parameter.</i></font><br />
 <br />
<font color="#009900">}</font><font color="#339933">;</font></span><br />
<br />
The fourth constructor was written for hacks that don't have ant disable functionality. Meaning, once you enable the hack, you can't disable it.<br />
<font color="#7A7A7A"><span style="font-family: Tahoma">Code (c++):</span></font><br />
<span style="font-family: Consolas">using namespace GHL<font color="#339933">;</font><br />
 <br />
<font color="#993333">void</font> Example<font color="#009900">(</font><font color="#009900">)</font> <font color="#009900">{</font><br />
    Hack    GameMasterHack<font color="#339933">;</font><br />
    Hack    NXHack <font color="#339933">=</font> GameMasterHack<font color="#339933">;</font><br />
 <br />
    Hack    AntiBanHack<font color="#009900">(</font> <font color="#208080">0xDEADBEEF</font><font color="#339933">,</font> <font color="#009900">(</font> <font color="#339933">::</font><font color="#202020">BYTE</font><font color="#339933">*</font> <font color="#009900">)</font><font color="#FF0000">&quot;<font color="#660099">\x90</font><font color="#660099">\x90</font>&quot;</font><font color="#339933">,</font> <font color="#0000DD">2</font><font color="#339933">,</font> <font color="#009900">(</font> <font color="#339933">::</font><font color="#202020">BYTE</font><font color="#339933">*</font> <font color="#009900">)</font><font color="#FF0000">&quot;<font color="#660099">\x75</font><font color="#660099">\x05</font>&quot;</font><font color="#339933">,</font> <font color="#0000DD">2</font><font color="#339933">,</font> <font color="#000000">false</font> <font color="#009900">)</font><font color="#339933">;</font><br />
    Hack    SpeedHack<font color="#009900">(</font> <font color="#208080">0x00485F23</font><font color="#339933">,</font> <font color="#009900">(</font> <font color="#339933">::</font><font color="#202020">BYTE</font><font color="#339933">*</font> <font color="#009900">)</font><font color="#FF0000">&quot;<font color="#660099">\x75</font>&quot;</font><font color="#339933">,</font> <font color="#0000DD">1</font><font color="#339933">,</font> <font color="#009900">(</font> <font color="#339933">::</font><font color="#202020">BYTE</font><font color="#339933">*</font> <font color="#009900">)</font><font color="#FF0000">&quot;<font color="#660099">\x74</font>&quot;</font><font color="#339933">,</font> <font color="#0000DD">1</font> <font color="#009900">)</font><font color="#339933">;</font><br />
 <br />
    <font color="#666666"><i>// Look at this:</i></font><br />
    Hack    InvincibleHack<font color="#009900">(</font><br />
        <font color="#208080">0x0050245A</font><font color="#339933">,</font>             <font color="#666666"><i>// The address of Invincible Hack.</i></font><br />
        <font color="#009900">(</font> <font color="#339933">::</font><font color="#202020">BYTE</font><font color="#339933">*</font> <font color="#009900">)</font><font color="#FF0000">&quot;<font color="#660099">\x0F</font>&quot;</font><font color="#339933">,</font>      <font color="#666666"><i>// The byte that enables Invincible Hack.</i></font><br />
        <font color="#0000DD">1</font><font color="#339933">,</font>                      <font color="#666666"><i>// The length of the Enable Byte is only one byte.</i></font><br />
        <font color="#000000">true</font> <font color="#009900">)</font><font color="#339933">;</font>                 <font color="#666666"><i>// Set to true, to enable the Invincible Hack after declaration.</i></font><br />
<font color="#009900">}</font><font color="#339933">;</font></span><br />
<br />
The class Hack also have some functions, which are:<br />
<br />
<ol class="decimal"><li style="">::BOOL GHL::Hack::SetEnableBytes( const ::BYTE *in_EnableBytes, const ::UINT in_EnableBytesLen );</li><li style="">::BOOL GHL::Hack::SetDisableBytes( const ::BYTE *in_DisableBytes, const ::UINT in_DisableBytesLen );</li><li style="">::BOOL Hack::Enable( bool in_Enabled );</li><li style="">bool GHL::Hack::IsEnabled();</li></ol><br />
The first function is &quot;SetEnableBytes&quot;. It mainly used to either change up or to set the Enable Bytes of a Hack. Like this:<br />
<font color="#7A7A7A"><span style="font-family: Tahoma">Code (c++):</span></font><br />
<span style="font-family: Consolas">using namespace GHL<font color="#339933">;</font><br />
 <br />
<font color="#993333">void</font> Example<font color="#009900">(</font><font color="#009900">)</font> <font color="#009900">{</font><br />
    Hack    GameMasterHack<font color="#339933">;</font><br />
 <br />
    <font color="#666666"><i>// Look at this:</i></font><br />
    GameMasterHack.<font color="#202020">SetEnableBytes</font><font color="#009900">(</font><br />
        <font color="#009900">(</font> <font color="#339933">::</font><font color="#202020">BYTE</font><font color="#339933">*</font> <font color="#009900">)</font><font color="#FF0000">&quot;<font color="#660099">\xEB</font>&quot;</font><font color="#339933">,</font>  <font color="#666666"><i>// The Enable Byte(s).</i></font><br />
        <font color="#0000DD">1</font> <font color="#009900">)</font><font color="#339933">;</font>                <font color="#666666"><i>// The length of the Enable Byte(s).</i></font><br />
<font color="#009900">}</font><font color="#339933">;</font></span><br />
<br />
The function returns a ::BOOL value, which is a typedef for int. If the returned value is not TRUE or 0, that means something went wrong, therefore it was unable to set the enable bytes of a Hack.<br />
<br />
The second function is &quot;SetDisableBytes&quot;, its the exact same concept as the first function. The only difference is that this function is for the Disable Bytes.<br />
<br />
The third function is &quot;Enable&quot;, this function basically enables or disables a Hack object. If it successfully enabled the Hack, the value TRUE or 1 is returned. Else, something went wrong.<br />
Here is how its used:<br />
<font color="#7A7A7A"><span style="font-family: Tahoma">Code (c++):</span></font><br />
<span style="font-family: Consolas">GameMasterHack.<font color="#202020">Enable</font><font color="#009900">(</font> <font color="#000000">true</font> <font color="#009900">)</font><font color="#339933">;</font> <font color="#666666"><i>// Set to true to enable GameMasterHack, set to false to disable.</i></font></span><br />
<br />
The fourth function is &quot;IsEnabled&quot;. Basically, it checks if the Hack is enabled or disabled.<br />
<br />
<br />
<b>GHL Example:<br />
<font color="#7A7A7A"><span style="font-family: Tahoma">Code (c++):</span></font><br />
<span style="font-family: Consolas"><font color="#339933">#include &quot;GHL.h&quot;</font><br />
using namespace GHL<font color="#339933">;</font><br />
 <br />
<font color="#666666"><i>// Declare global variables:</i></font><br />
GHL<font color="#339933">::</font><font color="#202020">Hack</font>       g_SuperSpeedHack<font color="#009900">(</font> <font color="#208080">0x00456789</font><font color="#339933">,</font> <font color="#009900">(</font> <font color="#339933">::</font><font color="#202020">PBYTE</font><font color="#339933">*</font> <font color="#009900">)</font><font color="#FF0000">&quot;<font color="#660099">\x75</font>&quot;</font><font color="#339933">,</font> <font color="#0000DD">1</font><font color="#339933">,</font> <font color="#009900">(</font> <font color="#339933">::</font><font color="#202020">PBYTE</font><font color="#339933">*</font> <font color="#009900">)</font><font color="#FF0000">&quot;<font color="#660099">\x74</font>&quot;</font><font color="#339933">,</font> <font color="#0000DD">1</font><font color="#339933">,</font> <font color="#000000">false</font> <font color="#009900">)</font><font color="#339933">;</font><br />
GHL<font color="#339933">::</font><font color="#202020">Hack</font>       g_InvincibilityHack<font color="#009900">(</font> <font color="#208080">0x004FA133</font><font color="#339933">,</font> <font color="#009900">(</font> <font color="#339933">::</font><font color="#202020">PBYTE</font><font color="#339933">*</font> <font color="#009900">)</font><font color="#FF0000">&quot;<font color="#660099">\x90</font><font color="#660099">\x90</font>&quot;</font><font color="#339933">,</font> <font color="#0000DD">2</font> <font color="#009900">)</font><font color="#339933">;</font><br />
 <br />
<font color="#666666"><i>// CheckBox1: CheckBox to enable/disable SuperSpeed.</i></font><br />
<font color="#993333">void</font> CheckBox1_CheckEvent<font color="#009900">(</font><font color="#009900">)</font> <font color="#009900">{</font><br />
    g_SuperSpeedHack<font color="#009900">(</font> this<font color="#339933">-&gt;</font>CheckBox1.<font color="#202020">Checked</font> <font color="#009900">)</font><font color="#339933">;</font><br />
<font color="#009900">}</font><font color="#339933">;</font><br />
 <br />
<font color="#666666"><i>// CheckBox2: CheckBox to enable/disable Invincibility.</i></font><br />
<font color="#993333">void</font> CheckBox2_CheckEvent<font color="#009900">(</font><font color="#009900">)</font> <font color="#009900">{</font><br />
    <font color="#B1B100">if</font><font color="#009900">(</font> g_InvincibilityHack.<font color="#202020">IsEnabled</font><font color="#009900">(</font><font color="#009900">)</font> <font color="#339933">==</font> <font color="#000000">false</font> <font color="#009900">)</font><br />
        g_InvincibilityHack<font color="#009900">(</font> this<font color="#339933">-&gt;</font>CheckBox2.<font color="#202020">Checked</font> <font color="#009900">)</font><font color="#339933">;</font><br />
<font color="#009900">}</font><font color="#339933">;</font></span><br />
<br />
</b></b></b></b></b></b></b><!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.gamekiller.net/programming-reversing-general-discussion/"><![CDATA[Programming & Reversing General Discussion]]></category>
			<dc:creator>Kernel</dc:creator>
			<guid isPermaLink="true">http://www.gamekiller.net/programming-reversing-general-discussion/3190883-c-ghl-gamehackinglibrary-documentation.html</guid>
		</item>
		<item>
			<title><![CDATA[[Help] MapleStory Clientless bot C#]]></title>
			<link>http://www.gamekiller.net/programming-reversing-general-discussion/3190834-help-maplestory-clientless-bot-c.html</link>
			<pubDate>Sun, 19 May 2013 22:45:50 GMT</pubDate>
			<description><![CDATA[Can anyone help me with making a clientless bot? 
 
Like what's the login handler/structure? 
...]]></description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start -->Can anyone help me with making a clientless bot?<br />
<br />
Like what's the login handler/structure?<br />
<br />
please notify me if you can help me by doing <!-- BEGIN TEMPLATE: dbtech_usertag_mention -->
@<a href="http://www.gamekiller.net/members/roogix/" target="_blank">Roogix</a>
<!-- END TEMPLATE: dbtech_usertag_mention --><!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.gamekiller.net/programming-reversing-general-discussion/"><![CDATA[Programming & Reversing General Discussion]]></category>
			<dc:creator>Roogix</dc:creator>
			<guid isPermaLink="true">http://www.gamekiller.net/programming-reversing-general-discussion/3190834-help-maplestory-clientless-bot-c.html</guid>
		</item>
		<item>
			<title>My Hook</title>
			<link>http://www.gamekiller.net/programming-reversing-general-discussion/3190675-my-hook.html</link>
			<pubDate>Fri, 17 May 2013 22:32:29 GMT</pubDate>
			<description>It has W2S pretty much everything you need for a hook. :) 
 
 
Code: 
--------- 
struct cStack 
{ 
...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start -->It has W2S pretty much everything you need for a hook. :)<br />
<br />
<!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">struct cStack<br />
{<br />
&nbsp; &nbsp; cStack* PreviousStack;<br />
&nbsp; &nbsp; DWORD ReturnAddress;<br />
&nbsp; &nbsp; LPVOID Arguments[ 127 ];<br />
};<br />
<br />
const char* GetOperatingSystem( void )<br />
{<br />
&nbsp; &nbsp; static const UINT uiLen = 1024;<br />
&nbsp; &nbsp; char* szbuffer = new char[ uiLen ];<br />
<br />
&nbsp; &nbsp; RegGetValue( HKEY_LOCAL_MACHINE, &quot;SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion&quot;, &quot;ProductName&quot;, RRF_RT_ANY, NULL, szbuffer, (ULONG*)&amp;uiLen );<br />
<br />
&nbsp; &nbsp; return szbuffer;<br />
}<br />
<br />
bool Compare( LPBYTE lpData, LPBYTE lpMask, LPSTR szMask )<br />
{<br />
&nbsp; &nbsp; if( lpData == nullptr || lpMask == nullptr || szMask == nullptr )<br />
&nbsp; &nbsp; &nbsp; &nbsp; return FALSE;<br />
<br />
&nbsp; &nbsp; for( ; *szMask; ++szMask, ++lpData, ++lpMask )<br />
&nbsp; &nbsp; &nbsp; &nbsp; if( *szMask == 'x' &amp;&amp; *lpData != *lpMask ) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return FALSE;<br />
<br />
&nbsp; &nbsp; return ( ( *szMask ) == 0 ) ? true : false;<br />
}<br />
<br />
DWORD FindPattern( DWORD dwStartAddress, DWORD dwSearchLen, LPBYTE lpMask, LPSTR szMask )<br />
{<br />
&nbsp; &nbsp; if( dwStartAddress == 0 || dwSearchLen == 0 || lpMask == nullptr || szMask == nullptr )<br />
&nbsp; &nbsp; &nbsp; &nbsp; return 0;<br />
<br />
&nbsp; &nbsp; for( UINT i = 0; i &lt;= dwSearchLen; i++ )<br />
&nbsp; &nbsp; &nbsp; &nbsp; if( Compare( ( LPBYTE )( dwStartAddress + i ), lpMask, szMask ) )<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return ( dwStartAddress + i );<br />
<br />
&nbsp; &nbsp; return 0;<br />
}<br />
<br />
D3DXMATRIX Proj, View, World;<br />
<br />
bool WorldToScreen( LPDIRECT3DDEVICE9 DevicePtr, D3DXVECTOR3 In, UINT&amp; X, UINT &amp;Y )<br />
{<br />
&nbsp; &nbsp; D3DXVECTOR3 Out;<br />
<br />
&nbsp; &nbsp; D3DVIEWPORT9 Viewport = { 0, 0, 0, 0, 0.0f, 0.0f };<br />
&nbsp; &nbsp; DevicePtr-&gt;GetViewport( &amp;Viewport );<br />
&nbsp; &nbsp; D3DXVec3Project( &amp;Out, &amp;In, &amp;Viewport, &amp;Proj, &amp;View, &amp;World );<br />
<br />
&nbsp; &nbsp; if( ( ( UINT )Out.x &lt; Viewport.X || ( UINT )Out.x &gt; ( Viewport.X + Viewport.Width ) ) || ( ( UINT )Out.y &lt; Viewport.Y || ( UINT )Out.y &gt; ( Viewport.Y + Viewport.Height ) ) )<br />
&nbsp; &nbsp; &nbsp; &nbsp; return FALSE;<br />
<br />
&nbsp; &nbsp; if( ( UINT )Out.z == 0 )<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; X = ( UINT )Out.x;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Y = ( UINT )Out.y;<br />
&nbsp; &nbsp; &nbsp; &nbsp; return true;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; return false;<br />
}<br />
<br />
DWORD SetRenderStatePtr = 0;<br />
DWORD RenderRet = 0;<br />
<br />
void __fastcall HkSetRenderState( LPVOID ClassPtr, LPVOID StackPtr, UINT RenderState, DWORD Value )<br />
{<br />
&nbsp; &nbsp; cStack* pStack;<br />
&nbsp; &nbsp; __asm<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; MOV pStack, EBP<br />
&nbsp; &nbsp; &nbsp; &nbsp; pushad<br />
&nbsp; &nbsp; &nbsp; &nbsp; pushfd<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; LPDIRECT3DDEVICE9 pDevice = nullptr;<br />
&nbsp; &nbsp; if( pStack != nullptr &amp;&amp; pStack-&gt;PreviousStack != nullptr &amp;&amp; pStack-&gt;PreviousStack-&gt;ReturnAddress == RenderRet &amp;&amp; ( pDevice = (LPDIRECT3DDEVICE9)( pStack-&gt;PreviousStack-&gt;PreviousStack-&gt;Arguments[ 0 ] ) ) != nullptr )<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; //do stuff here<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; __asm<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; popfd<br />
&nbsp; &nbsp; &nbsp; &nbsp; popad<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; return ( ( void( __thiscall* )( LPVOID, UINT, DWORD ) ) SetRenderStatePtr )( ClassPtr, RenderState, Value );<br />
}<br />
<br />
DWORD SetTransformPtr = 0;<br />
DWORD TransformRet = 0;<br />
<br />
void __stdcall HkSetTransform( LPDIRECT3DDEVICE9 pDevice, D3DTRANSFORMSTATETYPE State, D3DXMATRIX* Matrix )<br />
{<br />
&nbsp; &nbsp; cStack* pStack;<br />
&nbsp; &nbsp; __asm <br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; MOV pStack, EBP<br />
&nbsp; &nbsp; &nbsp; &nbsp; pushad<br />
&nbsp; &nbsp; &nbsp; &nbsp; pushfd<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; if( pStack != nullptr &amp;&amp; pStack-&gt;ReturnAddress == TransformRet &amp;&amp; pStack-&gt;PreviousStack != nullptr &amp;&amp; pStack-&gt;PreviousStack-&gt;ReturnAddress == 0x00000000/*I'll help you update this*/ )<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; switch( State )<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; case D3DTS_PROJECTION:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Proj = *Matrix;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; case D3DTS_VIEW:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; View = *Matrix;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; case D3DTS_WORLD:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; World = *Matrix;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; default:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; __asm<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; popfd<br />
&nbsp; &nbsp; &nbsp; &nbsp; popad<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; return ( ( void( __stdcall* )( LPDIRECT3DDEVICE9, D3DTRANSFORMSTATETYPE, D3DXMATRIX* ) ) SetTransformPtr )( pDevice, State, Matrix );<br />
}<br />
<br />
<br />
ULONG WINAPI MainThread( LPVOID )<br />
{&nbsp; &nbsp; <br />
&nbsp; &nbsp; DWORD D3DModule = 0;<br />
<br />
&nbsp; &nbsp; while( D3DModule == 0 )<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; D3DModule = (DWORD)GetModuleHandle( &quot;d3d9.dll&quot; );<br />
&nbsp; &nbsp; &nbsp; &nbsp; Sleep( 100 );<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; DWORD CD3DTable = FindPattern( D3DModule, 0xFFFFFFFF, (LPBYTE)&quot;\xC7\x06\x00\x00\x00\x00\x89\x86\x00\x00\x00\x00\x89\x86&quot;, D3DBaseMask );<br />
<br />
&nbsp; &nbsp; DWORD CD3DDDIDX10Table = FindPattern( D3DModule, 0xFFFFFFFF, (LPBYTE)&quot;\xC7\x06\x00\x00\x00\x00\xC7\x46\x00\x0B&quot;, D3DDIDX10Mask );<br />
&nbsp; &nbsp; DWORD* pCD3DDDIDX10Table = nullptr;<br />
<br />
&nbsp; &nbsp; DWORD CD3DHalTable = FindPattern( D3DModule, 0xFFFFFFFF, (LPBYTE)&quot;\x33\xC0\xC7\x06\x00\x00\x00\x00\x89\x86\x00\x00\x00\x00\x89\x86&quot;, D3DHALMask );<br />
&nbsp; &nbsp; DWORD* pCD3DHalTable = nullptr;<br />
<br />
&nbsp; &nbsp; UINT DDTableIndex = 57;<br />
&nbsp; &nbsp; UINT HalTableIndex = 137;<br />
<br />
&nbsp; &nbsp; if( CD3DTable )<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; DWORD* pTable = *(DWORD**)( CD3DTable + 2 );<br />
&nbsp; &nbsp; &nbsp; &nbsp; if( pTable )<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; const char* OS = GetOperatingSystem( );<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( strstr( OS, &quot;Windows XP&quot; ) != 0 )<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RenderRet = pTable[ 42 ] + 0xB9;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TransformRet = pTable[ 44 ] + 0xA9;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( strstr( OS, &quot;Windows Vista&quot; ) != 0 || strstr( OS, &quot;Windows 7&quot; ) != 0 )<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RenderRet = pTable[ 42 ] + 0x9E;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TransformRet = pTable[ 44 ] + 0x88;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DDTableIndex = 61;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HalTableIndex = 152;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; if( CD3DDDIDX10Table )<br />
&nbsp; &nbsp; &nbsp; &nbsp; pCD3DDDIDX10Table = *(DWORD**)( CD3DDDIDX10Table + 2 );<br />
<br />
&nbsp; &nbsp; if( CD3DHalTable )<br />
&nbsp; &nbsp; &nbsp; &nbsp; pCD3DHalTable = *(DWORD**)( CD3DHalTable + 4 );<br />
<br />
&nbsp; &nbsp; DWORD ProtectionFlags;<br />
<br />
&nbsp; &nbsp; while( true )<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; if( VirtualProtect( &amp;pCD3DDDIDX10Table[ DDTableIndex ], 4, PAGE_EXECUTE_READWRITE, &amp;ProtectionFlags ) != FALSE )<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( *(DWORD*)&amp;pCD3DDDIDX10Table[ DDTableIndex ] != (DWORD)HkSetRenderState )<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( SetRenderStatePtr == 0 )<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetRenderStatePtr = *(DWORD*)&amp;pCD3DDDIDX10Table[ DDTableIndex ];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *(DWORD*)&amp;pCD3DDDIDX10Table[ DDTableIndex ] = (DWORD)HkSetRenderState;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VirtualProtect( &amp;pCD3DDDIDX10Table[ DDTableIndex ], 4, ProtectionFlags, &amp;ProtectionFlags );<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; if( VirtualProtect( &amp;pCD3DHalTable[ HalTableIndex ], 4, PAGE_EXECUTE_READWRITE, &amp;ProtectionFlags ) != FALSE )<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( *(DWORD*)&amp;pCD3DHalTable[ HalTableIndex ] != (DWORD)HkSetTransform )<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetTransformPtr = *(DWORD*)&amp;pCD3DHalTable[ HalTableIndex ];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *(DWORD*)&amp;pCD3DHalTable[ HalTableIndex ] = (DWORD)HkSetTransform;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VirtualProtect( &amp;pCD3DHalTable[ HalTableIndex ], 4, ProtectionFlags, &amp;ProtectionFlags );<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; Sleep( 100 );<br />
&nbsp; &nbsp; }<br />
}</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><b>It's not new but I still use it for CA. It contains W2S (World To Screen).</b><br />
<br />
<img src="http://puu.sh/2JwyR/10d6d555ed.jpg" border="0" alt="" /><!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.gamekiller.net/programming-reversing-general-discussion/"><![CDATA[Programming & Reversing General Discussion]]></category>
			<dc:creator>evilgaia</dc:creator>
			<guid isPermaLink="true">http://www.gamekiller.net/programming-reversing-general-discussion/3190675-my-hook.html</guid>
		</item>
		<item>
			<title>XCode</title>
			<link>http://www.gamekiller.net/programming-reversing-general-discussion/3190656-xcode.html</link>
			<pubDate>Fri, 17 May 2013 17:18:53 GMT</pubDate>
			<description>I have a mac, and I use Xcode to make my application, with the recent update that the Xcode...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start --><span style="font-family: Arial"><font size="2"><i>I have a mac, and I use Xcode to make my application, with the recent update that the Xcode software had, it is really useful and all.. I am not sure what to make for an application, I am a starter, I have not made anything with it before. but I just play around with it and got to know it.<br />
<br />
If you guys have any ideas or suggestions for me, please post it here!</i></font></span><!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.gamekiller.net/programming-reversing-general-discussion/"><![CDATA[Programming & Reversing General Discussion]]></category>
			<dc:creator>omaraa</dc:creator>
			<guid isPermaLink="true">http://www.gamekiller.net/programming-reversing-general-discussion/3190656-xcode.html</guid>
		</item>
		<item>
			<title>Things to know when entering this section.</title>
			<link>http://www.gamekiller.net/programming-reversing-general-discussion/3190582-things-know-when-entering-section.html</link>
			<pubDate>Thu, 16 May 2013 22:11:28 GMT</pubDate>
			<description>After about 5 minutes of digging through useless threads of people asking to be spoon-fed and...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start --><div style="text-align: center;"><font color="#ff0000">After about 5 minutes of digging through useless threads of people asking to be spoon-fed and trying to skid code, I think a thread like this needs to be made.<br />
<br />
</font><br />
<font color="#b22222"><font size="3">If you're new to this forum, or section in general you need to know a couple things before posting. <br />
<br />
</font></font></div><br />
<ul><li style=""><font color="#0000cd">If you have no knowledge what-so-ever, read tutorials, ebooks, and other helpful things! Do not come into this forum and create a thread about people helping you code hacks. You need to learn the language before you even start thinking about coding what ever it is that you're trying to do. For example, if you are only coming to this section to code MapleStory hacks, you're going to need to learn how to code in the language. Not how to code MapleStory hacks, but how to code in the language! Coding is no easy task and there are little, if any, shortcuts that will get you doing it. <u>If you're not willing to spend time learning the language, don't bother</u></font></li><li style=""><font color="#ff0000">Spoon feeding is something you cannot expect to happen to you. If you're making threads asking for code, or asking how to code, you won't find help here. You need to do your own research, we are not all your personal teachers.</font></li><li style=""><font color="#0000cd">Don't steal peoples work and claim it as your own! There's nothing worse than a skid that takes someone's open source project and claims it as their own. This is a big no-no anywhere and believe me, they will find out if it happens.</font></li><li style=""><font color="#ff0000">If you're having trouble with something, try Google before coming here. 9/10 you will find a solution on Google. Some easy ways to find quick answers is to search the error you're getting. If all else fails, there's nothing wrong with asking for a little bit of help, but always try to find a solution yourself first.</font></li><li style=""><font color="#0000cd">DO NOT make threads asking &quot;Where do I begin coding?&quot;, these threads are everywhere and fill this forum with junk. If you're looking for a place to start, start with the stickied thread at the top of the forum! A good thread to start would be </font><a href="!3154502!http://www.gamekiller.net/programming-reversing-general-discussion/3154502-new-coding-hacking-programming-general.html" target="_blank"><font color="#0000ff">here</font></a><font color="#0000cd">.</font></li><li style=""><font color="#ff0000">Don't title your threads with generic titles like &quot;Need Help!&quot; or &quot;Pls Fix!&quot;. A good thread will always have the error somehow titled in the thread.</font></li><li style=""><font color="#0000cd">Post your error/problem AND code snippet of where the problem is in the thread. No one will be able to help you if they cannot see what's going on. Help them help you.</font></li></ul><br />
<font color="#0000cd">&#8203;<br />
</font><font color="#ff8c00">If you're looking to code MapleStory/Game hacks, here's some very good info!<br />
</font><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px; width:852; height:26"><right><font color="red"><b>&nbsp;</b></font></right>  
<input type="button" value="Show Spoiler" style="font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';   this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
<br />
<!-- BEGIN TEMPLATE: bbcode_quote_printable -->
<div class="bbcode_container">
	<div class="bbcode_description">Quote:</div>
	<div class="bbcode_quote printable">
		<hr />
		
			<div>
				Originally Posted by <strong>Kernel</strong>
				<a href="showthread.php?p=3069037#post3069037" rel="nofollow"><img class="inlineimg" src="http://www.gamekiller.net/images/gamekiller/buttons/viewpost.gif" alt="View Post" /></a>
			</div>
			<div class="message">I started off as a person who just wanted to learn C++ for the purpose of game-hacking. I just wanted to make game trainers, bots, hacks and etc. But, as I learned more and become more experienced, I then wanted to do more with my skills in C++. So, people can change.<br />
<br />
<br />
I'll be more helpful.<br />
<br />
<br />
If you want to learn how to develop hacks for MapleStory, I suggest you download the latest version of Cheat Engine, which could be found at <u><a href="http://www.CheatEngine.org" target="_blank" rel="nofollow"><font color="#0000ff">www.CheatEngine.org</font></a></u> along with other excellent tutorials and information. Cheat Engine is an awesome software that allows you to modify and analyze the memory of a process, which are mainly games. In other words, you can develop your own hacks for MapleStory using Cheat Engine.<br />
<br />
<br />
Cheat Engine comes with an excellent tutorial that will help you get started. So, I highly recommend you try to complete the tutorial, which is easy.<br />
<br />
<br />
There are other great tools other than Cheat Engine. But for starters, I highly recommend Cheat Engine.<br />
<br />
<br />
As for creating a trainer for games, there are many other ways to create them. You can write your game trainers and/or bots by learning any of the following language:<br />
<br />
<br />
<br />
<ul><li style=""><acronym title="vBulletin">VB</acronym> (Visual Basic)</li></ul><br />
<br />
<br />
<br />
<br />
<ul><li style="">C# (C-Sharp)</li></ul><br />
<br />
<br />
<br />
<br />
<ul><li style="">C</li></ul><br />
<br />
<br />
<br />
<br />
<ul><li style="">C++ (C-Plus-Plus)</li></ul><br />
<br />
<br />
<br />
<br />
<ul><li style="">C-Plus-Plus (C++)</li></ul><br />
<br />
<br />
<br />
<br />
<ul><li style="">Java</li></ul><br />
<br />
<br />
<br />
<br />
<ul><li style="">Delphi</li></ul><br />
<br />
<br />
<br />
<br />
<ul><li style="">Python</li></ul><br />
<br />
<br />
<br />
<br />
<ul><li style="">And many more...</li></ul><br />
<br />
<br />
<br />
This means C++ is not the only language that allows you to write your own game bots and trainers. After picking a language, do not jump right into developing a bot or a trainer for games. You must learn the language itself.</div>
			
		<hr />
	</div>
</div>
<!-- END TEMPLATE: bbcode_quote_printable --><!-- BEGIN TEMPLATE: bbcode_quote_printable -->
<div class="bbcode_container">
	<div class="bbcode_description">Quote:</div>
	<div class="bbcode_quote printable">
		<hr />
		
			<div>
				Originally Posted by <strong>EvilGaia</strong>
				<a href="showthread.php?p=3069228#post3069228" rel="nofollow"><img class="inlineimg" src="http://www.gamekiller.net/images/gamekiller/buttons/viewpost.gif" alt="View Post" /></a>
			</div>
			<div class="message">now for the books to download<br />
<br />
<br />
<a href="http://psychonautsoul.webs.com/c-2" target="_blank" rel="nofollow">Game Hacking &amp; Programming - C++</a></div>
			
		<hr />
	</div>
</div>
<!-- END TEMPLATE: bbcode_quote_printable --><br />

</div>
</div>
</div><br />
<br />
<br />
<div style="text-align: center;"><font size="3">Unfortunately, this thread will hardly be read by people coming into this section. I'm just trying to do my best to help out, as from what I see this section is a low quality haven. Good luck to all new and old. :thumb:</font></div><!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.gamekiller.net/programming-reversing-general-discussion/"><![CDATA[Programming & Reversing General Discussion]]></category>
			<dc:creator>KhainSolja</dc:creator>
			<guid isPermaLink="true">http://www.gamekiller.net/programming-reversing-general-discussion/3190582-things-know-when-entering-section.html</guid>
		</item>
		<item>
			<title>Iphone app project !</title>
			<link>http://www.gamekiller.net/programming-reversing-general-discussion/3190569-iphone-app-project.html</link>
			<pubDate>Thu, 16 May 2013 16:04:18 GMT</pubDate>
			<description><![CDATA[Hey all GK programmers !  
I have a simple app idea for iphone, but I don't have a clue on how to...]]></description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start -->Hey all GK programmers ! <br />
I have a simple app idea for iphone, but I don't have a clue on how to make an iphone app.<br />
First of all, I would like to make an app like : checkpoints, app trailers, tapporo etc.. After people using it, getting some cash with the advertisement of the &quot;ptc&quot; app after paying the active users. If anyone want to make this working ( 50/50 of the earning ) pm me on GK.<br />
<br />
Exilia123...<!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.gamekiller.net/programming-reversing-general-discussion/"><![CDATA[Programming & Reversing General Discussion]]></category>
			<dc:creator>exilia123</dc:creator>
			<guid isPermaLink="true">http://www.gamekiller.net/programming-reversing-general-discussion/3190569-iphone-app-project.html</guid>
		</item>
		<item>
			<title><![CDATA[[C#] Working on a messenger for me and my friends.]]></title>
			<link>http://www.gamekiller.net/programming-reversing-general-discussion/3190416-c-working-messenger-me-my-friends.html</link>
			<pubDate>Tue, 14 May 2013 19:06:26 GMT</pubDate>
			<description><![CDATA[So as I'am saying I'am working on this messenger and I need help from anyone who has experience in...]]></description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start -->So as I'am saying I'am working on this messenger and I need help from anyone who has experience in sockets and stuff,<br />
<br />
My problem is hosting the server I have tried both with my public IP &quot;from whatismyip.com&quot; and my local IP I opened a port for this actually made the messenger open a port for me, and I tried it on a PC from the same network it works fine when I connect as a Client from the same network with the local IP but it doesnt work with the public IP and it doesnt work when anyone from a different network to connect I know I suck at explaining and my grammar is not the best so forgive me for that and please help me out :D? <br />
<br />
Thanks in advance.<!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.gamekiller.net/programming-reversing-general-discussion/"><![CDATA[Programming & Reversing General Discussion]]></category>
			<dc:creator>DarkSerenity</dc:creator>
			<guid isPermaLink="true">http://www.gamekiller.net/programming-reversing-general-discussion/3190416-c-working-messenger-me-my-friends.html</guid>
		</item>
		<item>
			<title>Web programming application/question.</title>
			<link>http://www.gamekiller.net/programming-reversing-general-discussion/3190412-web-programming-application-question.html</link>
			<pubDate>Tue, 14 May 2013 17:13:39 GMT</pubDate>
			<description>Hello. 
 
I have a question and sort of an application here. 
 
*Question: *Is it possible to be a...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start -->Hello.<br />
<br />
I have a question and sort of an application here.<br />
<br />
<b>Question: </b><i>Is it possible to be a website programmer here?<br />
</i><br />
<b>Application:</b><i><br />
I have been a web programmer for about 2.5 years now.<br />
<br />
I am currently working on a website for my grand chase guild, you can check it out here. it is in its starter development: <a href="http://fearfighters.x10.mx" target="_blank" rel="nofollow">FearFighters Site</a>.<br />
<br />
Langauges I know: HTML, CSS, PHP, SQL, Javascript, (I know more but those are the only ones I know and are for web programming.)<br />
<br />
</i><!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.gamekiller.net/programming-reversing-general-discussion/"><![CDATA[Programming & Reversing General Discussion]]></category>
			<dc:creator>omaraa</dc:creator>
			<guid isPermaLink="true">http://www.gamekiller.net/programming-reversing-general-discussion/3190412-web-programming-application-question.html</guid>
		</item>
		<item>
			<title>Have you heard of RBX.Lua?</title>
			<link>http://www.gamekiller.net/programming-reversing-general-discussion/3190411-have-you-heard-rbx-lua.html</link>
			<pubDate>Tue, 14 May 2013 17:07:01 GMT</pubDate>
			<description>Hey guys, 
 
If you are a starter in programming and you really want to make games, I suggest that...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start -->Hey guys,<br />
<br />
If you are a starter in programming and you really want to make games, I suggest that you look into learning RBX.Lua.<br />
<br />
<b>What is RBX.Lua?<br />
</b><br />
rbx.lua is a programming language used for a website called roblox, roblox is a website for kids and adults, you can create an account have a character, and play games that other members have made, OR you can make your own games, roblox offers a easy to learn programming language and it has its own engine to build games, called roblox studio. roblox studio offers a lot of neat things that can help you create a game, also it is very user friendly.<br />
<br />
If you go to youtube and check out some things that people have made you can have a little feel of how it works.<br />
<br />
Note:<br />
<br />
You can go to <a href="http://roblox.com" target="_blank" rel="nofollow">Free Games at ROBLOX.com</a> and play a game as a guest, all you need to do is go to the game page and click one which ever game you would like to check out. it will require you to download the roblox player program which will not harm your computer at all. also, when you down load roblox it will supply you with roblox studio as well.<br />
<br />
If you have anymore questions feel free to ask, I have asked sent a message to blaze about it and we’ll see what he says :)<!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.gamekiller.net/programming-reversing-general-discussion/"><![CDATA[Programming & Reversing General Discussion]]></category>
			<dc:creator>omaraa</dc:creator>
			<guid isPermaLink="true">http://www.gamekiller.net/programming-reversing-general-discussion/3190411-have-you-heard-rbx-lua.html</guid>
		</item>
		<item>
			<title><![CDATA[Kernel's Free & Open-Source Game-Hacking Library: GHL]]></title>
			<link>http://www.gamekiller.net/programming-reversing-general-discussion/3190029-kernels-free-open-source-game-hacking-library-ghl.html</link>
			<pubDate>Thu, 09 May 2013 05:39:34 GMT</pubDate>
			<description>Hi there, 
I am a programmer at CCPlz and decided to stop by here to share something with you all....</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start -->Hi there,<br />
I am a programmer at CCPlz and decided to stop by here to share something with you all. Today, I will be sharing a new library for game-hacking, it was written in C++ by me, Kernel. Its called, &quot;GameHackingLibrary&quot; (GHL). Since its new and haven't been tested by others, I will be expecting some issues and bugs within it. So, if you believe you have found a bug or an issue related to GHL, please do report it as soon as possible. Thank you and remember to give me credits.<br />
<br />
GHL.h<br />
<!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><font color="#339933"><span style="font-family: Consolas">#ifndef KERNEL_GAMEHACKINGLIB_H</span></font><br />
<font color="#339933"><span style="font-family: Consolas">#define KERNEL_GAMEHACKINGLIB_H</span></font><br />
<br />
<font color="#339933"><span style="font-family: Consolas">#include &quot;stdafx.h&quot;</span></font><br />
<br />
<font color="#339933"><span style="font-family: Consolas">#define WIN32_LEAN_AND_MEAN</span></font><br />
<br />
<font color="#339933"><span style="font-family: Consolas">#include &lt;windows.h&gt;</span></font><br />
<br />
<font color="#339933"><span style="font-family: Consolas">#define GHL_VERSION&nbsp; &nbsp;  1</span></font><br />
<br />
<font color="#141414"><span style="font-family: Consolas">namespace GHL</span></font><br />
<font color="#009900"><span style="font-family: Consolas">{</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; class Hack</span></font><br />
<font color="#009900"><span style="font-family: Consolas">{</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; public</span></font><font color="#339933"><span style="font-family: Consolas">:</span></font><br />
<font color="#666666"><span style="font-family: Consolas"><i>// Constructor #1 (Default Constructor):</i></span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; Hack</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">:</span></font><font color="#141414"><span style="font-family: Consolas"> m_Address</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> NULL </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> m_EnableBytes</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> NULL </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> m_EnableBytesLen</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> NULL </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> m_DisableBytes</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> NULL </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> m_DisableBytesLen</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> NULL </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> m_Enabled</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#000000"><span style="font-family: Consolas"><b>false</b></span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#009900"><span style="font-family: Consolas">{</span></font><br />
<font color="#009900"><span style="font-family: Consolas">}</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#666666"><span style="font-family: Consolas"><i>// Constructor #2 (Copy Constructor):</i></span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; Hack</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#993333"><span style="font-family: Consolas">const</span></font><font color="#141414"><span style="font-family: Consolas"> Hack</span></font><font color="#339933"><span style="font-family: Consolas">&amp;</span></font><font color="#141414"><span style="font-family: Consolas"> in_Other </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#339933"><span style="font-family: Consolas">:</span></font><font color="#141414"><span style="font-family: Consolas"> m_Address</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> in_Other.</span></font><font color="#202020"><span style="font-family: Consolas">m_Address</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> m_EnableBytes</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> new </span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">BYTE</span></font><font color="#009900"><span style="font-family: Consolas">[</span></font><font color="#141414"><span style="font-family: Consolas"> in_Other.</span></font><font color="#202020"><span style="font-family: Consolas">m_EnableBytesLen</span></font><font color="#009900"><span style="font-family: Consolas">]</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> m_EnableBytesLen</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> in_Other.</span></font><font color="#202020"><span style="font-family: Consolas">m_EnableBytesLen</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> m_DisableBytes</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> new </span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">BYTE</span></font><font color="#009900"><span style="font-family: Consolas">[</span></font><font color="#141414"><span style="font-family: Consolas"> in_Other.</span></font><font color="#202020"><span style="font-family: Consolas">m_DisableBytesLen</span></font><font color="#009900"><span style="font-family: Consolas">]</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> m_DisableBytesLen</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> in_Other.</span></font><font color="#202020"><span style="font-family: Consolas">m_DisableBytesLen</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> m_Enabled</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> in_Other.</span></font><font color="#202020"><span style="font-family: Consolas">m_Enabled</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#009900"><span style="font-family: Consolas">{</span></font><br />
<font color="#339933"><span style="font-family: Consolas">::</span></font><a href="http://www.opengroup.org/onlinepubs/009695399/functions/memcpy.html" target="_blank" rel="nofollow"><font color="#000066">memcpy</font></a><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_EnableBytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; in_Other.</span></font><font color="#202020"><span style="font-family: Consolas">m_EnableBytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><br />
<font color="#993333"><span style="font-family: Consolas">sizeof</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_EnableBytes</span></font><font color="#009900"><span style="font-family: Consolas">[</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#009900"><span style="font-family: Consolas">]</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">*</span></font><font color="#141414"><span style="font-family: Consolas"> in_Other.</span></font><font color="#202020"><span style="font-family: Consolas">m_EnableBytesLen</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#339933"><span style="font-family: Consolas">::</span></font><a href="http://www.opengroup.org/onlinepubs/009695399/functions/memcpy.html" target="_blank" rel="nofollow"><font color="#000066">memcpy</font></a><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_DisableBytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; in_Other.</span></font><font color="#202020"><span style="font-family: Consolas">m_DisableBytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><br />
<font color="#993333"><span style="font-family: Consolas">sizeof</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_DisableBytes</span></font><font color="#009900"><span style="font-family: Consolas">[</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#009900"><span style="font-family: Consolas">]</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">*</span></font><font color="#141414"><span style="font-family: Consolas"> in_Other.</span></font><font color="#202020"><span style="font-family: Consolas">m_DisableBytesLen</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#B1B100"><span style="font-family: Consolas">if</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> in_Other.</span></font><font color="#202020"><span style="font-family: Consolas">m_Enabled</span></font><font color="#339933"><span style="font-family: Consolas">==</span></font><font color="#000000"><span style="font-family: Consolas"><b>true</b></span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#009900"><span style="font-family: Consolas">{</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">Enable</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#000000"><span style="font-family: Consolas"><b>true</b></span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><font color="#009900"><span style="font-family: Consolas">}</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#009900"><span style="font-family: Consolas">}</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#666666"><span style="font-family: Consolas"><i>// Assignment.</i></span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; Hack</span></font><font color="#339933"><span style="font-family: Consolas">&amp;</span></font><font color="#141414"><span style="font-family: Consolas"> operator</span></font><font color="#339933"><span style="font-family: Consolas">=</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#993333"><span style="font-family: Consolas">const</span></font><font color="#141414"><span style="font-family: Consolas"> Hack</span></font><font color="#339933"><span style="font-family: Consolas">&amp;</span></font><font color="#141414"><span style="font-family: Consolas"> in_Other </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#009900"><span style="font-family: Consolas">{</span></font><br />
<font color="#B1B100"><span style="font-family: Consolas">if</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> this </span></font><font color="#339933"><span style="font-family: Consolas">!=</span></font><font color="#339933"><span style="font-family: Consolas">&amp;</span></font><font color="#141414"><span style="font-family: Consolas">in_Other </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#009900"><span style="font-family: Consolas">{</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_Address </span></font><font color="#339933"><span style="font-family: Consolas">=</span></font><font color="#141414"><span style="font-family: Consolas"> in_Other.</span></font><font color="#202020"><span style="font-family: Consolas">m_Address</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#B1B100"><span style="font-family: Consolas">if</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_EnableBytes </span></font><font color="#339933"><span style="font-family: Consolas">!=</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#009900"><span style="font-family: Consolas">{</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; delete </span></font><font color="#009900"><span style="font-family: Consolas">[</span></font><font color="#009900"><span style="font-family: Consolas">]</span></font><font color="#141414"><span style="font-family: Consolas"> m_EnableBytes</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_EnableBytes </span></font><font color="#339933"><span style="font-family: Consolas">=</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#009900"><span style="font-family: Consolas">}</span></font><br />
<font color="#B1B100"><span style="font-family: Consolas">if</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_DisableBytes </span></font><font color="#339933"><span style="font-family: Consolas">!=</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#009900"><span style="font-family: Consolas">{</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; delete </span></font><font color="#009900"><span style="font-family: Consolas">[</span></font><font color="#009900"><span style="font-family: Consolas">]</span></font><font color="#141414"><span style="font-family: Consolas"> m_DisableBytes</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_DisableBytes </span></font><font color="#339933"><span style="font-family: Consolas">=</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#009900"><span style="font-family: Consolas">}</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_EnableBytes </span></font><font color="#339933"><span style="font-family: Consolas">=</span></font><font color="#141414"><span style="font-family: Consolas"> new </span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">BYTE</span></font><font color="#009900"><span style="font-family: Consolas">[</span></font><font color="#141414"><span style="font-family: Consolas"> in_Other.</span></font><font color="#202020"><span style="font-family: Consolas">m_EnableBytesLen</span></font><font color="#009900"><span style="font-family: Consolas">]</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_DisableBytes </span></font><font color="#339933"><span style="font-family: Consolas">=</span></font><font color="#141414"><span style="font-family: Consolas"> new </span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">BYTE</span></font><font color="#009900"><span style="font-family: Consolas">[</span></font><font color="#141414"><span style="font-family: Consolas"> in_Other.</span></font><font color="#202020"><span style="font-family: Consolas">m_DisableBytesLen</span></font><font color="#009900"><span style="font-family: Consolas">]</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_EnableBytesLen </span></font><font color="#339933"><span style="font-family: Consolas">=</span></font><font color="#141414"><span style="font-family: Consolas"> in_Other.</span></font><font color="#202020"><span style="font-family: Consolas">m_EnableBytesLen</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_DisableBytesLen </span></font><font color="#339933"><span style="font-family: Consolas">=</span></font><font color="#141414"><span style="font-family: Consolas"> in_Other.</span></font><font color="#202020"><span style="font-family: Consolas">m_DisableBytesLen</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#339933"><span style="font-family: Consolas">::</span></font><a href="http://www.opengroup.org/onlinepubs/009695399/functions/memcpy.html" target="_blank" rel="nofollow"><font color="#000066">memcpy</font></a><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_EnableBytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; in_Other.</span></font><font color="#202020"><span style="font-family: Consolas">m_EnableBytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><br />
<font color="#993333"><span style="font-family: Consolas">sizeof</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_EnableBytes</span></font><font color="#009900"><span style="font-family: Consolas">[</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#009900"><span style="font-family: Consolas">]</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">*</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_EnableBytesLen </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#339933"><span style="font-family: Consolas">::</span></font><a href="http://www.opengroup.org/onlinepubs/009695399/functions/memcpy.html" target="_blank" rel="nofollow"><font color="#000066">memcpy</font></a><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_DisableBytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; in_Other.</span></font><font color="#202020"><span style="font-family: Consolas">m_DisableBytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><br />
<font color="#993333"><span style="font-family: Consolas">sizeof</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_DisableBytes</span></font><font color="#009900"><span style="font-family: Consolas">[</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#009900"><span style="font-family: Consolas">]</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">*</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_DisableBytesLen </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_Enabled </span></font><font color="#339933"><span style="font-family: Consolas">=</span></font><font color="#141414"><span style="font-family: Consolas"> in_Other.</span></font><font color="#202020"><span style="font-family: Consolas">m_Enabled</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#B1B100"><span style="font-family: Consolas">if</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_Enabled </span></font><font color="#339933"><span style="font-family: Consolas">==</span></font><font color="#000000"><span style="font-family: Consolas"><b>true</b></span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#009900"><span style="font-family: Consolas">{</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">Enable</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#000000"><span style="font-family: Consolas"><b>true</b></span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><font color="#009900"><span style="font-family: Consolas">}</span></font><br />
<font color="#009900"><span style="font-family: Consolas">}</span></font><br />
<font color="#B1B100"><span style="font-family: Consolas">return</span></font><font color="#339933"><span style="font-family: Consolas">*</span></font><font color="#141414"><span style="font-family: Consolas">this</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#009900"><span style="font-family: Consolas">}</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#666666"><span style="font-family: Consolas"><i>// Constructor #3:</i></span></font><br />
<font color="#666666"><span style="font-family: Consolas"><i>// This constructor should be use to fully initialize the Hack.</i></span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; Hack</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">DWORD</span></font><font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp;  in_Address</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><br />
<font color="#993333"><span style="font-family: Consolas">const</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">BYTE</span></font><font color="#339933"><span style="font-family: Consolas">*</span></font><font color="#141414"><span style="font-family: Consolas">in_EnableBytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><br />
<font color="#993333"><span style="font-family: Consolas">const</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">UINT</span></font><font color="#141414"><span style="font-family: Consolas">&nbsp; in_EnableBytesLen</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><br />
<font color="#993333"><span style="font-family: Consolas">const</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">BYTE</span></font><font color="#339933"><span style="font-family: Consolas">*</span></font><font color="#141414"><span style="font-family: Consolas">in_DisableBytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><br />
<font color="#993333"><span style="font-family: Consolas">const</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">UINT</span></font><font color="#141414"><span style="font-family: Consolas">&nbsp; in_DisableBytesLen</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bool&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; in_opt_Enabled </span></font><font color="#339933"><span style="font-family: Consolas">=</span></font><font color="#000000"><span style="font-family: Consolas"><b>false</b></span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#666666"><span style="font-family: Consolas"><i>// Constructor #4:</i></span></font><br />
<font color="#666666"><span style="font-family: Consolas"><i>// For Hacks that can't be disable - unless there are disable bytes,</i></span></font><br />
<font color="#666666"><span style="font-family: Consolas"><i>// which can be set by using member function: SetDisableBytes.</i></span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; Hack</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">DWORD</span></font><font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp;  in_Address</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><br />
<font color="#993333"><span style="font-family: Consolas">const</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">BYTE</span></font><font color="#339933"><span style="font-family: Consolas">*</span></font><font color="#141414"><span style="font-family: Consolas">in_EnableBytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><br />
<font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">UINT</span></font><font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; in_EnableBytesLen</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bool&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; in_opt_Enabled </span></font><font color="#339933"><span style="font-family: Consolas">=</span></font><font color="#000000"><span style="font-family: Consolas"><b>false</b></span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#666666"><span style="font-family: Consolas"><i>// Destructor, which does the cleaning.</i></span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; ~Hack</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#009900"><span style="font-family: Consolas">{</span></font><br />
<font color="#B1B100"><span style="font-family: Consolas">if</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> m_EnableBytes </span></font><font color="#339933"><span style="font-family: Consolas">!=</span></font><font color="#141414"><span style="font-family: Consolas"> NULL </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#009900"><span style="font-family: Consolas">{</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; delete </span></font><font color="#009900"><span style="font-family: Consolas">[</span></font><font color="#009900"><span style="font-family: Consolas">]</span></font><font color="#141414"><span style="font-family: Consolas"> m_EnableBytes</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m_EnableBytes </span></font><font color="#339933"><span style="font-family: Consolas">=</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#009900"><span style="font-family: Consolas">}</span></font><br />
<font color="#B1B100"><span style="font-family: Consolas">if</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> m_DisableBytes </span></font><font color="#339933"><span style="font-family: Consolas">!=</span></font><font color="#141414"><span style="font-family: Consolas"> NULL </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#009900"><span style="font-family: Consolas">{</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; delete </span></font><font color="#009900"><span style="font-family: Consolas">[</span></font><font color="#009900"><span style="font-family: Consolas">]</span></font><font color="#141414"><span style="font-family: Consolas"> m_DisableBytes</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m_DisableBytes </span></font><font color="#339933"><span style="font-family: Consolas">=</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#009900"><span style="font-family: Consolas">}</span></font><br />
<font color="#009900"><span style="font-family: Consolas">}</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; public</span></font><font color="#339933"><span style="font-family: Consolas">:</span></font><br />
<font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">DWORD</span></font><font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp;  m_Address</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; private</span></font><font color="#339933"><span style="font-family: Consolas">:</span></font><br />
<font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">BYTE</span></font><font color="#339933"><span style="font-family: Consolas">*</span></font><font color="#141414"><span style="font-family: Consolas">m_EnableBytes</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">UINT</span></font><font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; m_EnableBytesLen</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">BYTE</span></font><font color="#339933"><span style="font-family: Consolas">*</span></font><font color="#141414"><span style="font-family: Consolas">m_DisableBytes</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">UINT</span></font><font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; m_DisableBytesLen</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; bool&nbsp; &nbsp; &nbsp; &nbsp; m_Enabled</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; public</span></font><font color="#339933"><span style="font-family: Consolas">:</span></font><br />
<font color="#666666"><span style="font-family: Consolas"><i>// This function is used to set the enable bytes (Hack::m_EnableBytes):</i></span></font><br />
<font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">BOOL</span></font><font color="#141414"><span style="font-family: Consolas"> SetEnableBytes</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#993333"><span style="font-family: Consolas">const</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">BYTE</span></font><font color="#339933"><span style="font-family: Consolas">*</span></font><font color="#141414"><span style="font-family: Consolas">in_EnableBytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#993333"><span style="font-family: Consolas">const</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">UINT</span></font><font color="#141414"><span style="font-family: Consolas"> in_EnableBytesLen </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#666666"><span style="font-family: Consolas"><i>// This function is used to set the disable bytes (Hack::m_DisableBytes):</i></span></font><br />
<font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">BOOL</span></font><font color="#141414"><span style="font-family: Consolas"> SetDisableBytes</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#993333"><span style="font-family: Consolas">const</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">BYTE</span></font><font color="#339933"><span style="font-family: Consolas">*</span></font><font color="#141414"><span style="font-family: Consolas">in_DisableBytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#993333"><span style="font-family: Consolas">const</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">UINT</span></font><font color="#141414"><span style="font-family: Consolas"> in_DisableBytesLen </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#666666"><span style="font-family: Consolas"><i>// This function is used to enable/disable the Hack.</i></span></font><br />
<font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">BOOL</span></font><font color="#141414"><span style="font-family: Consolas"> Enable</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> bool in_Enabled </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#000000"><span style="font-family: Consolas"><b>inline</b></span></font><font color="#141414"><span style="font-family: Consolas"> bool IsEnabled</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#009900"><span style="font-family: Consolas">}</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#666666"><span style="font-family: Consolas"><i>// This function is used to write memory.</i></span></font><br />
<font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">BOOL</span></font><font color="#141414"><span style="font-family: Consolas"> WriteMemory</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#993333"><span style="font-family: Consolas">const</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">DWORD</span></font><font color="#339933"><span style="font-family: Consolas">&amp;</span></font><font color="#141414"><span style="font-family: Consolas">in_Address</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">BYTE</span></font><font color="#339933"><span style="font-family: Consolas">*</span></font><font color="#141414"><span style="font-family: Consolas">in_Bytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#993333"><span style="font-family: Consolas">const</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">UINT</span></font><font color="#339933"><span style="font-family: Consolas">&amp;</span></font><font color="#141414"><span style="font-family: Consolas">in_Len </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#009900"><span style="font-family: Consolas">}</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#339933"><span style="font-family: Consolas">#endif // KERNEL_GAMEHACKINGLIB_H</span></font></code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->GHL.cpp<br />
<!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><font color="#339933"><span style="font-family: Consolas">#include &quot;stdafx.h&quot;</span></font><br />
<br />
<font color="#339933"><span style="font-family: Consolas">#include &quot;GHL.h&quot;</span></font><br />
<br />
<font color="#141414"><span style="font-family: Consolas">using namespace GHL</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#808080"><span style="font-family: Consolas"><i>/**<br />
&nbsp; &nbsp; Constructor #3:<br />
&nbsp; &nbsp; This constructor is the &quot;main&quot; constructor, not the default<br />
&nbsp; &nbsp; constructor of class Hack. It should be used to completely<br />
&nbsp; &nbsp; initialize the Hack.<br />
*/</i></span></font><br />
<font color="#141414"><span style="font-family: Consolas">Hack</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">Hack</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">DWORD</span></font><font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp;  in_Address</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><br />
<font color="#993333"><span style="font-family: Consolas">const</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">BYTE</span></font><font color="#339933"><span style="font-family: Consolas">*</span></font><font color="#141414"><span style="font-family: Consolas">in_EnableBytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><br />
<font color="#993333"><span style="font-family: Consolas">const</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">UINT</span></font><font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; in_EnableBytesLen</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><br />
<font color="#993333"><span style="font-family: Consolas">const</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">BYTE</span></font><font color="#339933"><span style="font-family: Consolas">*</span></font><font color="#141414"><span style="font-family: Consolas">in_DisableBytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><br />
<font color="#993333"><span style="font-family: Consolas">const</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">UINT</span></font><font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; in_DisableBytesLen</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bool&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; in_opt_Enabled </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#339933"><span style="font-family: Consolas">:</span></font><font color="#141414"><span style="font-family: Consolas"> m_Address</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> in_Address </span></font><font color="#339933"><span style="font-family: Consolas">==</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#339933"><span style="font-family: Consolas">?</span></font><font color="#141414"><span style="font-family: Consolas"> NULL </span></font><font color="#339933"><span style="font-family: Consolas">:</span></font><font color="#141414"><span style="font-family: Consolas"> in_Address </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> m_EnableBytes</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> m_EnableBytesLen</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> in_EnableBytesLen </span></font><font color="#339933"><span style="font-family: Consolas">==</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#339933"><span style="font-family: Consolas">?</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#339933"><span style="font-family: Consolas">:</span></font><font color="#141414"><span style="font-family: Consolas"> in_EnableBytesLen </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> m_DisableBytes</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> m_DisableBytesLen</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> in_DisableBytesLen </span></font><font color="#339933"><span style="font-family: Consolas">==</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#339933"><span style="font-family: Consolas">?</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#339933"><span style="font-family: Consolas">:</span></font><font color="#141414"><span style="font-family: Consolas"> in_DisableBytesLen </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> m_Enabled</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#000000"><span style="font-family: Consolas"><b>false</b></span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#009900"><span style="font-family: Consolas">{</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_Address </span></font><font color="#339933"><span style="font-family: Consolas">=</span></font><font color="#141414"><span style="font-family: Consolas"> in_Address</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; SetEnableBytes</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> in_EnableBytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_EnableBytesLen </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; SetDisableBytes</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> in_DisableBytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_DisableBytesLen </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#B1B100"><span style="font-family: Consolas">if</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> in_opt_Enabled </span></font><font color="#339933"><span style="font-family: Consolas">==</span></font><font color="#000000"><span style="font-family: Consolas"><b>true</b></span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#009900"><span style="font-family: Consolas">{</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">Enable</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#000000"><span style="font-family: Consolas"><b>true</b></span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><font color="#009900"><span style="font-family: Consolas">}</span></font><br />
<font color="#009900"><span style="font-family: Consolas">}</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#808080"><span style="font-family: Consolas"><i>/**<br />
&nbsp; &nbsp; Constructor #4:<br />
&nbsp; &nbsp; This contructor should only be use if the Hack is designed to<br />
&nbsp; &nbsp; to not be disabled. However, this could be changed later on by<br />
&nbsp; &nbsp; setting the disable bytes using the member function:<br />
&nbsp; &nbsp; Hack::SetDisableBytes.<br />
*/</i></span></font><br />
<font color="#141414"><span style="font-family: Consolas">Hack</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">Hack</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">DWORD</span></font><font color="#141414"><span style="font-family: Consolas"> in_Address</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><br />
<font color="#993333"><span style="font-family: Consolas">const</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">BYTE</span></font><font color="#339933"><span style="font-family: Consolas">*</span></font><font color="#141414"><span style="font-family: Consolas">in_EnableBytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><br />
<font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">UINT</span></font><font color="#141414"><span style="font-family: Consolas"> in_EnableBytesLen</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bool in_opt_Enabled </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#339933"><span style="font-family: Consolas">:</span></font><font color="#141414"><span style="font-family: Consolas"> m_Address</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> in_Address </span></font><font color="#339933"><span style="font-family: Consolas">==</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#339933"><span style="font-family: Consolas">?</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#339933"><span style="font-family: Consolas">:</span></font><font color="#141414"><span style="font-family: Consolas"> in_Address </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> m_EnableBytes</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> m_EnableBytesLen</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> in_EnableBytesLen </span></font><font color="#339933"><span style="font-family: Consolas">==</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#339933"><span style="font-family: Consolas">?</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#339933"><span style="font-family: Consolas">:</span></font><font color="#141414"><span style="font-family: Consolas"> in_EnableBytesLen </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> m_Enabled</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#000000"><span style="font-family: Consolas"><b>false</b></span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#009900"><span style="font-family: Consolas">{</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_Address </span></font><font color="#339933"><span style="font-family: Consolas">=</span></font><font color="#141414"><span style="font-family: Consolas"> in_Address</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; SetEnableBytes</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> in_EnableBytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_EnableBytesLen </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#B1B100"><span style="font-family: Consolas">if</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> in_opt_Enabled </span></font><font color="#339933"><span style="font-family: Consolas">==</span></font><font color="#000000"><span style="font-family: Consolas"><b>true</b></span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#009900"><span style="font-family: Consolas">{</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">Enable</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#000000"><span style="font-family: Consolas"><b>true</b></span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><font color="#009900"><span style="font-family: Consolas">}</span></font><br />
<font color="#009900"><span style="font-family: Consolas">}</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#808080"><span style="font-family: Consolas"><i>/**<br />
&nbsp; &nbsp; This function is used to set the enable bytes (Hack::m_EnableBytes).<br />
&nbsp; &nbsp; If the in_EnableBytes is invalid, it will return FALSE (0), else if<br />
&nbsp; &nbsp; the in_EnableBytesLen is equal to 0, it will return -1.<br />
*/</i></span></font><br />
<font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">BOOL</span></font><font color="#141414"><span style="font-family: Consolas"> Hack</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">SetEnableBytes</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#993333"><span style="font-family: Consolas">const</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">BYTE</span></font><font color="#339933"><span style="font-family: Consolas">*</span></font><font color="#141414"><span style="font-family: Consolas">in_EnableBytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#993333"><span style="font-family: Consolas">const</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">UINT</span></font><font color="#141414"><span style="font-family: Consolas"> in_EnableBytesLen </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#009900"><span style="font-family: Consolas">{</span></font><br />
<font color="#B1B100"><span style="font-family: Consolas">if</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> in_EnableBytes </span></font><font color="#339933"><span style="font-family: Consolas">!=</span></font><font color="#141414"><span style="font-family: Consolas"> NULL </span></font><font color="#339933"><span style="font-family: Consolas">&amp;&amp;</span></font><font color="#141414"><span style="font-family: Consolas"> in_EnableBytesLen </span></font><font color="#339933"><span style="font-family: Consolas">&gt;</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#009900"><span style="font-family: Consolas">{</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_EnableBytesLen </span></font><font color="#339933"><span style="font-family: Consolas">=</span></font><font color="#141414"><span style="font-family: Consolas"> in_EnableBytesLen</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#B1B100"><span style="font-family: Consolas">if</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_EnableBytes </span></font><font color="#339933"><span style="font-family: Consolas">!=</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#009900"><span style="font-family: Consolas">{</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; delete </span></font><font color="#009900"><span style="font-family: Consolas">[</span></font><font color="#009900"><span style="font-family: Consolas">]</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_EnableBytes</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_EnableBytes </span></font><font color="#339933"><span style="font-family: Consolas">=</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#009900"><span style="font-family: Consolas">}</span></font><br />
<br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_EnableBytes </span></font><font color="#339933"><span style="font-family: Consolas">=</span></font><font color="#141414"><span style="font-family: Consolas"> new </span></font><font color="#993333"><span style="font-family: Consolas">unsigned</span></font><font color="#993333"><span style="font-family: Consolas">char</span></font><font color="#009900"><span style="font-family: Consolas">[</span></font><font color="#141414"><span style="font-family: Consolas"> in_EnableBytesLen </span></font><font color="#009900"><span style="font-family: Consolas">]</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#339933"><span style="font-family: Consolas">::</span></font><a href="http://www.opengroup.org/onlinepubs/009695399/functions/memcpy.html" target="_blank" rel="nofollow"><font color="#000066">memcpy</font></a><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_EnableBytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">LPVOID</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#141414"><span style="font-family: Consolas">in_EnableBytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><br />
<font color="#993333"><span style="font-family: Consolas">sizeof</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> m_EnableBytes</span></font><font color="#009900"><span style="font-family: Consolas">[</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#009900"><span style="font-family: Consolas">]</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">*</span></font><font color="#141414"><span style="font-family: Consolas"> in_EnableBytesLen </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#B1B100"><span style="font-family: Consolas">return</span></font><font color="#141414"><span style="font-family: Consolas"> TRUE</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#009900"><span style="font-family: Consolas">}</span></font><br />
<font color="#B1B100"><span style="font-family: Consolas">return</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> in_EnableBytes </span></font><font color="#339933"><span style="font-family: Consolas">==</span></font><font color="#141414"><span style="font-family: Consolas"> NULL </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">?</span></font><font color="#141414"><span style="font-family: Consolas"> FALSE </span></font><font color="#339933"><span style="font-family: Consolas">:</span></font><font color="#339933"><span style="font-family: Consolas">-</span></font><font color="#0000DD"><span style="font-family: Consolas">1</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#009900"><span style="font-family: Consolas">}</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#808080"><span style="font-family: Consolas"><i>/**<br />
&nbsp; &nbsp; This function is used to set the disable bytes (Hack::m_DisableBytes).<br />
&nbsp; &nbsp; If the in_DisableBytes is invalid, it will return FALSE (0), else if<br />
&nbsp; &nbsp; the in_DisableBytesLen is equal to 0, it will return -1.<br />
*/</i></span></font><br />
<font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">BOOL</span></font><font color="#141414"><span style="font-family: Consolas"> Hack</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">SetDisableBytes</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#993333"><span style="font-family: Consolas">const</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">BYTE</span></font><font color="#339933"><span style="font-family: Consolas">*</span></font><font color="#141414"><span style="font-family: Consolas">in_DisableBytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#993333"><span style="font-family: Consolas">const</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">UINT</span></font><font color="#141414"><span style="font-family: Consolas"> in_DisableBytesLen </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#009900"><span style="font-family: Consolas">{</span></font><br />
<font color="#B1B100"><span style="font-family: Consolas">if</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> in_DisableBytes </span></font><font color="#339933"><span style="font-family: Consolas">!=</span></font><font color="#141414"><span style="font-family: Consolas"> NULL </span></font><font color="#339933"><span style="font-family: Consolas">&amp;&amp;</span></font><font color="#141414"><span style="font-family: Consolas"> in_DisableBytesLen </span></font><font color="#339933"><span style="font-family: Consolas">&gt;</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#009900"><span style="font-family: Consolas">{</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_DisableBytesLen </span></font><font color="#339933"><span style="font-family: Consolas">=</span></font><font color="#141414"><span style="font-family: Consolas"> in_DisableBytesLen</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#B1B100"><span style="font-family: Consolas">if</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_DisableBytes </span></font><font color="#339933"><span style="font-family: Consolas">!=</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#009900"><span style="font-family: Consolas">{</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; delete </span></font><font color="#009900"><span style="font-family: Consolas">[</span></font><font color="#009900"><span style="font-family: Consolas">]</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_DisableBytes</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_DisableBytes </span></font><font color="#339933"><span style="font-family: Consolas">=</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#009900"><span style="font-family: Consolas">}</span></font><br />
<br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_DisableBytes </span></font><font color="#339933"><span style="font-family: Consolas">=</span></font><font color="#141414"><span style="font-family: Consolas"> new </span></font><font color="#993333"><span style="font-family: Consolas">unsigned</span></font><font color="#993333"><span style="font-family: Consolas">char</span></font><font color="#009900"><span style="font-family: Consolas">[</span></font><font color="#141414"><span style="font-family: Consolas"> in_DisableBytesLen </span></font><font color="#009900"><span style="font-family: Consolas">]</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#339933"><span style="font-family: Consolas">::</span></font><a href="http://www.opengroup.org/onlinepubs/009695399/functions/memcpy.html" target="_blank" rel="nofollow"><font color="#000066">memcpy</font></a><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_DisableBytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">LPVOID</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#141414"><span style="font-family: Consolas">in_DisableBytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><br />
<font color="#993333"><span style="font-family: Consolas">sizeof</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> m_DisableBytes</span></font><font color="#009900"><span style="font-family: Consolas">[</span></font><font color="#0000DD"><span style="font-family: Consolas">0</span></font><font color="#009900"><span style="font-family: Consolas">]</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">*</span></font><font color="#141414"><span style="font-family: Consolas"> in_DisableBytesLen </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#B1B100"><span style="font-family: Consolas">return</span></font><font color="#141414"><span style="font-family: Consolas"> TRUE</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#009900"><span style="font-family: Consolas">}</span></font><br />
<font color="#B1B100"><span style="font-family: Consolas">return</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> in_DisableBytes </span></font><font color="#339933"><span style="font-family: Consolas">==</span></font><font color="#141414"><span style="font-family: Consolas"> NULL </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">?</span></font><font color="#141414"><span style="font-family: Consolas"> FALSE </span></font><font color="#339933"><span style="font-family: Consolas">:</span></font><font color="#339933"><span style="font-family: Consolas">-</span></font><font color="#0000DD"><span style="font-family: Consolas">1</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#009900"><span style="font-family: Consolas">}</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#808080"><span style="font-family: Consolas"><i>/**<br />
&nbsp; &nbsp; This function is used to enable/disable the Hack by calling the WriteMemoryFunction.<br />
&nbsp; &nbsp; If success, this function will return TRUE (1).<br />
*/</i></span></font><br />
<font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">BOOL</span></font><font color="#141414"><span style="font-family: Consolas"> Hack</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">Enable</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> bool in_Enabled </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#009900"><span style="font-family: Consolas">{</span></font><br />
<font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">BOOL</span></font><font color="#141414"><span style="font-family: Consolas"> Ret </span></font><font color="#339933"><span style="font-family: Consolas">=</span></font><font color="#141414"><span style="font-family: Consolas"> FALSE</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#B1B100"><span style="font-family: Consolas">if</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> in_Enabled </span></font><font color="#339933"><span style="font-family: Consolas">!=</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_Enabled </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#009900"><span style="font-family: Consolas">{</span></font><br />
<font color="#666666"><span style="font-family: Consolas"><i>// if( this-&gt;m_Address != NULL ) {&nbsp; // Possible errors are handled by function WriteMemory.</i></span></font><br />
<font color="#B1B100"><span style="font-family: Consolas">if</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> in_Enabled </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#009900"><span style="font-family: Consolas">{</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Ret </span></font><font color="#339933"><span style="font-family: Consolas">=</span></font><font color="#141414"><span style="font-family: Consolas"> WriteMemory</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_Address</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_EnableBytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_EnableBytesLen </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#009900"><span style="font-family: Consolas">}</span></font><br />
<font color="#B1B100"><span style="font-family: Consolas">else</span></font><font color="#009900"><span style="font-family: Consolas">{</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Ret </span></font><font color="#339933"><span style="font-family: Consolas">=</span></font><font color="#141414"><span style="font-family: Consolas"> WriteMemory</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_Address</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_DisableBytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_DisableBytesLen </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#009900"><span style="font-family: Consolas">}</span></font><br />
<font color="#B1B100"><span style="font-family: Consolas">if</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> Ret </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#009900"><span style="font-family: Consolas">{</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_Enabled </span></font><font color="#339933"><span style="font-family: Consolas">=</span></font><font color="#339933"><span style="font-family: Consolas">!</span></font><font color="#141414"><span style="font-family: Consolas">this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_Enabled</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><font color="#009900"><span style="font-family: Consolas">}</span></font><br />
<font color="#666666"><span style="font-family: Consolas"><i>// }</i></span></font><br />
<font color="#009900"><span style="font-family: Consolas">}</span></font><br />
<br />
<font color="#B1B100"><span style="font-family: Consolas">return</span></font><font color="#141414"><span style="font-family: Consolas"> Ret</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#009900"><span style="font-family: Consolas">}</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#141414"><span style="font-family: Consolas">bool Hack</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">IsEnabled</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#009900"><span style="font-family: Consolas">{</span></font><br />
<font color="#B1B100"><span style="font-family: Consolas">return</span></font><font color="#141414"><span style="font-family: Consolas"> this</span></font><font color="#339933"><span style="font-family: Consolas">-&gt;</span></font><font color="#141414"><span style="font-family: Consolas">m_Enabled</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#009900"><span style="font-family: Consolas">}</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">BOOL</span></font><font color="#141414"><span style="font-family: Consolas"> GHL</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">WriteMemory</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#993333"><span style="font-family: Consolas">const</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">DWORD</span></font><font color="#339933"><span style="font-family: Consolas">&amp;</span></font><font color="#141414"><span style="font-family: Consolas">in_Address</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">BYTE</span></font><font color="#339933"><span style="font-family: Consolas">*</span></font><font color="#141414"><span style="font-family: Consolas">in_Bytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#993333"><span style="font-family: Consolas">const</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">UINT</span></font><font color="#339933"><span style="font-family: Consolas">&amp;</span></font><font color="#141414"><span style="font-family: Consolas">in_Len </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><br />
<font color="#009900"><span style="font-family: Consolas">{</span></font><br />
<font color="#B1B100"><span style="font-family: Consolas">if</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> in_Address </span></font><font color="#339933"><span style="font-family: Consolas">==</span></font><font color="#141414"><span style="font-family: Consolas"> NULL </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#009900"><span style="font-family: Consolas">{</span></font><font color="#B1B100"><span style="font-family: Consolas">return</span></font><font color="#141414"><span style="font-family: Consolas"> FALSE</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><font color="#009900"><span style="font-family: Consolas">}</span></font><br />
<font color="#B1B100"><span style="font-family: Consolas">if</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> in_Bytes </span></font><font color="#339933"><span style="font-family: Consolas">==</span></font><font color="#141414"><span style="font-family: Consolas"> NULL </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#009900"><span style="font-family: Consolas">{</span></font><font color="#B1B100"><span style="font-family: Consolas">return</span></font><font color="#339933"><span style="font-family: Consolas">-</span></font><font color="#0000DD"><span style="font-family: Consolas">1</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><font color="#009900"><span style="font-family: Consolas">}</span></font><br />
<font color="#B1B100"><span style="font-family: Consolas">if</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#141414"><span style="font-family: Consolas"> in_Len </span></font><font color="#339933"><span style="font-family: Consolas">==</span></font><font color="#141414"><span style="font-family: Consolas"> NULL </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#009900"><span style="font-family: Consolas">{</span></font><font color="#B1B100"><span style="font-family: Consolas">return</span></font><font color="#339933"><span style="font-family: Consolas">-</span></font><font color="#0000DD"><span style="font-family: Consolas">2</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><font color="#009900"><span style="font-family: Consolas">}</span></font><br />
<br />
<font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">DWORD</span></font><font color="#141414"><span style="font-family: Consolas"> OriginalProtection </span></font><font color="#339933"><span style="font-family: Consolas">=</span></font><font color="#141414"><span style="font-family: Consolas"> NULL</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">VirtualProtect</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">LPVOID</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#141414"><span style="font-family: Consolas">in_Address</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> in_Len</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> PAGE_EXECUTE_READWRITE</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#339933"><span style="font-family: Consolas">&amp;</span></font><font color="#141414"><span style="font-family: Consolas">OriginalProtection </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#339933"><span style="font-family: Consolas">::</span></font><a href="http://www.opengroup.org/onlinepubs/009695399/functions/memcpy.html" target="_blank" rel="nofollow"><font color="#000066">memcpy</font></a><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">LPVOID</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#141414"><span style="font-family: Consolas">in_Address</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> in_Bytes</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> in_Len </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">VirtualProtect</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#009900"><span style="font-family: Consolas">(</span></font><font color="#339933"><span style="font-family: Consolas">::</span></font><font color="#202020"><span style="font-family: Consolas">LPVOID</span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#141414"><span style="font-family: Consolas">in_Address</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> in_Len</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#141414"><span style="font-family: Consolas"> PAGE_EXECUTE_READWRITE</span></font><font color="#339933"><span style="font-family: Consolas">,</span></font><font color="#339933"><span style="font-family: Consolas">&amp;</span></font><font color="#141414"><span style="font-family: Consolas">OriginalProtection </span></font><font color="#009900"><span style="font-family: Consolas">)</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<br />
<font color="#B1B100"><span style="font-family: Consolas">return</span></font><font color="#141414"><span style="font-family: Consolas"> TRUE</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font><br />
<font color="#009900"><span style="font-family: Consolas">}</span></font><font color="#339933"><span style="font-family: Consolas">;</span></font></code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.gamekiller.net/programming-reversing-general-discussion/"><![CDATA[Programming & Reversing General Discussion]]></category>
			<dc:creator>Kernel</dc:creator>
			<guid isPermaLink="true">http://www.gamekiller.net/programming-reversing-general-discussion/3190029-kernels-free-open-source-game-hacking-library-ghl.html</guid>
		</item>
		<item>
			<title>Need some help / advice</title>
			<link>http://www.gamekiller.net/programming-reversing-general-discussion/3189781-need-some-help-advice.html</link>
			<pubDate>Sun, 05 May 2013 21:44:22 GMT</pubDate>
			<description>Hello and thank you for taking the time to read my post.  I am wanting to build a bot for the game...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start -->Hello and thank you for taking the time to read my post.  I am wanting to build a bot for the game Kingdoms at War.   This is my first project and I will be learning as I go. So far I'm just reading up on the C++ language and I've installed code blocks.  I want to create a bot that will log into kingdoms at war.  Com using Facebook login information then farm the questing system.  This will be a long project for me but any help is welcomed<!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.gamekiller.net/programming-reversing-general-discussion/"><![CDATA[Programming & Reversing General Discussion]]></category>
			<dc:creator>Stevebilly</dc:creator>
			<guid isPermaLink="true">http://www.gamekiller.net/programming-reversing-general-discussion/3189781-need-some-help-advice.html</guid>
		</item>
		<item>
			<title>New to GK and a Programmer</title>
			<link>http://www.gamekiller.net/programming-reversing-general-discussion/3189715-new-gk-programmer.html</link>
			<pubDate>Sun, 05 May 2013 04:10:58 GMT</pubDate>
			<description><![CDATA[hello GK 
 
I'm new to this form and looking forward programming with 
the other programmers in...]]></description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start -->hello GK<br />
<br />
I'm new to this form and looking forward programming with<br />
the other programmers in this site hoping to make place<br />
between you all<br />
<br />
this is from my CV mot updated<br />
Education<br />
(2008 to present) Bachelor Degree in Information Technology<br />
Sharjah Men’s College, Higher Diploma BH. IT<br />
 Expected to graduate in 2013 Subjects studied include:<br />
Business Applications Development<br />
System Development Tools<br />
Object Oriented programming<br />
IT Project Management<br />
Computer Platforms<br />
Programming Concepts<br />
Database Design Concepts<br />
Web Applications I<br />
Database Management Systems<br />
System Analysis<br />
Computing Fundamentals<br />
Website Design<br />
(2008/09) Sharjah Men’s College, Higher Diploma BH. Foundation.<br />
<br />
i'm so intrested in coding and programming and i already added blaze.gk in to my skype <!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.gamekiller.net/programming-reversing-general-discussion/"><![CDATA[Programming & Reversing General Discussion]]></category>
			<dc:creator>shreer</dc:creator>
			<guid isPermaLink="true">http://www.gamekiller.net/programming-reversing-general-discussion/3189715-new-gk-programmer.html</guid>
		</item>
		<item>
			<title><![CDATA[[C++.net] Basic inline ASM help]]></title>
			<link>http://www.gamekiller.net/programming-reversing-general-discussion/3189492-c-net-basic-inline-asm-help.html</link>
			<pubDate>Fri, 03 May 2013 22:14:31 GMT</pubDate>
			<description><![CDATA[Hello, 
So I'm just trying to call my inline asm function - can anyone tell me how I do that?  I...]]></description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start -->Hello,<br />
So I'm just trying to call my inline asm function - can anyone tell me how I do that?  I have NO IDEA what I'm doing, and nothing I've found on google has helped.  <br />
<br />
<!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">int rofl = 123;<br />
<br />
#define jmp(frm, to) (int)(((int)to - (int)frm) - 5)<br />
__declspec(naked) void __stdcall ScriptName()<br />
{<br />
__asm<br />
{<br />
&nbsp; &nbsp; inc [rofl]<br />
&nbsp;}<br />
}</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->I'm sure I need more stuff here:<br />
<!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">void callMyFunctionPlox(void)<br />
{<br />
ScriptName();<br />
}</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><br />
button code:<br />
<!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">callMyFunctionPlox();<br />
MainWindow::textBox1-&gt;Text = rofl.ToString();</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->Now, when I try that ^^^^^ it gives me one of those writing protected memory errors.<br />
<br />
EVERY code sample I looked at called it using pointers like this.<br />
and I leeched an item xy code hook once, and it too used a ptInRect address to call it.   I don't get it, can I just call my function without using a ptinrect address or teleaddy?  :eek:<br />
<!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><font color="#141414"><span style="font-family: Consolas"> *(BYTE*)0x008AFEA3 = 0xFF;</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; *(BYTE*)TeleAddy = 0xE9;</span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; *(DWORD*)(TeleAddy+1) = JMP(TeleAddy,Teleport); </span></font><br />
<font color="#141414"><span style="font-family: Consolas">&nbsp; &nbsp; *(BYTE*)(TeleAddy+6) = 0x90;<br />
</span></font></code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->I'm sure there's something I'm not understanding, I've only ever done high level coding.  Like how do I ASM?<br />
<br />
TL;DR: How do I call my inline asm function?<!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.gamekiller.net/programming-reversing-general-discussion/"><![CDATA[Programming & Reversing General Discussion]]></category>
			<dc:creator>Leisure321</dc:creator>
			<guid isPermaLink="true">http://www.gamekiller.net/programming-reversing-general-discussion/3189492-c-net-basic-inline-asm-help.html</guid>
		</item>
		<item>
			<title>i need help with client maplestory</title>
			<link>http://www.gamekiller.net/programming-reversing-general-discussion/3188990-i-need-help-client-maplestory.html</link>
			<pubDate>Fri, 26 Apr 2013 20:37:23 GMT</pubDate>
			<description>hiya someone know how i make one client with version 132 for my private server i only need know how...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start -->hiya someone know how i make one client with version 132 for my private server i only need know how make the client if someone knw can answer me and expliat me or link me tyvm *-*<!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.gamekiller.net/programming-reversing-general-discussion/"><![CDATA[Programming & Reversing General Discussion]]></category>
			<dc:creator>hyotlv</dc:creator>
			<guid isPermaLink="true">http://www.gamekiller.net/programming-reversing-general-discussion/3188990-i-need-help-client-maplestory.html</guid>
		</item>
	</channel>
</rss>
