mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-07 17:42:45 +08:00

* Removed Search Interop tlb package. Added minimal Search API Com implementation * Added CSearchManagerImp * Updated Main with proper reference to CSearchManagerImp. Switched WindowsIndexerTest to use Indexer.Interop classes * Updated with proper SearchAPI Interop implementation * Deleted initial CSearchManager file that didn't work * Updated namespaces to match folder structure * Removed the interfaces and classes not being used from SearchAPI. Added suppressions * Updated spell check. Renamed CSearch call back to original * Fix spell check * Switched back to original class name for Search Manager in tests * Removed Microsoft.Search.Interop.dll from setup * Removed Microsoft.Search.Interop package from PowerLauncher and signing scripts
135 lines
4.9 KiB
C#
135 lines
4.9 KiB
C#
// Copyright (c) Microsoft Corporation
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Microsoft.Plugin.Indexer.Interop
|
|
{
|
|
[Guid("AB310581-AC80-11D1-8DF3-00C04FB6EF63")]
|
|
[InterfaceType(1)]
|
|
[ComImport]
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.OrderingRules", "SA1212:Property accessors should follow order", Justification = "The order of the property accessors must match the order in which the methods were defined in the vtable")]
|
|
public interface ISearchQueryHelper
|
|
{
|
|
[DispId(1610678272)]
|
|
string ConnectionString
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[return: MarshalAs(UnmanagedType.LPWStr)]
|
|
get;
|
|
}
|
|
|
|
[DispId(1610678273)]
|
|
uint QueryContentLocale
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[param: In]
|
|
set;
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
get;
|
|
}
|
|
|
|
[DispId(1610678275)]
|
|
uint QueryKeywordLocale
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[param: In]
|
|
set;
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
get;
|
|
}
|
|
|
|
[DispId(1610678277)]
|
|
object QueryTermExpansion
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[param: In]
|
|
set;
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
get;
|
|
}
|
|
|
|
[DispId(1610678279)]
|
|
object QuerySyntax
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[param: In]
|
|
set;
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
get;
|
|
}
|
|
|
|
[DispId(1610678281)]
|
|
string QueryContentProperties
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[param: MarshalAs(UnmanagedType.LPWStr)]
|
|
[param: In]
|
|
set;
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[return: MarshalAs(UnmanagedType.LPWStr)]
|
|
get;
|
|
}
|
|
|
|
[DispId(1610678283)]
|
|
string QuerySelectColumns
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[param: MarshalAs(UnmanagedType.LPWStr)]
|
|
[param: In]
|
|
set;
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[return: MarshalAs(UnmanagedType.LPWStr)]
|
|
get;
|
|
}
|
|
|
|
[DispId(1610678285)]
|
|
string QueryWhereRestrictions
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[param: MarshalAs(UnmanagedType.LPWStr)]
|
|
[param: In]
|
|
set;
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[return: MarshalAs(UnmanagedType.LPWStr)]
|
|
get;
|
|
}
|
|
|
|
[DispId(1610678287)]
|
|
string QuerySorting
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[param: MarshalAs(UnmanagedType.LPWStr)]
|
|
[param: In]
|
|
set;
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[return: MarshalAs(UnmanagedType.LPWStr)]
|
|
get;
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[return: MarshalAs(UnmanagedType.LPWStr)]
|
|
string GenerateSQLFromUserQuery([MarshalAs(UnmanagedType.LPWStr), In] string pszQuery);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
void WriteProperties(
|
|
[In] int itemID,
|
|
[In] uint dwNumberOfColumns,
|
|
[In] ref object pColumns,
|
|
[In] ref object pValues,
|
|
[In] ref object pftGatherModifiedTime);
|
|
|
|
[DispId(1610678291)]
|
|
int QueryMaxResults
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[param: In]
|
|
set;
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
get;
|
|
}
|
|
}
|
|
}
|