microsoft / win32metadata

Tooling to generate metadata for Win32 APIs in the Windows SDK.
Other
1.32k stars 113 forks source link

Native type defs changed from `IntPtr` fields to `void*` #1936

Closed AArnott closed 2 months ago

AArnott commented 2 months ago

Was the change of handles from IntPtr to void* intentional in the v61 release of the metadata? It broke cswin32, and while I can make a change to accommodate this change, I wonder what value this change brought to the metadata or projections to confirm it will remain before I adjust CsWin32.

 [RAIIFree("CloseHandle")]
 [InvalidHandleValue(-1L)]
 [InvalidHandleValue(0L)]
 [NativeTypedef]
 public struct HANDLE
 {
-   public IntPtr Value;
+       public unsafe void* Value;
 }
robmikh commented 2 months ago

Related: #1924