modyali2 Posted August 27, 2022 Posted August 27, 2022 Greetings GuysFirst, 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 memorypublic const int OutGoingTradeAddress = 0x07DF2400;//0x15A4B8D8so is it okay if i worked like this or not or anybody has better idea for this featurei want to record all trades in game client Quote
modyali2 Posted August 27, 2022 Author Posted August 27, 2022 Kindly note that this application must work with the latest version of conquer online Quote
Spirited Posted August 29, 2022 Posted August 29, 2022 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? Quote
modyali2 Posted August 31, 2022 Author Posted August 31, 2022 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 ideai 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.