Annotate _input_ length of `DCompositionGetStatistics::targetIds` (#1993)

Upstream SAL typo'd this in `_Out_writes_opt_` as `targetCount` instead
of `targetIdCount`.

Note that `actualTargetIdCount` will be set to describe how many target
ids are available or were actually written, whereas `targetIdCount` is
just a maximum number of available items to query in `targetIds`.
This commit is contained in:
Marijn Suijten 2024-09-09 18:54:05 +02:00 коммит произвёл GitHub
Родитель 6dbe97cbe6
Коммит f40da63aac
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -987,6 +987,7 @@ DCompositionCreateDevice::dcompositionDevice=[ComOutPtr]
DCompositionCreateDevice2::dcompositionDevice=[ComOutPtr]
DCompositionCreateDevice3::dcompositionDevice=[ComOutPtr]
DCompositionGetStatistics::frameStats=[RetVal]
DCompositionGetStatistics::targetIds=[NativeArrayInfo(CountFieldName = "targetIdCount")]
DCompositionGetTargetStatistics::targetStats=[RetVal]
CreatePresentationFactory::presentationFactory=[ComOutPtr]
IPresentationManager::GetPresentRetiringFence::fence=[ComOutPtr]

Просмотреть файл

@ -2700,3 +2700,5 @@ Windows.Win32.Graphics.Printing.IPrintTicketProvider.GetSupportedVersions : hPri
Windows.Win32.Graphics.Printing.PRINTER_HANDLE added
# Remove RAIIFree attribute from PSID
Windows.Win32.Security.PSID : [NativeTypedef,RAIIFree(FreeSid)] => [NativeTypedef]
# Correct `CountFieldName` on `DCompositionGetStatistics()`
Windows.Win32.Graphics.DirectComposition.Apis.DCompositionGetStatistics : targetIds : [Optional,Out] => [NativeArrayInfo(CountFieldName=targetIdCount),Optional,Out]