ShellExecuteEx function shell32
Performs an operation on a specified file.
To learn more, see learn.microsoft.com/windows/win32/api/shellapi/nf-shellapi-shellexecuteexw.
Implementation
Win32Result<bool> ShellExecuteEx(Pointer<SHELLEXECUTEINFO> pExecInfo) {
resolveGetLastError();
final result_ = _ShellExecuteEx(pExecInfo);
return .new(value: result_ != FALSE, error: GetLastError());
}