Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
315 changes: 236 additions & 79 deletions docs/architecture/classic-com-contract-evidence-registry.md

Large diffs are not rendered by default.

15 changes: 10 additions & 5 deletions docs/architecture/classic-com-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -1382,11 +1382,16 @@ Representative evidence:
and
[`GetSelectedItems`](https://learn.microsoft.com/windows/win32/api/camerauicontrol/nf-camerauicontrol-icamerauicontrol-getselecteditems).

`ITextProvider::GetSelection` and
The current nullable output set is `ITextProvider::GetSelection`,
[`IRawElementProviderFragment::GetEmbeddedFragmentRoots`](https://learn.microsoft.com/windows/win32/api/uiautomationcore/nf-uiautomationcore-irawelementproviderfragment-getembeddedfragmentroots)
have separate exact evidence that a successful output may be null. Both
project as `DynComSafeArray | null`; `GetVisibleRanges` and all other
registered outputs remain required.
plus `IRawElementProviderFragment::GetRuntimeId` and
`IDragProvider::GetGrabbedItems`. Their exact evidence permits a successful
contained `SAFEARRAY*` to be null; the receiving `SAFEARRAY**` cell is still
required. These four methods project as `DynComSafeArray | null`;
`GetVisibleRanges` and all other registered outputs remain required.
The [contract evidence registry](classic-com-contract-evidence-registry.md)
stores these existing allowances as structured, cited nullability fields in
`safearrays.json`, without method-name branches or new support.

The complete-interface result is:

Expand Down Expand Up @@ -1416,7 +1421,7 @@ Generated JavaScript keeps every supported result as `DynComSafeArray`, not a
natural array, so VARTYPE, exact interface IID, rank, and signed lower bounds
remain observable. Generated signatures use
`DynCom.safeArrayType(kind, iid?, nullable?)`;
owned results transfer through `DynCom.takeSafeArray` or, for the two proven
owned results transfer through `DynCom.takeSafeArray` or, for the four proven
nullable methods, `DynCom.takeNullableSafeArray`. `DynComSafeArray.interface`
creates `VT_UNKNOWN` arrays with `SafeArrayCreateEx`; its `interfaceIid`,
`bounds`, `elementType`, and conversion methods preserve identity and shape.
Expand Down
Loading
Loading