How do you quickly find the URL for a Win32 API on MSDN? It's easy for .NET methods -- just add the method name (for example, System.Byte.ToString) to http://msdn.microsoft.com/library/.
如何在MSDN上快速找到Win32 API的URL? .NET方法很简单 - 只需将方法名称(例如,System.Byte.ToString)添加到http://msdn.microsoft.com/library/即可。
However, for Win32 APIs (say GetLongPathName), this doesn't work: http://msdn.microsoft.com/en-us/library/GetLongPathName.
但是,对于Win32 API(比如GetLongPathName),这不起作用:http://msdn.microsoft.com/en-us/library/GetLongPathName。
I want to be able to use the URL in code comments or documentation. So the URL one gets with an MSDN or Google search (for example, http://msdn.microsoft.com/library/aa364980.aspx) isn't really what I'm looking for. I'd really like my code comments to look something like:
我希望能够在代码注释或文档中使用该URL。因此,使用MSDN或Google搜索获得的URL(例如,http://msdn.microsoft.com/library/aa364980.aspx)并不是我真正想要的。我真的很喜欢我的代码注释看起来像:
// blah blah blah. See http://msdn.microsoft.com/en-us/library/GetLongPathName for more information.
// 等等等等等等。有关更多信息,请参阅http://msdn.microsoft.com/en-us/library/GetLongPathName。
What's the magic pixie dust for Win32 APIs? Or does it only work for .NET methods?
什么是Win32 API的神奇小精灵粉尘?或者它只适用于.NET方法?
4 个解决方案
#1
5
Google might be your best bet. I know the msdn site search has time and again pointed me in the wrong direction, but a quick switch to Google ("GetLongPathName site:msdn.microsoft.com") never steers me wrong.
谷歌可能是你最好的选择。我知道msdn网站搜索有时间并指向错误的方向,但快速切换到谷歌(“GetLongPathName site:msdn.microsoft.com”)从来没有错过我。
#2
0
FWIW if you have the MSDN installed locally on your machine the Zeus editor has a feature to search the local copy of the MSDN.
如果您在计算机上本地安装了MSDN,则Zeus编辑器具有搜索MSDN本地副本的功能。
For example, placing the cursor on the GetLongPathName word within a text document and using the Zeus Help, Quick Help, Current Word menu, the following MSDN page gets loaded:
例如,将光标放在文本文档中的GetLongPathName单词上,并使用Zeus帮助,快速帮助,当前Word菜单,将加载以下MSDN页面:
ms-help://MS.VSCC.v80/MS.MSDN.vAug06.en/fileio/fs/getlongpathname.htm
#3
0
I am using Linkify by cough me, which lets you link
我正在使用Linkify by cough me,它可以让你链接
// see msdn:GetLongPathName
to the google search japollock mentions.
到谷歌搜索japollock提到。
#4
0
You could use MSDN search.
您可以使用MSDN搜索。
http://social.msdn.microsoft.com/Search/en-US/?Refinement=86&Query=GetLongPathName
Refinement=86
stands for Win32 search.
细化= 86代表Win32搜索。
#1
5
Google might be your best bet. I know the msdn site search has time and again pointed me in the wrong direction, but a quick switch to Google ("GetLongPathName site:msdn.microsoft.com") never steers me wrong.
谷歌可能是你最好的选择。我知道msdn网站搜索有时间并指向错误的方向,但快速切换到谷歌(“GetLongPathName site:msdn.microsoft.com”)从来没有错过我。
#2
0
FWIW if you have the MSDN installed locally on your machine the Zeus editor has a feature to search the local copy of the MSDN.
如果您在计算机上本地安装了MSDN,则Zeus编辑器具有搜索MSDN本地副本的功能。
For example, placing the cursor on the GetLongPathName word within a text document and using the Zeus Help, Quick Help, Current Word menu, the following MSDN page gets loaded:
例如,将光标放在文本文档中的GetLongPathName单词上,并使用Zeus帮助,快速帮助,当前Word菜单,将加载以下MSDN页面:
ms-help://MS.VSCC.v80/MS.MSDN.vAug06.en/fileio/fs/getlongpathname.htm
#3
0
I am using Linkify by cough me, which lets you link
我正在使用Linkify by cough me,它可以让你链接
// see msdn:GetLongPathName
to the google search japollock mentions.
到谷歌搜索japollock提到。
#4
0
You could use MSDN search.
您可以使用MSDN搜索。
http://social.msdn.microsoft.com/Search/en-US/?Refinement=86&Query=GetLongPathName
Refinement=86
stands for Win32 search.
细化= 86代表Win32搜索。