WindowsDeleteString function winrt
Decrements the reference count of a string buffer.
Throws a WindowsException on failure.
To learn more, see learn.microsoft.com/windows/win32/api/winstring/nf-winstring-windowsdeletestring.
Implementation
@pragma('vm:prefer-inline')
void WindowsDeleteString(HSTRING? string) {
final hr$ = HRESULT(_WindowsDeleteString(string ?? nullptr));
if (hr$.isError) throw WindowsException(hr$);
}