source: trunk/DirectShowSpy/FilterGraphSpy.cpp @ 95

Last change on this file since 95 was 95, checked in by roman, 10 years ago

DirectShowSpy? moved from Assembla

  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1////////////////////////////////////////////////////////////
2// Copyright (C) Roman Ryltsov, 2008-2011
3// Created by Roman Ryltsov roman@alax.info
4//
5// $Id: FilterGraphSpy.cpp 95 2012-08-17 17:21:13Z roman $
6
7#include "stdafx.h"
8#include "resource.h"
9#include "FilterGraphSpy.h"
10#include "FilterMapperSpy.h"
11#include "GraphBuilderCallbackPropertySheet.h"
12
13////////////////////////////////////////////////////////////
14// CGraphBuilderCallbackPropertySheet
15
16#if defined(_WIN64)
17extern "C" __declspec(dllexport) 
18#else
19#pragma comment(linker, "/EXPORT:DoGraphBuilderCallbackPropertySheetModal=_DoGraphBuilderCallbackPropertySheetModal@0,PRIVATE")
20extern "C" // __declspec(dllexport)
21#endif // defined(_WIN64)
22
23HRESULT STDMETHODCALLTYPE DoGraphBuilderCallbackPropertySheetModal() throw()
24{
25        _ATLTRY
26        {
27                CSingleThreadedApartment SingleThreadedApartment;
28                _W(AtlInitCommonControls(ICC_WIN95_CLASSES | ICC_COOL_CLASSES | ICC_STANDARD_CLASSES));
29                CGraphBuilderCallbackPropertySheet PropertySheet;
30                PropertySheet.DoModal(GetActiveWindow());
31        }
32        _ATLCATCH(Exception)
33        {
34                _C(Exception);
35        }
36        return S_OK;
37}
Note: See TracBrowser for help on using the repository browser.