Ignore:
Timestamp:
May 18, 2015, 2:09:09 AM (7 years ago)
Author:
roman
Message:

Added media sample trace API and UI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DirectShowSpy/FilterGraphSpy.cpp

    r376 r440  
    2929#endif // defined(_WIN64)
    3030
    31 HRESULT STDMETHODCALLTYPE DoGraphBuilderCallbackPropertySheetModal() throw()
     31HRESULT STDMETHODCALLTYPE DoGraphBuilderCallbackPropertySheetModal()
    3232{
    3333        _ATLTRY
     
    7373}
    7474
     75////////////////////////////////////////////////////////////
     76// DoGraphBuilderCallbackPropertySheetModal
     77
     78#include "MediaSampleTrace.h"
     79
     80#if defined(_WIN64)
     81        extern "C" __declspec(dllexport)
     82#else
     83        #pragma comment(linker, "/EXPORT:DoMediaSampleTracePropertySheetModal=_DoMediaSampleTracePropertySheetModal@0,PRIVATE")
     84        extern "C" // __declspec(dllexport)
     85#endif // defined(_WIN64)
     86
     87HRESULT STDMETHODCALLTYPE DoMediaSampleTracePropertySheetModal()
     88{
     89        _ATLTRY
     90        {
     91                CSingleThreadedApartment SingleThreadedApartment;
     92                _W(AtlInitCommonControls(ICC_WIN95_CLASSES | ICC_COOL_CLASSES | ICC_STANDARD_CLASSES));
     93                CMediaSampleTracePropertySheet PropertySheet;
     94                PropertySheet.DoModal(GetActiveWindow());
     95        }
     96        _ATLCATCH(Exception)
     97        {
     98                _C(Exception);
     99        }
     100        return S_OK;
     101}
     102
Note: See TracChangeset for help on using the changeset viewer.