473,396 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

FILTERED_DATA_SOURCES

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.
Nov 15 '05 #1
0 965

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.