microsoft / CsWin32

A source generator to add a user-defined set of Win32 P/Invoke methods and supporting types to a C# project.
MIT License
2.06k stars 87 forks source link

`string` to `Windows.Win32.Foundation.PCWSTR` #911

Closed myokeeh closed 1 year ago

myokeeh commented 1 year ago

Actual behavior

I currently have code that works simply by passing string arguments, but now it wants Windows.Win32.Foundation.PCWSTR arguments.

Worked fine on 0.2.188-beta

Expected behavior

I just want it working, so either need to have it accept string again or understand how to convert to Windows.Win32.Foundation.PCWSTR

Context