2 * Implementation of the Active Template Library (atl.dll)
4 * Copyright 2004 Aric Stewart for CodeWeavers
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 typedef HRESULT (WINAPI _ATL_CREATORFUNC)(void* pv, REFIID riid, LPVOID* ppv);
22 typedef HRESULT (WINAPI _ATL_CREATORARGFUNC)(void* pv, REFIID riid, LPVOID* ppv, DWORD dw);
23 typedef HRESULT (WINAPI _ATL_MODULEFUNC)(DWORD dw);
24 typedef LPCSTR (WINAPI _ATL_DESCRIPTIONFUNCA)();
25 typedef LPCWSTR (WINAPI _ATL_DESCRIPTIONFUNCW)();
26 typedef const struct _ATL_CATMAP_ENTRY* (_ATL_CATMAPFUNC)();
27 typedef void (WINAPI _ATL_TERMFUNC)(DWORD dw);
29 typedef struct _ATL_OBJMAP_ENTRYA_TAG
32 HRESULT (WINAPI *pfnUpdateRegistry)(BOOL bRegister);
33 _ATL_CREATORFUNC* pfnGetClassObject;
34 _ATL_CREATORFUNC* pfnCreateInstance;
37 _ATL_DESCRIPTIONFUNCA* pfnGetObjectDescription;
38 _ATL_CATMAPFUNC* pfnGetCategoryMap;
39 void (WINAPI *pfnObjectMain)(BOOL bStarting);
42 typedef struct _ATL_OBJMAP_ENTRYW_TAG
45 HRESULT (WINAPI *pfnUpdateRegistry)(BOOL bRegister);
46 _ATL_CREATORFUNC* pfnGetClassObject;
47 _ATL_CREATORFUNC* pfnCreateInstance;
50 _ATL_DESCRIPTIONFUNCW* pfnGetObjectDescription;
51 _ATL_CATMAPFUNC* pfnGetCategoryMap;
52 void (WINAPI *pfnObjectMain)(BOOL bStarting);
56 typedef struct _ATL_TERMFUNC_ELEM_TAG
60 struct _ATL_TERMFUNC_ELEM_TAG* pNext;
63 typedef struct _AtlCreateWndData_TAG
67 struct _AtlCreateWndData_TAG* m_pNext;
70 typedef struct _ATL_MODULEA_TAG
74 HINSTANCE m_hInstResource;
75 HINSTANCE m_hInstTypeLib;
76 _ATL_OBJMAP_ENTRYA* m_pObjMap;
81 CRITICAL_SECTION m_csTypeInfoHolder;
82 CRITICAL_SECTION m_csStaticDataInit;
84 CRITICAL_SECTION m_csWindowCreate;
85 CRITICAL_SECTION m_csObjMap;
88 _AtlCreateWndData* m_pCreateWndList;
94 _ATL_TERMFUNC_ELEM* m_pTermFuncs;
97 typedef struct _ATL_MODULEW_TAG
101 HINSTANCE m_hInstResource;
102 HINSTANCE m_hInstTypeLib;
103 _ATL_OBJMAP_ENTRYW* m_pObjMap;
108 CRITICAL_SECTION m_csTypeInfoHolder;
109 CRITICAL_SECTION m_csStaticDataInit;
111 CRITICAL_SECTION m_csWindowCreate;
112 CRITICAL_SECTION m_csObjMap;
115 _AtlCreateWndData* m_pCreateWndList;
121 _ATL_TERMFUNC_ELEM* m_pTermFuncs;
124 typedef struct _ATL_INTMAP_ENTRY_TAG
128 _ATL_CREATORARGFUNC* pFunc;
131 HRESULT WINAPI AtlModuleInit(_ATL_MODULEA* pM, _ATL_OBJMAP_ENTRYA* p, HINSTANCE h);
132 HRESULT WINAPI AtlModuleRegisterClassObjects(_ATL_MODULEA* pM, DWORD dwClsContext, DWORD dwFlags);
133 HRESULT WINAPI AtlModuleTerm(_ATL_MODULEA* pM);
134 HRESULT WINAPI AtlInternalQueryInterface(LPVOID pThis,
135 const _ATL_INTMAP_ENTRY* pEntries, REFIID iid, LPVOID* ppvObject);