如何调用Windows API [英] How to Call Windows API
本文介绍了如何调用Windows API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:
的Windows API和.NET语言
我要打电话从.NET框架的原生Windows API。我想有一个简单的方法,我还可以从像其他.NET API的高层层原生API。 请参考您知道的任何资源。任何帮助将AP preciated。
I want to call native Windows API from .NET Framework. I want to have an easy way where I can call native API from high-level layer like other .NET APIs. Please refer to any resource which you know. Any help will be appreciated.
推荐答案
您可以在C#中使用P / Invoke调用非托管的DLL等功能从WinAPI的。此链接的文件如何使用大量的这些功能。
You can call unmanaged DLL's and other functions from the WinAPI using P/Invoke in C#. This link documents how to use a lot of these functions.
这篇关于如何调用Windows API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文