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
1.99k stars 84 forks source link

Latest WDK metadata fails to create DEVPKEY field #1219

Closed Nuklon closed 6 days ago

Nuklon commented 1 week ago

Actual behavior

Error (active)  PInvoke000  An internal error occurred: Failed creating field: Windows.Wdk.Devices.Bluetooth.Apis.DEVPKEY_Bluetooth_DeviceAddress. Unrecognized target type.    

Expected behavior

Generate OK.

Repro steps

  1. NativeMethods.txt content:

    DEVPKEY_*
  2. NativeMethods.json content (if present):

  3. Any of your own code that should be shared?

Context