寻找Windows API定义 [英] Looking for Windows API Definitions
问题描述
C#的等效于Windows.h(以及它的包含)在哪里?
2008年11月7日星期五21:08:53 -0800,Stewart Berman
< sa ****** @ nospam.nospamwrote:
其中是相当于C#的Windows.h(以及它的包含)?
既然没有,那就没有了。 C#没有/使用包含文件。
它所需要的一切都来自你添加的程序集清单
引用你的项目。
Stewart Berman写道:
C#的Windows.h(及其包含)的等价物在哪里?
我想你总能尝试MSDN:
http://msdn.microsoft.com/en-us/libr...49(VS.85).aspx
http: //msdn.microsoft.com/en-us/libr...88(VS.85).aspx
http://msdn.microsoft.com/en-us/libr...86(VS.85).aspx
问候。
" Stewart Berman" < sa ****** @ nospam.nospamwrote in message
news:sk ************************ ******** @ 4ax.com ...
对于C#,它的等效于Windows.h(以及它的包含) ?
如果你打算对Windows API进行大量调用,你可能希望
来看一下这个网站: http://pinvoke.net/
它将帮助您找到使用平台调用时需要使用的各种[DllImport]声明和相关的
数据结构。
Where is the equivalent of the Windows.h (and it''s includes) for C#?
On Fri, 07 Nov 2008 21:08:53 -0800, Stewart Berman
<sa******@nospam.nospamwrote:
Where is the equivalent of the Windows.h (and it''s includes) for C#?Since there is none, it''s nowhere. C# doesn''t have/use include files.
Everything it needs comes from manifests of assemblies you add as
references to your project.
Stewart Berman wrote:Where is the equivalent of the Windows.h (and it''s includes) for C#?I guess you can always try MSDN:
http://msdn.microsoft.com/en-us/libr...49(VS.85).aspx
http://msdn.microsoft.com/en-us/libr...88(VS.85).aspx
http://msdn.microsoft.com/en-us/libr...86(VS.85).aspx
Regards.
"Stewart Berman" <sa******@nospam.nospamwrote in message
news:sk********************************@4ax.com...Where is the equivalent of the Windows.h (and it''s includes) for C#?If you are going to make a lot of calls into the Windows APIs, you may wish
to take a look at this site: http://pinvoke.net/
It will help you find the various [DllImport] declaractions and associated
data structures that you need to use when using Platform Invoke.
这篇关于寻找Windows API定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!