Expected behavior
The friendly overload signature doesn't contain any raw pointers
Actual behavior
Friendly overload signature is uint MsiRecordGetString(SafeHandle hRecord, uint iField, Span<char>szValueBuf, uint* pcchValueBuf). Notice that the last parameter is a pointer. The documentation page says that the last parameter is both in and out pointer, so it should become ref in the friendly signature
Repro steps
NativeMethods.txt content:
- Any of your own code that should be shared?
Context
- CsWin32 version:
0.3.183
- Target Framework:
net10.0
Expected behavior
The friendly overload signature doesn't contain any raw pointers
Actual behavior
Friendly overload signature is
uint MsiRecordGetString(SafeHandle hRecord, uint iField, Span<char>szValueBuf, uint* pcchValueBuf). Notice that the last parameter is a pointer. The documentation page says that the last parameter is both in and out pointer, so it should becomerefin the friendly signatureRepro steps
NativeMethods.txtcontent:Context
0.3.183net10.0