How to use custom interface in PMP environment?

Hi, all:

I am trying to build a media playback system with PMP environment. I try to build my system without PMP first. But many custom interfaces are exported by my media source and MFT. Currently, I use those interfaces directly. But I want to know how to use those interface with PMP.

1) Is it necessary to write my components as DCOM ?

2) Will MF generate proxys of my custom interfaces automatically?

3) Can I get those components which in PMP and use them ?

Thanks

[510 byte] By [Fei-tian] at [2007-12-22]
# 1

Hi Fei-tian,

> Is it necessary to write my components as DCOM ?

Yes, you need to provide a DCOM proxy-stub for the interfaces you want to export from the PMP process to the application process. If you are declaring your interfaces using IDL, the Microsoft MIDL tool will generate this code for you.

> Will MF generate proxys of my custom interfaces automatically?

No. You will need to do this. See previous question.

> Can I get those components which in PMP and use them ?

Yes. There are multiple ways for an application to get to these interfaces. One way is to have your component implement IMFGetService - once you do this your application can call IMFGetService::GetService on the PMPSession passing in the IID of your custom interface, and the PMPSession will dig down and get the service off your component.

-Sumedh

SumedhBarde-MSFT at 2007-8-30 > top of Msdn Tech,Audio and Video Development,Media Foundation Development...