Skip to content

Commit 5d43f98

Browse files
committed
Added iid_is support.
1 parent 2162ce5 commit 5d43f98

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

NtApiDotNet/Ndr/IdlNdrFormatterInternal.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,11 @@ private void GetParameter(NdrFormatterContextEntry<NdrProcedureParameter> entry,
363363
{
364364
ApplyCorrelation("switch_is", entry, entries, union_type.Correlation);
365365
}
366+
367+
if (type is NdrInterfacePointerTypeReference interface_ptr && !interface_ptr.IsConstant)
368+
{
369+
ApplyCorrelation("iid_is", entry, entries, interface_ptr.IidIsDescriptor);
370+
}
366371
}
367372

368373
private string FormatParameter(NdrFormatterContextEntry<NdrProcedureParameter> entry)
@@ -386,6 +391,11 @@ private void PopulateMember(NdrFormatterContextEntry<NdrStructureMember> entry,
386391
{
387392
ApplyCorrelation("switch_is", entry, entries, union_type.Correlation);
388393
}
394+
395+
if (entry.Entry.MemberType is NdrInterfacePointerTypeReference interface_ptr && !interface_ptr.IsConstant)
396+
{
397+
ApplyCorrelation("iid_is", entry, entries, interface_ptr.IidIsDescriptor);
398+
}
389399
}
390400

391401
private void FormatNonEncapsulatedUnion(NdrStringBuilder builder, NdrUnionTypeReference type)

0 commit comments

Comments
 (0)