Some common windows system DLL

本文介绍了Windows操作系统中最关键的几个DLL文件:Kernel32.dll、User32.dll和GDI32.dll的功能及其作用,并列举了其他重要的DLL如AdvAPI32.dll、ComDlg32.dll和ComCtl32.DLL等。同时,文中还提到了已知DLL的概念及它们如何被操作系统特殊处理。

    -- DLL notes 1 of <Windows via C/C++>

1.      windows system DLLs

The three most important DLLs in windows:

Kernel32.dll, contains functions for managing memory, processes, and threads;

User32.dll, contains functions for performing user-interface tasks such as window creation and message sending;

GDI32.dll, contains functions for drawing graphical images and displaying text.

 

Others:

AdvAPI32.dll contains functions for object security, registry manipulation, and event logging;

ComDlg32.dll contains the common g boxes (such as File Open and File Save);

ComCtl32.DLL supports all the common window controls.

 

2.      Known DLLs

Certain operating system-supplied DLLs get special treatment. These are called known DLLs. They are just like any other DLL except that the operating system always looks for them in the same directory in order to load them. Inside the registry is the following key:

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Session Manager/KnownDLLs
### kernel32.dll Issues and Solutions in Windows XP In the context of Windows XP, `kernel32.dll` plays a critical role as it contains core system services and essential APIs required by many applications to interact with hardware or other low-level components[^1]. When encountering issues related to this DLL file, several common symptoms may arise including application crashes, blue screens (BSOD), or failure messages indicating that specific functions cannot be found. For troubleshooting these problems effectively: #### Verifying Integrity Using System File Checker System administrators can use the built-in tool called **System File Checker** (`sfc /scannow`) which scans all protected system files and replaces incorrect versions with correct Microsoft versions. This command should be executed from an elevated Command Prompt session. #### Replacing Corrupted Files Manually If corruption is suspected within `kernel32.dll`, obtaining a clean copy from another machine running identical OS version/service pack level might help restore functionality after replacing the faulty one carefully while ensuring proper backup procedures are followed beforehand. #### Checking Compatibility Mode Settings Some older programs designed for earlier editions of Windows could cause conflicts when run on newer platforms like XP due to differences between API implementations across different releases; adjusting compatibility settings through Properties dialog box under 'Compatibility' tab sometimes alleviates such discrepancies without requiring any changes at code level. ```batch sfc /scannow ``` This batch command initiates the scan process using SFC utility mentioned above.
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值