I sorted out the following items:
Findwindow: Find a window
In the enumwindow enumeration window, the callback function determines whether to continue enumeration.
Enumchildwindow refers to a subwindow in a window. For example, you can use findwindow To Go To The logon form of QQ and then use enumchildwindow to find the Password box (in fact, the password box does not directly belong to the logon form)
Windowfrompoint: get the window where the current mouse is located
You can obtain the content through getwindowtext or getdlgitemtext.
Or directly sendmessage
For example, to obtain the QQ account, because the QQ account is a ComboBox, you need to send the cb_getlbtext message to ComboBox to obtain the current QQ account.
In addition, findwindow has two parameters.
The first parameter is the class name such as ComboBox, edit or #32770 (#32770 is the class name of the MFC dialog base)
The second parameter is the title of the Form class.
Also, it is the Edit Control of es_password. To obtain its text, you cannot directly use getwindowtext. Because the operating system after Win98 has made restrictions and cannot be called across processes, the general method is OpenProcess, then virtualallocex some remote process memory, then write a function in this memory, writeprocessmemory, and finally createremotethread to create a remote thread. This technology is called process injection, generally, anti-virus software intercepts functions such as OpenProcess and createremotethread through apihook.