Passing IWMxxx interfaces between processes
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
Passing IWMxxx interfaces between processes

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK
Author Message
daninz
Guest





Posted: Thu Sep 23, 2004 7:07 pm    Post subject: Passing IWMxxx interfaces between processes Reply with quote

This is working with WM9.

I am trying to pass a IWMProfile from a COM exe to its client (i.e.: pass
the interface pointer across processes).

Whatever HRESULT is returned from the server, the client always gets a
0x80040155, “Interface not registered”. This is evidently the result of RPC
not knowing how to marshal an IWMProfile. This is not surprising, as the
interface is nowhere to be found in the registry.

General question: do the IWMxxx interfaces live in a different universe than
other interfaces? That is, they don’t go into the registry and are not
subject to the same rules as other COM interfaces?

Specific question: how can I then pass one of these interfaces across
processes?

Thank you very much for any clarifications.

Back to top
Alessandro Angeli [MVP::D
Guest





Posted: Thu Sep 23, 2004 7:41 pm    Post subject: Re: Passing IWMxxx interfaces between processes Reply with quote

"daninz" <daninz@discussions.microsoft.com> wrote:

Quote:
General question: do the IWMxxx interfaces live in a different
universe than other interfaces? That is, they don’t go into the
registry and are not subject to the same rules as other COM
interfaces?

COM does not require that an interface is registered anywhere when the
server is meant to work in-process as is the case with the WM classes.
Registering the interfaces is only required when a server wants to support
automatic marshalling for DCOM or out-of-process activation.

Quote:
Specific question: how can I then pass one of these interfaces across
processes?

Either write your own RPC marshaller or create a TLB for the interfaces and
register them yourself. Both tasks are non trivial.


--

Alessandro Angeli

MVP::DigitalMedia

a dot angeli at biosys dot net
Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB