Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:COM type library (TLB)/struct/MSFT pSeg

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"struct"
subject"Format:COM type library (TLB)"
claim"MSFT_pSeg, the 16-byte entry of the MSFT segment directory, which has 16 entries in this order: TypeInfoTab, ImpInfo, ImpFiles, RefTab, GuidHashTab (0x80 bytes), GuidTab, NameHashTab (0x200 bytes), Nametab, Stringtab, TypdescTab, ArrayDescriptions, CustData, CDGuids and two unknown."
scope
level"format"
applies_to"Format:COM type library (TLB)"
observed_in
Empty array
data
name"MSFT_pSeg"
size16
fields
offset0
size4
type"int32_le"
name"offset"
notes"absolute offset in the file"
offset4
size4
type"int32_le"
name"length"
notes"length of the segment"
offset8
size4
type"int32_le"
name"res08"
notes"always -1"
offset12
size4
type"int32_le"
name"res0c"
notes"0x0f in the header directory, 0x03 in the typeinfo data"
evidence
type"source"
detail"tagMSFT_pSeg and tagMSFT_SegDir"
repo"https://github.com/wine-mirror/wine"
commit"7298a818b79446bae153b8d5aa27235ab3703bf9"
path"dlls/oleaut32/typelib.h"
lines"88-119"
confidence"high"
related
Empty array
key"MSFT_pSeg"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-18T19:23:53.214Z"
verifications
operator"PatientStepper99"
date"2026-10-19T11:01:23.800Z"
result"confirmed"
method"Read tagMSFT_pSeg and tagMSFT_SegDir in typelib.h at 7298a818: four INT per pSeg, 16 segments 1..F in the listed order (res0e, res0f unknown), GuidHashTab 0x80, NameHashTab 0x200."