Clear tooltip when text is set to NULL.
[wine/wine64.git] / dlls / atl / atlbase.h
blob7d3fc22fb5d5100eb92be1a7292bbefc9f728bdc
1 /*
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
31 const CLSID* pclsid;
32 HRESULT (WINAPI *pfnUpdateRegistry)(BOOL bRegister);
33 _ATL_CREATORFUNC* pfnGetClassObject;
34 _ATL_CREATORFUNC* pfnCreateInstance;
35 IUnknown* pCF;
36 DWORD dwRegister;
37 _ATL_DESCRIPTIONFUNCA* pfnGetObjectDescription;
38 _ATL_CATMAPFUNC* pfnGetCategoryMap;
39 void (WINAPI *pfnObjectMain)(BOOL bStarting);
40 }_ATL_OBJMAP_ENTRYA;
42 typedef struct _ATL_OBJMAP_ENTRYW_TAG
44 const CLSID* pclsid;
45 HRESULT (WINAPI *pfnUpdateRegistry)(BOOL bRegister);
46 _ATL_CREATORFUNC* pfnGetClassObject;
47 _ATL_CREATORFUNC* pfnCreateInstance;
48 IUnknown* pCF;
49 DWORD dwRegister;
50 _ATL_DESCRIPTIONFUNCW* pfnGetObjectDescription;
51 _ATL_CATMAPFUNC* pfnGetCategoryMap;
52 void (WINAPI *pfnObjectMain)(BOOL bStarting);
53 } _ATL_OBJMAP_ENTRYW;
56 typedef struct _ATL_TERMFUNC_ELEM_TAG
58 _ATL_TERMFUNC* pFunc;
59 DWORD dw;
60 struct _ATL_TERMFUNC_ELEM_TAG* pNext;
61 } _ATL_TERMFUNC_ELEM;
63 typedef struct _AtlCreateWndData_TAG
65 void* m_pThis;
66 DWORD m_dwThreadID;
67 struct _AtlCreateWndData_TAG* m_pNext;
68 } _AtlCreateWndData;
70 typedef struct _ATL_MODULEA_TAG
72 UINT cbSize;
73 HINSTANCE m_hInst;
74 HINSTANCE m_hInstResource;
75 HINSTANCE m_hInstTypeLib;
76 _ATL_OBJMAP_ENTRYA* m_pObjMap;
77 LONG m_nLockCnt;
78 HANDLE m_hHeap;
79 union
81 CRITICAL_SECTION m_csTypeInfoHolder;
82 CRITICAL_SECTION m_csStaticDataInit;
83 } u;
84 CRITICAL_SECTION m_csWindowCreate;
85 CRITICAL_SECTION m_csObjMap;
87 DWORD dwAtlBuildVer;
88 _AtlCreateWndData* m_pCreateWndList;
89 BOOL m_bDestroyHeap;
90 GUID* pguidVer;
91 DWORD m_dwHeaps;
92 HANDLE* m_phHeaps;
93 int m_nHeap;
94 _ATL_TERMFUNC_ELEM* m_pTermFuncs;
95 } _ATL_MODULEA;
97 typedef struct _ATL_MODULEW_TAG
99 UINT cbSize;
100 HINSTANCE m_hInst;
101 HINSTANCE m_hInstResource;
102 HINSTANCE m_hInstTypeLib;
103 _ATL_OBJMAP_ENTRYW* m_pObjMap;
104 LONG m_nLockCnt;
105 HANDLE m_hHeap;
106 union
108 CRITICAL_SECTION m_csTypeInfoHolder;
109 CRITICAL_SECTION m_csStaticDataInit;
110 } u;
111 CRITICAL_SECTION m_csWindowCreate;
112 CRITICAL_SECTION m_csObjMap;
114 DWORD dwAtlBuildVer;
115 _AtlCreateWndData* m_pCreateWndList;
116 BOOL m_bDestroyHeap;
117 GUID* pguidVer;
118 DWORD m_dwHeaps;
119 HANDLE* m_phHeaps;
120 int m_nHeap;
121 _ATL_TERMFUNC_ELEM* m_pTermFuncs;
122 } _ATL_MODULEW;
124 typedef struct _ATL_INTMAP_ENTRY_TAG
126 const IID* piid;
127 DWORD dw;
128 _ATL_CREATORARGFUNC* pFunc;
129 } _ATL_INTMAP_ENTRY;
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);