了解库(例如user32.dll等)时出现问题.

了解库(例如user32.dll等)时出现问题.

问题描述:

亲爱的朋友.

我已经看到了许多VB.Net源代码,那里使用了太多的库(例如user32.dll).
例如

Dear Friends.

I have seen many VB.Net source codes, that there are so many libraries (for example user32.dll) are used there.
For example

Private Declare Function CallNextHookEx Lib "user32"............


但是我不明白为什么要使用这些库.并且每个库中都有哪些功能.在哪里可以找到这些库的详细信息及其功能的使用.是否有任何网站或与之相关的文档?如果存在,那么在哪里?请引导我.

请帮我解决这个问题.
等待令人满意的响应.


But I can''t understand that why these libraries are used. And What functions are there in each library. And Where can I find the detail of these libraries and the use of their functions. Is there any site or Documentation related to them exists? If exists then where? Plz guide me.

Plz Help me in this problem.
Waiting for a satisfactory response.

当您需要做一些比.Net更贴近金属"的事情时,可以使用这些类型的库.有太多示例无法提供完整的列表.在您编写的十个应用程序中,有八个应用程序可能不需要直接使用Windows API.
You use these kinds of libraries when you need to do something "closer to the metal" than .Net allows. There are too many examples to give you a comprehensive list. In eight out of ten apps that you write, you probably won''t need to use the Windows API directly.


User32.DLL是Windows本身的核心库之一,诸如Kernel32.DLL之类的东西.

在此处阅读: http://en.wikipedia.org/wiki/Windows_API [
User32.DLL is one of the core libraries of Windows itself, along with things like Kernel32.DLL.

Have a read here: http://en.wikipedia.org/wiki/Windows_API[^]

After that, look for info at MSDN