Skip to content

Commit

Permalink
Add additional InvalidHandleValues metadata (#1893)
Browse files Browse the repository at this point in the history
  • Loading branch information
riverar authored May 3, 2024
1 parent 2c54f11 commit 389a556
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions generation/WinSDK/autoTypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -1365,6 +1365,7 @@
"Name": "SOCKET",
"ValueType": "UIntPtr",
"CloseApi": "closesocket",
"InvalidHandleValues": [ -1 ],
"NativeTypedef": true
},
{
Expand Down Expand Up @@ -2300,12 +2301,14 @@
"Name": "PTP_POOL",
"ValueType": "typedef struct _TP_POOL",
"CloseApi": "CloseThreadpool",
"InvalidHandleValues": [ 0 ],
"NativeTypedef": true
},
{
"Name": "PTP_CLEANUP_GROUP",
"ValueType": "typedef struct _TP_CLEANUP_GROUP",
"CloseApi": "CloseThreadpoolCleanupGroup",
"InvalidHandleValues": [ 0 ],
"NativeTypedef": true
},
{
Expand Down Expand Up @@ -2498,6 +2501,7 @@
"Name": "HIORING",
"ValueType": "DECLARE_HANDLE",
"CloseApi": "CloseIoRing",
"InvalidHandleValues": [ -1, 0 ],
"NativeTypedef": true
},
{
Expand Down
5 changes: 5 additions & 0 deletions scripts/ChangesSinceLastRelease.txt
Original file line number Diff line number Diff line change
Expand Up @@ -291,3 +291,8 @@ Windows.Win32.UI.WindowsAndMessaging.Apis.SendMessageTimeoutW : [DllImport(USER3
# Fixed #1866.
Windows.Win32.System.WinRT.Printing.IPrintDocumentPageSource added
Windows.Win32.System.WinRT.Printing.IPrintPreviewPageCollection added
# Add additional InvalidHandleValue metadata
Windows.Win32.Networking.WinSock.SOCKET : [NativeTypedef,RAIIFree(closesocket)] => [InvalidHandleValue(-1),NativeTypedef,RAIIFree(closesocket)]
Windows.Win32.Storage.FileSystem.HIORING : [NativeTypedef,RAIIFree(CloseIoRing)] => [InvalidHandleValue(-1),InvalidHandleValue(0),NativeTypedef,RAIIFree(CloseIoRing)]
Windows.Win32.System.Threading.PTP_CLEANUP_GROUP : [NativeTypedef,RAIIFree(CloseThreadpoolCleanupGroup)] => [InvalidHandleValue(0),NativeTypedef,RAIIFree(CloseThreadpoolCleanupGroup)]
Windows.Win32.System.Threading.PTP_POOL : [NativeTypedef,RAIIFree(CloseThreadpool)] => [InvalidHandleValue(0),NativeTypedef,RAIIFree(CloseThreadpool)]

0 comments on commit 389a556

Please sign in to comment.