Commit Graph

142 Commits

Author SHA1 Message Date
Piotr Caban aecd956b7e oleaut32: Improved ICreateTypeInfo AddFuncDesc implementation. 2010-03-16 11:48:48 +01:00
Piotr Caban d2f24ed885 oleaut32: Use QueryPathOfRegTypeLib in ICreateTypeInfo2_AddRefTypeInfo. 2010-03-16 11:48:38 +01:00
Piotr Caban d62534d199 oleaut32: Remove incorrect memid validation.
This code was trying to block negative values of memid (incorrectly).
I have run more tests and found that it's possible to set some negative
values (e.g. on TKIND_INTERFACE: -1, -4..-8, -500..?). Unless we know
what values are allowed it's probably better to not check memid.
2010-03-16 11:48:32 +01:00
Piotr Caban b7c50c7dbf oleaut32: Fix importinfo flags. 2010-03-16 11:48:26 +01:00
Piotr Caban e119aceb7c oleaut32: Fix some reference leaks. 2010-03-16 11:48:22 +01:00
Piotr Caban 3c747fec50 oleaut32: Added ICreateTypeInfo2_SetFuncHelpContext implementation. 2010-03-16 11:48:16 +01:00
Piotr Caban eb15921ff5 oleaut32: Improve dual interfaces creation in typelib. 2010-03-16 11:48:10 +01:00
Piotr Caban d9fd33e3a9 oleaut32: Improve TypeInfos with changed TypeKind handling. 2010-03-16 11:48:04 +01:00
Piotr Caban 6b035d25a8 oleaut32: Simplify ICreateTypeInfo2_SetTypeFlags implementation. 2010-03-16 11:47:58 +01:00
Michael Stefaniuc 400fb55219 oleaut32: Remove superfluous NULL check before HeapFree (Smatch). 2010-03-01 11:34:04 +01:00
Piotr Caban ccdafdb9c3 oleaut32: Update TypeInfo flags when object inherits IDispatch. 2010-02-25 16:00:40 +01:00
Piotr Caban 247b11e046 oleaut32: Added ITypeLib2_GetDocumentation implementation. 2010-02-25 16:00:33 +01:00
Piotr Caban 177d7aac3d oleaut32: Added ITypeLib2_GetLibAttr implementation. 2010-02-25 16:00:20 +01:00
Piotr Caban 77e1b7a13f oleaut32: Added implementation of ITypeInfo2_GetRefTypeOfImplType. 2010-02-24 15:16:00 +01:00
Piotr Caban 3183786367 oleaut32: Added implementation of ITypeInfo2_GetImplTypeFlags. 2010-02-24 15:15:57 +01:00
Piotr Caban ea6b690f82 oleaut32: Improve TKIND_COCLASS handling while creating typelib. 2010-02-24 15:15:49 +01:00
Piotr Caban e8d117f5a1 oleaut32: Fix importfile searching in ctl2_alloc_importinfo. 2010-02-24 15:15:46 +01:00
Piotr Caban b6cf636c6e oleaut32: Added implementation of ITypeInfo2_fnGetTypeAttr. 2010-02-24 15:15:42 +01:00
Piotr Caban 9e02ef54e1 oleaut32: Improved implementation of ICreateTypeInfo2_fnAddImplType. 2010-02-23 12:09:05 +01:00
Piotr Caban 32803c0489 oleaut: Added ITypeInfo2_fnGetRefTypeInfo implementation. 2010-02-23 12:08:51 +01:00
Piotr Caban 3647c337a9 oleaut32: Improved ICreateTypeInfo2_AddRefTypeInfo implementation. 2010-02-23 12:08:44 +01:00
Piotr Caban 3102176ceb oleaut32: Improved ICreateTypeInfo2_SetFuncAndParamNames implementation. 2010-02-23 12:07:32 +01:00
Piotr Caban e68c7cf709 oleaut32: Added VT_BSTR handling to ctl2_add_default_value. 2010-02-23 12:07:27 +01:00
Piotr Caban f42a73d01f oleaut32: Added more arguments with default values handling. 2010-02-23 12:07:22 +01:00
Piotr Caban 4f555e3cc2 oleaut32: Added partial ICreateTypeInfo2_AddFuncDesc arguments with default values handling. 2010-02-23 12:07:07 +01:00
Piotr Caban bf0815424b oleaut32: Added MEMBERID_NIL handling to ICreateTypeInfo_LayOut. 2010-02-22 12:02:22 +01:00
Piotr Caban 1765229158 oleaut32: Added TypeInfo validation in ICreateTypeInfo_LayOut. 2010-02-22 12:02:17 +01:00
Piotr Caban 1dda40deb2 oleaut32: Improved ICreateTypeInfo2_fnAddFuncDesc implementation. 2010-02-22 12:02:08 +01:00
Piotr Caban 99992630bd oleaut32: Added partial ICreateTypeInfo2_LayOut implementation. 2010-02-22 12:01:54 +01:00
Piotr Caban 12feffe49e oleaut32: Store names in list. 2010-02-18 12:43:00 +01:00
Piotr Caban 8354e37628 oleaut32: Store indices in list. 2010-02-18 12:43:00 +01:00
Piotr Caban 21bfd64e6c oleaut32: Compute TypeInfo offsets while writing data. 2010-02-18 12:43:00 +01:00
Piotr Caban d1c174837f oleaut32: Store CreateTypeInfo->typedata in list. 2010-02-18 12:43:00 +01:00
Piotr Caban 1f2590be9b oleaut32: Return TYPE_E_NAMECONFLICT in ICreateTypeLib2::CreateTypeInfo. 2010-02-17 16:31:09 +01:00
Alexandre Julliard 8fce9369b8 oleaut32: Replace long and unsigned long by more appropriate types. 2009-07-03 13:48:54 +02:00
Huw Davies d84693cc29 oleaut32: Calling SetLcid with LOCALE_NEUTRAL is a special case which sets the first header lcid to US English and the second one to 0. 2009-06-11 11:45:51 +02:00
Andrew Talbot 5af3af2b2f oleaut32: Sign-compare warnings fix. 2008-11-03 14:06:07 +01:00
Michael Stefaniuc 0c07d3ba37 oleaut32: Use FAILED instead of !SUCCEEDED. 2008-10-08 13:43:22 +02:00
Andrew Talbot 3ac0983ab4 oleaut32: Remove unneeded address-of operators from array names. 2008-07-11 14:06:37 +02:00
Jon Griffiths bc6f1b0ceb oleaut32: Implement ICreateTypeLib2::SetHelpStringContext/SetHelpStringDll. 2008-07-08 12:27:06 +02:00
Jon Griffiths cc85e2410b oleaut32: Implement ICreateTypeLib2_SetHelpContext. 2008-07-01 11:21:52 +02:00
Jon Griffiths a185208680 oleaut32: Null doc string params return E_INVALIDARG. 2008-06-30 15:10:01 +02:00
Jon Griffiths 04912d26b9 oleaut32: ICreateTypeLib2_SetLcid sets both LCID's. 2008-06-30 15:09:33 +02:00
Jon Griffiths 72607b89a7 oleaut32: Use users default LCID for type libraries. 2008-06-30 15:09:27 +02:00
Dan Hipschman d0820c1840 oleaut32: Use the symbolic name for TYPEFLAG_FDISPATCHABLE. 2008-01-24 11:42:02 +01:00
Gerald Pfeifer 1d62064748 oleaut32: Simplify two conditions based on the fact that unsigned variables cannot be negative. 2007-11-26 13:55:09 +01:00
Andrew Talbot 16e9c35910 oleaut32: Constify some variables. 2007-07-27 12:22:01 +02:00
Andrew Talbot 048a5d6fc5 oleaut32: Exclude unused headers. 2007-05-16 11:55:58 +02:00
Hans Leidekker ce66f5d684 oleaut32: Win64 printf format warning fixes. 2006-10-13 12:08:47 +02:00
Robert Shearman f774f7b79c oleaut32: Make ctl2_hash_guid match the same function in widl, which has likely had much wider testing. 2006-07-10 11:53:08 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Jacek Caban e8f4fff3ea oleaut32: res50 is number of impinfos. Fix its usage. 2006-05-15 11:48:29 +02:00
Mike McCormack a04b77ddc2 gcc 4.0 warning fixes. 2005-08-08 18:38:29 +00:00
Alexandre Julliard 738e88db5f Replace the ICOM_THIS_From macros by inline functions. 2005-07-27 15:14:18 +00:00
Mike McCormack fc200d0ca7 Interlocked LONG* gcc warning fixes. 2005-07-11 10:25:19 +00:00
Huw Davies fe311461a7 Cope with the index in a import table entry being a typeinfo index
rather than a guid offset.
2005-06-29 19:18:25 +00:00
Dmitry Timoshkov eba47f1dfe Make remaining OLE interface vtables const. 2005-06-06 19:50:35 +00:00
Jon Griffiths eb5bf7dd38 Documentation spelling fixes. 2005-02-25 14:07:56 +00:00
Alexandre Julliard 53526959e9 Another warning fix. 2005-01-10 12:31:06 +00:00
Alexandre Julliard dd8fccfe72 Avoid warnings. 2005-01-09 18:01:49 +00:00
Paul Vriens 202b340a51 - use Interlocked* functions in AddRef and Release.
- store the result of the Interlocked functions and use only this.
2005-01-09 17:29:21 +00:00
Michael Stefaniuc 15a308a9d7 Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.
2005-01-03 14:56:42 +00:00
Huw Davies 273137cc2c Fix typelib generation of CARRAYs. 2004-12-27 17:19:26 +00:00
Michael Stefaniuc 5ad7d858e0 Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.
2004-12-23 17:06:43 +00:00
Jon Griffiths f82272c92f Remove unneeded headers to reduce unneeded rebuilds. 2004-12-16 14:35:55 +00:00
Eric Pouech 0a258964c2 Const correctness fixes. 2004-11-30 21:38:57 +00:00
Alexandre Julliard 32457b4f5a Converted more of the (Un)RegisterTypeLib code to Unicode.
Factored out some common routines.
2004-10-22 22:09:09 +00:00
Francois Gouget 486d020c1b Don't define COBJMACROS in objbase.h.
Update the Wine sources accordingly.
2004-10-07 03:06:48 +00:00
Alexandre Julliard 241a4c34b1 Get rid of the non-standard ICOM_THIS macro. 2004-09-09 21:03:58 +00:00
Filip Navara ff5ecfd89a For non-overlapped writes the lpNumberOfBytesWritten parameter of
WriteFile mustn't be NULL.
2004-08-30 18:40:06 +00:00
Alexandre Julliard f714b39762 Get rid of the no longer used ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
macro.
2004-08-23 19:39:48 +00:00
Alexandre Julliard 48c4bb3c31 Get rid of the non-standard ICOM_VTABLE macro. 2004-08-12 23:00:51 +00:00
Alexandre Julliard 0467ce9fd7 Get rid of the non-standard ICOM_VFIELD macro. 2004-08-12 19:52:49 +00:00
Jon Griffiths 0c93b1f0a7 Implement ClearCustData. 2004-04-23 21:31:16 +00:00
Francois Gouget 8fc374d8b4 Make Unicode strings 'static const'. 2004-04-20 02:14:00 +00:00
Alastair Bridgewater 04e4f3cade Implementation of ICreateTypeInfo2_SetHelpContext,
ICreateTypeInfo2_SetTypeDescAlias, ITypeLib2_GetTypeInfoCount,
ITypeLib2_GetTypeInfoType, and ITypeLib2_IsName.
Fix to ICreateTypeInfo2_SetVarName to fix a case where multiple
instances of the same name are used in the same typelib.
2004-03-15 20:05:19 +00:00
Alastair Bridgewater 6e500f6570 Implemented ITypeLib2_GetTypeInfo() and
ITypeLib2_GetTypeInfoOfGuid().
2004-03-13 19:32:41 +00:00
Alastair Bridgewater 70c5612e9d Improve how the GUID hash system works. Mainly a cleanup so that the
hash lookups can be done from other functions.
2004-03-13 19:30:13 +00:00
Alastair Bridgewater ab548adf86 Rename some of the fields in typelib.h to makes more evocative than
'unk00'.
2004-03-13 19:24:58 +00:00
Alastair Bridgewater e9b36904df Support for a small handful more return value/argument/variable types. 2004-02-10 02:26:06 +00:00
Alastair Bridgewater 822f63dcda Fixes and support for TypeInfo alignment values. 2004-02-10 02:23:19 +00:00
Alastair Bridgewater d4745d5b46 Stubbed-out implementation of the ITypeLib interface.
A fix to ICreateTypeInfo::AddRefTypeInfo() to use Release() instead of
hacking a refcount directly.
A missed API doc comment for the ITypeInfo interface.
2004-02-10 01:35:16 +00:00
Francois Gouget ad5ff7ceeb Assorted spelling and case fixes. 2004-02-09 22:07:42 +00:00
Alastair Bridgewater 453d09035c Preliminary support for ICreateTypeInfo::AddImplType().
Support for ICreateTypeInfo::SetImplTypeFlags().
2004-02-09 22:01:25 +00:00
Alastair Bridgewater f9ce2138d3 Preliminary support for recording custom data in a type library. 2004-02-09 21:44:55 +00:00
Alastair Bridgewater 3c06c308f0 Support for recording the SYSKIND of the type library. 2004-02-09 20:48:34 +00:00
Alastair Bridgewater ec496b386e Stubbed-out implementation of the ITypeInfo2 interface for the
ICreateTypeInfo2 implementation.
Implementation of ITypeInfo2_fnGetContainingTypeLib().
Preliminary implementation of ICreateTypeInfo2_fnAddRefTypeInfo().
2004-02-03 21:26:00 +00:00
Alastair Bridgewater 5e07be4eb0 Preliminary implementation of ICreateTypeInfo2_fnAddFuncDesc() and
ICreateTypeInfo2_fnSetFuncAndParamNames().
2004-01-28 21:37:14 +00:00
Alastair Bridgewater 681b6aa083 Improvements to ICreateTypeInfo2_fnAddVarDesc().
A separate function to encode TYPEINFO structures.
2004-01-28 20:04:55 +00:00
Alastair Bridgewater 01b93c166c A small number of cleanups.
A new function to find a given NAME in a type library.
Support for growing a tlb segment when it overflows.
Duplicate GUID elimination.
GUID hash fixes.
NAME hash fixes.
Duplicate STRING elimination fixes.
Duplicate IMPORT elimination fixes.
Type information save ordering fixes.
Support for writing out the CUSTDATA and CUSTDATAGUID segments.
2004-01-27 03:59:07 +00:00
Francois Gouget 6b6ed724ae Add missing '\n's to debug traces. 2004-01-27 00:01:43 +00:00
Alastair Bridgewater ff466b177f Initial implementation of CreateTypeLib2() and the ICreateTypeLib2 and
ICreateTypeInfo2 interfaces.
2004-01-21 22:24:08 +00:00