comctl32: Add a trailing '\n' to a Wine trace.
[wine] / dlls / qcap / dllsetup.h
1 /*
2  * DirectX DLL registration and unregistration
3  *
4  * Copyright (C) 2005 Rolf Kalbermatter
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20
21 #ifndef _QCAP_DLLSETUP_H_DEFINED
22 #define _QCAP_DLLSETUP_H_DEFINED
23
24 #define COBJMACROS
25 #include "strmif.h"
26
27 /* Filter Setup data structures not defined in axextend.idl
28     They are not part of the standard SDK headers but come from the combase.h header
29     file in the DirectX Samples/Multimedia/BaseClasses */
30 typedef REGPINTYPES AMOVIESETUP_MEDIATYPE,
31     * PAMOVIESETUP_MEDIATYPE,
32     * LPAMOVIESETUP_MEDIATYPE;
33
34 typedef REGFILTERPINS AMOVIESETUP_PIN,
35     * PAMOVIESETUP_PIN, 
36     * LPAMOVIESETUP_PIN;
37
38 /* This needs to go into Combase.h */
39 typedef IUnknown *(CALLBACK *LPFNNewCOMObject)(LPUNKNOWN pUnkOuter, HRESULT *phr);
40 typedef void (CALLBACK *LPFNInitRoutine)(BOOL bLoading, const CLSID *rclsid);
41
42 typedef struct tagCFactoryTemplate {
43     const WCHAR *m_Name;
44     const CLSID *m_ClsID;
45     LPFNNewCOMObject m_lpfnNew;
46     LPFNInitRoutine m_lpfnInit;
47     const REGFILTER2 m_pAMovieSetup_Filter;
48 } CFactoryTemplate;
49
50 /****************************************************************************
51  * SetupRegisterServers
52  *
53  * This function is table driven using the static members of the
54  * CFactoryTemplate class defined in the Dll.
55  *
56  * It registers the Dll as the InprocServer32 for all the classes in
57  * CFactoryTemplate
58  *
59  ****************************************************************************/
60 extern HRESULT SetupRegisterServers(const CFactoryTemplate * pList, int num, BOOL bRegister);
61
62 /****************************************************************************
63  * SetupInitializeServers
64  *
65  * This function is table driven using the static members of the
66  * CFactoryTemplate class defined in the Dll.
67  *
68  * It calls the initialize function for any class in CFactoryTemplate with
69  * one defined.
70  *
71  ****************************************************************************/
72 extern void SetupInitializeServers(const CFactoryTemplate * pList, int num,
73                                    BOOL bLoading);
74
75 #endif /* _QCAP_DLLSETUP_H_DEFINED */