dead-end Posted January 27, 2022 Posted January 27, 2022 On 1/11/2022 at 11:18 AM, Celestine said: from L2.int Expand I did it, but nothing happened. Quote
KejbL Posted January 27, 2022 Posted January 27, 2022 On 1/27/2022 at 11:14 PM, dead-end said: I did it, but nothing happened. Expand change Product= Quote
dead-end Posted February 1, 2022 Posted February 1, 2022 On 1/27/2022 at 11:18 PM, KejbL said: change Product= Expand Nothing happening :s Quote
Rootware Posted February 1, 2022 Posted February 1, 2022 This text hardcoded in Window.dll. (c) Quote
dead-end Posted February 1, 2022 Posted February 1, 2022 On 2/1/2022 at 2:54 PM, Rootware said: This text hardcoded in Window.dll. (c) Expand This means that is not possible to change it? Quote
Rootware Posted February 2, 2022 Posted February 2, 2022 On 2/1/2022 at 4:33 PM, dead-end said: This means that is not possible to change it? Expand That's means what it HARDCODED and can't be edited via edition another files. Only DIRECT or HOOK changes. Quote
Rootware Posted February 6, 2022 Posted February 6, 2022 On 2/6/2022 at 2:24 AM, splicho said: Hook like making a custom .dll and inject it into l2.exe? Expand Yes. Quote
wongerlt Posted February 6, 2022 Posted February 6, 2022 (edited) you can do with dll. example: main.cpp (its good or no idk, but its working fine.) #include "main.h" #include "Winuser.h" #include <process.h> void TitleReplaceHookThread(void *param) { DWORD pid = 0; DWORD current_pid = GetCurrentProcessId(); while(true) { Sleep(50); HWND hWnd = FindWindow(NULL, "Lineage II"); GetWindowThreadProcessId(hWnd,&pid); if(hWnd&¤t_pid==pid) { SetWindowText(hWnd, "My Server Name"); break; } } } extern "C" DLL_EXPORT BOOL APIENTRY DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { switch (fdwReason) { case DLL_PROCESS_ATTACH: HANDLE hThread; hThread = (HANDLE)_beginthread(TitleReplaceHookThread, 0, NULL); CloseHandle(hThread); break; } return TRUE; } main.h #ifndef __MAIN_H__ #define __MAIN_H__ #include <windows.h> #ifdef BUILD_DLL #define DLL_EXPORT __declspec(dllexport) #else #define DLL_EXPORT __declspec(dllimport) #endif #endif compile and put ur dll file to ur l2 system folder. to compile you can use simple tool `CodeBlocks` and then use CFF Explorer 1. Open window.dll 2. Click Import Adder 3. Add dll file. 4. Select Exported function `DllMain@` and click Import by Name and then click Rebuild Import table. 5. save window.dll done. Edited February 6, 2022 by wongerlt 1 1 Quote
wongerlt Posted February 6, 2022 Posted February 6, 2022 (edited) http://prntscr.com/26puoez try open your compiled dll with cff explorer and check export table. https://drive.google.com/file/d/16aF3PkU738rtx-bia9O_rUATL6zwDFH8/view?usp=sharing this ex. For interlude Edited February 6, 2022 by wongerlt Quote
wongerlt Posted February 8, 2022 Posted February 8, 2022 On 2/7/2022 at 3:11 PM, splicho said: It always reverts to "lineage II" when I switch windows. For example, Lineage - Discord - Lineage and it's back to normal. Expand Try use simple while or try catch event on title change, just google it. `c++ window title change event` 1 Quote
favini Posted February 8, 2022 Author Posted February 8, 2022 Who can help me change the window name Can pay 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.
Note: Your post will require moderator approval before it will be visible.