Skip to content

Friendly overload doesn't turn pointer into managed ref #1446

Description

@DoctorKrolic

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:

MsiRecordGetString
  1. Any of your own code that should be shared?

Context

  • CsWin32 version: 0.3.183
  • Target Framework: net10.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions