8. Windows API Overview

Source: Internet
Author: User

I. Functions of Windows APIs

1. Basic System Services

File System: File Operations, disk volume management, etc.

Memory Management: memory allocation, and paging.

Processes, threads, and modules

Device Io, DriverProgramControl

Debugging and error handling

Windows system information: includes registry operations and other basic information.

Inter-process communication: shared files, messages, mail slots, pipelines, and network sharing

Timer and Message Mechanism

2. System Management

Console interfaces, program installation, system recovery, and task scheduling.

3. User Interface

There are two aspects: Windows Shell and Windows Graphical User Interface

4. Images and multimedia

Including GDI, OpenGL, and dircetx.

5. Network

TCP/UDP socket, HTTP, etc.

6. System Security

System Authorization and authentication, logon, permission management, encryption, and security management policies.

7. Others

Such as data storage and access, database

Messages and collaboration

Web Development

Ii. Core DLL

Kernel32.dll System Basic Service API

User32.dll graphical user interface API

Gdi32.dll interface functions in Windows graphics engine, Application Design Interface

Function interfaces of the C standard library in windows are mainly stored in crtdll. dll. (C Runtime)

Iii. Unicode and multi-byte

● UNICODE: 16-bit represents a single character, a total of 65535 characters.

● Traditional Character Set windows asni: uses a combination of eight or two adjacent eight-bit data to represent special language characters. Windows adopts the asni character extension mode. If a byte is a negative number, a subsequent byte is combined to represent a character. This encoding method is also called the "Multi-Byte" character set.

Lpstr a 32-bit pointer to a character string.

Lptstr a 32-bit pointer to a character string that is portable for Unicode and DBCS.

Lpwstr a 32-bit pointer to a string of 16-bit Unicode characters, which may be null-terminated.

DBCS double-byte character set

 ●Unicode and ASCII Conversion 

Widechartomultibyte Unicode> ASCII 

Multibytetowidechar ASCII> Unicode 

Unicodetobytes

Reference [1] proficient in Windows API functions, interfaces, and programming instances

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.