diff --git a/crates/libs/bindgen/src/rust/handles.rs b/crates/libs/bindgen/src/rust/handles.rs index 55fa458601..c74a71f33e 100644 --- a/crates/libs/bindgen/src/rust/handles.rs +++ b/crates/libs/bindgen/src/rust/handles.rs @@ -77,6 +77,7 @@ pub fn gen_win_handle(writer: &Writer, def: metadata::TypeDef) -> TokenStream { quote! { impl windows_core::Free for #ident { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { #result #name(*self #tail); diff --git a/crates/libs/windows/src/Windows/Wdk/System/OfflineRegistry/mod.rs b/crates/libs/windows/src/Windows/Wdk/System/OfflineRegistry/mod.rs index 6bed27270e..343223133b 100644 --- a/crates/libs/windows/src/Windows/Wdk/System/OfflineRegistry/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/System/OfflineRegistry/mod.rs @@ -211,6 +211,7 @@ impl ORHKEY { } } impl windows_core::Free for ORHKEY { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = ORCloseKey(*self); diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Bluetooth/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Bluetooth/mod.rs index f2aaf78838..fc538a6ecd 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Bluetooth/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Bluetooth/mod.rs @@ -2033,6 +2033,7 @@ impl HBLUETOOTH_DEVICE_FIND { } } impl windows_core::Free for HBLUETOOTH_DEVICE_FIND { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = BluetoothFindDeviceClose(*self); @@ -2056,6 +2057,7 @@ impl HBLUETOOTH_RADIO_FIND { } } impl windows_core::Free for HBLUETOOTH_RADIO_FIND { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = BluetoothFindRadioClose(*self); diff --git a/crates/libs/windows/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs index d9581a442d..db5fc36e8d 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs @@ -8071,6 +8071,7 @@ impl HCMNOTIFICATION { } } impl windows_core::Free for HCMNOTIFICATION { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = CM_Unregister_Notification(*self); @@ -8094,6 +8095,7 @@ impl HDEVINFO { } } impl windows_core::Free for HDEVINFO { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = SetupDiDestroyDeviceInfoList(*self); diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Display/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Display/mod.rs index fe86c08060..1495201a40 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Display/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Display/mod.rs @@ -4430,6 +4430,7 @@ impl HSEMAPHORE { } } impl windows_core::Free for HSEMAPHORE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { EngDeleteSemaphore(*self); diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Enumeration/Pnp/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Enumeration/Pnp/mod.rs index 7ac9ae6b6e..3e29745810 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Enumeration/Pnp/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Enumeration/Pnp/mod.rs @@ -1177,6 +1177,7 @@ impl HSWDEVICE { } } impl windows_core::Free for HSWDEVICE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { SwDeviceClose(*self); diff --git a/crates/libs/windows/src/Windows/Win32/Devices/SerialCommunication/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/SerialCommunication/mod.rs index 433a7bd14f..23f0a50911 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/SerialCommunication/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/SerialCommunication/mod.rs @@ -159,6 +159,7 @@ impl HCOMDB { } } impl windows_core::Free for HCOMDB { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = ComDBClose(*self); diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Usb/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Usb/mod.rs index 82fd5f22ef..6b91fdcc2c 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Usb/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Usb/mod.rs @@ -4556,6 +4556,7 @@ impl WINUSB_INTERFACE_HANDLE { } } impl windows_core::Free for WINUSB_INTERFACE_HANDLE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = WinUsb_Free(*self); diff --git a/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs b/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs index ef8e877323..4a5ffe523d 100644 --- a/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs @@ -10647,6 +10647,7 @@ impl HANDLE { } } impl windows_core::Free for HANDLE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = CloseHandle(*self); @@ -10681,6 +10682,7 @@ impl HGLOBAL { } } impl windows_core::Free for HGLOBAL { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = GlobalFree(*self); @@ -10704,6 +10706,7 @@ impl HINSTANCE { } } impl windows_core::Free for HINSTANCE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = FreeLibrary(*self); @@ -10733,6 +10736,7 @@ impl HLOCAL { } } impl windows_core::Free for HLOCAL { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = LocalFree(*self); @@ -10772,6 +10776,7 @@ impl HMODULE { } } impl windows_core::Free for HMODULE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = FreeLibrary(*self); diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Gdi/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Gdi/mod.rs index 539bb2e8b6..0a049ba53e 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Gdi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Gdi/mod.rs @@ -8536,6 +8536,7 @@ impl HBITMAP { } } impl windows_core::Free for HBITMAP { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DeleteObject(*self); @@ -8565,6 +8566,7 @@ impl HBRUSH { } } impl windows_core::Free for HBRUSH { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DeleteObject(*self); @@ -8610,6 +8612,7 @@ impl HENHMETAFILE { } } impl windows_core::Free for HENHMETAFILE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DeleteEnhMetaFile(*self); @@ -8633,6 +8636,7 @@ impl HFONT { } } impl windows_core::Free for HFONT { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DeleteObject(*self); @@ -8662,6 +8666,7 @@ impl HGDIOBJ { } } impl windows_core::Free for HGDIOBJ { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DeleteObject(*self); @@ -8685,6 +8690,7 @@ impl HMETAFILE { } } impl windows_core::Free for HMETAFILE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DeleteMetaFile(*self); @@ -8724,6 +8730,7 @@ impl HPALETTE { } } impl windows_core::Free for HPALETTE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DeleteObject(*self); @@ -8753,6 +8760,7 @@ impl HPEN { } } impl windows_core::Free for HPEN { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DeleteObject(*self); @@ -8782,6 +8790,7 @@ impl HRGN { } } impl windows_core::Free for HRGN { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DeleteObject(*self); diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/OpenGL/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/OpenGL/mod.rs index f13400d4a1..e5b5661358 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/OpenGL/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/OpenGL/mod.rs @@ -3018,6 +3018,7 @@ impl HGLRC { } } impl windows_core::Free for HGLRC { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = wglDeleteContext(*self); diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Printing/PrintTicket/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Printing/PrintTicket/mod.rs index 1bb61a2920..179d879358 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Printing/PrintTicket/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Printing/PrintTicket/mod.rs @@ -146,6 +146,7 @@ impl HPTPROVIDER { } } impl windows_core::Free for HPTPROVIDER { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = PTCloseProvider(*self); diff --git a/crates/libs/windows/src/Windows/Win32/Media/Audio/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/Audio/mod.rs index 44ac03e282..63513cf4f3 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Audio/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Audio/mod.rs @@ -5450,6 +5450,7 @@ impl HACMDRIVER { } } impl windows_core::Free for HACMDRIVER { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = acmDriverClose(*self, 0); @@ -5505,6 +5506,7 @@ impl HACMSTREAM { } } impl windows_core::Free for HACMSTREAM { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = acmStreamClose(*self, 0); @@ -5544,6 +5546,7 @@ impl HMIDIIN { } } impl windows_core::Free for HMIDIIN { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = midiInClose(*self); @@ -5567,6 +5570,7 @@ impl HMIDIOUT { } } impl windows_core::Free for HMIDIOUT { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = midiOutClose(*self); @@ -5590,6 +5594,7 @@ impl HMIDISTRM { } } impl windows_core::Free for HMIDISTRM { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = midiStreamClose(*self); @@ -5613,6 +5618,7 @@ impl HMIXER { } } impl windows_core::Free for HMIXER { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = mixerClose(*self); @@ -5668,6 +5674,7 @@ impl HWAVEIN { } } impl windows_core::Free for HWAVEIN { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = waveInClose(*self); @@ -5691,6 +5698,7 @@ impl HWAVEOUT { } } impl windows_core::Free for HWAVEOUT { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = waveOutClose(*self); diff --git a/crates/libs/windows/src/Windows/Win32/Media/Multimedia/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/Multimedia/mod.rs index 0d8b93b1ea..5c20608876 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Multimedia/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Multimedia/mod.rs @@ -6919,6 +6919,7 @@ impl HIC { } } impl windows_core::Free for HIC { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = ICClose(*self); diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/IpHelper/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/IpHelper/mod.rs index cd3d8fc10e..34625c01a2 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/IpHelper/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/IpHelper/mod.rs @@ -2372,6 +2372,7 @@ impl HIFTIMESTAMPCHANGE { } } impl windows_core::Free for HIFTIMESTAMPCHANGE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { UnregisterInterfaceTimestampConfigChange(*self); diff --git a/crates/libs/windows/src/Windows/Win32/Networking/WebSocket/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/WebSocket/mod.rs index ffd1e21cd9..5067d69df1 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WebSocket/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WebSocket/mod.rs @@ -249,6 +249,7 @@ impl WEB_SOCKET_HANDLE { } } impl windows_core::Free for WEB_SOCKET_HANDLE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { WebSocketDeleteHandle(*self); diff --git a/crates/libs/windows/src/Windows/Win32/Networking/WinSock/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/WinSock/mod.rs index f813965110..c9c23abcad 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WinSock/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WinSock/mod.rs @@ -7692,6 +7692,7 @@ impl SOCKET { } } impl windows_core::Free for SOCKET { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = closesocket(*self); diff --git a/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/mod.rs index 8d239b6be9..dda82d9a22 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/mod.rs @@ -6266,6 +6266,7 @@ impl LSA_HANDLE { } } impl windows_core::Free for LSA_HANDLE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = LsaClose(*self); diff --git a/crates/libs/windows/src/Windows/Win32/Security/Authorization/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Authorization/mod.rs index bba1e926f9..814a2a4427 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Authorization/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Authorization/mod.rs @@ -5141,6 +5141,7 @@ impl AUTHZ_ACCESS_CHECK_RESULTS_HANDLE { } } impl windows_core::Free for AUTHZ_ACCESS_CHECK_RESULTS_HANDLE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = AuthzFreeHandle(*self); @@ -5197,6 +5198,7 @@ impl AUTHZ_AUDIT_EVENT_HANDLE { } } impl windows_core::Free for AUTHZ_AUDIT_EVENT_HANDLE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = AuthzFreeAuditEvent(*self); @@ -5282,6 +5284,7 @@ impl AUTHZ_CAP_CHANGE_SUBSCRIPTION_HANDLE { } } impl windows_core::Free for AUTHZ_CAP_CHANGE_SUBSCRIPTION_HANDLE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = AuthzUnregisterCapChangeNotification(*self); @@ -5305,6 +5308,7 @@ impl AUTHZ_CLIENT_CONTEXT_HANDLE { } } impl windows_core::Free for AUTHZ_CLIENT_CONTEXT_HANDLE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = AuthzFreeContext(*self); @@ -5361,6 +5365,7 @@ impl AUTHZ_RESOURCE_MANAGER_HANDLE { } } impl windows_core::Free for AUTHZ_RESOURCE_MANAGER_HANDLE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = AuthzFreeResourceManager(*self); diff --git a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/mod.rs index e115263c1b..59728dc7b8 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/mod.rs @@ -9499,6 +9499,7 @@ impl BCRYPT_ALG_HANDLE { } } impl windows_core::Free for BCRYPT_ALG_HANDLE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = BCryptCloseAlgorithmProvider(*self, 0); @@ -9813,6 +9814,7 @@ impl BCRYPT_HASH_HANDLE { } } impl windows_core::Free for BCRYPT_HASH_HANDLE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = BCryptDestroyHash(*self); @@ -9907,6 +9909,7 @@ impl BCRYPT_KEY_HANDLE { } } impl windows_core::Free for BCRYPT_KEY_HANDLE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = BCryptDestroyKey(*self); @@ -10125,6 +10128,7 @@ impl BCRYPT_SECRET_HANDLE { } } impl windows_core::Free for BCRYPT_SECRET_HANDLE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = BCryptDestroySecret(*self); @@ -15655,6 +15659,7 @@ impl HCERTCHAINENGINE { } } impl windows_core::Free for HCERTCHAINENGINE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { CertFreeCertificateChainEngine(*self); @@ -15710,6 +15715,7 @@ impl HCRYPTASYNC { } } impl windows_core::Free for HCRYPTASYNC { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = CryptCloseAsyncHandle(*self); @@ -15983,6 +15989,7 @@ impl NCRYPT_HANDLE { } } impl windows_core::Free for NCRYPT_HANDLE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = NCryptFreeObject(*self); @@ -16086,6 +16093,7 @@ impl NCRYPT_KEY_HANDLE { } } impl windows_core::Free for NCRYPT_KEY_HANDLE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = NCryptFreeObject(*self); @@ -16264,6 +16272,7 @@ impl NCRYPT_PROV_HANDLE { } } impl windows_core::Free for NCRYPT_PROV_HANDLE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = NCryptFreeObject(*self); diff --git a/crates/libs/windows/src/Windows/Win32/Security/DiagnosticDataQuery/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/DiagnosticDataQuery/mod.rs index 6d2d394aaf..3845f51ee5 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/DiagnosticDataQuery/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/DiagnosticDataQuery/mod.rs @@ -528,6 +528,7 @@ impl HDIAGNOSTIC_DATA_QUERY_SESSION { } } impl windows_core::Free for HDIAGNOSTIC_DATA_QUERY_SESSION { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DdqCloseSession(*self); @@ -551,6 +552,7 @@ impl HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION { } } impl windows_core::Free for HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DdqFreeDiagnosticRecordProducerCategories(*self); @@ -574,6 +576,7 @@ impl HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION { } } impl windows_core::Free for HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DdqFreeDiagnosticRecordProducers(*self); @@ -597,6 +600,7 @@ impl HDIAGNOSTIC_EVENT_TAG_DESCRIPTION { } } impl windows_core::Free for HDIAGNOSTIC_EVENT_TAG_DESCRIPTION { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DdqFreeDiagnosticRecordLocaleTags(*self); @@ -620,6 +624,7 @@ impl HDIAGNOSTIC_RECORD { } } impl windows_core::Free for HDIAGNOSTIC_RECORD { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DdqFreeDiagnosticRecordPage(*self); @@ -643,6 +648,7 @@ impl HDIAGNOSTIC_REPORT { } } impl windows_core::Free for HDIAGNOSTIC_REPORT { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DdqFreeDiagnosticReport(*self); diff --git a/crates/libs/windows/src/Windows/Win32/Security/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/mod.rs index 1e427bb4b3..0e29b176a3 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/mod.rs @@ -2596,6 +2596,7 @@ impl PSID { } } impl windows_core::Free for PSID { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = FreeSid(*self); diff --git a/crates/libs/windows/src/Windows/Win32/Storage/CloudFilters/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/CloudFilters/mod.rs index 4f3c55c6fb..9b17a56d3f 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/CloudFilters/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/CloudFilters/mod.rs @@ -2574,6 +2574,7 @@ impl CF_CONNECTION_KEY { } } impl windows_core::Free for CF_CONNECTION_KEY { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = CfDisconnectSyncRoot(*self); diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Compression/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/Compression/mod.rs index 0743490238..dece5ca527 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Compression/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Compression/mod.rs @@ -161,6 +161,7 @@ impl DECOMPRESSOR_HANDLE { } } impl windows_core::Free for DECOMPRESSOR_HANDLE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = CloseDecompressor(*self); diff --git a/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/mod.rs index d230253f4c..4ab65cf70c 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/mod.rs @@ -419,6 +419,7 @@ impl FH_SERVICE_PIPE_HANDLE { } } impl windows_core::Free for FH_SERVICE_PIPE_HANDLE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = FhServiceClosePipe(*self); diff --git a/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/mod.rs index 033482874e..f50c4d2eb7 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/mod.rs @@ -8244,6 +8244,7 @@ impl HIORING { } } impl windows_core::Free for HIORING { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = CloseIoRing(*self); diff --git a/crates/libs/windows/src/Windows/Win32/Storage/InstallableFileSystems/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/InstallableFileSystems/mod.rs index f81bba6fce..512c45a929 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/InstallableFileSystems/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/InstallableFileSystems/mod.rs @@ -612,6 +612,7 @@ impl HFILTER { } } impl windows_core::Free for HFILTER { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = FilterClose(*self); @@ -635,6 +636,7 @@ impl HFILTER_INSTANCE { } } impl windows_core::Free for HFILTER_INSTANCE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = FilterInstanceClose(*self); diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Jet/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/Jet/mod.rs index 2022715241..e934d0e461 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Jet/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Jet/mod.rs @@ -4067,6 +4067,7 @@ impl JET_INSTANCE { } } impl windows_core::Free for JET_INSTANCE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = JetTerm(*self); @@ -4699,6 +4700,7 @@ impl JET_SESID { } } impl windows_core::Free for JET_SESID { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = JetEndSession(*self, 0); diff --git a/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs b/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs index 8e2368398e..d8a236aa45 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs @@ -7653,6 +7653,7 @@ impl MSIHANDLE { } } impl windows_core::Free for MSIHANDLE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = MsiCloseHandle(*self); diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Com/mod.rs index af256e1db8..e2dad0d25c 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/mod.rs @@ -6637,6 +6637,7 @@ impl CO_DEVICE_CATALOG_COOKIE { } } impl windows_core::Free for CO_DEVICE_CATALOG_COOKIE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = CoRevokeDeviceCatalog(*self); @@ -6660,6 +6661,7 @@ impl CO_MTA_USAGE_COOKIE { } } impl windows_core::Free for CO_MTA_USAGE_COOKIE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = CoDecrementMTAUsage(*self); diff --git a/crates/libs/windows/src/Windows/Win32/System/Console/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Console/mod.rs index d3e53c1450..0c8d5848d6 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Console/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Console/mod.rs @@ -1164,6 +1164,7 @@ impl HPCON { } } impl windows_core::Free for HPCON { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { ClosePseudoConsole(*self); diff --git a/crates/libs/windows/src/Windows/Win32/System/DataExchange/mod.rs b/crates/libs/windows/src/Windows/Win32/System/DataExchange/mod.rs index 8ac4094498..da2c9d3fc5 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DataExchange/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DataExchange/mod.rs @@ -1014,6 +1014,7 @@ impl HCONV { } } impl windows_core::Free for HCONV { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DdeDisconnect(*self); @@ -1037,6 +1038,7 @@ impl HCONVLIST { } } impl windows_core::Free for HCONVLIST { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DdeDisconnectList(*self); @@ -1060,6 +1062,7 @@ impl HDDEDATA { } } impl windows_core::Free for HDDEDATA { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DdeFreeDataHandle(*self); diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Etw/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Etw/mod.rs index a39ae439db..792e9fd833 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Etw/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Etw/mod.rs @@ -3394,6 +3394,7 @@ impl TDH_HANDLE { } } impl windows_core::Free for TDH_HANDLE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = TdhCloseDecodingHandle(*self); diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ProcessSnapshotting/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ProcessSnapshotting/mod.rs index 9fcc588156..b345b6f9c9 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ProcessSnapshotting/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ProcessSnapshotting/mod.rs @@ -414,6 +414,7 @@ impl HPSSWALK { } } impl windows_core::Free for HPSSWALK { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = PssWalkMarkerFree(*self); diff --git a/crates/libs/windows/src/Windows/Win32/System/ErrorReporting/mod.rs b/crates/libs/windows/src/Windows/Win32/System/ErrorReporting/mod.rs index 4316b2ab7e..c9881c37e8 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ErrorReporting/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ErrorReporting/mod.rs @@ -690,6 +690,7 @@ impl HREPORT { } } impl windows_core::Free for HREPORT { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = WerReportCloseHandle(*self); @@ -713,6 +714,7 @@ impl HREPORTSTORE { } } impl windows_core::Free for HREPORTSTORE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { WerStoreClose(*self); diff --git a/crates/libs/windows/src/Windows/Win32/System/EventLog/mod.rs b/crates/libs/windows/src/Windows/Win32/System/EventLog/mod.rs index a2455595a9..0c7f298927 100644 --- a/crates/libs/windows/src/Windows/Win32/System/EventLog/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/EventLog/mod.rs @@ -1027,6 +1027,7 @@ impl EVT_HANDLE { } } impl windows_core::Free for EVT_HANDLE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = EvtClose(*self); diff --git a/crates/libs/windows/src/Windows/Win32/System/HostComputeSystem/mod.rs b/crates/libs/windows/src/Windows/Win32/System/HostComputeSystem/mod.rs index a34d33fe7f..ac9e6b59b0 100644 --- a/crates/libs/windows/src/Windows/Win32/System/HostComputeSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/HostComputeSystem/mod.rs @@ -852,6 +852,7 @@ impl HCS_OPERATION { } } impl windows_core::Free for HCS_OPERATION { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { HcsCloseOperation(*self); @@ -875,6 +876,7 @@ impl HCS_PROCESS { } } impl windows_core::Free for HCS_PROCESS { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { HcsCloseProcess(*self); @@ -915,6 +917,7 @@ impl HCS_SYSTEM { } } impl windows_core::Free for HCS_SYSTEM { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { HcsCloseComputeSystem(*self); diff --git a/crates/libs/windows/src/Windows/Win32/System/Hypervisor/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Hypervisor/mod.rs index 8c560bbbcb..ea37b46e7a 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Hypervisor/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Hypervisor/mod.rs @@ -3243,6 +3243,7 @@ impl WHV_PARTITION_HANDLE { } } impl windows_core::Free for WHV_PARTITION_HANDLE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = WHvDeletePartition(*self); diff --git a/crates/libs/windows/src/Windows/Win32/System/Power/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Power/mod.rs index 95f20e669e..8e7c2934b2 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Power/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Power/mod.rs @@ -2005,6 +2005,7 @@ impl HPOWERNOTIFY { } } impl windows_core::Free for HPOWERNOTIFY { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = UnregisterPowerSettingNotification(*self); diff --git a/crates/libs/windows/src/Windows/Win32/System/Registry/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Registry/mod.rs index 9624c731de..ebc6a8eae7 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Registry/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Registry/mod.rs @@ -1982,6 +1982,7 @@ impl HKEY { } } impl windows_core::Free for HKEY { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = RegCloseKey(*self); diff --git a/crates/libs/windows/src/Windows/Win32/System/Services/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Services/mod.rs index 85f202c660..23df6d8914 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Services/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Services/mod.rs @@ -1161,6 +1161,7 @@ impl SC_HANDLE { } } impl windows_core::Free for SC_HANDLE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = CloseServiceHandle(*self); diff --git a/crates/libs/windows/src/Windows/Win32/System/StationsAndDesktops/mod.rs b/crates/libs/windows/src/Windows/Win32/System/StationsAndDesktops/mod.rs index 412c2daebf..0c4356909b 100644 --- a/crates/libs/windows/src/Windows/Win32/System/StationsAndDesktops/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/StationsAndDesktops/mod.rs @@ -456,6 +456,7 @@ impl HDESK { } } impl windows_core::Free for HDESK { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = CloseDesktop(*self); @@ -479,6 +480,7 @@ impl HWINSTA { } } impl windows_core::Free for HWINSTA { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = CloseWindowStation(*self); diff --git a/crates/libs/windows/src/Windows/Win32/System/Threading/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Threading/mod.rs index 841c32c3cc..efe38d49e5 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Threading/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Threading/mod.rs @@ -3658,6 +3658,7 @@ impl LPPROC_THREAD_ATTRIBUTE_LIST { } } impl windows_core::Free for LPPROC_THREAD_ATTRIBUTE_LIST { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { DeleteProcThreadAttributeList(*self); @@ -3949,6 +3950,7 @@ impl PTP_CLEANUP_GROUP { } } impl windows_core::Free for PTP_CLEANUP_GROUP { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { CloseThreadpoolCleanupGroup(*self); @@ -3972,6 +3974,7 @@ impl PTP_IO { } } impl windows_core::Free for PTP_IO { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { CloseThreadpoolIo(*self); @@ -3995,6 +3998,7 @@ impl PTP_POOL { } } impl windows_core::Free for PTP_POOL { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { CloseThreadpool(*self); @@ -4018,6 +4022,7 @@ impl PTP_TIMER { } } impl windows_core::Free for PTP_TIMER { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { CloseThreadpoolTimer(*self); @@ -4041,6 +4046,7 @@ impl PTP_WAIT { } } impl windows_core::Free for PTP_WAIT { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { CloseThreadpoolWait(*self); @@ -4064,6 +4070,7 @@ impl PTP_WORK { } } impl windows_core::Free for PTP_WORK { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { CloseThreadpoolWork(*self); diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Metadata/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Metadata/mod.rs index 1e7f5f9660..6cf399ba1d 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Metadata/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Metadata/mod.rs @@ -3138,6 +3138,7 @@ impl ROPARAMIIDHANDLE { } } impl windows_core::Free for ROPARAMIIDHANDLE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { RoFreeParameterizedTypeExtra(*self); diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/mod.rs index 4d5eebbeb9..9be45827cc 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/mod.rs @@ -1647,6 +1647,7 @@ impl HSTRING_BUFFER { } } impl windows_core::Free for HSTRING_BUFFER { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = WindowsDeleteStringBuffer(*self); diff --git a/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/mod.rs index 1d8b73433e..1e71259ad9 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/mod.rs @@ -3295,6 +3295,7 @@ impl FEATURE_STATE_CHANGE_SUBSCRIPTION { } } impl windows_core::Free for FEATURE_STATE_CHANGE_SUBSCRIPTION { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { UnsubscribeFeatureStateChangeNotification(*self); diff --git a/crates/libs/windows/src/Windows/Win32/UI/Accessibility/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Accessibility/mod.rs index 3ba2c52acb..0a78513e96 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Accessibility/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Accessibility/mod.rs @@ -9586,6 +9586,7 @@ impl HUIAEVENT { } } impl windows_core::Free for HUIAEVENT { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = UiaRemoveEvent(*self); @@ -9609,6 +9610,7 @@ impl HUIANODE { } } impl windows_core::Free for HUIANODE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = UiaNodeRelease(*self); @@ -9632,6 +9634,7 @@ impl HUIAPATTERNOBJECT { } } impl windows_core::Free for HUIAPATTERNOBJECT { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = UiaPatternRelease(*self); @@ -9655,6 +9658,7 @@ impl HUIATEXTRANGE { } } impl windows_core::Free for HUIATEXTRANGE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = UiaTextRangeRelease(*self); @@ -9678,6 +9682,7 @@ impl HWINEVENTHOOK { } } impl windows_core::Free for HWINEVENTHOOK { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = UnhookWinEvent(*self); diff --git a/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/mod.rs index 4501730874..1ed74baa1d 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/mod.rs @@ -1553,6 +1553,7 @@ impl HCOLORSPACE { } } impl windows_core::Free for HCOLORSPACE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DeleteColorSpace(*self); diff --git a/crates/libs/windows/src/Windows/Win32/UI/Controls/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Controls/mod.rs index 03b94e6f67..ddcff3a1e3 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Controls/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Controls/mod.rs @@ -11969,6 +11969,7 @@ impl HDPA { } } impl windows_core::Free for HDPA { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DPA_Destroy(*self); @@ -11992,6 +11993,7 @@ impl HDSA { } } impl windows_core::Free for HDSA { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DSA_Destroy(*self); @@ -12043,6 +12045,7 @@ impl HIMAGELIST { } } impl windows_core::Free for HIMAGELIST { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = ImageList_Destroy(*self); @@ -12066,6 +12069,7 @@ impl HPROPSHEETPAGE { } } impl windows_core::Free for HPROPSHEETPAGE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DestroyPropertySheetPage(*self); @@ -12089,6 +12093,7 @@ impl HSYNTHETICPOINTERDEVICE { } } impl windows_core::Free for HSYNTHETICPOINTERDEVICE { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { DestroySyntheticPointerDevice(*self); @@ -12112,6 +12117,7 @@ impl HTHEME { } } impl windows_core::Free for HTHEME { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = CloseThemeData(*self); diff --git a/crates/libs/windows/src/Windows/Win32/UI/Input/Ime/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Input/Ime/mod.rs index c29bda4020..c6fa59504d 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Input/Ime/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Input/Ime/mod.rs @@ -3968,6 +3968,7 @@ impl HIMC { } } impl windows_core::Free for HIMC { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = ImmDestroyContext(*self); diff --git a/crates/libs/windows/src/Windows/Win32/UI/Input/KeyboardAndMouse/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Input/KeyboardAndMouse/mod.rs index 1892798a97..a91f90ee29 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Input/KeyboardAndMouse/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Input/KeyboardAndMouse/mod.rs @@ -1020,6 +1020,7 @@ impl HKL { } } impl windows_core::Free for HKL { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = UnloadKeyboardLayout(*self); diff --git a/crates/libs/windows/src/Windows/Win32/UI/Input/Touch/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Input/Touch/mod.rs index b171f27054..7a6d8e7ebd 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Input/Touch/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Input/Touch/mod.rs @@ -721,6 +721,7 @@ impl HGESTUREINFO { } } impl windows_core::Free for HGESTUREINFO { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = CloseGestureInfoHandle(*self); @@ -744,6 +745,7 @@ impl HTOUCHINPUT { } } impl windows_core::Free for HTOUCHINPUT { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = CloseTouchInputHandle(*self); diff --git a/crates/libs/windows/src/Windows/Win32/UI/InteractionContext/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/InteractionContext/mod.rs index 9d2a85a2ac..0ad105eaeb 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/InteractionContext/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/InteractionContext/mod.rs @@ -604,6 +604,7 @@ impl HINTERACTIONCONTEXT { } } impl windows_core::Free for HINTERACTIONCONTEXT { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DestroyInteractionContext(*self); diff --git a/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs index 528f95176e..bfb850bbf3 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs @@ -34859,6 +34859,7 @@ impl HPSXA { } } impl windows_core::Free for HPSXA { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { SHDestroyPropSheetExtArray(*self); diff --git a/crates/libs/windows/src/Windows/Win32/UI/TabletPC/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/TabletPC/mod.rs index 26ffc90781..218c6b87e0 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/TabletPC/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/TabletPC/mod.rs @@ -8506,6 +8506,7 @@ impl HRECOCONTEXT { } } impl windows_core::Free for HRECOCONTEXT { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DestroyContext(*self); @@ -8529,6 +8530,7 @@ impl HRECOGNIZER { } } impl windows_core::Free for HRECOGNIZER { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DestroyRecognizer(*self); @@ -8568,6 +8570,7 @@ impl HRECOWORDLIST { } } impl windows_core::Free for HRECOWORDLIST { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DestroyWordList(*self); diff --git a/crates/libs/windows/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs index 6400e023a9..24d0db5a32 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs @@ -8187,6 +8187,7 @@ impl HACCEL { } } impl windows_core::Free for HACCEL { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DestroyAcceleratorTable(*self); @@ -8226,6 +8227,7 @@ impl HCURSOR { } } impl windows_core::Free for HCURSOR { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DestroyCursor(*self); @@ -8255,6 +8257,7 @@ impl HDEVNOTIFY { } } impl windows_core::Free for HDEVNOTIFY { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = UnregisterDeviceNotification(*self); @@ -8294,6 +8297,7 @@ impl HHOOK { } } impl windows_core::Free for HHOOK { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = UnhookWindowsHookEx(*self); @@ -8317,6 +8321,7 @@ impl HICON { } } impl windows_core::Free for HICON { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DestroyIcon(*self); @@ -8340,6 +8345,7 @@ impl HMENU { } } impl windows_core::Free for HMENU { + #[inline] unsafe fn free(&mut self) { if !self.is_invalid() { _ = DestroyMenu(*self);