ShellExecuteEx function Null safety shell32

int ShellExecuteEx(
  1. Pointer<SHELLEXECUTEINFO> pExecInfo
)

Performs an operation on a specified file.

BOOL ShellExecuteExW(
  SHELLEXECUTEINFOW *pExecInfo
);

Implementation

int ShellExecuteEx(Pointer<SHELLEXECUTEINFO> pExecInfo) {
  final _ShellExecuteEx = _shell32.lookupFunction<
      Int32 Function(Pointer<SHELLEXECUTEINFO> pExecInfo),
      int Function(Pointer<SHELLEXECUTEINFO> pExecInfo)>('ShellExecuteExW');
  return _ShellExecuteEx(pExecInfo);
}