Does anybody know how to define the structure
FILTERED_DATA_SOURCES
in C#? My last try looked like this:
[StructLayout(LayoutKind.Sequential)]
public struct FILTERED_DATA_SOURCE
{
public IntPtr pwcsExtension;
public IntPtr pwcsMime;
public IntPtr pClsid;
public IntPtr pwcsOverride;
}
But that seems to be too easy ;-)
Or more generally how to use the following method in C#:
HRESULT LoadIFilter(
WCHAR const * pwcsPath,
FILTERED_DATA_SOURCES* pFilteredSources,
IUnknown * pUnkOuter,
BOOL fUseDefault,
CLSID * pFilterClsid,
Int * SearchDecSize,
WCHAR ** pwcsSearchDesc,
IFilter** ppIFilt
);
I´ve tried to include this function in my project and everything is compiling fine but the filter is always null!
I know there is another more simple LoadIFilter method but with this method the default filter is not returned
if the file extension is not assigned to a special filter.
Any hints?
Greetings and thanks in advance,
timtos.