setFileTypes method
Sets the file types that the dialog can open or save.
Throws a WindowsException on failure.
To learn more, see learn.microsoft.com/windows/win32/api/shobjidl_core/nf-shobjidl_core-ifiledialog-setfiletypes.
Implementation
@pragma('vm:prefer-inline')
void setFileTypes(int cFileTypes, Pointer<COMDLG_FILTERSPEC> rgFilterSpec) {
final hr$ = HRESULT(_SetFileTypesFn(ptr, cFileTypes, rgFilterSpec));
if (hr$.isError) throw WindowsException(hr$);
}