Nota
El acceso a esta página requiere autorización. Puede intentar iniciar sesión o cambiar directorios.
El acceso a esta página requiere autorización. Puede intentar cambiar los directorios.
Expone métodos que permiten que una extensión de Shell proporcione un espacio de nombres que se pueda buscar.
Miembros
La interfaz IShellFolderSearchable hereda de la interfaz IUnknown . IShellFolderSearchable también tiene estos tipos de miembros:
Métodos
La interfaz IShellFolderSearchable tiene estos métodos.
Método | Descripción |
---|---|
CancelAsyncSearch | Comienza el proceso de cancelar una búsqueda asincrónica pendiente. |
FindString | Inicia una búsqueda de una cadena de búsqueda especificada. |
InvalidateSearch | Convierte este PIDL en una parte no válida de la carpeta Shell. |
Comentarios
Esta interfaz no está definida en ningún archivo de encabezado público. Si decide implementar esta interfaz, puede usar el siguiente código de C/C++ para declarar sus métodos.
#undef INTERFACE
#define INTERFACE IShellFolderSearchable
DECLARE_INTERFACE_IID_(IShellFolderSearchable, IUnknown, "4E1AE66C-204B-11d2-8DB3-0000F87A556C")
{
// *** IUnknown methods ***
STDMETHOD(QueryInterface) (THIS_ REFIID riid, __out void **ppv) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
// *** IShellFolderSearchable methods ***
// FindString -
// The returned Shell folder's enumerator will have any
// search hits for the given search string.
// punkOnAsyncSearch will be QI'd for IShellFolderSearchableCallback
STDMETHOD(FindString)(THIS_ LPCWSTR pwszTarget, __inout_opt DWORD *pdwFlags,
__in_opt IUnknown *punkOnAsyncSearch, __out LPITEMIDLIST *ppidlOut) PURE;
// CancelAsyncSearch -
// Begins the process of canceling any pending
// asynchronous search from this pidl.
// When the search is actually canceled, RunEnd will be called
// Returns: S_OK => cancelling, S_FALSE => not running
STDMETHOD(CancelAsyncSearch) (THIS_ LPCITEMIDLIST pidlSearch, __inout_opt DWORD *pdwFlags) PURE;
// InvalidateSearch -
// Makes this pidl no longer a valid portion of the Shell folder
// Also does some cleanup of any databases used in the search and
// will cause the eventual release of the callback
// May cause async search to be canceled
STDMETHOD(InvalidateSearch) (THIS_ LPCITEMIDLIST pidlSearch, __inout_opt DWORD *pdwFlags) PURE;
};
Requisitos
Requisito | Value |
---|---|
Cliente mínimo compatible |
Windows 2000 Professional [solo aplicaciones de escritorio] |
Servidor mínimo compatible |
Windows 2000 Server [solo aplicaciones de escritorio] |
Archivo DLL |
|