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

Improve [Out] PWSTR parameters in friendly overloads #1341

Merged
merged 1 commit into from
Feb 4, 2025
Merged

Conversation

AArnott
Copy link
Member

@AArnott AArnott commented Feb 4, 2025

// extern
static extern int GetWindowText(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.PWSTR lpString, int nMaxCount);
// friendly
static int GetWindowText(winmdroot.Foundation.HWND hWnd, Span<char>lpString);

Fixes #614

@AArnott AArnott merged commit c3f0325 into main Feb 4, 2025
3 checks passed
@AArnott AArnott deleted the fix614 branch February 4, 2025 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Friendly overload should expose [Out] PWSTR in more friendly way
1 participant