Original Post
I have a question regarding how to access the IUnknown interface.
For example, the method IDirectMusicPerformance8::StopEx has the prototype:
HRESULT StopEx(
IUnknown *pObjectToStop,
__int64 i64StopTime,
DWORD dwFlags
);
The first parameter is a pointer to the IUnknown interface of the object that needs to be stoped (in my case a music midi file).
I have pointers to the segment that is playing and it''s segment state:
IDirectMusicSegment8* g_pSegment;
IDirectMusicSegmentState* g_pSegmentState;
but how do I get access to the IUnknown interface for the object that I need to stop.
Thanks
henry