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