From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:COM type library (TLB)" |
|---|
| claim | "MSFT_Header, the first 0x54 bytes of an MSFT type library (all int32 little endian)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:COM type library (TLB)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "MSFT_Header" |
|---|
| size | 84 |
|---|
| fields | | offset | 0 |
|---|
| size | 4 |
|---|
| type | "int32_le" |
|---|
| name | "magic1" |
|---|
| notes | "0x5446534D 'MSFT'" |
|---|
|
| offset | 4 |
|---|
| size | 4 |
|---|
| type | "int32_le" |
|---|
| name | "magic2" |
|---|
| notes | "0x00010002" |
|---|
|
| offset | 8 |
|---|
| size | 4 |
|---|
| type | "int32_le" |
|---|
| name | "posguid" |
|---|
| notes | "position of the libid in the GUID table, -1 if none" |
|---|
|
| offset | 12 |
|---|
| size | 4 |
|---|
| type | "int32_le" |
|---|
| name | "lcid" |
|---|
|
| offset | 16 |
|---|
| size | 4 |
|---|
| type | "int32_le" |
|---|
| name | "lcid2" |
|---|
|
| offset | 20 |
|---|
| size | 4 |
|---|
| type | "int32_le" |
|---|
| name | "varflags" |
|---|
| notes | "low nibble is the SYSKIND; 0x41 typical, 0x51 with a help file, 0x151 with a help DLL" |
|---|
|
| offset | 24 |
|---|
| size | 4 |
|---|
| type | "int32_le" |
|---|
| name | "version" |
|---|
|
| offset | 28 |
|---|
| size | 4 |
|---|
| type | "int32_le" |
|---|
| name | "flags" |
|---|
|
| offset | 32 |
|---|
| size | 4 |
|---|
| type | "int32_le" |
|---|
| name | "nrtypeinfos" |
|---|
|
| offset | 36 |
|---|
| size | 4 |
|---|
| type | "int32_le" |
|---|
| name | "helpstring" |
|---|
| notes | "position in the string table" |
|---|
|
| offset | 40 |
|---|
| size | 4 |
|---|
| type | "int32_le" |
|---|
| name | "helpstringcontext" |
|---|
|
| offset | 44 |
|---|
| size | 4 |
|---|
| type | "int32_le" |
|---|
| name | "helpcontext" |
|---|
|
| offset | 48 |
|---|
| size | 4 |
|---|
| type | "int32_le" |
|---|
| name | "nametablecount" |
|---|
|
| offset | 52 |
|---|
| size | 4 |
|---|
| type | "int32_le" |
|---|
| name | "nametablechars" |
|---|
|
| offset | 56 |
|---|
| size | 4 |
|---|
| type | "int32_le" |
|---|
| name | "NameOffset" |
|---|
|
| offset | 60 |
|---|
| size | 4 |
|---|
| type | "int32_le" |
|---|
| name | "helpfile" |
|---|
| notes | "position in the string table" |
|---|
|
| offset | 64 |
|---|
| size | 4 |
|---|
| type | "int32_le" |
|---|
| name | "CustomDataOffset" |
|---|
| notes | "-1 if no custom data" |
|---|
|
| offset | 68 |
|---|
| size | 4 |
|---|
| type | "int32_le" |
|---|
| name | "res44" |
|---|
| notes | "always 0x20 (guid hash size?)" |
|---|
|
| offset | 72 |
|---|
| size | 4 |
|---|
| type | "int32_le" |
|---|
| name | "res48" |
|---|
| notes | "always 0x80 (name hash size?)" |
|---|
|
| offset | 76 |
|---|
| size | 4 |
|---|
| type | "int32_le" |
|---|
| name | "dispatchpos" |
|---|
| notes | "HREFTYPE to IDispatch, -1 if none" |
|---|
|
| offset | 80 |
|---|
| size | 4 |
|---|
| type | "int32_le" |
|---|
| name | "nimpinfos" |
|---|
| notes | "number of imported-type infos" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct tagMSFT_Header with offset comments 0x00-0x50" |
|---|
| repo | "https://github.com/wine-mirror/wine" |
|---|
| commit | "7298a818b79446bae153b8d5aa27235ab3703bf9" |
|---|
| path | "dlls/oleaut32/typelib.h" |
|---|
| lines | "58-85" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "MSFT_Header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T19:23:53.122Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:01:23.727Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read tagMSFT_Header in dlls/oleaut32/typelib.h at 7298a818: 21 INT fields (0x54 bytes), order and the 0x00/0x10/0x20/0x30/0x40/0x50 offset markers match every field, including res44=0x20, res48=0x80." |
|---|
|
|
|---|