From a2c58e238f3cf4c8d5487c069f3b8864d3b1e5a4 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Tue, 28 Jun 2005 13:52:23 +0000 Subject: [PATCH] Add comments describing the first DWORD in an import table entry. --- dlls/oleaut32/typelib.h | 9 ++++++--- tools/widl/typelib_struct.h | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/dlls/oleaut32/typelib.h b/dlls/oleaut32/typelib.h index e519aa7a18b..6f7b8cd4330 100644 --- a/dlls/oleaut32/typelib.h +++ b/dlls/oleaut32/typelib.h @@ -161,9 +161,12 @@ typedef struct tagMSFT_TypeInfoBase { /* layout of an entry with information on imported types */ typedef struct tagMSFT_ImpInfo { - INT res0; /* unknown */ - INT oImpFile; /* offset inthe Import File table */ - INT oGuid; /* offset in Guid table */ + INT res0; /* bits 0 - 15: count */ + /* bit 16: if set oGuid is an offset to Guid */ + /* if clear oGuid is a typeinfo index in the specified typelib */ + /* bits 24 - 31: TKIND of reference */ + INT oImpFile; /* offset in the Import File table */ + INT oGuid; /* offset in Guid table or typeinfo index (see bit 16 of res0) */ } MSFT_ImpInfo; /* function description data */ diff --git a/tools/widl/typelib_struct.h b/tools/widl/typelib_struct.h index 9617f2d5b12..cc336641f2b 100644 --- a/tools/widl/typelib_struct.h +++ b/tools/widl/typelib_struct.h @@ -157,9 +157,12 @@ typedef struct tagMSFT_TypeInfoBase { /* layout of an entry with information on imported types */ typedef struct tagMSFT_ImpInfo { - INT res0; /* unknown */ - INT oImpFile; /* offset inthe Import File table */ - INT oGuid; /* offset in Guid table */ + INT res0; /* bits 0 - 15: count */ + /* bit 16: if set oGuid is an offset to Guid */ + /* if clear oGuid is a typeinfo index in the specified typelib */ + /* bits 24 - 31: TKIND of reference */ + INT oImpFile; /* offset in the Import File table */ + INT oGuid; /* offset in Guid table or typeinfo index (see bit 16 of res0) */ } MSFT_ImpInfo; /* function description data */