Win32 API的XML文档-有简单的方法吗? [英] XML documentation for Win32 API - is there an easy way?

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

问题描述

我的C#项目包装并使用了许多Windows API调用,我正在考虑如何为其添加代码文档.一种明显的方式(除了根本不记录它们之外)是将文本从适当的MSDN页面复制到代码中.这是很多工作!

My C# project wraps and uses numerous Windows API calls and I'm considering how to add in-code documentation for them.  The obvious way (other than not documenting them at all) is to copy the text from the appropriate MSDN page to the code.  This is A LOT of work!

是否存在另一种更有效的方式来使Win32 API函数文档可用,特别是(但不仅限于)通过IntelliSense?

Is there another, more efficient way of making the Win32 API function documentation available, specifically (but not only) via IntelliSense?

谢谢

  Ury

  Ury

推荐答案

Red-Gate通过其PInvoke Visual Studio加载项部分解决了此问题.但是,不是您描述的具体问题.

Red-Gate partially solves this issue with their PInvoke Visual Studio Add-in. However not the specific problem you describe.

您可能能够以类似的方式从其pinvoke.net网站中提取文档,就像他们从该基于Wiki的网站中提取方法调用一样.看看pinvoke.net网站,那里可能有用(他们的网站上还有一个包含其他工具的页面).

You may be able to extract documentation from their pinvoke.net website in a similar way they extract the method calls from that wiki-based website. Have a look at the pinvoke.net site, there might be something usefull there (they also have a page with other tools somewhere on their site).


这篇关于Win32 API的XML文档-有简单的方法吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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