Home > Article > Backend Development > C/C++ easily cracks the window title of other people's programs
Principle:
Find a handle to hide the control, and then use SetWindowText to modify it. '
I used Qt to create a window program, as shown below
Then I used spy++ with VS to find the window
Create a console program, the code is as follows
#include <Windows.h> #include <stdio.h> int main() { FreeConsole(); Sleep(10); HWND Win = FindWindowA(NULL, "demo"); if (Win == NULL) { printf("窗体查找失败\n"); return 0; } SetWindowTextA(Win, "CSDN IT1995博客"); }
Just use a file bundler
Run next
The above is the content of C/C++ to easily crack the window title of other people's programs. For more related content, please Follow the PHP Chinese website (www.php.cn)!