Memory Address

12/19/2007 03:33 marhazk2#1
Hello,

I need help for making memory address's result based on what we need from MemAddr.ini. I.e: for C#/CSharp language:-

Code:
    // Declare the unmanaged functions.
    [DllImport("kernel32.dll", EntryPoint = "GetPrivateProfileString")]
    private static extern int GetPrivateProfileString(string lpAppName, string lpKeyName, string lpDefault, StringBuilder lpReturnedString, int nSize, string lpFileName);


    static void MAddr(string section, string key)
    {
        string filename = "\MemAddr.ini";

        int chars = 256;
        StringBuilder buffer = new StringBuilder(chars);
        string sDefault = "";
        if (GetPrivateProfileString(section, key, sDefault, buffer, chars, filename) != 0)
        {
            RMAddr(key, buffer.ToString())
        }
        else
        {
            Console.WriteLine("Value of Key1 in [SampleSection] is: " + null);
        }
    }
Then, I stucked at RMAddr() fuction, because I dont know how to make that function reading a conquer.exe's memory addresses and making a result. I.e, &H5120BC (Character name memory address) in that current Conquer.exe is xBlahBlahx. How to read that "&H5120BC" so that its result appear "xBlahBlahx"? Well, this memory address is Old version because its based from patch 4356 and joek's memory address guide (List of addresses and reading from INI guide, [Only registered and activated users can see links. Click Here To Register...]). (Need example from Patch 4356 or any version)

p/s: if you guys dont know how to code it in CSharp, well any language likes C++/C, or VB, AutoIT, etc is allowed, unless it can help me to get a clue..