Actual behavior
The raw P/Invoke for MsiOpenDatabase() accepts szPersist as a PCWSTR which matches the header, but the constants that need to be sent through are just integers.
Expected behavior
That constants be typed to the value of the underlying P/Invoke. Other P/Invokes like TaskDialog(), which takes PCWSTR constants has the constants like TD_INFORMATION_ICON properly typed as PCWSTR.
Repro steps
NativeMethods.txt content:
-
NativeMethods.json content (if present): N/A
-
Any of your own code that should be shared? N/A
Context
- CsWin32 version: 0.3.257
- Win32Metadata version (if explicitly set by project): N/A
- Target Framework: net472
LangVersion (if explicitly set by project): N/A