2 * IAssemblyName implementation
4 * Copyright 2008 James Hawkins
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
32 #include "wine/debug.h"
34 WINE_DEFAULT_DEBUG_CHANNEL(fusion
);
37 const IAssemblyNameVtbl
*lpIAssemblyNameVtbl
;
42 static HRESULT WINAPI
IAssemblyNameImpl_QueryInterface(IAssemblyName
*iface
,
43 REFIID riid
, LPVOID
*ppobj
)
45 IAssemblyNameImpl
*This
= (IAssemblyNameImpl
*)iface
;
47 TRACE("(%p, %s, %p)\n", This
, debugstr_guid(riid
), ppobj
);
51 if (IsEqualIID(riid
, &IID_IUnknown
) ||
52 IsEqualIID(riid
, &IID_IAssemblyName
))
54 IUnknown_AddRef(iface
);
59 WARN("(%p, %s, %p): not found\n", This
, debugstr_guid(riid
), ppobj
);
63 static ULONG WINAPI
IAssemblyNameImpl_AddRef(IAssemblyName
*iface
)
65 IAssemblyNameImpl
*This
= (IAssemblyNameImpl
*)iface
;
66 ULONG refCount
= InterlockedIncrement(&This
->ref
);
68 TRACE("(%p)->(ref before = %u)\n", This
, refCount
- 1);
73 static ULONG WINAPI
IAssemblyNameImpl_Release(IAssemblyName
*iface
)
75 IAssemblyNameImpl
*This
= (IAssemblyNameImpl
*)iface
;
76 ULONG refCount
= InterlockedDecrement(&This
->ref
);
78 TRACE("(%p)->(ref before = %u)\n", This
, refCount
+ 1);
81 HeapFree(GetProcessHeap(), 0, This
);
86 static HRESULT WINAPI
IAssemblyNameImpl_SetProperty(IAssemblyName
*iface
,
91 FIXME("(%p, %d, %p, %d) stub!\n", iface
, PropertyId
, pvProperty
, cbProperty
);
95 static HRESULT WINAPI
IAssemblyNameImpl_GetProperty(IAssemblyName
*iface
,
100 FIXME("(%p, %d, %p, %p) stub!\n", iface
, PropertyId
, pvProperty
, pcbProperty
);
104 static HRESULT WINAPI
IAssemblyNameImpl_Finalize(IAssemblyName
*iface
)
106 FIXME("(%p) stub!\n", iface
);
110 static HRESULT WINAPI
IAssemblyNameImpl_GetDisplayName(IAssemblyName
*iface
,
111 LPOLESTR szDisplayName
,
112 LPDWORD pccDisplayName
,
113 DWORD dwDisplayFlags
)
115 FIXME("(%p, %s, %p, %d) stub!\n", iface
, debugstr_w(szDisplayName
),
116 pccDisplayName
, dwDisplayFlags
);
121 static HRESULT WINAPI
IAssemblyNameImpl_Reserved(IAssemblyName
*iface
,
123 IUnknown
*pUnkReserved1
,
124 IUnknown
*pUnkReserved2
,
125 LPCOLESTR szReserved
,
131 TRACE("(%p, %s, %p, %p, %s, %x%08x, %p, %d, %p)\n", iface
,
132 debugstr_guid(refIID
), pUnkReserved1
, pUnkReserved2
,
133 debugstr_w(szReserved
), (DWORD
)(llReserved
>> 32), (DWORD
)llReserved
,
134 pvReserved
, cbReserved
, ppReserved
);
139 static HRESULT WINAPI
IAssemblyNameImpl_GetName(IAssemblyName
*iface
,
143 FIXME("(%p, %p, %p) stub!\n", iface
, lpcwBuffer
, pwzName
);
147 static HRESULT WINAPI
IAssemblyNameImpl_GetVersion(IAssemblyName
*iface
,
148 LPDWORD pdwVersionHi
,
149 LPDWORD pdwVersionLow
)
151 FIXME("(%p, %p, %p) stub!\n", iface
, pdwVersionHi
, pdwVersionLow
);
155 static HRESULT WINAPI
IAssemblyNameImpl_IsEqual(IAssemblyName
*iface
,
156 IAssemblyName
*pName
,
159 FIXME("(%p, %p, %d) stub!\n", iface
, pName
, dwCmpFlags
);
163 static HRESULT WINAPI
IAssemblyNameImpl_Clone(IAssemblyName
*iface
,
164 IAssemblyName
**pName
)
166 FIXME("(%p, %p) stub!\n", iface
, pName
);
170 static const IAssemblyNameVtbl AssemblyNameVtbl
= {
171 IAssemblyNameImpl_QueryInterface
,
172 IAssemblyNameImpl_AddRef
,
173 IAssemblyNameImpl_Release
,
174 IAssemblyNameImpl_SetProperty
,
175 IAssemblyNameImpl_GetProperty
,
176 IAssemblyNameImpl_Finalize
,
177 IAssemblyNameImpl_GetDisplayName
,
178 IAssemblyNameImpl_Reserved
,
179 IAssemblyNameImpl_GetName
,
180 IAssemblyNameImpl_GetVersion
,
181 IAssemblyNameImpl_IsEqual
,
182 IAssemblyNameImpl_Clone