We use Windows Search in our application and need a way to detect is folder indexed.
I know 2 ways to do it:
1. Using Microsoft.Search.Interop.dll
library.
2. Using Windows Search Sample Code (maybe a bit changed) as an .exe file called from C# application.
These two solutions need using an external file (.dll
or .exe
) but I need a simpler solution because it will be simple new optional SEARCH feature to a WebDAV server generated by wizard for our clients. Besides Microsoft.Search.Interop.dll
is for .NET 2.0 and there can be a problem using it from IIS under .NET 4.0 pool (depending on pool settings).
Is there any way to use ISearchCrawlScopeManager
interface without linking to any .dll
(just to COM) like it was made in Crawl Scope Command Line
C++ example?
UPDATE1: Looks like ISearchCrawlScopeManager
interface is located in Search Interface Type Library
. It isn't done yet, but I'm close. Thanks to Hans Passant.