如何了解 Win32 API? [英] How can I learn about the Win32 API?

查看:44
本文介绍了如何了解 Win32 API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想学习如何使用 Win32 API,因为最近我有很多任务需要完成,这些任务需要来自 user32.dll 的函数,所以我试图学习,我用谷歌搜索,但问题是:每个教程都有关于它,只是告诉你如何做某件事.就像通过 Win32 API 展示一个 MessageBox,但你实际上无法学习 Win32 框架.

I want to learn how to be able to use the Win32 API, since recently I've got a lot of tasks I need to do which requires functions from user32.dll, so I'm trying to learn and I Googled but the thing is: every tutorial there is about it, just tells you how to do a certain thing. like show a MessageBox through the Win32 API, but you can't actually learn Win32 framework.

那么你实际上是如何学习它的?你怎么知道所有的功能?使用托管库很容易,尤其是使用提供 IntelliSense、对象浏览器等的 Visual Studio,但 Win32 API 太混乱了(至少从 C# 开发人员的角度来看).

So how do you actually learn it? How do you know all the functions? with managed libraries it's quite easy, especially with Visual Studio which provides IntelliSense, the Object Browser etc. but the Win32 API is so messy (at least from a C# developer standpoint).

直到现在我一直使用它的方式只是在谷歌上搜索一个任务,看到它可以用 Win32 API 完成(我不知道),然后复制函数并使用它(这太可怕了对我来说,我觉得我缺少很多力量").

The way I've been using it until now is just searching on Google for a task and seeing that it can be done with the Win32 API (I had no idea) and just copy the function and use it (and it's horrible for me, I feel I'm missing a lot of "power").

那么,我该如何学习?

明确地说:我对一本书不感兴趣.听起来很糟糕,我需要这些知识来进行项目,而我只是没有时间投资一本书.不过我确实得到了答案.
谢谢大家.

To be clear: I'm not interested in a book. as bad as it sounds I need this knowledge for a project and I just don't have the time to invest in a book. I did get my answer although.
Thank you all.

推荐答案

从 MSDN 你可以找到 WinAPI 列表:以下是 Windows 应用程序编程接口 (API) 的参考内容列表.http://msdn.microsoft.com/en-us/library/ff818516(v=vs.85).aspx

From MSDN you can find the WinAPI list: The following is a list of the reference content for the Windows application programming interface (API). http://msdn.microsoft.com/en-us/library/ff818516(v=vs.85).aspx

您可以通过 Visual Basic Win API 函数学习一些东西.示例非常易于遵循和理解.然后就可以把代码翻译成C#了.

You can learn some stuff via Visual Basic Win API functions. Examples are very easy to follow and understand. Then you can translate the code to C#.

Visual Basic Windows API 函数共有 55 个类别,共 598 个http://www.ex-designz.net/api.asp

There Are 598 Visual Basic Windows API Functions in 55 Category http://www.ex-designz.net/api.asp

这篇关于如何了解 Win32 API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆