2 * Misc marshalling routines
4 * Copyright 2002 Ove Kaaven
5 * Copyright 2003 Mike Hearn
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 #define NONAMELESSUNION
27 #define NONAMELESSSTRUCT
38 #include "wine/debug.h"
40 WINE_DEFAULT_DEBUG_CHANNEL(ole);
42 /* FIXME: not supposed to be here */
44 const CLSID CLSID_PSDispatch = {
45 0x20420, 0, 0, {0xC0, 0, 0, 0, 0, 0, 0, 0x46}
48 static CStdPSFactoryBuffer PSFactoryBuffer;
50 CSTDSTUBBUFFERRELEASE(&PSFactoryBuffer)
52 extern const ExtendedProxyFileInfo oaidl_ProxyFileInfo;
54 const ProxyFileInfo* OLEAUT32_ProxyFileList[] = {
59 HRESULT OLEAUTPS_DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
61 return NdrDllGetClassObject(rclsid, riid, ppv, OLEAUT32_ProxyFileList,
62 &CLSID_PSDispatch, &PSFactoryBuffer);
65 /* CLEANLOCALSTORAGE */
66 /* I'm not sure how this is supposed to work yet */
68 unsigned long WINAPI CLEANLOCALSTORAGE_UserSize(unsigned long *pFlags, unsigned long Start, CLEANLOCALSTORAGE *pstg)
70 return Start + sizeof(DWORD);
73 unsigned char * WINAPI CLEANLOCALSTORAGE_UserMarshal(unsigned long *pFlags, unsigned char *Buffer, CLEANLOCALSTORAGE *pstg)
76 return Buffer + sizeof(DWORD);
79 unsigned char * WINAPI CLEANLOCALSTORAGE_UserUnmarshal(unsigned long *pFlags, unsigned char *Buffer, CLEANLOCALSTORAGE *pstr)
81 return Buffer + sizeof(DWORD);
84 void WINAPI CLEANLOCALSTORAGE_UserFree(unsigned long *pFlags, CLEANLOCALSTORAGE *pstr)
90 unsigned long WINAPI BSTR_UserSize(unsigned long *pFlags, unsigned long Start, BSTR *pstr)
92 TRACE("(%lx,%ld,%p) => %p\n", *pFlags, Start, pstr, *pstr);
93 if (*pstr) TRACE("string=%s\n", debugstr_w(*pstr));
94 Start += sizeof(FLAGGED_WORD_BLOB) + sizeof(OLECHAR) * (SysStringLen(*pstr) - 1);
95 TRACE("returning %ld\n", Start);
99 unsigned char * WINAPI BSTR_UserMarshal(unsigned long *pFlags, unsigned char *Buffer, BSTR *pstr)
101 wireBSTR str = (wireBSTR)Buffer;
103 TRACE("(%lx,%p,%p) => %p\n", *pFlags, Buffer, pstr, *pstr);
104 if (*pstr) TRACE("string=%s\n", debugstr_w(*pstr));
106 str->clSize = SysStringLen(*pstr);
108 memcpy(&str->asData, *pstr, sizeof(OLECHAR) * str->clSize);
109 return Buffer + sizeof(FLAGGED_WORD_BLOB) + sizeof(OLECHAR) * (str->clSize - 1);
112 unsigned char * WINAPI BSTR_UserUnmarshal(unsigned long *pFlags, unsigned char *Buffer, BSTR *pstr)
114 wireBSTR str = (wireBSTR)Buffer;
115 TRACE("(%lx,%p,%p) => %p\n", *pFlags, Buffer, pstr, *pstr);
117 SysReAllocStringLen(pstr, (OLECHAR*)&str->asData, str->clSize);
120 SysFreeString(*pstr);
123 if (*pstr) TRACE("string=%s\n", debugstr_w(*pstr));
124 return Buffer + sizeof(FLAGGED_WORD_BLOB) + sizeof(OLECHAR) * (str->clSize - 1);
127 void WINAPI BSTR_UserFree(unsigned long *pFlags, BSTR *pstr)
129 TRACE("(%lx,%p) => %p\n", *pFlags, pstr, *pstr);
131 SysFreeString(*pstr);
137 /* I'm not too sure how to do this yet */
139 #define VARIANT_wiresize sizeof(struct _wireVARIANT)
141 static unsigned wire_size(VARTYPE vt)
143 if (vt & VT_ARRAY) return 0;
145 switch (vt & ~VT_BYREF) {
154 return sizeof(SHORT);
162 return sizeof(FLOAT);
164 return sizeof(DOUBLE);
166 return sizeof(VARIANT_BOOL);
168 return sizeof(SCODE);
174 return sizeof(DECIMAL);
183 FIXME("unhandled VT %d\n", vt);
188 static unsigned interface_variant_size(unsigned long *pFlags, REFIID riid, VARIANT *pvar)
192 /* find the buffer size of the marshalled dispatch interface */
193 hr = CoGetMarshalSizeMax(&size, riid, V_UNKNOWN(pvar), LOWORD(*pFlags), NULL, MSHLFLAGS_NORMAL);
195 if (!V_DISPATCH(pvar))
196 WARN("NULL dispatch pointer\n");
198 ERR("Dispatch variant buffer size calculation failed, HRESULT=0x%lx\n", hr);
201 size += sizeof(ULONG); /* we have to store the buffersize in the stream */
202 TRACE("wire-size extra of dispatch variant is %ld\n", size);
206 static unsigned wire_extra(unsigned long *pFlags, VARIANT *pvar)
208 if (V_ISARRAY(pvar)) {
209 FIXME("wire-size safearray\n");
212 switch (V_VT(pvar)) {
214 return BSTR_UserSize(pFlags, 0, &V_BSTR(pvar));
215 case VT_BSTR | VT_BYREF:
216 return BSTR_UserSize(pFlags, 0, V_BSTRREF(pvar));
218 case VT_SAFEARRAY | VT_BYREF:
219 FIXME("wire-size safearray\n");
221 case VT_VARIANT | VT_BYREF:
222 return VARIANT_UserSize(pFlags, 0, V_VARIANTREF(pvar));
224 return interface_variant_size(pFlags, &IID_IUnknown, pvar);
226 return interface_variant_size(pFlags, &IID_IDispatch, pvar);
228 FIXME("wire-size record\n");
235 /* helper: called for VT_DISPATCH variants to marshal the IDispatch* into the buffer. returns Buffer on failure, new position otherwise */
236 static unsigned char* interface_variant_marshal(unsigned long *pFlags, unsigned char *Buffer, REFIID riid, VARIANT *pvar)
240 void *working_memlocked;
241 unsigned char *oldpos;
245 TRACE("pFlags=%ld, Buffer=%p, pvar=%p\n", *pFlags, Buffer, pvar);
249 /* CoMarshalInterface needs a stream, whereas at this level we are operating in terms of buffers.
250 * We create a stream on an HGLOBAL, so we can simply do a memcpy to move it to the buffer.
251 * in rpcrt4/ndr_ole.c, a simple IStream implementation is wrapped around the buffer object,
252 * but that would be overkill here, hence this implementation. We save the size because the unmarshal
253 * code has no way to know how long the marshalled buffer is. */
255 size = wire_extra(pFlags, pvar);
257 working_mem = GlobalAlloc(0, size);
258 if (!working_mem) return oldpos;
260 hr = CreateStreamOnHGlobal(working_mem, TRUE, &working);
262 GlobalFree(working_mem);
266 hr = CoMarshalInterface(working, riid, V_UNKNOWN(pvar), LOWORD(*pFlags), NULL, MSHLFLAGS_NORMAL);
268 IStream_Release(working); /* this also releases the hglobal */
272 working_memlocked = GlobalLock(working_mem);
273 memcpy(Buffer, &size, sizeof(ULONG)); /* copy the buffersize */
274 Buffer += sizeof(ULONG);
275 memcpy(Buffer, working_memlocked, size);
276 GlobalUnlock(working_mem);
278 IStream_Release(working);
280 TRACE("done, size=%ld\n", sizeof(ULONG) + size);
281 return Buffer + sizeof(ULONG) + size;
284 /* helper: called for VT_DISPATCH / VT_UNKNOWN variants to unmarshal the buffer. returns Buffer on failure, new position otherwise */
285 static unsigned char *interface_variant_unmarshal(unsigned long *pFlags, unsigned char *Buffer, REFIID riid, VARIANT *pvar)
289 void *working_memlocked;
290 unsigned char *oldpos;
294 TRACE("pFlags=%ld, Buffer=%p, pvar=%p\n", *pFlags, Buffer, pvar);
298 /* get the buffersize */
299 memcpy(&size, Buffer, sizeof(ULONG));
300 TRACE("buffersize=%ld\n", size);
301 Buffer += sizeof(ULONG);
303 working_mem = GlobalAlloc(0, size);
304 if (!working_mem) return oldpos;
306 hr = CreateStreamOnHGlobal(working_mem, TRUE, &working);
308 GlobalFree(working_mem);
312 working_memlocked = GlobalLock(working_mem);
314 /* now we copy the contents of the marshalling buffer to working_memlocked, unlock it, and demarshal the stream */
315 memcpy(working_memlocked, Buffer, size);
316 GlobalUnlock(working_mem);
318 hr = CoUnmarshalInterface(working, riid, (void**)&V_UNKNOWN(pvar));
320 IStream_Release(working);
324 IStream_Release(working); /* this also frees the underlying hglobal */
326 TRACE("done, processed=%ld bytes\n", sizeof(ULONG) + size);
327 return Buffer + sizeof(ULONG) + size;
331 unsigned long WINAPI VARIANT_UserSize(unsigned long *pFlags, unsigned long Start, VARIANT *pvar)
333 TRACE("(%lx,%ld,%p)\n", *pFlags, Start, pvar);
334 TRACE("vt=%04x\n", V_VT(pvar));
335 Start += VARIANT_wiresize + wire_extra(pFlags, pvar);
336 TRACE("returning %ld\n", Start);
340 unsigned char * WINAPI VARIANT_UserMarshal(unsigned long *pFlags, unsigned char *Buffer, VARIANT *pvar)
342 wireVARIANT var = (wireVARIANT)Buffer;
343 unsigned size, extra;
344 unsigned char *Pos = Buffer + VARIANT_wiresize;
346 TRACE("(%lx,%p,%p)\n", *pFlags, Buffer, pvar);
347 TRACE("vt=%04x\n", V_VT(pvar));
349 memset(var, 0, sizeof(*var));
350 var->clSize = sizeof(*var);
351 var->vt = pvar->n1.n2.vt;
353 var->rpcReserved = var->vt;
354 if ((var->vt & VT_ARRAY) ||
355 ((var->vt & VT_TYPEMASK) == VT_SAFEARRAY))
356 var->vt = VT_ARRAY | (var->vt & VT_BYREF);
358 if (var->vt == VT_DECIMAL) {
359 /* special case because decVal is on a different level */
360 var->u.decVal = pvar->n1.decVal;
364 size = wire_size(V_VT(pvar));
365 extra = wire_extra(pFlags, pvar);
366 var->wReserved1 = pvar->n1.n2.wReserved1;
367 var->wReserved2 = pvar->n1.n2.wReserved2;
368 var->wReserved3 = pvar->n1.n2.wReserved3;
370 if (var->vt & VT_BYREF)
371 memcpy(&var->u.cVal, pvar->n1.n2.n3.byref, size);
373 memcpy(&var->u.cVal, &pvar->n1.n2.n3, size);
375 if (!extra) return Pos;
379 Pos = BSTR_UserMarshal(pFlags, Pos, &V_BSTR(pvar));
381 case VT_BSTR | VT_BYREF:
382 Pos = BSTR_UserMarshal(pFlags, Pos, V_BSTRREF(pvar));
384 case VT_VARIANT | VT_BYREF:
385 Pos = VARIANT_UserMarshal(pFlags, Pos, V_VARIANTREF(pvar));
387 case VT_DISPATCH | VT_BYREF:
388 FIXME("handle DISPATCH by ref\n");
391 /* this should probably call WdtpInterfacePointer_UserMarshal in ole32.dll */
392 Pos = interface_variant_marshal(pFlags, Pos, &IID_IUnknown, pvar);
395 /* this should probably call WdtpInterfacePointer_UserMarshal in ole32.dll */
396 Pos = interface_variant_marshal(pFlags, Pos, &IID_IDispatch, pvar);
399 FIXME("handle BRECORD by val\n");
401 case VT_RECORD | VT_BYREF:
402 FIXME("handle BRECORD by ref\n");
405 FIXME("handle unknown complex type\n");
408 var->clSize = Pos - Buffer;
409 TRACE("marshalled size=%ld\n", var->clSize);
413 unsigned char * WINAPI VARIANT_UserUnmarshal(unsigned long *pFlags, unsigned char *Buffer, VARIANT *pvar)
415 wireVARIANT var = (wireVARIANT)Buffer;
417 unsigned char *Pos = Buffer + VARIANT_wiresize;
419 TRACE("(%lx,%p,%p)\n", *pFlags, Buffer, pvar);
421 pvar->n1.n2.vt = var->rpcReserved;
422 TRACE("marshalled: clSize=%ld, vt=%04x\n", var->clSize, var->vt);
423 TRACE("vt=%04x\n", V_VT(pvar));
424 TRACE("reserved: %d, %d, %d\n", var->wReserved1, var->wReserved2, var->wReserved3);
425 TRACE("val: %ld\n", var->u.lVal);
427 if (var->vt == VT_DECIMAL) {
428 /* special case because decVal is on a different level */
429 pvar->n1.decVal = var->u.decVal;
433 size = wire_size(V_VT(pvar));
434 pvar->n1.n2.wReserved1 = var->wReserved1;
435 pvar->n1.n2.wReserved2 = var->wReserved2;
436 pvar->n1.n2.wReserved3 = var->wReserved3;
438 if (var->vt & VT_BYREF) {
439 pvar->n1.n2.n3.byref = CoTaskMemAlloc(size);
440 memcpy(pvar->n1.n2.n3.byref, &var->u.cVal, size);
443 memcpy(&pvar->n1.n2.n3, &var->u.cVal, size);
445 if (var->clSize <= VARIANT_wiresize) return Pos;
449 Pos = BSTR_UserUnmarshal(pFlags, Pos, &V_BSTR(pvar));
451 case VT_BSTR | VT_BYREF:
452 pvar->n1.n2.n3.byref = CoTaskMemAlloc(sizeof(BSTR));
453 *(BSTR*)pvar->n1.n2.n3.byref = NULL;
454 Pos = BSTR_UserUnmarshal(pFlags, Pos, V_BSTRREF(pvar));
456 case VT_VARIANT | VT_BYREF:
457 pvar->n1.n2.n3.byref = CoTaskMemAlloc(sizeof(VARIANT));
458 Pos = VARIANT_UserUnmarshal(pFlags, Pos, V_VARIANTREF(pvar));
461 FIXME("handle BRECORD by val\n");
463 case VT_RECORD | VT_BYREF:
464 FIXME("handle BRECORD by ref\n");
467 Pos = interface_variant_unmarshal(pFlags, Pos, &IID_IUnknown, pvar);
470 Pos = interface_variant_unmarshal(pFlags, Pos, &IID_IDispatch, pvar);
472 case VT_DISPATCH | VT_BYREF:
473 FIXME("handle DISPATCH by ref\n");
475 FIXME("handle unknown complex type\n");
478 if (Pos != Buffer + var->clSize) {
479 ERR("size difference during unmarshal\n");
481 return Buffer + var->clSize;
484 void WINAPI VARIANT_UserFree(unsigned long *pFlags, VARIANT *pvar)
486 VARTYPE vt = V_VT(pvar);
489 TRACE("(%lx,%p)\n", *pFlags, pvar);
490 TRACE("vt=%04x\n", V_VT(pvar));
492 if (vt & VT_BYREF) ref = pvar->n1.n2.n3.byref;
498 case VT_BSTR | VT_BYREF:
499 BSTR_UserFree(pFlags, ref);
501 case VT_VARIANT | VT_BYREF:
502 VARIANT_UserFree(pFlags, ref);
504 case VT_RECORD | VT_BYREF:
505 FIXME("handle BRECORD by ref\n");
509 IUnknown_Release(V_UNKNOWN(pvar));
512 FIXME("handle unknown complex type\n");
520 /* exactly how Invoke is marshalled is not very clear to me yet,
521 * but the way I've done it seems to work for me */
523 HRESULT CALLBACK IDispatch_Invoke_Proxy(
529 DISPPARAMS* pDispParams,
531 EXCEPINFO* pExcepInfo,
536 UINT* rgVarRefIdx = NULL;
537 VARIANTARG* rgVarRef = NULL;
541 TRACE("(%p)->(%ld,%s,%lx,%x,%p,%p,%p,%p)\n", This,
542 dispIdMember, debugstr_guid(riid),
543 lcid, wFlags, pDispParams, pVarResult,
544 pExcepInfo, puArgErr);
546 /* [out] args can't be null, use dummy vars if needed */
547 if (!pVarResult) pVarResult = &VarResult;
548 if (!puArgErr) puArgErr = &uArgErr;
550 /* count by-ref args */
551 for (cVarRef=0,u=0; u<pDispParams->cArgs; u++) {
552 VARIANTARG* arg = &pDispParams->rgvarg[u];
553 if (V_ISBYREF(arg)) {
558 rgVarRefIdx = CoTaskMemAlloc(sizeof(UINT)*cVarRef);
559 rgVarRef = CoTaskMemAlloc(sizeof(VARIANTARG)*cVarRef);
560 /* make list of by-ref args */
561 for (cVarRef=0,u=0; u<pDispParams->cArgs; u++) {
562 VARIANTARG* arg = &pDispParams->rgvarg[u];
563 if (V_ISBYREF(arg)) {
564 rgVarRefIdx[cVarRef] = u;
565 VariantInit(&rgVarRef[cVarRef]);
570 /* [out] args still can't be null,
571 * but we can point these anywhere in this case,
572 * since they won't be written to when cVarRef is 0 */
573 rgVarRefIdx = puArgErr;
574 rgVarRef = pVarResult;
576 TRACE("passed by ref: %d args\n", cVarRef);
577 hr = IDispatch_RemoteInvoke_Proxy(This,
590 for (u=0; u<cVarRef; u++) {
591 unsigned i = rgVarRefIdx[u];
592 VariantCopy(&pDispParams->rgvarg[i],
594 VariantClear(&rgVarRef[u]);
596 CoTaskMemFree(rgVarRef);
597 CoTaskMemFree(rgVarRefIdx);
602 HRESULT __RPC_STUB IDispatch_Invoke_Stub(
608 DISPPARAMS* pDispParams,
610 EXCEPINFO* pExcepInfo,
614 VARIANTARG* rgVarRef)
617 VARIANTARG *rgvarg, *arg;
620 /* initialize out parameters, so that they can be marshalled
621 * in case the real Invoke doesn't initialize them */
622 VariantInit(pVarResult);
623 memset(pExcepInfo, 0, sizeof(*pExcepInfo));
626 /* let the real Invoke operate on a copy of the in parameters,
627 * so we don't risk losing pointers to allocated memory */
628 rgvarg = pDispParams->rgvarg;
629 arg = CoTaskMemAlloc(sizeof(VARIANTARG)*pDispParams->cArgs);
630 if (!arg) return E_OUTOFMEMORY;
632 /* init all args so we can call VariantClear on all the args if the copy
634 for (u = 0; u < pDispParams->cArgs; u++)
635 VariantInit(&arg[u]);
637 for (u = 0; u < pDispParams->cArgs; u++) {
638 hr = VariantCopy(&arg[u], &rgvarg[u]);
644 pDispParams->rgvarg = arg;
646 hr = IDispatch_Invoke(This,
656 /* copy ref args to out list */
657 for (u=0; u<cVarRef; u++) {
658 unsigned i = rgVarRefIdx[u];
659 VariantInit(&rgVarRef[u]);
660 VariantCopy(&rgVarRef[u], &arg[i]);
661 /* clear original if equal, to avoid double-free */
662 if (V_BYREF(&rgVarRef[u]) == V_BYREF(&rgvarg[i]))
663 VariantClear(&rgvarg[i]);
667 /* clear the duplicate argument list */
668 for (u=0; u<pDispParams->cArgs; u++)
669 VariantClear(&arg[u]);
671 pDispParams->rgvarg = rgvarg;
679 HRESULT CALLBACK IEnumVARIANT_Next_Proxy(
687 pCeltFetched = &fetched;
688 return IEnumVARIANT_RemoteNext_Proxy(This,
694 HRESULT __RPC_STUB IEnumVARIANT_Next_Stub(
702 hr = IEnumVARIANT_Next(This,
706 if (hr == S_OK) *pCeltFetched = celt;
712 HRESULT CALLBACK ITypeComp_Bind_Proxy(
721 FIXME("not implemented\n");
725 HRESULT __RPC_STUB ITypeComp_Bind_Stub(
732 LPFUNCDESC* ppFuncDesc,
733 LPVARDESC* ppVarDesc,
734 ITypeComp** ppTypeComp,
735 CLEANLOCALSTORAGE* pDummy)
737 FIXME("not implemented\n");
741 HRESULT CALLBACK ITypeComp_BindType_Proxy(
748 FIXME("not implemented\n");
752 HRESULT __RPC_STUB ITypeComp_BindType_Stub(
758 FIXME("not implemented\n");
764 HRESULT CALLBACK ITypeInfo_GetTypeAttr_Proxy(
766 TYPEATTR** ppTypeAttr)
768 FIXME("not implemented\n");
772 HRESULT __RPC_STUB ITypeInfo_GetTypeAttr_Stub(
774 LPTYPEATTR* ppTypeAttr,
775 CLEANLOCALSTORAGE* pDummy)
777 FIXME("not implemented\n");
781 HRESULT CALLBACK ITypeInfo_GetFuncDesc_Proxy(
784 FUNCDESC** ppFuncDesc)
786 FIXME("not implemented\n");
790 HRESULT __RPC_STUB ITypeInfo_GetFuncDesc_Stub(
793 LPFUNCDESC* ppFuncDesc,
794 CLEANLOCALSTORAGE* pDummy)
796 FIXME("not implemented\n");
800 HRESULT CALLBACK ITypeInfo_GetVarDesc_Proxy(
805 FIXME("not implemented\n");
809 HRESULT __RPC_STUB ITypeInfo_GetVarDesc_Stub(
812 LPVARDESC* ppVarDesc,
813 CLEANLOCALSTORAGE* pDummy)
815 FIXME("not implemented\n");
819 HRESULT CALLBACK ITypeInfo_GetNames_Proxy(
826 FIXME("not implemented\n");
830 HRESULT __RPC_STUB ITypeInfo_GetNames_Stub(
837 FIXME("not implemented\n");
841 HRESULT CALLBACK ITypeInfo_GetIDsOfNames_Proxy(
847 FIXME("not implemented\n");
851 HRESULT __RPC_STUB ITypeInfo_GetIDsOfNames_Stub(
854 FIXME("not implemented\n");
858 HRESULT CALLBACK ITypeInfo_Invoke_Proxy(
863 DISPPARAMS* pDispParams,
865 EXCEPINFO* pExcepInfo,
868 FIXME("not implemented\n");
872 HRESULT __RPC_STUB ITypeInfo_Invoke_Stub(
875 FIXME("not implemented\n");
879 HRESULT CALLBACK ITypeInfo_GetDocumentation_Proxy(
883 BSTR* pBstrDocString,
884 DWORD* pdwHelpContext,
887 FIXME("not implemented\n");
891 HRESULT __RPC_STUB ITypeInfo_GetDocumentation_Stub(
896 BSTR* pBstrDocString,
897 DWORD* pdwHelpContext,
900 FIXME("not implemented\n");
904 HRESULT CALLBACK ITypeInfo_GetDllEntry_Proxy(
912 FIXME("not implemented\n");
916 HRESULT __RPC_STUB ITypeInfo_GetDllEntry_Stub(
925 FIXME("not implemented\n");
929 HRESULT CALLBACK ITypeInfo_AddressOfMember_Proxy(
935 FIXME("not implemented\n");
939 HRESULT __RPC_STUB ITypeInfo_AddressOfMember_Stub(
942 FIXME("not implemented\n");
946 HRESULT CALLBACK ITypeInfo_CreateInstance_Proxy(
952 FIXME("not implemented\n");
956 HRESULT __RPC_STUB ITypeInfo_CreateInstance_Stub(
961 FIXME("not implemented\n");
965 HRESULT CALLBACK ITypeInfo_GetContainingTypeLib_Proxy(
970 FIXME("not implemented\n");
974 HRESULT __RPC_STUB ITypeInfo_GetContainingTypeLib_Stub(
979 FIXME("not implemented\n");
983 void CALLBACK ITypeInfo_ReleaseTypeAttr_Proxy(
987 FIXME("not implemented\n");
990 HRESULT __RPC_STUB ITypeInfo_ReleaseTypeAttr_Stub(
993 FIXME("not implemented\n");
997 void CALLBACK ITypeInfo_ReleaseFuncDesc_Proxy(
1001 FIXME("not implemented\n");
1004 HRESULT __RPC_STUB ITypeInfo_ReleaseFuncDesc_Stub(
1007 FIXME("not implemented\n");
1011 void CALLBACK ITypeInfo_ReleaseVarDesc_Proxy(
1015 FIXME("not implemented\n");
1018 HRESULT __RPC_STUB ITypeInfo_ReleaseVarDesc_Stub(
1021 FIXME("not implemented\n");
1028 HRESULT CALLBACK ITypeInfo2_GetDocumentation2_Proxy(
1032 BSTR* pbstrHelpString,
1033 DWORD* pdwHelpStringContext,
1034 BSTR* pbstrHelpStringDll)
1036 FIXME("not implemented\n");
1040 HRESULT __RPC_STUB ITypeInfo2_GetDocumentation2_Stub(
1045 BSTR* pbstrHelpString,
1046 DWORD* pdwHelpStringContext,
1047 BSTR* pbstrHelpStringDll)
1049 FIXME("not implemented\n");
1055 UINT CALLBACK ITypeLib_GetTypeInfoCount_Proxy(
1058 FIXME("not implemented\n");
1062 HRESULT __RPC_STUB ITypeLib_GetTypeInfoCount_Stub(
1066 FIXME("not implemented\n");
1070 HRESULT CALLBACK ITypeLib_GetLibAttr_Proxy(
1072 TLIBATTR** ppTLibAttr)
1074 FIXME("not implemented\n");
1078 HRESULT __RPC_STUB ITypeLib_GetLibAttr_Stub(
1080 LPTLIBATTR* ppTLibAttr,
1081 CLEANLOCALSTORAGE* pDummy)
1083 FIXME("not implemented\n");
1087 HRESULT CALLBACK ITypeLib_GetDocumentation_Proxy(
1091 BSTR* pBstrDocString,
1092 DWORD* pdwHelpContext,
1093 BSTR* pBstrHelpFile)
1095 FIXME("not implemented\n");
1099 HRESULT __RPC_STUB ITypeLib_GetDocumentation_Stub(
1104 BSTR* pBstrDocString,
1105 DWORD* pdwHelpContext,
1106 BSTR* pBstrHelpFile)
1108 FIXME("not implemented\n");
1112 HRESULT CALLBACK ITypeLib_IsName_Proxy(
1118 FIXME("not implemented\n");
1122 HRESULT __RPC_STUB ITypeLib_IsName_Stub(
1129 FIXME("not implemented\n");
1133 HRESULT CALLBACK ITypeLib_FindName_Proxy(
1137 ITypeInfo** ppTInfo,
1141 FIXME("not implemented\n");
1145 HRESULT __RPC_STUB ITypeLib_FindName_Stub(
1149 ITypeInfo** ppTInfo,
1154 FIXME("not implemented\n");
1158 void CALLBACK ITypeLib_ReleaseTLibAttr_Proxy(
1160 TLIBATTR* pTLibAttr)
1162 FIXME("not implemented\n");
1165 HRESULT __RPC_STUB ITypeLib_ReleaseTLibAttr_Stub(
1168 FIXME("not implemented\n");
1175 HRESULT CALLBACK ITypeLib2_GetLibStatistics_Proxy(
1177 ULONG* pcUniqueNames,
1178 ULONG* pcchUniqueNames)
1180 FIXME("not implemented\n");
1184 HRESULT __RPC_STUB ITypeLib2_GetLibStatistics_Stub(
1186 ULONG* pcUniqueNames,
1187 ULONG* pcchUniqueNames)
1189 FIXME("not implemented\n");
1193 HRESULT CALLBACK ITypeLib2_GetDocumentation2_Proxy(
1197 BSTR* pbstrHelpString,
1198 DWORD* pdwHelpStringContext,
1199 BSTR* pbstrHelpStringDll)
1201 FIXME("not implemented\n");
1205 HRESULT __RPC_STUB ITypeLib2_GetDocumentation2_Stub(
1210 BSTR* pbstrHelpString,
1211 DWORD* pdwHelpStringContext,
1212 BSTR* pbstrHelpStringDll)
1214 FIXME("not implemented\n");