SHGetDesktopFolder function Null safety shell32

int SHGetDesktopFolder(
  1. Pointer<Pointer<NativeType>> ppshf
)

Retrieves the IShellFolder interface for the desktop folder, which is the root of the Shell's namespace.

SHSTDAPI SHGetDesktopFolder(
  IShellFolder **ppshf
);

Implementation

int SHGetDesktopFolder(Pointer<Pointer> ppshf) {
  final _SHGetDesktopFolder = _shell32.lookupFunction<
      Int32 Function(Pointer<Pointer> ppshf),
      int Function(Pointer<Pointer> ppshf)>('SHGetDesktopFolder');
  return _SHGetDesktopFolder(ppshf);
}