marlersoft / zigwin32

Zig bindings for Win32 generated by https://github.com/marlersoft/zigwin32gen
MIT License
234 stars 30 forks source link

`HGLOBAL` (a `HANDLE`) gets bound as `isize` #11

Open squeek502 opened 2 years ago

squeek502 commented 2 years ago

Noticed this in the STGMEDIUM binding:

https://github.com/marlersoft/zigwin32/blob/18c9630b0198cc369088fa832f23e86f177b182f/win32/system/com.zig#L3735-L3747

It seems like the json generated treats the HGLOBAL as IntPtr:

https://github.com/marlersoft/win32json/blob/a0cef2ae9d4c2a46cb9cf16aafaad5e470fa1cee/api/System.Com.json#L4903

My minwindef.h defines it as:

typedef HANDLE              HGLOBAL;