ShellExecute function shell32

HINSTANCE ShellExecute(
  1. HWND? hwnd,
  2. PCWSTR? lpOperation,
  3. PCWSTR lpFile,
  4. PCWSTR? lpParameters,
  5. PCWSTR? lpDirectory,
  6. SHOW_WINDOW_CMD nShowCmd,
)

Performs an operation on a specified file.

To learn more, see learn.microsoft.com/windows/win32/api/shellapi/nf-shellapi-shellexecutew.

Implementation

@pragma('vm:prefer-inline')
HINSTANCE ShellExecute(
  HWND? hwnd,
  PCWSTR? lpOperation,
  PCWSTR lpFile,
  PCWSTR? lpParameters,
  PCWSTR? lpDirectory,
  SHOW_WINDOW_CMD nShowCmd,
) => HINSTANCE(
  _ShellExecute(
    hwnd ?? nullptr,
    lpOperation ?? nullptr,
    lpFile,
    lpParameters ?? nullptr,
    lpDirectory ?? nullptr,
    nShowCmd,
  ),
);