Jump to content

Recommended Posts

  • 3 weeks later...
Posted
13 hours ago, dead-end said:

This means that is not possible to change it?

 

That's means what it HARDCODED and can't be edited via edition another files. Only DIRECT or HOOK changes.

Posted (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&&current_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 by wongerlt
  • Like 1
  • Upvote 1
Posted (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 by wongerlt
Posted
20 hours ago, splicho said:

It always reverts to "lineage II" when I switch windows.

 

For example, Lineage - Discord - Lineage and it's back to normal.

 

explorer-juvw-Oo-Yx-S3.gif

Try use simple while or try catch event on title change, just google it. `c++ window title change event` 

  • Upvote 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock