如何调用Windows APIWindows、API

2023-09-03 03:42:24 作者:心下囚

可能重复:   的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.

http://pinvoke.net/