I am trying to implement a custom COM message filter using the code referenced here (http://msdn.microsoft.com/en-us/library/ms228772(VS.80).aspx). However, the CoRegisterMessageFilter call in MessageFilter.Register returns a result of -2147467231. According to the documentation, the only valid return results are 0 and 1 for S_OK and S_FALSE. If I let the code run, I am still getting the RPC server is busy error, but the retry code is never called. This leads me to believe that the message filter is not getting registered. Does anybody have any idea what this return result means?
- IDE: Visual Studio 2008
- Framework: .Net 3.5 SP1
- Language: VB.net
- I'm not actually using VSTO, but instead accessing office throught the PIA's.
- I am calling register before instantiating a PowerPoint.Application object and revoking it when I am done.
I am not sure what other information will be needed. I didn't post any code because I used an exact copy of what is in the document I referenced above. If you need any other info, please just ask.
Thanks in advance for all your time!
Eric.