Windows API Introduction

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.