wined3d: Move fields common to vertex shaders and pixel shaders to IWineD3DBaseShader.
[wine/multimedia.git] / dlls / qcap / dllsetup.h
blob6d90247c94691cc0e501498df50db8488d23793e
1 /*
2 * DirectX DLL registration and unregistration
4 * Copyright (C) 2005 Rolf Kalbermatter
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.
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.
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef _QCAP_DLLSETUP_H_DEFINED
22 #define _QCAP_DLLSETUP_H_DEFINED
24 #define COBJMACROS
25 #include "strmif.h"
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;
34 typedef REGFILTERPINS AMOVIESETUP_PIN,
35 * PAMOVIESETUP_PIN,
36 * LPAMOVIESETUP_PIN;
38 typedef struct _AMOVIESETUP_FILTER
40 const CLSID *clsID;
41 const WCHAR *strName;
42 DWORD dwMerit;
43 UINT nPins;
44 const AMOVIESETUP_PIN *lpPin;
45 } AMOVIESETUP_FILTER, * PAMOVIESETUP_FILTER, * LPAMOVIESETUP_FILTER;
47 /* This needs to go into Combase.h */
48 typedef IUnknown *(CALLBACK *LPFNNewCOMObject)(LPUNKNOWN pUnkOuter, HRESULT *phr);
49 typedef void (CALLBACK *LPFNInitRoutine)(BOOL bLoading, const CLSID *rclsid);
51 typedef struct tagCFactoryTemplate {
52 const WCHAR *m_Name;
53 const CLSID *m_ClsID;
54 LPFNNewCOMObject m_lpfnNew;
55 LPFNInitRoutine m_lpfnInit;
56 const AMOVIESETUP_FILTER *m_pAMovieSetup_Filter;
57 } CFactoryTemplate;
59 /****************************************************************************
60 * SetupRegisterServers
62 * This function is table driven using the static members of the
63 * CFactoryTemplate class defined in the Dll.
65 * It registers the Dll as the InprocServer32 for all the classes in
66 * CFactoryTemplate
68 ****************************************************************************/
69 extern HRESULT SetupRegisterServers(const CFactoryTemplate * pList, int num,
70 HINSTANCE hinst, BOOL bRegister);
72 /****************************************************************************
73 * SetupInitializeServers
75 * This function is table driven using the static members of the
76 * CFactoryTemplate class defined in the Dll.
78 * It calls the intialize function for any class in CFactoryTemplate with
79 * one defined.
81 ****************************************************************************/
82 extern void SetupInitializeServers(const CFactoryTemplate * pList, int num,
83 BOOL bLoading);
85 #endif /* _QCAP_DLLSETUP_H_DEFINED */