StatusInterface.h

Go to the documentation of this file.
00001 
00034 #pragma once
00035 
00036 //This file needs to be included - else we get a linker error for the GUID
00037 #include <INITGUID.H>
00038 
00039 #include <Windows.h>
00040 #include <string>
00041 
00042 #pragma warning(push)     // disable for this header only
00043 #pragma warning(disable:4312)
00044 // DirectShow
00045 #include <streams.h>
00046 #pragma warning(pop)      // restore original warning level
00047 
00063 //Smart Pointers
00064 DEFINE_GUID( IID_IStatusInterface, /* 60178ec0-c670-11d0-837a-0000f80220b9 */
00065                         0x8bd6af85, 
00066                         0xd262, 
00067                         0x4dbe, 
00068                         0xb2, 0x53, 0xfa, 0x8, 0xb4, 0xe3, 0x12, 0x5b
00069                         );
00070 
00071 #undef  INTERFACE
00072 #define INTERFACE   IStatusInterface
00073 DECLARE_INTERFACE_( IStatusInterface, IUnknown )
00074 {
00075         // *** methods ***
00076         STDMETHOD(GetLastError)( std::string& sError ) = 0;
00077         STDMETHOD(SetLastError)( std::string sError, bool bNotifyApplication) = 0;
00078         STDMETHOD(SetMediaEventSink) (IMediaEventSink* pEventSink) = 0;
00079         //We need an id for when we perform a callback
00080         STDMETHOD(SetFriendlyID) ( long lId) = 0;
00081         STDMETHOD(GetFriendlyID) ( long& lId) = 0;
00082 };

Generated on Fri Mar 13 14:12:38 2009 for RTVC by  doxygen 1.5.3