unadvise method
Removes an event handler that was attached through the
IFileDialog.advise method.
Throws a WindowsException on failure.
To learn more, see learn.microsoft.com/windows/win32/api/shobjidl_core/nf-shobjidl_core-ifiledialog-unadvise.
Implementation
@pragma('vm:prefer-inline')
void unadvise(int dwCookie) {
final hr$ = HRESULT(_UnadviseFn(ptr, dwCookie));
if (hr$.isError) throw WindowsException(hr$);
}