Win programming instructions
Program on any operating system, no matter what kind of programming tool you use, understand the concept of the internal mechanism of the system itself is very necessary, familiar with these concepts is essential for you to write stable compatible procedures. Below, you will talk about some conceptual understanding. Author: virus in any operating system programming, whether you what kind of programming tools, understand the concept itself, the internal mechanism of the system is essential, familiar
These concepts are essential for you to write stable compatible procedures. Below, you will talk about some conceptual understanding of the programming initiator under WIN. Process: You can see the process as a program. When a program starts, WIN will create a process, and the process provides a 32-bit flat address space that isolates or share memory with other processes through paging implementation. It should be noted that the process is not an Exe file, and the exe is just a program before being loaded. Thread: Thread also referred to as performing thread is the minimum execution unit in WIN, and threads have always been executed with process-associated processes, saying that the execution process is only for understanding. A default thread is created when you create a process. You can simply understand multi-tasks in the same process. From an implementation point of view, the thread is a function that can run concurrently in the main program. Depending on the needs, you can run multiple instances of the same function, or you can run several different functions at the same time. Message: Most of the operations under win will generate a message. For example, your mobile mouse will generate a WM_MouseMove message. Press the left mouse button to generate a WM_LButtondown message. Press the right mouse button to generate WM_RBUTTONDOWN messages. You can get, send messages or reciprocators to map interception messages through GetMessage, SendMessage, and so on, and control it to achieve the purpose of your program. Handle: When you need to control something you need, you need a handle to pass what you have to do. The handle is a pointer to the internal data structure, which includes information saved by the system.