#include "atlbase.h"
#include "atlcom.h"
#include "wine/debug.h"
Go to the source code of this file.
|
| | WINE_DEFAULT_DEBUG_CHANNEL (atl) |
| |
| HRESULT WINAPI | AtlAdvise (IUnknown *pUnkCP, IUnknown *pUnk, const IID *iid, DWORD *pdw) |
| |
| HRESULT WINAPI | AtlUnadvise (IUnknown *pUnkCP, const IID *iid, DWORD dw) |
| |
| HRESULT WINAPI | AtlFreeMarshalStream (IStream *stm) |
| |
| HRESULT WINAPI | AtlMarshalPtrInProc (IUnknown *pUnk, const IID *iid, IStream **pstm) |
| |
| HRESULT WINAPI | AtlUnmarshalPtr (IStream *stm, const IID *iid, IUnknown **ppUnk) |
| |
| HDC WINAPI | AtlCreateTargetDC (HDC hdc, DVTARGETDEVICE *dv) |
| |
| void WINAPI | AtlHiMetricToPixel (const SIZEL *lpHiMetric, SIZEL *lpPix) |
| |
| void WINAPI | AtlPixelToHiMetric (const SIZEL *lpPix, SIZEL *lpHiMetric) |
| |
| IUnknown *WINAPI | AtlComPtrAssign (IUnknown **pp, IUnknown *p) |
| |
| IUnknown *WINAPI | AtlComQIPtrAssign (IUnknown **pp, IUnknown *p, REFIID riid) |
| |
| HRESULT WINAPI | AtlInternalQueryInterface (void *this, const _ATL_INTMAP_ENTRY *pEntries, REFIID iid, void **ppvObject) |
| |
| HRESULT WINAPI | AtlIPersistStreamInit_Load (LPSTREAM pStm, ATL_PROPMAP_ENTRY *pMap, void *pThis, IUnknown *pUnk) |
| |
| HRESULT WINAPI | AtlIPersistStreamInit_Save (LPSTREAM pStm, BOOL fClearDirty, ATL_PROPMAP_ENTRY *pMap, void *pThis, IUnknown *pUnk) |
| |
| HRESULT WINAPI | AtlIPersistPropertyBag_Load (LPPROPERTYBAG pPropBag, LPERRORLOG pErrorLog, ATL_PROPMAP_ENTRY *pMap, void *pThis, IUnknown *pUnk) |
| |
| HRESULT WINAPI | AtlIPersistPropertyBag_Save (LPPROPERTYBAG pPropBag, BOOL fClearDirty, BOOL fSaveAll, ATL_PROPMAP_ENTRY *pMap, void *pThis, IUnknown *pUnk) |
| |
| HRESULT WINAPI | AtlModuleAddTermFunc (_ATL_MODULE *pM, _ATL_TERMFUNC *pFunc, DWORD_PTR dw) |
| |
| HRESULT WINAPI | AtlLoadTypeLib (HINSTANCE inst, LPCOLESTR lpszIndex, BSTR *pbstrPath, ITypeLib **ppTypeLib) |
| |
| HRESULT WINAPI | AtlRegisterTypeLib (HINSTANCE inst, const WCHAR *index) |
| |
| HRESULT WINAPI | AtlRegisterClassCategoriesHelper (REFCLSID clsid, const struct _ATL_CATMAP_ENTRY *catmap, BOOL reg) |
| |
| BOOL WINAPI | AtlWaitWithMessageLoop (HANDLE handle) |
| |
| static HRESULT | get_default_source (ITypeLib *typelib, const CLSID *clsid, IID *iid) |
| |
| HRESULT WINAPI | AtlGetObjectSourceInterface (IUnknown *unk, GUID *libid, IID *iid, unsigned short *major, unsigned short *minor) |
| |
| HRESULT WINAPI | AtlSetPerUserRegistration (cpp_bool bEnable) |
| |
| HRESULT WINAPI | AtlGetPerUserRegistration (cpp_bool *pbEnabled) |
| |
| DWORD WINAPI | AtlGetVersion (void *pReserved) |
| |
| BOOL WINAPI | DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) |
| |
◆ ATLVer1Size
Definition at line 33 of file atl.c.
◆ COBJMACROS
Definition at line 20 of file atl.c.
◆ cpp_bool
Definition at line 35 of file atl.c.
◆ AtlAdvise()
Definition at line 42 of file atl.c.
43{
47
48 TRACE(
"%p %p %p %p\n", pUnkCP,
pUnk, iid, pdw);
49
50 if(!pUnkCP)
52
56
57 hres = IConnectionPointContainer_FindConnectionPoint(
container, iid, &
cp);
58 IConnectionPointContainer_Release(
container);
61
63 IConnectionPoint_Release(
cp);
65}
static void *static void *static LPDIRECTPLAY IUnknown * pUnk
const GUID IID_IConnectionPointContainer
Referenced by CExplorerBand::_CreateTreeView(), CAddressEditBox::Init(), CSearchBar::OnInitDialog(), CBrandBand::SetSite(), CInternetToolbar::SetSite(), test_cp(), and CSearchBar::TrySubscribeToSearchEvents().
◆ AtlComPtrAssign()
Definition at line 172 of file atl.c.
173{
174 TRACE(
"(%p %p)\n", pp,
p);
175
176 if (
p) IUnknown_AddRef(
p);
177 if (*pp) IUnknown_Release(*pp);
180}
◆ AtlComQIPtrAssign()
Definition at line 185 of file atl.c.
186{
188
190
191 if (
p) IUnknown_QueryInterface(
p,
riid, (
void **)&new_p);
192 if (*pp) IUnknown_Release(*pp);
193 *pp = new_p;
194 return new_p;
195}
◆ AtlCreateTargetDC()
| HDC WINAPI AtlCreateTargetDC |
( |
HDC |
hdc, |
|
|
DVTARGETDEVICE * |
dv |
|
) |
| |
Definition at line 125 of file atl.c.
126{
129
131
132 if (dv)
133 {
134 if (dv->tdDriverNameOffset)
driver = (
WCHAR *)((
char *)dv + dv->tdDriverNameOffset);
135 if (dv->tdDeviceNameOffset)
device = (
WCHAR *)((
char *)dv + dv->tdDeviceNameOffset);
136 if (dv->tdPortNameOffset)
port = (
WCHAR *)((
char *)dv + dv->tdPortNameOffset);
137 if (dv->tdExtDevmodeOffset)
devmode = (
DEVMODEW *)((
char *)dv + dv->tdExtDevmodeOffset);
138 }
139 else
140 {
143 }
145}
struct @1851::@1852 driver
HDC WINAPI CreateDCW(_In_opt_ LPCWSTR pszDriver, _In_opt_ LPCWSTR pszDevice, _In_opt_ LPCWSTR psz, _In_opt_ const DEVMODEW *pdmInit)
◆ AtlFreeMarshalStream()
Definition at line 98 of file atl.c.
◆ AtlGetObjectSourceInterface()
Definition at line 883 of file atl.c.
884{
891
893
897
899 IDispatch_Release(disp);
902
907
914 }else {
916 }
917 }
920
923 hres = IProvideClassInfo2_GetGUID(
classinfo, GUIDKIND_DEFAULT_SOURCE_DISP_IID, iid);
927 }
928
932
933 hres = IPersist_GetClassID(persist, &
clsid);
936 IPersist_Release(persist);
937 }
938
940}
static HRESULT get_default_source(ITypeLib *typelib, const CLSID *clsid, IID *iid)
const GUID IID_IProvideClassInfo2
Referenced by test_source_iface().
◆ AtlGetPerUserRegistration()
Definition at line 956 of file atl.c.
957{
958 FIXME(
"stub: returning false\n");
959 *pbEnabled = 0;
961}
Referenced by test_regcat().
◆ AtlGetVersion()
◆ AtlHiMetricToPixel()
Definition at line 150 of file atl.c.
151{
156}
int WINAPI GetDeviceCaps(_In_opt_ HDC, _In_ int)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
HDC WINAPI GetDC(_In_opt_ HWND)
◆ AtlInternalQueryInterface()
Definition at line 200 of file atl.c.
201{
205
207 {
208 TRACE(
"Returning IUnknown\n");
209 *ppvObject = ((
LPSTR)
this+pEntries[0].
dw);
210 IUnknown_AddRef((
IUnknown*)*ppvObject);
212 }
213
214 while (pEntries[
i].pFunc != 0)
215 {
217 pEntries[
i].
dw, pEntries[
i].pFunc);
218
220 {
222 if (pEntries[
i].pFunc == (_ATL_CREATORARGFUNC*)1)
223 {
225 *ppvObject = ((
LPSTR)
this+pEntries[
i].
dw);
226 IUnknown_AddRef((
IUnknown*)*ppvObject);
228 }
229 else
230 {
232 rc = pEntries[
i].
pFunc(
this, iid, ppvObject, pEntries[
i].
dw);
233 if(rc==
S_OK || pEntries[
i].piid)
234 return rc;
235 }
236 }
238 }
239 TRACE(
"Done returning (0x%lx)\n",rc);
240 return rc;
241}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
REFIID LPVOID DWORD_PTR dw
#define IsEqualGUID(rguid1, rguid2)
_ATL_CREATORARGFUNC * pFunc
◆ AtlIPersistPropertyBag_Load()
Definition at line 269 of file atl.c.
272{
273 FIXME(
"(%p, %p, %p, %p, %p)\n", pPropBag, pErrorLog, pMap, pThis,
pUnk);
274
276}
◆ AtlIPersistPropertyBag_Save()
Definition at line 281 of file atl.c.
284{
285 FIXME(
"(%p, %d, %d, %p, %p, %p)\n", pPropBag, fClearDirty, fSaveAll, pMap, pThis,
pUnk);
286
288}
◆ AtlIPersistStreamInit_Load()
Definition at line 246 of file atl.c.
248{
249 FIXME(
"(%p, %p, %p, %p)\n", pStm, pMap, pThis,
pUnk);
250
252}
◆ AtlIPersistStreamInit_Save()
Definition at line 257 of file atl.c.
260{
261 FIXME(
"(%p, %d, %p, %p, %p)\n", pStm, fClearDirty, pMap, pThis,
pUnk);
262
264}
◆ AtlLoadTypeLib()
Definition at line 337 of file atl.c.
339{
344
345 TRACE(
"(%p %s %p %p)\n", inst,
debugstr_w(lpszIndex), pbstrPath, ppTypeLib);
346
347 index_len = lpszIndex ?
lstrlenW(lpszIndex) : 0;
351
356 }
357
358 if(index_len)
360
364
370 }
371
374 if(!*pbstrPath) {
377 }
378 }
379
383
386}
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
HRESULT WINAPI LoadTypeLib(const OLECHAR *szFile, ITypeLib **pptLib)
#define memcpy(s1, s2, n)
BSTR WINAPI SysAllocString(LPCOLESTR str)
DWORD WINAPI GetLastError(void)
static HRESULT HRESULT_FROM_WIN32(unsigned int x)
Referenced by AtlModuleLoadTypeLib(), AtlRegisterTypeLib(), and test_typelib().
◆ AtlMarshalPtrInProc()
◆ AtlModuleAddTermFunc()
Definition at line 293 of file atl.c.
294{
296
298
300 termfunc_elem =
malloc(
sizeof(*termfunc_elem));
301 termfunc_elem->
pFunc = pFunc;
302 termfunc_elem->
dw =
dw;
304
306 }
307
309}
_ATL_TERMFUNC_ELEM * m_pTermFuncs
struct _ATL_TERMFUNC_ELEM_TAG * pNext
Referenced by test_term().
◆ AtlPixelToHiMetric()
◆ AtlRegisterClassCategoriesHelper()
Definition at line 747 of file atl.c.
748{
751
753
754 if(!catmap)
756
759
761 &IID_ICatRegister, (void**)&new_catreg);
764
766 ICatRegister_Release(new_catreg);
767 }
768
771
775 else
777 }else {
780 else
782 }
785 }
786
788 WCHAR reg_path[256] =
L"CLSID\\", *
ptr = reg_path+6;
789
792
795
798 }
799
801}
LONG WINAPI RegDeleteKeyW(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey)
static ICatRegister * catreg
INT WINAPI StringFromGUID2(REFGUID guid, LPOLESTR str, INT cmax)
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, IUnknown *outer, DWORD cls_context, REFIID riid, void **obj)
#define _ATL_CATMAP_ENTRY_END
#define _ATL_CATMAP_ENTRY_IMPLEMENTED
#define InterlockedCompareExchangePointer
#define HKEY_CLASSES_ROOT
Referenced by AtlComModuleRegisterServer(), AtlModuleRegisterServer(), and test_regcat().
◆ AtlRegisterTypeLib()
◆ AtlSetPerUserRegistration()
◆ AtlUnadvise()
Definition at line 70 of file atl.c.
71{
75
76 TRACE(
"%p %p %ld\n", pUnkCP, iid,
dw);
77
78 if(!pUnkCP)
80
84
85 hres = IConnectionPointContainer_FindConnectionPoint(
container, iid, &
cp);
86 IConnectionPointContainer_Release(
container);
89
90 hres = IConnectionPoint_Unadvise(
cp,
dw);
91 IConnectionPoint_Release(
cp);
93}
Referenced by CExplorerBand::_DestroyTreeView(), CAddressEditBox::SetOwner(), CBrandBand::SetSite(), CInternetToolbar::SetSite(), and test_cp().
◆ AtlUnmarshalPtr()
Definition at line 116 of file atl.c.
117{
118 FIXME(
"%p %p %p\n", stm, iid, ppUnk);
120}
◆ AtlWaitWithMessageLoop()
Definition at line 806 of file atl.c.
807{
810
812
813 while(1) {
821
824 break;
825 default:
827 }
828 }
829}
TW_UINT32 TW_UINT16 TW_UINT16 MSG
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI GetMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT)
DWORD WINAPI MsgWaitForMultipleObjects(_In_ DWORD nCount, _In_reads_opt_(nCount) CONST HANDLE *pHandles, _In_ BOOL fWaitAll, _In_ DWORD dwMilliseconds, _In_ DWORD dwWakeMask)
LRESULT WINAPI DispatchMessageW(_In_ const MSG *)
◆ DllMain()
Definition at line 974 of file atl.c.
975{
977
981 break;
985 ICatRegister_Release(
catreg);
986 }
987
989}
static DWORD const fdwReason
#define DLL_PROCESS_ATTACH
#define DLL_PROCESS_DETACH
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
static IN DWORD IN LPVOID lpvReserved
◆ get_default_source()
Definition at line 831 of file atl.c.
832{
835 int type_flags;
838
842
847 }
848
849 for(
i=0;
i <
attr->cImplTypes;
i++) {
851 if(
SUCCEEDED(
hres) && type_flags == (IMPLTYPEFLAG_FSOURCE|IMPLTYPEFLAG_FDEFAULT)) {
853
857 break;
858 }
859 }
860
865
866 if(!src_typeinfo) {
869 }
870
871 hres = ITypeInfo_GetTypeAttr(src_typeinfo, &
attr);
874 ITypeInfo_ReleaseTypeAttr(src_typeinfo,
attr);
875 }
876 ITypeInfo_Release(src_typeinfo);
878}
Referenced by AtlGetObjectSourceInterface().
◆ WINE_DEFAULT_DEBUG_CHANNEL()
| WINE_DEFAULT_DEBUG_CHANNEL |
( |
atl |
| ) |
|
◆ catreg