用于搜索的Win32 API! [英] Win32 API for Search!
问题描述
大家好,计划拨打相同的搜索API,windows Search用于搜索,当你用Ctrl + F启动时,你可以灵活地提供一个
包含文字!
VB / C#任何可行的东西
我的搜索想要使用包含文本
谢谢
首选操作系统:Win2k3
Vai2000,
您将不得不通过
P / Invoke层调用Win32 API。具体来说,你想要的API函数是
FindFirstFileEx,FindNextFile和FindClose。
希望这会有所帮助。
-
- Nicholas Paldino [.NET / C#MVP]
- mv*@spam.guard .caspershouse.com
" Vai2000" < no **** @ microsoft.comwrote in message
news:OL **************** @ TK2MSFTNGP03.phx.gbl ...
大家好,计划调用Windows搜索用于搜索的相同搜索API,当你用Ctrl + F启动时,你有灵活地提供
a
包含文字!
VB / C#任何东西都可以工作
我的搜索想要使用包含文本
谢谢
首选操作系统:Win2k3
Vai2000写道:
大家好,计划调用windows Search用于的相同搜索API >
搜索,当您使用Ctrl + F启动时,您可以灵活地提供包含文本的
a!
VB / C#任何事情都会工作
我的搜索想要使用包含文本
谢谢
首选操作系统:Win2k3
您可能也对
http://感兴趣addins.msn.com/devguide.aspx#...sktopSearchApi 。
-
Tom Porterfield
应该注意的是,这种方法有一些注意事项,那些是:
- 运行它的机器必须有Windows桌面搜索
已安装,位于:
http://www.microsoft.com/windows/des...h/default.mspx
- 文档所在的目录必须由Windows索引
桌面搜索。如果不是,那么使用这些API的搜索将会产生任何结果。
-
- Nicholas Paldino [.NET / C#MVP ]
- mv*@spam.guard.caspershouse.com
汤姆波特菲尔德 < tp ****** @ mvps.org写信息
新闻:eW ************** @ TK2MSFTNGP02.phx.gbl ...
Vai2000写道:
>大家好,计划调用Windows搜索使用的相同搜索API
对于
搜索,当你使用Ctrl + F启动时,你可以灵活地提供包含文本的内容!
VB / C#任何东西都可以工作
我的搜索想要使用包含文本
感谢
首选操作系统:Win2k3
您可能也是感兴趣的是
http://addins.msn.com/devguide。 aspx#... sktopSearchApi 。
-
Tom Porterfield
>
Hi All, Planning to call the same search API which windows Search uses for
searching , when u launch with Ctrl+F,you have the flexibility to provide a
containing text!
VB/C# any thing would work
My search wants to use Containing text
Thanks
Preferred OS:Win2k3
Vai2000,
You are going to have to make calls to the Win32 API through the
P/Invoke layer. Specifically, the API functions you want are
FindFirstFileEx, FindNextFile and FindClose.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Vai2000" <no****@microsoft.comwrote in message
news:OL****************@TK2MSFTNGP03.phx.gbl...Hi All, Planning to call the same search API which windows Search uses for
searching , when u launch with Ctrl+F,you have the flexibility to provide
a
containing text!
VB/C# any thing would work
My search wants to use Containing text
Thanks
Preferred OS:Win2k3
Vai2000 wrote:Hi All, Planning to call the same search API which windows Search uses for
searching , when u launch with Ctrl+F,you have the flexibility to provide
a containing text!
VB/C# any thing would work
My search wants to use Containing text
Thanks
Preferred OS:Win2k3You might also be interested in
http://addins.msn.com/devguide.aspx#...sktopSearchApi.
--
Tom Porterfield
It should be noted that this approach has some caveats, those being:
- The machine that this is run on has to have Windows Desktop Search
installed, located at:
http://www.microsoft.com/windows/des...h/default.mspx
- The directories that the documents reside in have to be indexed by Windows
Desktop Search. If they are not, then a search using these APIs will
produce nothing.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Tom Porterfield" <tp******@mvps.orgwrote in message
news:eW**************@TK2MSFTNGP02.phx.gbl...Vai2000 wrote:>Hi All, Planning to call the same search API which windows Search uses
for
searching , when u launch with Ctrl+F,you have the flexibility to provide
a containing text!
VB/C# any thing would work
My search wants to use Containing text
Thanks
Preferred OS:Win2k3
You might also be interested in
http://addins.msn.com/devguide.aspx#...sktopSearchApi.
--
Tom Porterfield
这篇关于用于搜索的Win32 API!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!