getOptions method
Gets the current flags that are set to control dialog behavior.
Throws a WindowsException on failure.
To learn more, see learn.microsoft.com/windows/win32/api/shobjidl_core/nf-shobjidl_core-ifiledialog-getoptions.
Implementation
FILEOPENDIALOGOPTIONS getOptions() {
final pfos = adaptiveCalloc<Uint32>();
final hr$ = HRESULT(_GetOptionsFn(ptr, pfos));
if (hr$.isError) {
free(pfos);
throw WindowsException(hr$);
}
final result$ = pfos.value;
free(pfos);
return .new(result$);
}