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) |
---|
17 | extern "C" __declspec(dllexport) |
---|
18 | #else |
---|
19 | #pragma comment(linker, "/EXPORT:DoGraphBuilderCallbackPropertySheetModal=_DoGraphBuilderCallbackPropertySheetModal@0,PRIVATE") |
---|
20 | extern "C" // __declspec(dllexport) |
---|
21 | #endif // defined(_WIN64) |
---|
22 | |
---|
23 | HRESULT 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.