The Windows API function library is too large for people who lack basic Windows development knowledge, so they cannot get started. In fact, you only need to know about its basic module functions. Specific instances can be used to refer to the development documentation, so as to gradually accumulate.
Three common modules are user32.dll, kernel32.dll, and gdi32.dll.
User32.dll is a Windows user interface application.ProgramInterface, including form creation, destruction, and message sending, and hook is also called through this block.
For example, an important method in the process of creating a form is createhandle, which containsCodeThe createmediawex method of USER32 is called to create the form.
Kernel32.dll controls system memory management, data input/output operations, and interrupt processing.
For example, system. Io. Directory. getfiles can obtain all the files under the directory. it searches for the files by calling findfirstfile and findnextfile of Kernel32.
Gdi32.dll is a program related to the Windows GDI graphic user interface. Currently, gdiplus. dll is the so-called GDI +
For example, the system. Drawing. Pen constructor calls the gdipcreatepen1 function in gdiplus. dll.
Another potential advapi32.dll is part of an advanced API application interface service library for security and registration calls.
For example, the Code Microsoft. win32.registry. localmachine. opensubkey that reads the Registry calls its regopenkeyex function.