PortAudio  2.0
pa_win_coinitialize.h
Go to the documentation of this file.
1 /*
2  * Microsoft COM initialization routines
3  * Copyright (c) 1999-2011 Ross Bencina, Phil Burk
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining
6  * a copy of this software and associated documentation files
7  * (the "Software"), to deal in the Software without restriction,
8  * including without limitation the rights to use, copy, modify, merge,
9  * publish, distribute, sublicense, and/or sell copies of the Software,
10  * and to permit persons to whom the Software is furnished to do so,
11  * subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be
14  * included in all copies or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
20  * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
21  * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23  */
24 
25 /*
26  * The text above constitutes the entire PortAudio license; however,
27  * the PortAudio community also makes the following non-binding requests:
28  *
29  * Any person wishing to distribute modifications to the Software is
30  * requested to send the modifications to the original developer so that
31  * they can be incorporated into the canonical version. It is also
32  * requested that these non-binding requests be included along with the
33  * license above.
34  */
35 
42 #ifndef PA_WIN_COINITIALIZE_H
43 #define PA_WIN_COINITIALIZE_H
44 
45 #ifdef __cplusplus
46 extern "C"
47 {
48 #endif /* __cplusplus */
49 
50 
57  int state;
60 
61 
76 
77 
88 void PaWinUtil_CoUninitialize( PaHostApiTypeId hostApiType, PaWinUtilComInitializationResult *comInitializationResult );
89 
90 
91 #ifdef __cplusplus
92 }
93 #endif /* __cplusplus */
94 #endif /* PA_WIN_COINITIALIZE_H */
void PaWinUtil_CoUninitialize(PaHostApiTypeId hostApiType, PaWinUtilComInitializationResult *comInitializationResult)
Uninitialize the Microsoft COM subsystem on the current thread using the result of a previous call to...
Definition: pa_win_coinitialize.c:112
struct PaWinUtilComInitializationResult PaWinUtilComInitializationResult
Data type used to hold the result of an attempt to initialize COM using PaWinUtil_CoInitialize. Must be retained between a call to PaWinUtil_CoInitialize and a matching call to PaWinUtil_CoUninitialize.
int PaError
Definition: portaudio.h:122
PaHostApiTypeId
Definition: portaudio.h:277
DWORD initializingThreadId
Definition: pa_win_coinitialize.h:58
int state
Definition: pa_win_coinitialize.h:57
Data type used to hold the result of an attempt to initialize COM using PaWinUtil_CoInitialize. Must be retained between a call to PaWinUtil_CoInitialize and a matching call to PaWinUtil_CoUninitialize.
Definition: pa_win_coinitialize.h:56
PaError PaWinUtil_CoInitialize(PaHostApiTypeId hostApiType, PaWinUtilComInitializationResult *comInitializationResult)
Initialize Microsoft COM subsystem on the current thread.
Definition: pa_win_coinitialize.c:65