Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 168989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:33:02+00:00 2026-05-11T12:33:02+00:00

I am trying to use Adobe IFilter to search PDF files. My code is

  • 0

I am trying to use Adobe IFilter to search PDF files. My code is written in C# and I am using p/invoke to get an instance of IFilter:

    [DllImport('query.dll', SetLastError = true, CharSet = CharSet.Unicode)]     private extern static int LoadIFilter(         string pwcsPath,         [MarshalAs(UnmanagedType.IUnknown)] object pUnkOuter,         ref IFilter ppIUnk); 

This works for most PDF files except a few for which this method returns -2147467259 and ppIUnk is coming as null. Does anyone have this type of errors or have any suggestions of how to figure this out?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T12:33:03+00:00Added an answer on May 11, 2026 at 12:33 pm

    See the MSDN docs for the LoadIFilter function – you should be getting one of the error codes, at least according to that page.

    • E_ACCESSDENIED = 0x80070005 – The function was denied access to the filter file.
    • E_HANDLE = 0x80070006 – The function encountered an invalid handle, probably due to a low-memory situation.
    • E_INVALIDARG = 0x80070057 – The function received an invalid parameter.
    • E_OUTOFMEMORY = 0x8007000E – The function did not have sufficient memory or other resources to complete the operation.
    • E_FAIL = 0x80000008 – The function encountered an unknown error.

    (Also, the full set of constant values is listed here, which seems to be rather longer than that listed on MSDN.) Now, the interesting things is, your error code corresponds to 80004005 in hex, which isn’t listed on either or those pages. I’m suspecting pinvoke.net may have it wrong however, as many other sites (this for example) list it as E_FAIL… not that it really helps anyway. Sorry for the inconclusive answer, but maybe it will point you along the right track at least.

    Edit: This error seems to have been documented elsewhere and caused much confusion to many people, with no simple solution. It seems like the cause could be one of several in fact… There’s various suggestions here and here that you may want to try, but I don’t think I can help you any more than that, as I have never encountered this error myself in this context. Good luck anyway…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im trying to use Adobe reader to read pdf files downloaded from the server
I've been trying to use the code below to get the list of AD
I am trying use gem tire to search in my application. I have tables
I'm trying to use a RESTful web service in Adobe AIR. The service uses
I'm trying to use Adobe AIR 2's NativeProcess API to emulate the ApplicationUpdater but
I'm trying to use one of Adobe's examples to put a video player in
I am trying to use the Google Docs gview to load a pdf in
I'm trying to find percise coordinates from a path in Adobe Illustrator to use
I am trying do some testing examples with Facebook and Flash (using the Adobe
I'm trying to use Maven to build a Flex project using the Sonatype flexmojos.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.