C/C++ easily cracks the window title of other people's programs

黄舟
Release: 2017-01-22 14:26:27
Original
2184 people have browsed it

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

C/C++ easily cracks the window title of other peoples programs

Then I used spy++ with VS to find the window

C/C++ easily cracks the window title of other peoples programs

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博客");  
  
}
Copy after login

Just use a file bundler

C/C++ easily cracks the window title of other peoples programs

Run next


C/C++ easily cracks the window title of other peoples programs


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)!


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template