[PATCH v2 4/5] include: Use UINT32 for IVectorView<T> index/size arguments.

Jacek Caban jacek at codeweavers.com
Tue Mar 23 12:32:11 CDT 2021


On 3/23/21 11:23 AM, Rémi Bernon wrote:
> diff --git a/include/windows.foundation.collections.idl b/include/windows.foundation.collections.idl
> index 250f8b9acbe..b0b9430048b 100644
> --- a/include/windows.foundation.collections.idl
> +++ b/include/windows.foundation.collections.idl
> @@ -101,10 +101,10 @@ cpp_quote("#endif")
>               ]
>               interface IVectorView<T> : IInspectable
>               {
> -                HRESULT GetAt([in] ULONG index, [out, retval] T *value);
> -                [propget] HRESULT Size([out, retval] ULONG *value);
> -                HRESULT IndexOf([in, optional] T element, [out] ULONG *index, [out, retval] BOOLEAN *value);
> -                HRESULT GetMany([in] ULONG start_index, [in] ULONG items_size, [out] T *items, [out, retval] ULONG *value);
> +                HRESULT GetAt([in] UINT32 index, [out, retval] T *value);
> +                [propget] HRESULT Size([out, retval] UINT32 *value);
> +                HRESULT IndexOf([in, optional] T element, [out] UINT32 *index, [out, retval] BOOLEAN *value);
> +                HRESULT GetMany([in] UINT32 start_index, [in] UINT32 items_size, [out] T *items, [out, retval] UINT32 *value);

Could we just use unsigned int (like Windows SDK does)?

Thanks,
Jacek



More information about the wine-devel mailing list