Jump to content
Returning Members: Password Reset Required ×

Recommended Posts

Posted

Greetings Guys

First, Iam currently trying to create c# winforms application which will log trade operations from game client.

So firstly what i guess i would work with memory.

i wrote the next coming code

[DllImport("kernel32.dll")]
       public static extern IntPtr OpenProcess(int dwDesiredAccess, bool bInheritHandle, int dwProcessId);

       [DllImport("Kernel32.Dll")]
       public static extern uint VirtualQueryEx(IntPtr ProcessHandle, uint Address, ref MEMORY_BASIC_INFORMATION MemInfo, int MemInfoLength);

       [DllImport("kernel32.dll")]
       public static extern bool ReadProcessMemory(int hProcess, int lpBaseAddress, byte[] lpBuffer, int dwSize, ref int lpNumberOfBytesRead);

       [DllImport("kernel32.dll", SetLastError = true)]
       public static extern bool WriteProcessMemory(int hProcess, int lpBaseAddress, byte[] lpBuffer, int dwSize, ref int lpNumberOfBytesWritten);

       [DllImport("kernel32.dll", SetLastError = true)]
       [return: MarshalAs(UnmanagedType.Bool)]
       public static extern bool CloseHandle(IntPtr hObject);

       [DllImport("kernel32.dll")]
       static extern void GetSystemInfo(out SystemInfo lpSystemInfo);

so i started to get variable address in memory

public const int OutGoingTradeAddress = 0x07DF2400;//0x15A4B8D8

so is it okay if i worked like this or not or anybody has better idea for this feature

i want to record all trades in game client

Posted
Hi there. Sorry, what is the application for? Aka. is there a reason why you want the logs to be stored on the client vs. being stored on the server?
Posted

Hi there. Sorry, what is the application for? Aka. is there a reason why you want the logs to be stored on the client vs. being stored on the server?

Hey Spirited it's just an idea

i need to hook recieved messages in client by c# application and store it to analyse can you give me a small hint how may i do that.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...