From: Georgi P. <gog...@gm...> - 2011-03-05 11:35:13
|
Hi, I have a quick question. I can't figure out something. I have the following COM function definition: STDAPI MFCreateVideoRenderer(REFIID riidRenderer, void ** ppVideoRenderer); The first parameter (riidRenderer) is Interface indentifier (IID) of a COM class. When calling MFCreateVideoRenderer, I want to pass a particular IID, for example IID_IMFMediaSink. In C++, I would write: MFCreateVideoRenderer(__uuidof (IID_IMFMediaSink), ... However, in C, this is not possible. The GUID of my desired interface (IID_IMFMediaSink) is 0x6ef2a660,0x47c0,0x4666,0xb1,0x3d,0xcb,0xb7,0x17,0xf2,0xfa,0x2c and I have defined it myself like this: DEFINE_GUID(IID_IMFMediaSink, 0x6ef2a660,0x47c0,0x4666,0xb1,0x3d,0xcb,0xb7,0x17,0xf2,0xfa,0x2c); Then how can I "convert" it to a suitable first parameter of MFCreateVideoRenderer? I've been stuck with this problem for 2 days and I really can't figure it out. Any help will be appreciated! Georgi |