The screen capture applet is completed.

xiaoxiao2021-03-06  103

Writing this thing is also a trojan from the plan and needs such a function. Although it is a very simple program, it is still a problem that I can't think about it. CreateDirectory is the first function that lets me eat, it can't create the middle directory in turn. When you look at MSDN, you don't carefully, resulting in debugging to 3 o'clock on Saturday or not find problems. Next is a hook. At first, the keyboard hook, you need to write a DLL, which is also the first to write a DLL. The connection problem of C and C appears when it is static. Modification of EXTERN "C" is still, or it is not a solution. Dynamically loaded, still. It's simply collapsed, and later I thought of a particularly charged method: change the DLL output function table with Lordpe. Until dizzy, change the recording hook. When installing the hook, it is quite, and it seems to be unlimited from self-recursive, and the program is dead. Later, I would die of DBGView :) The reason is unknown. These are less lessons, and there are also gains, for example, find DBGVIEW is very good, cooperation to debug. BMP turns JPG originally wanted to write, find a source code, 乖, so much, understand all the weeks. Still old, practical and other people's DLL, but a DLL is 200K, I have saved the size. . . . . . That DLL originally turned the BMP file on the disk into JPG. My program generated a BMP, about 3m, and then call DLL conversion, this method is more running, and the operation is also time consuming. Still trying to convert the format directly in the memory. Finally, I packed the DLL and EXE with Aspack and looks. . . . . Not too big :) The biggest gain: watching and doing two things, doing yourself, you can really understand. complete!

转载请注明原文地址:https://www.9cbs.com/read-101242.html

New Post(0)