suggest method
Retrieves spelling suggestions for the supplied text.
Throws a WindowsException on failure.
To learn more, see learn.microsoft.com/windows/win32/api/spellcheck/nf-spellcheck-ispellchecker-suggest.
Implementation
IEnumString? suggest(PCWSTR word) {
final value = adaptiveCalloc<VTablePointer>();
final hr$ = HRESULT(_SuggestFn(ptr, word, value));
if (hr$.isError) {
free(value);
throw WindowsException(hr$);
}
final result$ = value.value;
free(value);
if (result$.isNull) return null;
return .new(result$);
}