Results 1 to 2 of 2
  1. #1
    classic8888's Avatar
    Join Date
    Feb 2018
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    321

    C# Trying to convert my intptr value to label.text or any textbox ?

    hey guys ,
    as the title say it, i'm trying to convert my value obtained from memory read pointer; to my label.text ( just to see if i'm getting the correct value.. )

    Code:
    Process proc = Process.GetProcessesByName("NostaleClientX")[0];
    
                var hProc = Memory2.OpenProcess(Memory2.ProcessAccessFlags.All, false, proc.Id);
    
                var modBase = Memory2.GetModuleBaseAddress(proc, "NostaleClientX.exe");
    
                var modBase2 = Memory2.GetModuleBaseAddress(proc.Id, "NostaleClientX.exe");
    
                var HPPtr = Memory2.FindDMAAddy(hProc, (IntPtr)(modBase2 + 0x485750), new int[] { 0xC4, 0x4C });
    Thanks for helping me ;p

    Just tested something when adding this line;
    Console.WriteLine("HP address " + "0x" + HPPtr.ToString("X"));
    It gives me this: HP address 0x171A9CB01751B8F4

    But the end of the adress i'm getting is the correct address i'm looking for : 1751B8F4 ??
    Last edited by classic8888; 05-18-2020 at 04:45 AM.

  2. #2
    Biesi's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    4,993
    Reputation
    374
    Thanks
    8,808
    My Mood
    Twisted
    Is 0x171A9CB000000000 the base address of the module?

    Edit: You should usually compare your pointers with (pointer - baseAddrressOfModuleTheyreIn) to get an actual result
    Last edited by Biesi; 05-18-2020 at 03:10 PM.

Similar Threads

  1. [Help Request] Change intptr to float value
    By FootLetus in forum C# Programming
    Replies: 7
    Last Post: 04-04-2018, 12:28 AM
  2. [Solved] Converting results into normal values
    By cellux1002 in forum Counter-Strike 2 Help
    Replies: 0
    Last Post: 02-12-2018, 11:46 AM
  3. [Help Request] Convert System.IntPtr To System.Runtime.InteropServices.HandleRef
    By Recigy in forum Call of Duty Black Ops 2 Help
    Replies: 6
    Last Post: 12-08-2017, 08:31 AM
  4. Cheat engine doesnt show any values. TRIED EVERYTHING
    By knoxvilleJ in forum Dead by Daylight Discussion & Help
    Replies: 0
    Last Post: 01-02-2017, 07:52 AM
  5. which is the value of the text string help me please!
    By aishteruk in forum Crossfire Coding Help & Discussion
    Replies: 0
    Last Post: 04-30-2013, 11:11 PM