Adds IUnknown to windows_foundation and switches to Finalizer from NativeFinalizer to call release() automatically (win32's IUnknown should keep using NativeFinalizer)
Adds cast and tryCast methods to IUnknown
Fixes some memory leaks
Refactors WinRT helpers in windows_foundation
Refactors projection classes
Removes unnecessary linter ignore comments
Related Issue
None
Type of Change
[x] โจ New feature (non-breaking change which adds functionality)
[ ] ๐ ๏ธ Bug fix (non-breaking change which fixes an issue)
[ ] โ Breaking change (fix or feature that would cause existing functionality to change)
Description
IUnknown
towindows_foundation
and switches toFinalizer
fromNativeFinalizer
to callrelease()
automatically (win32
'sIUnknown
should keep usingNativeFinalizer
)cast
andtryCast
methods toIUnknown
windows_foundation
Related Issue
None
Type of Change