Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SysAllocStringByteLen missing the NativeArrayInfo attribute #868

Closed
kennykerr opened this issue Apr 4, 2022 · 1 comment
Closed

SysAllocStringByteLen missing the NativeArrayInfo attribute #868

kennykerr opened this issue Apr 4, 2022 · 1 comment
Assignees
Labels
usability Touch-up to improve the user experience for a language projection

Comments

@kennykerr
Copy link
Contributor

SysAllocStringLen correctly attributes the parameter as an array:

public static extern BSTR SysAllocStringLen([Optional][In][Const][NativeArrayInfo(CountParamIndex = 1)] PWSTR strIn, [In] uint ui);

But SysAllocStringByteLen lacks the attribute, making it harder to call:

public static extern BSTR SysAllocStringByteLen([Optional][In][Const] PSTR psz, [In] uint len);
@mikebattista mikebattista self-assigned this Apr 7, 2022
@mikebattista mikebattista added the usability Touch-up to improve the user experience for a language projection label Apr 7, 2022
@mikebattista
Copy link
Contributor

Windows.Win32.Foundation.Apis.SysAllocStringByteLen : psz : [Optional,In,Const] => [Optional,In,Const,NativeArrayInfo(CountParamIndex=1)]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usability Touch-up to improve the user experience for a language projection
Projects
None yet
Development

No branches or pull requests

2 participants