OSDN Git Service

最初のコミット
[winaudioj/SynthApp.git] / SynthApp / sf_com.h
1 #pragma once
2 /*
3   ==============================================================================
4
5    This file is part of the Shooting3
6    Copyright 2005-11 by Satoshi Fujiwara.
7
8    async can be redistributed and/or modified under the terms of the
9    GNU General Public License, as published by the Free Software Foundation;
10    either version 2 of the License, or (at your option) any later version.
11
12    async is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16
17    You should have received a copy of the GNU General Public License
18    along with async; if not, visit www.gnu.org/licenses or write to the
19    Free Software Foundation, Inc., 59 Temple Place, Suite 330, 
20    Boston, MA 02111-1307 USA
21
22   ==============================================================================
23 */
24 /** @file
25  *  @brief util
26  *  @author S.F. (Satoshi Fujiwara)
27  */
28 #include "objbase.h"
29
30
31
32 namespace sf 
33 {
34     enum com_init 
35     {
36         multi_threaded  = 0x0,
37         apartment_threaded = 0x2,
38         disable_ole1dde   = 0x4,
39         speed_over_memory = 0x8
40     };
41
42     struct com_initialize
43     {
44         struct impl;
45         com_initialize(void * reserved ,unsigned int init);
46         com_initialize(){com_initialize(0,multi_threaded);};
47         ~com_initialize() {};
48     private:
49         std::shared_ptr<impl> m_impl;
50     };
51
52
53 }