source: trunk/DirectShowSpy/Configuration.cpp @ 171

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: 970 bytes
Line 
1////////////////////////////////////////////////////////////
2// Copyright (C) Roman Ryltsov, 2008-2011
3// Created by Roman Ryltsov roman@alax.info
4//
5// $Id: Configuration.cpp 147 2012-11-22 22:49:34Z roman $
6
7#include "stdafx.h"
8#include "resource.h"
9#include "Configuration.h"
10
11////////////////////////////////////////////////////////////
12// CRegistrationPropertySheet
13
14#if defined(_WIN64)
15extern "C" __declspec(dllexport) 
16#else
17#pragma comment(linker, "/EXPORT:DoRegistrationPropertySheetModal=_DoRegistrationPropertySheetModal@0,PRIVATE")
18extern "C" // __declspec(dllexport)
19#endif // defined(_WIN64)
20
21HRESULT STDMETHODCALLTYPE DoRegistrationPropertySheetModal() throw()
22{
23        _ATLTRY
24        {
25                CSingleThreadedApartment SingleThreadedApartment;
26                _W(AtlInitCommonControls(ICC_WIN95_CLASSES | ICC_COOL_CLASSES | ICC_STANDARD_CLASSES));
27                CRegistrationPropertySheet PropertySheet;
28                PropertySheet.DoModal(GetActiveWindow());
29        }
30        _ATLCATCH(Exception)
31        {
32                _C(Exception);
33        }
34        return S_OK;
35}
Note: See TracBrowser for help on using the repository browser.