FILTERED_DATA_SOURCES

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • timtos

    #1

    FILTERED_DATA_SOURCES

    Does anybody know how to define the structure

    FILTERED_DATA_S OURCES

    in C#? My last try looked like this:

    [StructLayout(La youtKind.Sequen tial)]
    public struct FILTERED_DATA_S OURCE
    {
    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_S OURCES* pFilteredSource s,
    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.


Working...