getSlideshow method
Gets the path to the directory where the slideshow images are stored.
Throws a WindowsException on failure.
To learn more, see learn.microsoft.com/windows/win32/api/shobjidl_core/nf-shobjidl_core-idesktopwallpaper-getslideshow.
Implementation
IShellItemArray? getSlideshow() {
final items = adaptiveCalloc<VTablePointer>();
final hr$ = HRESULT(_GetSlideshowFn(ptr, items));
if (hr$.isError) {
free(items);
throw WindowsException(hr$);
}
final result$ = items.value;
free(items);
if (result$.isNull) return null;
return .new(result$);
}